
LeHof's Bat Signal Arduino Uno Base Extension
thingiverse
This add-on base is fully compatible with the original LeHof Bat Signal. Simply snap the fixture into the new base. https://www.thingiverse.com/thing:259166 This base has four standoffs that allow for easy mounting of an Arduino Uno. You will need to drill a hole for your photocell to poke out, and you should determine this on your own since your photocell may not be placed exactly like mine. Coding/Wiring Bat Signal Night Light NightLight Code / Test the desired threshold of your photocell using the serial monitor. This setup should turn on the batSignalPin in complete darkness. The photocell may pick up some light from the Bat Signal itself, so setting the else if photocellVal a bit higher will account for this and keep the light from turning off due to its own intensity. My setup uses a 10k resistor on the photocell. int photocellPin = 0; // Photocell connected to analog pin 0 int photocellVal = 0; // define photocell variable int batSignalPin = 11; //define LED connected to pin 11 void setup() { Serial.begin(9600); pinMode(photocellPin, INPUT); pinMode(batSignalPin, OUTPUT); } void loop() { photocellVal = analogRead(photocellPin); // read the analog from photocell Serial.println(photocellVal); // output to screen if (photocellVal < 100) { Serial.println("Bat Signal ON"); // Output to Monitor digitalWrite(batSignalPin, HIGH); } else if (photocellVal > 400) { Serial.println("Bat Signal OFF"); // Output to Monitor digitalWrite(batSignalPin, LOW); } delay(1000); } Diagram courtesy of Lady Ada of Adafruit.com
With this file you will be able to print LeHof's Bat Signal Arduino Uno Base Extension 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 LeHof's Bat Signal Arduino Uno Base Extension.