Final Project- ultrasonic sensor CPX

Concept: light changes color based on distance with a 6 foot range. How to: Code: #include <Adafruit_CircuitPlayground.h> #include <FastLED.h> // — HC-SR04 pins — #define TRIG_PIN A2 #define ECHO_PIN A3 #define NUM_LEDS 10 // — Distance range in inches — const float DIST_MIN_IN = 1.0; const float DIST_MAX_IN = 72.0; // — Palette: cool (far)…

Julianne M. Creative switch

Concept: closing a box to turn 2 LED’s on. how to’s apply conductive tape on the rim of the box, as well as the top of the box so they align. place LED’s with some distance to ensure it doesnt short circuit. connect conductive tape to battery.