Basic microcontroller programming with Python
summary
A working water-level monitor built with an Arduino Uno with pySerial and pyFirmata reads an analog water sensor on analog pin A0 (raw 0–641), sends values at 9600 baud to a Python program that maps them to 0–6, and drives onboard LEDs: <=1 => blink blue, 1–4.5 => steady blue, >4.5 => green. The Python side uses a VPython cylinder and label for a live virtual gauge, requires the Arduino IDE sketch uploaded first, and the demo runs end-to-end.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker
- 1:53Why program microcontrollers
- 4:39Arduino basics and setup
- 7:30Python and Arduino together
- 9:36Demo introduction
- 10:17Water sensor project demo
- 11:46Code walkthrough Arduino
- 14:35Code walkthrough Python
- 17:04Key takeaways and resources
- 18:52Q&A session
related talks
44mBuilding a self-watering plant using Micropython on a WiFi-enabled Arduino ESP8266
29mPython for Hardware Folks
46mProgramming the Web of Things with Python and MicroPython
34mUsing Python to enter the world of Microcontrollers
39mIoT Is Fun With Micropython
10mBasics of Hardware with a PyRuler
39mExploring the Wonderful World of Python on Devices
46mThe Ultimate Arduino Bootstrap
