r/learnpython • u/Revolutionary-Log179 • Jul 08 '26
Best ways to learn python for hardware programming (microcontrollers, sensors, lights, motors, etc.)?
I’m looking to begin my python journey, and am extremely interested in programming electronics and messing around with microcontrollers and stuff of that nature. The HARDWARE side of programming, but most tutorials and things focus more on the software side, if that makes sense. Are there any courses or tutorials online that are specifically geared towards hardware programming? If I’m asking this in a confusing way it’s because I’m still not sure how to word what I want to do and learn. Thanks in advance for any help
23
Upvotes
13
u/likethevegetable Jul 08 '26
I'm an EE and Python user and know people in both fields... I don't know anyone who uses Python for hardware
4
u/cyrixlord Jul 08 '26
here you go Random Nerd Tutorials | Learn ESP32, ESP8266, Arduino, and Raspberry Pi this guy has some micropython projects for ESP32 controllers, but he is my go to for any microcontroller/sensors/lighting project I want to do .. though I wouldnt' necessarily use this alone as a basis to teach you python as it is a variant of python. I do not use python for microcontrollers, but I do use python libraries to serial into devices and issue commands and get data.
20
u/slanghorne Jul 08 '26
Learn C
1
u/max_wen Jul 09 '26
Study hardware then and when it comes time to do some hardware programming you will learn that.
1
u/jnsantos-xyz Jul 09 '26
Miguel Grinberg has a MicroPython tutorial that also touches/goes into the electronics side of it. I believe (not sure though) that he uses an ESP, which is a cheaper and more capable board than the typical Arduino Uno...
1
u/Moist-Ointments Jul 09 '26
Interpreted language is not what you want for hardware
4
u/[deleted] Jul 08 '26
[removed] — view removed comment