![](https://static.wixstatic.com/media/5fc1d4_f199d94bfd9b4c50b82dd1de67398d51~mv2.jpg/v1/fill/w_147,h_77,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_f199d94bfd9b4c50b82dd1de67398d51~mv2.jpg)
COMPONENTS DETAILS -
ARDUINO NANO
![](https://static.wixstatic.com/media/5fc1d4_fe37df3acd3d412da01d2833cfbc8205~mv2.jpg/v1/fill/w_112,h_89,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_fe37df3acd3d412da01d2833cfbc8205~mv2.jpg)
The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.x). It has more or less the same functionality of the Arduino Duemilanove, but in a different package. It lacks only a DC power jack, and works with a Mini-B USB cable instead of a standard one
TECH SPECS -
Microcontroller = ATmega328
Architecture = AVR
Operating Voltage = 5 V
Flash Memory = 32 KB of which 2 KB used by bootloaderSRAM2
KBClock Speed16 MHz
Analog IN Pins = 8
EEPROM = 1 KB
DC Current per I/O Pins = 40 mA (I/O Pins)
Input Voltage = 7-12
VDigital I/O Pins = 22 (6 of which are PWM)
PWM Output = 6
Power Consumption = 19 mA
PCB Size = 18 x 45 mm
Weight = 7 g
![](https://static.wixstatic.com/media/5fc1d4_d678b66458dd434b984d3ee80f6fd766~mv2.png/v1/fill/w_49,h_49,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_d678b66458dd434b984d3ee80f6fd766~mv2.png)
ARDUINO NANO PRODUCT LINK -
LASER MODULE
![](https://static.wixstatic.com/media/5fc1d4_3aa485a6a2dc49188187a88d348542e4~mv2.jpg/v1/fill/w_144,h_144,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_3aa485a6a2dc49188187a88d348542e4~mv2.jpg)
Laser module link of the product -
LDR (LIGHT DEPENDENT RESISTOR)
![](https://static.wixstatic.com/media/5fc1d4_8759070794374b1c8350a5273bcb56ad~mv2.jpg/v1/fill/w_144,h_144,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_8759070794374b1c8350a5273bcb56ad~mv2.jpg)
A Light Dependent Resistor (LDR) is also called a photoresistor or a cadmium sulfide (CdS) cell. ... It is basically a photocell that works on the principle of photoconductivity. The passive component is basically a resistor whose resistance value decreases when the intensity of light decreases.
LDR PRODUCT LINK -
DC POWER JACK
![](https://static.wixstatic.com/media/5fc1d4_bc038872653c411683c2ef74f7977e83~mv2.png/v1/fill/w_125,h_121,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_bc038872653c411683c2ef74f7977e83~mv2.png)
DC POWER JACK PRODUCT LINK -
BUZZER
![](https://static.wixstatic.com/media/5fc1d4_247fcb956dbc4b9d93f2092c323c166a~mv2.jpg/v1/fill/w_147,h_86,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_247fcb956dbc4b9d93f2092c323c166a~mv2.jpg)
BUZZER PRODUCT LINK -
CIRCUIT DIAGRAM -
![](https://static.wixstatic.com/media/5fc1d4_a302cf08a1e748daa14574f25771e592~mv2.jpg/v1/fill/w_147,h_86,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/5fc1d4_a302cf08a1e748daa14574f25771e592~mv2.jpg)
CODE -
const int photo = 3; const int BUZZ = 9; void setup() { //Pin Configurations //Outputs pinMode(BUZZ, OUTPUT); digitalWrite(BUZZ, LOW); //Inputs pinMode(photo, INPUT_PULLUP); } void loop() { //if/else loop checks if photoresistor is high or low if(digitalRead(photo)==HIGH){ digitalWrite(BUZZ, HIGH); }else{ digitalWrite(BUZZ, LOW); } }