Devices & Components
Arduino Nano
Through Hole Resistor, 470 ohm
5 mm LED: Green
5 mm LED: Red
Software & Tools
Arduino IDE
Arduino Web Editor
Project description
Code
Send Nudes Code
c_cpp
Just paste the code in the web editor or the Arduino software and upload it. I'm not sure what the language of this code is, but I've selected C/C++ for the sake of it. I used the "AVRISP mkII" programmer in Arduino software.
1void setup() 2{ 3 pinMode(2, OUTPUT); 4 pinMode(6, OUTPUT); 5} 6 7void loop() { 8 // main morse code for, you know... 9 digitalWrite(2, HIGH); 10 delay(200); 11 digitalWrite(2, LOW); 12 delay(100); 13 digitalWrite(2, HIGH); 14 delay(200); 15 digitalWrite(2, LOW); 16 delay(100); 17 digitalWrite(2, HIGH); 18 delay(200); 19 digitalWrite(2, LOW); 20 delay(500); 21 digitalWrite(2, HIGH); 22 delay(200); 23 digitalWrite(2, LOW); 24 delay(500); 25 digitalWrite(2, HIGH); 26 delay(500); 27 digitalWrite(2, LOW); 28 delay(100); 29 digitalWrite(2, HIGH); 30 delay(200); 31 digitalWrite(2, LOW); 32 delay(500); 33 digitalWrite(2, HIGH); 34 delay(500); 35 digitalWrite(2, LOW); 36 delay(100); 37 digitalWrite(2, HIGH); 38 delay(200); 39 digitalWrite(2, LOW); 40 delay(100); 41 digitalWrite(2, HIGH); 42 delay(200); 43 digitalWrite(2, LOW); 44 delay(500); 45 digitalWrite(2, HIGH); 46 delay(500); 47 digitalWrite(2, LOW); 48 delay(100); 49 digitalWrite(2, HIGH); 50 delay(200); 51 digitalWrite(2, LOW); 52 delay(100); 53 digitalWrite(2, HIGH); 54 delay(200); 55 digitalWrite(2, LOW); 56 delay(500); 57 digitalWrite(2, HIGH); 58 delay(200); 59 digitalWrite(2, LOW); 60 delay(100); 61 digitalWrite(2, HIGH); 62 delay(200); 63 digitalWrite(2, LOW); 64 delay(100); 65 digitalWrite(2, HIGH); 66 delay(500); 67 digitalWrite(2, LOW); 68 delay(500); 69 digitalWrite(2, HIGH); 70 delay(500); 71 digitalWrite(2, LOW); 72 delay(100); 73 digitalWrite(2, HIGH); 74 delay(200); 75 digitalWrite(2, LOW); 76 delay(100); 77 digitalWrite(2, HIGH); 78 delay(200); 79 digitalWrite(2, LOW); 80 delay(500); 81 digitalWrite(2, HIGH); 82 delay(200); 83 digitalWrite(2, LOW); 84 delay(500); 85 digitalWrite(2, HIGH); 86 delay(200); 87 digitalWrite(2, LOW); 88 delay(100); 89 digitalWrite(2, HIGH); 90 delay(200); 91 digitalWrite(2, LOW); 92 delay(100); 93 digitalWrite(2, HIGH); 94 delay(200); 95 digitalWrite(2, LOW); 96 delay(100); 97 //reset indicator 98 digitalWrite(6, HIGH); 99 delay(2000); 100 digitalWrite(6, LOW); 101 delay(200); 102}
Downloadable files
Schematic/Circuit Diagram
Here's the circuit diagram on how to connect your components i.e. the LEDs and the resistor. I'm sorry the image isn't centred.
Schematic/Circuit Diagram

Schematic/Circuit Diagram
Here's the circuit diagram on how to connect your components i.e. the LEDs and the resistor. I'm sorry the image isn't centred.
Schematic/Circuit Diagram

Comments
Only logged in users can leave comments