To test and blink the LED, I did the following procedures, as described in the lab handbook.
Finally, connect your RP2040 to the LED in the following manner:
-
I attached the Stemma QT breakout cable to the RP2040.
-
Then, Disconnect the breadboard's power supply.
-
Removed the jumper wire from the breadboard power line to the LED.
-
Replaced this connection with the wire from the preset GPIO data pin (NOT THE POWER PIN).
-
Connected the ground pin on the Stemma QT cable to the breadboard's ground pin.
-
Connected the GPIO data pin, NOT THE POWER. PIN, to the breadboard's power pin
The GIF of LED blinking is seen below.
Firstly, We are planning to design an 7-segment display using LED. Then we want to use a brightness sensor (LDR sensor / APDS 9960) to detect brightness and display it using our custom designed 7-segment display in relative terms of 0 - 9. For the next lab, I've opted to build a circuit utilizing an RP2040, a breadboard, an APDS 9960 sensor, a 7-Segment LED display, and Jumper Wires that will sense the brightness using the LDR sensor and then show a value ranging from 0 to 9 based on the brightness value.
Although my main goal is to sense the brightness of the room using LDR sensor and display a normalized value using LEDs creating a 7-segement display. After that I will move forward to display its value in a real 7-segment display.
The components that we will be using are shown below.
- 7 LEDs
- 1 LDR Sensor or Brightness Sensor
- 1 7-segment Display
- 1 Breadboard
- 1 RP2040
- 1 Servo Motor
- Few Jumper Wires
We already have a breadboard, an RP2040, and three LEDs from the aforementioned components. We intend to acquire additional components from Detkin Lab.
- We collect the brightness value using the APDS 9960 sensor and convert it into relative range between 0 - 9. Where O being the least brightness and 9 being the maximum brightness.
- Then we control the LED brightness as per the fluctuation in brightness value.
- We also so our relative brightness value using a 7-segment display.