Week 4. Embedded programming

Group Assignment

You can find our group assignment linked below:

Individual Assignment

First, download Arduino: https://wiki-content.arduino.cc/en/software

Programming1

Now watch this video:

Copy and paste the code from this site:

Programming2

Install the latest version of Seeed:

seeed

Select the board "Arduino Nano RP2040 Connect" and then "Raspberry Pi Pico":

pico

Copy and paste the following code (will make “User” pin blink green after 1 second)

  

// the setup function runs once when you press reset or power the board
void setup()
{
 // initialize digital pin LED_BUILTIN as an output.
 pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
 digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(5000);                       // wait for a second
 digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
 delay(2000);                       // wait for a second
}


Here is the LED in action:

Blink