Embedded Programming

Sometime by Week 8...

Blinking the MCUs

Seeeduino SAMD21

SamD21 Pinout

This was again, fairly straightforward, having gone through a similar initial process with the ATTinys and the RP2040.

I followed the guide on Seeed Studio's own site for the large part.

SamD21 Pinout

Software Installation from the guide.

  1. The Board url was added into the Arduino IDE preferences. Board Manager

  2. The SamD21 Board was installed. Board Manager

  3. Select the correct board from the list of boards. Board Selection

  4. Load up the Blink program from Neil's page.
    Hello for SamD21
    Blink1

The SamD21 does not have any onboard NeoPixels, etc, so I got it to work with the Hello sketch and left it there for now.

WaveShare One

I had ordered both, the WaveShare Zero and the WaveShare One initially, before the Seeeduino XIAO versions became available. I have not been able to get the Zero to work, however, the One seems to be working fine.

Waveshare RP2040 One Waveshare RP2040 One

  1. I started off at WaveShare's own RP2040 One Wiki
    WaveShare One Blink

  2. I don't remember which came first, the XIAO or the WaveShare, but I had the RP2040 boards already installed, so I just had to select the right one. Board Selection

  3. And I ran the same Blink program on this as well. I (eventually) changed the LED pin number to the correct one before things finally worked.
    WaveShare One Blink WaveShare One Blink

I had initial hiccups on two points.

  1. I didn't have a USB female cable, and plugging it into the USB port of the laptop directly was an option, but it wasn't too convenient when you wanted to move the board around, take pictures, check connections, etc.
    (With the WaveShare Zero not working, I think I had also given up on the One until I could gather the rest of the supplies and have another go at it)

  2. I wasn't assigning the correct pin number for the onboard LED and so it wasn't functioning as expected initially, which made me go around an check everything else as well since this was a new and untested board. While it is clearly stated on the pin diagram, it took me going through a forum post to notice that the Pin number was actually 16 and not 12 like the XIAO RP2040. In hindsight, this was a silly mistake, but yeah.
    WaveShare One Blink

Apart from that, the process was fairly standard and easy once I got everything lined up and actually went at it (even though it took me till Week 8 to get around to it)

Exercise files

Hello for SamD21
Waveshare Blink Code