COMPONENTS DETAILS -
ARDUINO NANO
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
ARDUINO NANO PRODUCT LINK -
LASER MODULE
Laser module link of the product -
LDR (LIGHT DEPENDENT RESISTOR)
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
DC POWER JACK PRODUCT LINK -
BUZZER
BUZZER PRODUCT LINK -
CIRCUIT DIAGRAM -
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); } }
Commentaires