University of Pennsylvania, ESE 5190: Intro to Embedded Systems, Lab 1
(TODO) Chenye Xiong
(TODO) Email: [email protected]
Tested on: ThinkPad XI Carbon 5th Signature Edition, Windows 10
(TODO: Chenye Xiong)
Include lab questions, screenshots, analysis, etc. (Remember, this is public, so don't put anything here you don't want to share with the world.)
- Using the color sensor to detect the value of color intensity at different times
- Subtract the value at the previous time from the value at the next time, and define this difference as 'k'
- If k>=0, the LED doesn't get bright and if k<0, the LED turns bright
The board reacts much slower than the firefly
Description: When the sensor senses color, it board will control the keyboard to type the name of this color on the screen.
- Find the maximum of each value of each color intensity
- Find the color corresponding to the maximum value
- The board controls the keyboard to type the name of this color on the screen
It will type red when there is no specific color close to the sensor.