UFO Abduction Lamp with blinking lights
prusaprinters
<p>you need:</p> <p>glas cylinder with both ends open about 80mm in width<br/> 27x blue LEDs<br/> 3x white LEDs<br/> 30x 200 ohm resistors<br/> 4x 2k ohm resistors<br/> 4x 2N2222 transistor<br/> ARDUINO nano<br/> 5M ohm potentiometer<br/> 7V power supply<br/> green fabric</p> <p>Use transparent filament on the file LED_cap_trans.stl.</p> <h3>Print instructions</h3><p>Arduino Code</p> <p>int A = 12;<br/> int B = 10;<br/> int C = 8;<br/> int D = 6;<br/> const int poti = 0;</p> <p>void setup()<br/> {<br/> pinMode(A, OUTPUT);<br/> pinMode(B, OUTPUT);<br/> pinMode(C, OUTPUT);<br/> pinMode(D, OUTPUT);<br/> }</p> <p>void loop()<br/> {<br/> int tDelay = 575;<br/> int analogIn;</p> <p>analogIn = analogRead(poti);<br/> Serial.println(analogIn);</p> <p>// <strong><strong> all on </strong></strong><br/> if(analogIn < 200){<br/> tDelay = 50;<br/> delay(tDelay);</p> <p>digitalWrite(A, HIGH);<br/> digitalWrite(B, HIGH);<br/> digitalWrite(C, HIGH);<br/> digitalWrite(D, HIGH);<br/> } else if (analogIn < 800){<br/> // <strong>* rotate **</strong><br/> tDelay = analogIn - 150;<br/> digitalWrite(A, HIGH);<br/> delay(tDelay);<br/> digitalWrite(A, LOW);<br/> digitalWrite(B, HIGH);<br/> delay(tDelay);<br/> digitalWrite(B, LOW);<br/> digitalWrite(C, HIGH);<br/> delay(tDelay);<br/> digitalWrite(C, LOW);<br/> digitalWrite(D, HIGH);<br/> delay(tDelay);<br/> digitalWrite(D, LOW);</p> <p>} else {<br/> // ** blink<br/> tDelay = analogIn - 400;<br/> digitalWrite(A, HIGH);<br/> digitalWrite(B, LOW);<br/> digitalWrite(C, HIGH);<br/> digitalWrite(D, LOW);<br/> delay(tDelay);<br/> digitalWrite(A, LOW);<br/> digitalWrite(B, HIGH);<br/> digitalWrite(C, LOW);<br/> digitalWrite(D, HIGH);<br/> delay(tDelay);<br/> }<br/> }</p>
With this file you will be able to print UFO Abduction Lamp with blinking lights 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 UFO Abduction Lamp with blinking lights.