Robots Python
Robots Python
Robots Python
Python
Shamyl Bin Mansoor
Co-founder & CTO LearnOBots
• Is an EdTech company developing educational technology tools
• Promotes Science Technology Engineering Arts & Mathematics
(STEAM) in Pakistani Schools
• Developed a Technology based school curriculum and educational kits
for learning to Code, Make Robots, Electronics, Astronomy etc etc
• Kids projects have been featured by Hackaday / MIT
Me?
• Teach CS at NUST
• Make “things” at LearnOBots
• Love making / playing with
Technology / Hardware / Gadgets
• Was part of the recent CERN
Hackathon
• Work has been featured on Hackaday
• Hate publishing research papers, but
still have a few
Outline
• Introduction
• Python for Hardware
• MicroPython
• Motivation
• Programming Robots with Python
• Python on the Raspberry PI
• Accessing GPIOs on the PI
• Sensors and Actuators interfacing
• Programming Robot Movement
• Conclusion
Disclaimer
• Hardware prototype never works when you show it to someone!
Python for Hardware
• Programming hardware was hard!
• 8051, C / Assembly
• High Learning Curve
• Suitable for Hardware?
• Easy to use
• Packages available
• Raspberry PI
• What about Real time requirements?
• Trade off
• Use a dedicated Microcontroller for Real time requirements
• Who uses python with hardware?
MicroPython
• Lean and efficient implementation of Python3
• Small subset of Python Standard Library
• Optimized to run on microcontrollers
Why Robots with Python?
• Python is easy!
• Robots are Fun!
• Lots of Libraries!
+
=
Fun
Robots: What do we need?
• A brain (Processor / Controller)
• Raspberry PI or an Arduino
• Some Actuators
• Motors (DC or Servo)
• Some Sensors
• Sonar / Depth / Vision
What we will Use?
• Raspberry PI since we like Python
• t/@shamylmansoor
• shamyl@learnobots.com
• fb.com/learnobots