Hello there,
I've got a rather large project to work on. I'm currently trying to formulate and develop a system to use in greenhouses. This system will control lighting circuits, exhaust, air/water pumps, dosing equipment, etc. There are already comparable systems out there, but they lack the features, are too complicated to configure and use, aren't as interoperable as I'd like, a far from open-source, and otherwise rather expensive.
My plan was to use a wired interface while I was developing the general system/sensors/software, and add wireless capability with either Xbee or JeeLink. The original idea was to use one cable to daisy-chain the sensors...RJ45 probably, with the I2C lines, 9V, 5V, GND. Then the sensors have an I2C GPIO expander (MCP23017), power regulator/converter, and the sensors attached to the MCP23017. That was all fine and dandy till I read the spec and found that they can only be set to 8 different addresses with the three addressing pins. So now that's out since I need to be able to support more than 8 sensors. I looked into a Dallas 1-wire interface, but the selection of sensors and interfacing devices seems to be lacking.
Is there any interface that I can easily attach the maximum amount of sensors to and have them easily connect to the Raspberry Pi via a common daisy-chained connection without having to worry about limits on inputs/outputs addressing or collisions? I'd like to not have to build addition chip-selection circuitry, and simply have this handled by addressing and references.
I could go straight to wireless, but that still requires having A) lots of attached battery packs, B) Extra power outlets, C) a common connection anyway (at least for power), D) additional overhead cost, E) All/Many of the above. Would the best method be to go about the wired-interface be to use the basic Atmega328 and just add the basic circuitry to support the IC/sensors per sensor, and send data over a common I2C? Could address up to the 128 max I2C devices per RPi?
If this daisy-chained wired-network seems confusing, GrowTronix uses a serial 1-wire network daisy-chained over RJ45, but again this 1-wire Dallas-based network has generally limited sensors/control over input/outpt (from my understanding).