Hero Shot Example

Welcome to the week 06

Embedded programming.

This week we played a little with programming using the board we made and to which we placed the XIAO RP 2040 microcontroller and we tried it in the activity of week 4. We did the programming with Thonny and Arduino

Imágenes al lado
Imagen 1 Imagen 1

The Planning.

As these are my first interactions with microcontrollers, it took me a long time to analyze how they work and their interaction with the board we had printed.

Descripción de la imagen

To clarify, I made a map of the pins, that's when we realized that some pins did not fit well with the theoretical location of the pins.

Imágenes al lado
Imagen 1 Imagen 1

To rectify the problem, we had to perform a small "surgery" on the board to rectify it so that in the future we can connect the UAR cable.

Descripción de la imagen Descripción de la imagen Descripción de la imagen Descripción de la imagen

With these pictures I made a 3D model and obtained:

Video MP4 en HTML

Firmware.

Before programming we need to install a Firmware. We download it from the page: https://micropython.org/download/RPI_PICO/ and install the version:

Vendor: Raspberry Pi

Features: Dual-core, External Flash, USB

Source on GitHub: rp2/RPI_PICO

Installed version: v1.22.2 (2024-02-22) .uf2

Descripción de la imagen

Python ID: Thonny

Thonny is downloaded to be able to run the codes written in Microphyton on the microcontroller.

Descripción de la imagen

Python ID: Control tests

I have carried out several tests using microphyton, controlling the LED lights, the button and printing response messages.

Descripción de la imagen Descripción de la imagen

Files made

  • main
  • Test 1
  • test 2

    Many Thanks!!