Flashing Light Prize (1) Arduino Wave Generator
 Probable electrocution? Check.Deadly noxious fumes? Inhaled.KY Jelly? Lubricated.Let's show this prehistoric bitch how we flash bulbs down town.Ingredients1. Arduino Uno2. Micro Servo3. 5V Regulator4. (2) 10nf Cap5. 12V Incandescent Bulb6. Acrylic (Dollar Store Picture Frame)7. 10K Potentiometer (Optional)8. Table Salt or Baking SodaNotation(s)1. Discovered the miniaturization of our previous wave generator provided less opportunity for more visually amplified waves. Ended up with a beached wave...so...crap, another words. Tip; depth, shallows and angle of attack. Next FLP (2) project will approach things differently. Vodka and flames?!2. Plain tap water is a poor electrical conductor. Added table salt and baking soda to increase conductivity. To what ratio? This much to this much by this many.3. (Update) Attempted several further lever variations w/o any significant increase in wave pattern. Simply requires enlarged length and depth for greater motion...that's what she said.Sketchy`// Flashing Light Prize (1)// VijeMiller#include Servo wave;// Pot Analog Pin 0int pot = A0;// Delay Valueint val = 0;// Servo Positionsint fro = 0;int bac = 160;int pos = 0;void setup() { Serial.begin(9600); wave.attach(5); wave.write(pos);}void loop() { // Read Potentiometer val = analogRead(pot); // Print Value Serial.println(val); // Map Pot to Delay Value val = map(val, 0, 1023, 0, 20); // Print Value Serial.println(val); // Back for (pos = fro; pos <= bac; pos += 1) { wave.write(pos); delay(val); } // Forward for (pos = bac; pos >= fro; pos -= 1) { wave.write(pos); delay(val); }}`Archivehttps://hackaday.io/project/25715-flashing-light-prize-1-arduino-wave-generator20:32:0 107-017 5:12:07 191 019
 @pkvi "...may not meet professional standards."
 12,168 miters 0 miters today