4. Embedded programming
Mind Map
First of all I did a mind map to understand the embedded systems better.
Microcontroller comparison
I compared two different microcontrollers: ATtiny1614 vs RP2040.
You can find my comparison table here.
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
2. Select the Micropython starter template
3. Add a button, a resistor and a Led
4. Connect the circuits
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)