02-27-2016, 12:53 PM
(This post was last modified: 02-27-2016, 12:54 PM by MichaelMeissner.)
(02-27-2016, 09:04 AM)khgoh Wrote: You can connect all the Wifi remote IO through a wifi router or ap to connect to Pine A64 board. Pine A64 can run a Tcp server to accept connection from Wifi remote IO unit. on the Wifi remote IO unit you can run a Tcp client connect to Pine A64 and forward the temperature and light sensor info. The Wifi remote IO need to manage it's own I2c bus. Connecting 5 unit of wifi remote IO to one Pine A64 should not be any problem.You can get i2c multiplexers that can multiplex multiple i2c buses to allow more than one temp. sensor. For example, Adafruit sells one that multiplexes up to 8 i2c buses, and you can set the address for each multiplexer to one of 8 values, which means you in theory have up to 64 devices on an i2c network with the same id. Now, whether 64 devices could actually be used due to power, heat, and transmission concerns might be an issue, but for small number of devices, you can have multiple devices with a fixed i2c address on a bus. https://www.adafruit.com/products/2717
On the Wifi remote IO unit, only have one 5pin I2c port. Since temperature sensor don't have address selection, you can only have one unit per I2c bus for the same device. Light sensor can share the the I2c bus with temperatures sensor because it has different Device ID.