Skip to content

For this week assigmnement we had to :

  • My group assignment was to browse through the data sheet for your microcontroller. compare the performance and development workflows for other architecturesr.
  • write a program for a microcontroller development board that you made, to interact (with local input &/or output devices)

Group Assignment

Although there are two types of assignments, one group and one individual, since I am alone in my personal Fab Lab I will do both. All of my work will be documented here, so there won’t be a group assignment page. I have made a “Extra” page where i shared side notes

Rp2040

  1. Getting Started with MicroPython: Instructions on installing and running MicroPython on the Raspberry Pi Pico.
  2. MicroPython REPL: How to connect to the MicroPython REPL (Read-Evaluate-Print Loop) using USB or UART.
  3. RP2040 Port Features: Detailed guidance on using various features like LED control, UART, ADC, interrupts, multicore support, I2C, SPI, PWM, and PIO support. IDE Integration: Tips for using Thonny, Visual Studio Code, and rshell with the Raspberry Pi Pico.
  4. Application Notes: Examples and guidance for specific applications like OLED display usage, NeoPixel control, and UART communication.

LED Control

How to Blink an LED: Use the machine.

Pin class to control the onboard LED by driving a GPIO pin high and low. You can achieve a blinking effect by toggling the LED’s state in a loop or by using a timer to automate the process at set intervals.

Interrupts

Configuring Interrupts: Interrupts are critical for responding to events like pin state changes without constantly polling. The SDK guides on setting up GPIO pin interrupts and handling them efficiently.

PWM (Pulse Width Modulation)

Controlling LED Brightness or Motor Speed: PWM is useful for controlling the intensity of LEDs or the speed of motors. The SDK demonstrates how to set up PWM, adjust its frequency and duty cycle.

PIO (Programmable IO)

Advanced Peripheral Control: PIO is a unique feature of the RP2040 that allows for flexible hardware interfacing. The SDK includes examples of writing PIO programs for custom serial interfaces, driving NeoPixels, and more.

BBC Microbit Datasheet

BBC Micro:bit

{
  "key": "value",
  "number": 123
}
alt text

Boards explored

Different Boards

Online Simulators

Wokwi is an online Electronics simulator. I used it to simulate Arduino, ESP32, RP2040 and sensors.

RP2040

Tinkercad

M5StickC Plus2

M5Stack

uiflow2

Ardiuno

Thonny Editor

Mu Editor

Microbit_Python

ESP32_CO2

I have written a curriculum for Middle School students using BBC micro:bit and Makercode aligned to UN SDG’s and ICT Learning Outcomes . Find the links in the extras section.

EveryoneCanMake