Glow in the dark Auto-recharge circuit (Photocell not timer) by jpasternack 3d model
3dmdb logo
Thingiverse
Glow in the dark Auto-recharge circuit (Photocell not timer)  by jpasternack

Glow in the dark Auto-recharge circuit (Photocell not timer) by jpasternack

by Thingiverse
Last crawled date: 3 years, 1 month ago
Glow in the dark Auto-recharge circuit using an Photocell(light sensor) and UV LED's to flash charge the filament. - I only have it flash for a second so it will dim quick and you can see it work. The INO files are also in the thing files. Put inside the model or behind, it works off a photocell, so it only flashes on for a few seconds once the photocell registers the glow dimming.
https://youtu.be/3gfeLZGnH-Y
ALL INFO TO MAKE BELOW, I AM SORRY TO ALL THAT COULDN'T WAIT THE 5MIN FOR ME FINISH THE SIMPLE SCHEMATIC, OR THE TYPO WAS THAT IMPORTANT TO GIVE ME A HARD TIME ABOUT. SORY I AMM HUMAAN AL-SO.
Code:
int ledPin = 13; // the pin you wish to control the led
int turnON = 990; // the dim value that will switch the charge light back on (This will change depending on where you put the photocell on the model, I made the values output through serial so you can adjust them for the model/dim pref.
int sensorValue;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(A0);
Serial.println(sensorValue);
delay(1);
if(sensorValue > turnON) {
digitalWrite(ledPin, HIGH);
delay(10000); // How many microseconds to leave light on for. (10000=10seconds)
digitalWrite(ledPin, LOW);
}
delay(1000);
}

Tags