https://github.com/eocorekuneho/kunerf
A really basic RF 433MHz switch for a 4 channel relay module.
https://github.com/eocorekuneho/kunerf
433mhz arduino rcswitch relay remote-control rf
Last synced: 2 months ago
JSON representation
A really basic RF 433MHz switch for a 4 channel relay module.
- Host: GitHub
- URL: https://github.com/eocorekuneho/kunerf
- Owner: eocorekuneho
- Created: 2022-12-01T15:51:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T16:04:48.000Z (over 2 years ago)
- Last Synced: 2025-02-13T01:20:04.512Z (4 months ago)
- Topics: 433mhz, arduino, rcswitch, relay, remote-control, rf
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kuneRF
A really basic RF 433MHz switch for a 4 channel relay module.This will save and restore states from EEPROM when powercycling the Arduino. (So, like turning lights on or off.)
| PIN | function |
|--|--|
| D2 | RF receiver input |
| D3 | Relay #1 IN |
| D4 | Relay #2 IN |
| D5 | Relay #3 IN |
| D6 | Relay #4 IN |Remote values are hard-coded into the code, you may need to change those.
const unsigned long COMMANDS_ON[] = {
1064981, // relay 1
1052693, // relay 2
1069077, // relay 3
1066005 // relay 4
};
const unsigned long COMMANDS_OFF[] = {
1064980, // relay 1
1052692, // relay 2
1069076, // relay 3
1066004 // relay 4
};To get codes, use the RCSwitch library's ReceiveDemo sketch on your Arduino.
https://github.com/sui77/rc-switch/tree/master/examples/ReceiveDemo_Advanced