Posts

Showing posts from November, 2022

PIR sensor wireless Alarm

Image
PIR sensor Wireless Alarm with 433 Mhz RF Transmitter and Receiver Module //https://www.instructables.com/ARDUINO-WIRELESS-HOME-SECURITY-SYSTEM/  Arduin Sketch for Transmitter // download and install virtualwire library from Github-https://github.com/song940/VirtualWire // Include VirtualWire library #include <VirtualWire.h> int led_pin = 13;// //connect LED to Pin 13 of Arduino int transmit_pin = 12;//connect RF433 data to Pin 12 of Arduino int pir_pin = 2;//connect PIR sensor signal pin to Pin 2 of Arduino int btn_pin = 3;//connect Button to Pin 3 of Arduino int pir_val = 0; // variable for store the status of PIR sensor int btn_val = 0;// variable for store the status of push button int pir_state = LOW;//set LOW the initial value int btn_state = LOW;//set LOW the initial value void setup() {    Serial.begin(9600);// set baud rate 9600 for serial communication    vw_set_tx_pin(transmit_pin);    vw_setup(4000); // Transmission rate    ...

Burn Bootloader to ATMEGA328 and 328 PU.

Image
                                                                                                                                                                       Step 1                                    Connect the Arduino boards as per the circuit diagram                               and  plu...