-->
Page 1 of 1

remote whireless relay controllers.

PostPosted: Thu Jun 11, 2015 10:03 am
by AndyF9798
I am looking at a project and wonder if the ESP8266 is ok for this without using a specific router:

I want to use:
1x ESP8266 as a master transmitter which get data from a connected microcontroller .

254 x ESP8266 receivers which will control a solid state relay and a led.

I would like to transmit a 4 byte code to every receiver and that code will dictate the relay state.

4 bytes:
security code byte
Group byte
Address byte
Relay State byte

Is this viable with the device.

Thanks

Re: remote whireless relay controllers.

PostPosted: Thu Jun 11, 2015 1:10 pm
by lethe
By default the ESP only supports 4 clients in AP mode and uses a /25 network, which does not provide enough IPs for 255 devices. While you might be able to expand those limits, the ESP would probably run out of memory with that many clients.
I would suggest using a router running OpenWRT instead of the "master" ESP and attach your uC directly to the router (either using USB, UART or SPI/I2C depending on what ports the router has and the uC hardware). While this may add a bit of additional cost (not much though, a suitable router costs <20$) it will offer a lot more flexibility.

Re: remote whireless relay controllers.

PostPosted: Thu Jun 11, 2015 1:51 pm
by AndyF9798
I was thinking I could make all the 245 units to be a static ips, not DHCP and connect to them on demand.

So the master would be .1 and each slave .2 .3 .4 ..... .245

Is this idea impossible too.

Cheers