Hello guys!This is an idea I came up with during a stormy night.I've always been wondering how many lightnings struck the near area,so i decided to make this simple project and share it with you.It requires little or no experience with coding, and few cheap electronical components.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: What You Will Need:
1) a photoresistor
3)10-11 jumper wires
4)A solderless board ("breadboard")
5)An arduino board(I used an arduino Nano)
Step 2: Construction:
Place the arduino on the breadboard.
Connect a wire from 5V to the one end of the button.Connect the other end of the button on pin 2.
Connect the one end of the photoresistor on 5V,and the other pin to A1.Connect the GND(ground) pin to the one end of the 10K resistor,and the other end of it to the A1(yes, A1).
Connect an LED to GND,and its other end to 5(LED to indicate that the sensor is now calibrating).Connect Another one LED to the GND,with its other end on pin 6(LED to indicate that calibration is done).Connect another LED on GND and its other end at pin 9(LED to indicate that a lightning strike has been detected the past 1000 miliseconds).Now connect another LED on GND and its other leg on pin 3(LED to indicate the number of lightnings recorded).
Thats it!Check if you made the connections right,and its time for some coding!
Step 3: Programming the Device:
I wrote a simple programm,full of helping comments,but if you dont undestand something or have something to tell me,feel free to post a comment.I will reach back to you as soon as i can!Below is the .ino file wich contains the programm and can be openned with the Arduino IDE.Just load it,and press "Upload".Be sure to take a look at the code to fully understand its structure.
Its a good idea to pack it in a transparent little box with 4 AA batteries(6V total),seal the box airtight and let it outside to count the lightnings for you.Thanks for reading!
Any questions on comments or on my email email@example.com.