week3

assignment - embedded programming - write a program for a microcontroller to interact and communicate and simulate it

for Week 3, it was a bit daunting for me because i had no prior coding or electronics background

i decided to use the RP2040 as my microcontroller chip because it was mentioned many times by Neil during class, and it seemed reliable

RP2040

Raspberry Pi Pico as the development board because it has plenty of resources available

C/C++ as the programming language because it seemed more beginner-friendly, and it also has a strong community and many resources

here begins my first coding experience :)


first thing first, i opened up the 636-page pdf Neil showed us and learned all great things about RP2040. to be totally honest, i lost track from chapter two when it started talking about system description

RP2040

RP2040

RP2040

still, couple of things i learned, both from last week's lecture and the pdf:

GPIO is important, i need to understand how to configure and use the general-purpose input/output (GPIO) pins correctly. and also peripheral features are crucial. i need to familiarize myself with the range of peripherals like SPI, I2C, UART, and programmable I/O, what they mean and how they can be mapped to different pins



classic, i want to start with something super basic, to say "hello to the world" and may be a ":)" face

i searched "c/c++ hello world" on google, i don't know what it means, hope it can be useful later

RP2040

i went to wokwi and selected a Pi Pico to start my simulation

board

i wanted to connect the Raspberry Pi Pico to a LED display and a button, a simple system when i click the button the led says "hello :)", and hopefully i can make it blink

i found this in wokwi and used it as a template

board

i want to change the text to "hello :)" and make it blink

board

board

and make it blink

board