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    pinMode(led_pin, OUTPUT);//Initilized pin 13

Burn Bootloader to ATMEGA328 and 328 PU.

Image
                                                                                                                                                                       Step 1                                    Connect the Arduino boards as per the circuit diagram                               and  plug the Master arduino uno board to the computer via USB cable  Step-2 Open Arduino IDE Go to Tools Select Board- Arduino AVR boards-Arduino UNO Select Proper Port- COM1 Select Progammer- Arduino as ISP step-3 File- Example -select sketch No 11-ArduinoISP ,Click Upload Button. Step-4 Go to Tools Click Burn Bootlader. A message will appear as below.