Gottfried Mayer 960dd54e17 | ||
---|---|---|
EthernetMgt.ino | ||
RCSwitchMgt.ino | ||
README.md | ||
gmaLightstripNetGateway.ino | ||
nRFMgt.ino |
README.md
gmaLightstripNetGateway
(c) 2014 by Gottfried Mayer http://www.gma.name
Overview
Ethernet to nRF24 gateway for gmaLightstrip_RF project Web Server listens for requests like http://[ip-address]/?l=1&c=11&r=128&g=0&b=0 and forwards commands over 2.4GHz wireless channel to RGB light, checks for the answer from LED stip and returns JSON string with results.
errors and/or results are returned in the JSON string.
The commands are listed in nRFMgt.ino in project gmaLightstrip_RF https://github.com/fuse314/gmaLightstrip_RF/blob/master/nRFMgt.ino
Prerequisites
Uses RF24 library by maniacbug to manage nRF24L01+ radio https://github.com/maniacbug/RF24
Uses ethercard library by Jean-Claude Wippler to manage Ethernet ENC28J60 module https://github.com/jcw/ethercard
gmaRGBLight.h
see https://github.com/fuse314/gmaLightstrip_RF/blob/master/README.md
Hardware
This project is based on the Microduino http://www.microduino.cc/ The following modules are used:
- Microduino Core+ (ATmega644PA microcontroller, 16MHz, 5V - with 4K SRAM) http://www.microduino.cc/Modules/Microdoino%20Core%20Modules/Microdoino-Core-Plus
- Microduino ENC (ENC28J60 Ethernet module) http://www.microduino.cc/Modules/Microdoino%20Extension%20Modules/enc
- Microduino nRF24 (nRF24L01+ 2.4GHz wireless module) http://www.microduino.cc/Modules/Microdoino%20Extension%20Modules/nRF24
There is an additional voltage regulator (5V to 3.3V, 250mA max) to get the power for Ethernet and RF24 module. A 5V USB Power supply is connected directly to 5V and GND of the Microduino.