- Joined
- Oct 9, 2019
- Messages
- 291
- Reaction score
- 112
The Amazing 62* port Apex Neptune Breakout Box supporting FMM sensors except the flow sensors (for 15$)
* As I do not need to pass OFF information and only when something is ON, I could even do 63 outputs instead of 32. 2 values: 000000 I would use for OFF and 111111 can be used as health check for the breakout box & controller)
*** This is a theoretical project at this moment, so use the information in this thread at your own risk. ***
Info:
While the original Apex Neptune Breakout Box only allows 6 simple inputs, for example float switches, the idea started on how to allow it to support IR/Inductive/Leakage sensors too which otherwise need to use 1 of the only 4 ports on a more expensive FMM module.
These sensors do however requires a power source which does not exist on the Breakout box. This however (although not supported/allowed by Apex Neptune!) is available on the Aquabus.
That solves the problem of the missing power source which could already allow us to attach the FMM sensors.
But we want to go one step further. In theory we could use Virtual Outlets to use the 6 inputs of the breakout box as a 6 bit number. This allows 64 different possibilities.While we need ON or OFF for each input, we could translate these 64bit into 32 inputs using those virtual outlets. In fact that's not true. As we use "Set Off" by default in Apex, we only need 1 value for OFF. If we use all wires on (binary value 64) as a health check, that leaves 62 usable ports.
So the idea is to use the 12V of the Aquabus to power a small controller (Arduino but could be anything really) and use that one to translate those 32 inputs into one 64bit number and send that over using the 6 breakout box inputs to the Apex Controller. That Apex can use those 6 inputs to translate it and control the virtual outlets for all 64 inputs.
A controller with 64 inputs does not really exist but an easiest way is to use 4x 16bit I2C expanders which provides us with 64 inputs.
* Optionally you add LEDS to view sensor level and have a visual aid.
* Also if you are able to attach 2 break out boxes (if you have additional PM1, PM2 or PM3 modules), you could multiple of these. The only limitation is the max number of virtual outlets as you need one for each input. But that number is 100 or even higher on new models so probably not an issue for most people.
Summary:
Using the virtual outlets in Apex Neptune and the 6 bits from the breakout box, you could have a 64 ports Apex Neptune Breakout Box that also allows the FMM Optical (And DIY Inductive) Water level sensors and Leakage sensors in one device.
Which could replace no less than 16 FMM Modules worth about 1600$ or even 2080 euro in Europe. All of this for just about 15$ (13 euro)
Parts:
1x Arduino with DC port or Wemos board in my case which has a WIFI connection onboard -> 2 euro
* Only For Wemos you need DC connector -> 1 euro
4x 16bit expander -> 2 x 1 euro
1x USB cable which provides the 12V -> 1 euro
1x MD8 cable -> 3 euro
Optional 1x Set of 80 PXH2.54 4 pin connectors -> 1 euro (to connect DIY IR/Inductive/Leakage sensors)
Optional 1x Set of 10 3.5 Audio 4Pin connector -> 3 euro (to connect official Apex FMM IR/Leakage sensors)
Cost: About 15 euro
** Some small parts might be added in the future when I start building it, but most things are already listed here.
(If people want, I can add links for all the parts too.)
Technical stuff:
- I would use 1 of the inputs to detect if the controller is working. Kind of a heartbeat. So you would still have 31 inputs which is A LOT!
- I personally would use the PXH2.54 4 pin connectors and have it prewired for IR sensors and some for the inductive sensors. If you buy them in China, you get them with a 4 pin but the wiring is not compatible between IR sensor and the Non contact inductive sensor. Easiest way is to reserve them for one of them which makes it plug and play.
- I would use the interrupts on the expanders so the controller can sleep till the input of one of the sensors changes and this will wake the CPU of the controller up.
- I would delay the change of a virtual outlet with 1 second. Just to make sure when bits are changed, it would not cause faulty data.
Risks:
- If for any reason one of the 6 inputs of the breakout box disconnects or does strange things, It will impact all 64 inputs/sensors. But using a heartbeat that checks if all 6 inputs are high, it would be possible to ignore and alarm if something like this happens. But its a small risk though.
Open questions:
So to the techies on the forum, will it work and what am I missing? Any Tips?
And what would be the best way to connect the controllers 6 ports output to the Apex controller. Maybe Optocouplers?
FAQ:
Q) Whats the maximum number of ports/breakout boxes?
A) Depends on the number of virtual outlets available. By default this number is 99. But Apex support can increase the number of virtual outlets if required.
* As I do not need to pass OFF information and only when something is ON, I could even do 63 outputs instead of 32. 2 values: 000000 I would use for OFF and 111111 can be used as health check for the breakout box & controller)
*** This is a theoretical project at this moment, so use the information in this thread at your own risk. ***
Info:
While the original Apex Neptune Breakout Box only allows 6 simple inputs, for example float switches, the idea started on how to allow it to support IR/Inductive/Leakage sensors too which otherwise need to use 1 of the only 4 ports on a more expensive FMM module.
These sensors do however requires a power source which does not exist on the Breakout box. This however (although not supported/allowed by Apex Neptune!) is available on the Aquabus.
That solves the problem of the missing power source which could already allow us to attach the FMM sensors.
But we want to go one step further. In theory we could use Virtual Outlets to use the 6 inputs of the breakout box as a 6 bit number. This allows 64 different possibilities.
So the idea is to use the 12V of the Aquabus to power a small controller (Arduino but could be anything really) and use that one to translate those 32 inputs into one 64bit number and send that over using the 6 breakout box inputs to the Apex Controller. That Apex can use those 6 inputs to translate it and control the virtual outlets for all 64 inputs.
A controller with 64 inputs does not really exist but an easiest way is to use 4x 16bit I2C expanders which provides us with 64 inputs.
* Optionally you add LEDS to view sensor level and have a visual aid.
* Also if you are able to attach 2 break out boxes (if you have additional PM1, PM2 or PM3 modules), you could multiple of these. The only limitation is the max number of virtual outlets as you need one for each input. But that number is 100 or even higher on new models so probably not an issue for most people.
Summary:
Using the virtual outlets in Apex Neptune and the 6 bits from the breakout box, you could have a 64 ports Apex Neptune Breakout Box that also allows the FMM Optical (And DIY Inductive) Water level sensors and Leakage sensors in one device.
Which could replace no less than 16 FMM Modules worth about 1600$ or even 2080 euro in Europe. All of this for just about 15$ (13 euro)
Parts:
1x Arduino with DC port or Wemos board in my case which has a WIFI connection onboard -> 2 euro
* Only For Wemos you need DC connector -> 1 euro
4x 16bit expander -> 2 x 1 euro
1x USB cable which provides the 12V -> 1 euro
1x MD8 cable -> 3 euro
Optional 1x Set of 80 PXH2.54 4 pin connectors -> 1 euro (to connect DIY IR/Inductive/Leakage sensors)
Optional 1x Set of 10 3.5 Audio 4Pin connector -> 3 euro (to connect official Apex FMM IR/Leakage sensors)
Cost: About 15 euro
** Some small parts might be added in the future when I start building it, but most things are already listed here.
(If people want, I can add links for all the parts too.)
Technical stuff:
- I would use 1 of the inputs to detect if the controller is working. Kind of a heartbeat. So you would still have 31 inputs which is A LOT!
- I personally would use the PXH2.54 4 pin connectors and have it prewired for IR sensors and some for the inductive sensors. If you buy them in China, you get them with a 4 pin but the wiring is not compatible between IR sensor and the Non contact inductive sensor. Easiest way is to reserve them for one of them which makes it plug and play.
- I would use the interrupts on the expanders so the controller can sleep till the input of one of the sensors changes and this will wake the CPU of the controller up.
- I would delay the change of a virtual outlet with 1 second. Just to make sure when bits are changed, it would not cause faulty data.
Risks:
- If for any reason one of the 6 inputs of the breakout box disconnects or does strange things, It will impact all 64 inputs/sensors. But using a heartbeat that checks if all 6 inputs are high, it would be possible to ignore and alarm if something like this happens. But its a small risk though.
Open questions:
So to the techies on the forum, will it work and what am I missing? Any Tips?
And what would be the best way to connect the controllers 6 ports output to the Apex controller. Maybe Optocouplers?
FAQ:
Q) Whats the maximum number of ports/breakout boxes?
A) Depends on the number of virtual outlets available. By default this number is 99. But Apex support can increase the number of virtual outlets if required.
Last edited: