University of Pennsylvania, ESE 5190: Intro to Embedded Systems, Lab 2B
Ying Xu [email protected] Tested on: mac OS bigsur version 11.6 macbook air(M1 2020)
1)Gif:
2)Outline:
We plan to build a series of leds that is connected in parallel.
we will then make the a light alerting clock that is designed for traffic lights.
The red light will first flash with showing :"Wait",
then the yellow light flash many times and stop.
Finally, the blue light will flash with showing "Ready".
I think it‘s cool because there are several GPIO pins on QT-PY2040 which can drive different color LEDs to connect in parallel. and the circuit is like the traffic lights that flash in sequence.
3)Components:
macbook air(M1 2020)
QT-PY 2040 and sensor APDS9960
Breadboard
Different Resistors (330ohm - 1k ohm)
Different color LEDs
4)Question:
What’s value return to RP2040 when the sensor detects the brightness?
How many leds can be used mostly?
For the protective resistor selection, why should we only use the 330ohms and 1k ohms resistor instead of other values?
soldering processing
assemble circuit
Demo gif