Skip to content

Use Arduino to control nexa remote switch, radio wave 433mhz transimitter and rceiver

Notifications You must be signed in to change notification settings

Atihinen/Arduino-Nexa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-Nexa

Overview

Use Arduino, 433Mhz transmitter,receiver and Nexa remote switch to turn on and off real electric device

HW requirements

  • Arduino Nano board

SW requirements

Preparations

1. Setup Nexa

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

2. Read sender ID

In order to use the following script you will first need to get sender ID from remote controller.

Setup Arduino and 433 MHz receiver

Connect RF receiver data cable to Arduino D2 port.

Connect RF receiver VCC to 5V pin and GND to Arduino GND.

Arduino RF receiver diagram

Read the ID with Arduino

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.

Serial monitor results

You should get something like this if the connections are done correctly.

3. Start using your arduino as remote

Setup Arduino and 433MHz transmitter

Connect RF transmitter data cable to Arduino D13 port.

Connect RF transmitter VCC to 5V pin and GND to Arduino GND.

Arduino RF transmitter diagram

Setup the code

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.

Tested hardware

About

Use Arduino to control nexa remote switch, radio wave 433mhz transimitter and rceiver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.1%
  • C 1.9%