
Explore the Raspberry Pi Pico and Pico W with MicroPython, covering basics, Tony ID installation, firmware, and file system; build robots, use LCDs, sensors, Bluetooth, and a web server.
Know your Raspberry Pi Pico: explore arpin 20 40 microcontroller, crystal oscillator, micro USB port for power and programming, and a boot button for storage mode, with low power modes.
Master the soldering of the Raspberry Pi Pico by aligning all 20 pins, evenly heating the joints, and securing both sides for a reliable breadboard-friendly connection.
Install the Thonny IDE on Windows, download version 3.3.4, run the setup, and choose the interpreter to MicroPython for Raspberry Pi, then connect the device to program.
Install MicroPython firmware on the Raspberry Pi Pico by downloading the UF2 file from the official site, copying it to the Pico, and using the MicroPython shell.
Explore the Raspberry Pi Pico filesystem with MicroPython using the Thonny IDE, create and edit scripts, save them to the Pico, and understand how main.py runs on boot.
Explore how to use the print function in MicroPython on the Raspberry Pi Pico, including variables, string concatenation, and formatted output with indices and formatting options.
Explore the type function in MicroPython on Raspberry Pi Pico, learning how to check a variable's type, compare values, and understand how different data types behave in code.
Use the input function in MicroPython on Raspberry Pi Pico to capture user input, store it in a variable, and convert input from string to int or float for calculations.
Learn how to explore MicroPython on the Raspberry Pi Pico using the help function to inspect available modules, import the machine module, and explore functions like adc and sleep.
Explore Python conditional statements using if, elif, and else, with input handling, indentation, and multi-branch logic on a Raspberry Pi Pico with MicroPython.
Examine the while loop, its boolean condition, and how to create an infinite loop with delay using time.sleep, with selective imports and keyboard interrupts to stop.
Master for loops in MicroPython on the Raspberry Pi Pico by using range to control iterations, starting at 0 or custom starts, with configurable end exclusion and step values.
Create your own functions in MicroPython on the Raspberry Pi Pico, name them, pass parameters, call them, and return results such as sums and products.
Configure pin 25 as an output on the Raspberry Pi Pico and blink the onboard LED using MicroPython with a loop and sleep delays.
Learn to wire a switch with a resistor to a Raspberry Pi Pico and read a digital input with MicroPython, controlling an LED and applying debounce logic.
Learn how to use MicroPython on Raspberry Pi Pico to implement an external interrupt that detects a button press on a shared pin, toggling an LED and printing state.
Learn to build an automatic street light using an LDR with ADC on Raspberry Pi Pico in MicroPython. Read the LDR via ADC and switch the light on below threshold.
Learn to read the Raspberry Pi Pico's internal temperature using adc in MicroPython, convert the raw value to voltage and then to Celsius, and monitor temperature in real time.
Explore pulse width modulation on the Raspberry Pi Pico, mastering duty cycle and frequency to control LED brightness, with practical setup on pin 15 and a 0–65535 duty range.
Explore interfacing a Raspberry Pi Pico with an OLED display via I2C using MicroPython, including wiring, importing the display library, creating display objects, and rendering text and simple graphics.
Set up UART on the Raspberry Pi Pico to connect with a Bluetooth module, wire TX and RX, and use MicroPython to read lines and send data at 9600 baud.
Set a reset button on the Raspberry Pi Pico by wiring pin 30 to ground through a switch, enabling hard reset, boot options, and firmware reload when programs stall.
Explore controlling a demo-first robot with Raspberry Pi Pico and MicroPython, adjusting timing, using a reset button to restart the program, and commanding forward and stop motions.
Explore the robot parts for a Raspberry Pi Pico project, including the robot base, clamps, motors and battery, plus a 3.3V to 5V level shifter, motor driver, jumpers, and screwdriver.
Build the robot body by fixing the chassis with clamps and screws, aligning the left and right sides according to the design, and following the construction manual and double-sided tape.
Assemble a robot circuit for the Raspberry Pi Pico, wiring 3.3 V logic through a voltage regulator and motor driver, with reset and ground connections, and jumper-based control.
Explore binary logic on the Raspberry Pi Pico to control a robot’s movement, using motor states for forward, backward, and stop, with left and right steering via the rotation axis.
Program and test the first robot using MicroPython on a Raspberry Pi Pico, implementing forward, backward, left, right, and stop motions with modular functions and motor control.
Wire infrared three-pin line follower sensors to a Raspberry Pi Pico, ensure 3.3v logic, connect ground and 3.3v supply, and map left and right sensor outputs to designated pins.
Implement structural modifications for a robot that follows a track, wiring infrared sensors to 3.3V, ground, and digital outputs, and calibrate with a blue potentiometer for reliable track detection.
Test infrared sensor input on a Raspberry Pi Pico with MicroPython, reading 0 or 1 to detect the black track versus brighter surroundings, noting sensor variations.
Learn to build a line follower robot on a Raspberry Pi Pico using MicroPython, define motor pins and forward, left, right, and stop functions, then implement an active line-following loop.
Test a Raspberry Pi Pico line-following robot on a track, ensuring it follows the black line and stops when detected.
Explore an introduction to MicroPython with the Raspberry Pi Pico through a hands-on demo of an edge-avoiding robot.
Implement structural changes for the edge avoider robot, applying the updated design from the last project and starting the HL Orating project to validate these modifications.
Code an edge-avoider and line follower robot with MicroPython on a Raspberry Pi Pico, using left and right sensors to decide forward, backward, or turns in a continuous loop.
Test edge avoider robot behavior by examining how the robot identifies and detects, and how it is working, addressing the weighty problem of detection.
Connect a zero fi bluetooth module to the robotics project, wire power, ground, and 3.3v logic to the TX/RX pins, then create an Android app to control the robot.
Sign up with a Google account for MIT App Inventor, design Android apps with drag-and-drop, build interfaces with components, and program behavior with blocks for testing on a phone.
Create a landscape android app interface with left and right button layouts, icons, and a bluetooth device list, then connect via qr code and a non-visible bluetooth component.
Learn block-based Bluetooth programming to connect a mobile Android app with a robot, select a device, establish a connection, and send directional characters forward, backward, left, and right.
Android application apk file for direct install to android phone and aia file for MIT app inventor is added here.
Learn to build a MicroPython project on the Raspberry Pi Pico that reads Bluetooth input and maps commands to robot motion (forward, backward, left, right) with a safe stop.
Test a Bluetooth connected robot built with Raspberry Pi Pico and MicroPython by loading the companion app via QR code, pairing the device, and verifying movements like forward and backward.
Compare pico and pico w hardware: identical dimensions and pins, with the pico w shifted debug pin. Onboard lcd maps to the wifi module, so use LCD in caps.
Download the Pico W firmware from the Raspberry Pi Foundation, upload the file to the Pico W via USB, then reset and configure the interpreter for MicroPython.
Toggle the onboard led on the Raspberry Pi Pico W with MicroPython by configuring the pin as an output and running a loop to blink it.
Learn to connect a Raspberry Pi Pico to wifi and run a MicroPython web server that serves a simple HTML page to turn an LED on and off via wifi.
Micropython is a lightweight version of Python 3 programming language designed for microcontrollers with a minimum of 256KB of ROM and 16KB of RAM. MicroPython supports chips like ESP32,ESP8266,STM32,nRF52,W600, RP2040 etc.
Raspberry Pi RP2040 is a new microcontroller based on ARM M0+ architecture. Which is developed completely Raspberry PI foundation. MIcroPython coding is easy for students who want to learn the embedded systems.
This course mainly covers the basics of MicroPython with different sections, Python 3 syntax, GPIO controlling, and will update with more robotics projects soon. Students can expect regular updates on RPi PICO with MicroPython.
In this course, the software used is free of cost.
Features of the board
RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom.
Dual-core Arm Cortex M0+ processor, the flexible clock running up to 133 MHz.264KB of SRAM, and 2MB of onboard Flash memory.The castellated module allows soldering directly to carrier boards. USB 1.1 with device and host support. Low-power sleep and dormant modes. Drag-and-drop programming using mass storage over USB. 26 × multi-function GPIO pins.2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels. Accurate clock and timer on-chip. Temperature sensor. Accelerated floating-point libraries on-chip. 8 × Programmable I/O (PIO) state machines for custom peripheral support.