Use Arduino, 433Mhz transmitter,receiver and Nexa remote switch to turn on and off real electric device
- Arduino Nano board
- Jumper wires
- 433Mhz Transimitter
- 433Mhz receiver
- Standard solderless breadboard
- Nexa remote switch
Setup your nexa remote switch with your desired electronic, e.g. lamp based on instructions that you received when bought nexa device. Pair it it with the remote where you read the sender id
In order to use the following script you will first need to get sender ID from remote controller.
Connect RF receiver data cable to Arduino D2 port.
Connect RF receiver VCC to 5V pin and GND to Arduino GND.
Deploy rf_receiver.ino to Arduino from receiver/rf_receiver.ino
Open serial monitor to correct port and press the desired button from remote to read sender id, recipient and group.
You should get something like this if the connections are done correctly.
Connect RF transmitter data cable to Arduino D13 port.
Connect RF transmitter VCC to 5V pin and GND to Arduino GND.
Create secrets.h
same folder where homeeasyhacking.ino
file is, with following content:
#ifndef PAYLOAD
#include "payload.h"
#endif
struct Payload payload {<sender>, <recipient>, false, <group(true|false)>}
Sender, recipient and group can be read with rf_receiver.ino
script.
Define the INPUT
type in homeeasyacking.ino
where:
- 0 is the demo, where the transmitter will send on and off with certain interval
- 1 is for serial port. When you send 1, the transmitter will send on and when you send 0, the transmitter will send 0.
Deploy the homeeasyhacking.ino
to arduino and enjoy controlling your electronic devices.