SONDER.

Interface Labs - Digital Input and Output with Arduino

Physical computing is definitely not my comfort zone / one of my strengths, luckily the diagrams provided were relatively clear cut. When I first started connecting everything on the breadboard I was somewhat concerned about the lack of written pin numbers etc on the Nano 33 but luckily with some attention to detail it wasn't too difficult to figure out. I spaced my Arduino, the led's and buttons out initially which would ultimately come back to bite me.

The initial layout of my wires, LEDs, Arduino.

One of my first mistakes was forgetting the notations for the polarity in the LED's, when I initially connected everything I had the + and - sides of the LED's swapped. When nothing was working however it was one of the things I suspected and I was quickly able to rectify that.

Button Code

Still even after that correction the button wasn't lighting up anything and so I tried a different chunk of code to attempt at debugging the problem. The original code that we were supplied with used a button to change the digital write commands to change which LED's were lit. To make sure that the pin's were correct I removed the conditionals and used digitalWrite to light both LED's by default.

Debug Code

Seeing that after uploading this code there still seemed to be no response, after double triple checking my wire setup and making sure they matched the diagram I looked to discord to see if anyone else had run into issues. Vince to the rescue, he brought up the fact that many of our breadboards are split vertically into two parts and thus, needs be connected vertically. Due to the way I had laid out my button and LED's relative to the Arduino they were on completely different halves and thus not being connected at all. After adding some extra ground and power wires to connect the two halves everything started working and I was able to upload and use the original button switch code. At the time of writing this I'm realizing that I actually misunderstood Vince's reference and I actually thought each one of the segments was separated vertically and hence I connected many many extra ground wires + power wires. I'm assuming it's due to these extra wires that my LED's are so dim despite working as intended.

Breadboard verticality fixed...overcompensated on accident.
Below is a Video of the not working lab as the vertical parts had not been connected.

                                               Video below demonstrates the now working lab albeit with as very dim yellow LED.