4. Embedded programming

Group assignment

Mind Map

First of all I did a mind map to understand the embedded systems better.

MindMap

Microcontroller comparison

I compared two different microcontrollers: ATtiny1614 vs RP2040.

You can find my comparison table here.

ComparisonTableMicro

This are the datasheets I used:

  • Wokwi

    This week I started with something simple to try out the inputs and outputs in relation with the microprocessor

    1. Open Wokwi and choose the PiPico

    Wokwi1

    2. Select the Micropython starter template

    Wokwi2

    3. Add a button, a resistor and a Led

    Wokwi3

    4. Connect the circuits

    Wokwi4

    5. Write the code

    from machine import Pin import time button = Pin(12, Pin. IN,Pin.PULL_DOWN) led = Pin(1,Pin.OUT) while True: if button.value(): led.toggle() time.sleep(0.5)

    Final result