Current research: Sensors
We’re working on building an Enderman.
Goal: Have two sets of LEDs, green + purple. Turn green on in normal conditions and turn on purple if someone is close to the enderman.
Time of Flight Sensor
Speaker to play sound
LED
Motors
Can ToF be used to detect when someone comes close to the project?
Types of Distance Sensors and How to Select One? - Latest Open Tech From Seeed
Step 1: Get the sensor working, print the distance and check for varying distances.
Step 2: Turn on one LED based on sensor
Step 3: Build the LED circuit
Step 4: Toggle the LED groups based on distance.
Lab:
Lab: I2C Communication with a Time-of-Flight Distance Sensor
Note: The libraries used in our project had to be updated to work.
We were able to successfully toggle light based on the distance sensor (yay!). A few points: