DIY Arduino Lamp

DIY Arduino Lamp

cults3d

I built an Arduino decorative lamp.It shines with a pleasant warm light and looks nice in the background. You can turn it on and off by clapping YouTube Video - https://youtu.be/1b6CKg4IGfI Parts Sound Sensor- https://www.banggood.com/3Pcs-Sound-Detection-Sensor-Detection-Module-Electret-Microphone-p-943281.html Arduino Nano- https://pl.aliexpress.com/item/32341832857.html Relay- https://pl.aliexpress.com/item/32649659086.html 230v to 5v step down transformer- I removed it from a small phone charger Light Bulb- You can use any bulb you want. Arduino sketch int Microphone = A0; int Relay = 10; int clap = 0; long detection_range_start = 0; long detection_range = 0; boolean status_lights = false; void setup() { pinMode(Microphone, INPUT); pinMode(Relay, OUTPUT); } void loop() { int status_sensor = digitalRead(Microphone); if (status_sensor == 0) { if (clap == 0) { detection_range_start = detection_range = millis(); clap++; } else if (clap > 0 && millis()-detection_range >= 100) { detection_range = millis(); clap++; } } if (millis()-detection_range_start >= 400) { if (clap == 2) { if (!status_lights) { status_lights = true; digitalWrite(Relay, HIGH); } else if (status_lights) { status_lights = false; digitalWrite(Relay, LOW); } } clap = 0; } }

Download Model from cults3d

With this file you will be able to print DIY Arduino Lamp with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on DIY Arduino Lamp.