@nerukam 10 moisture sensors only requires two analog ports. You don't want the sensors on all the time or they will corrode away quickly, so you always turn them on and off with a transistor anyway.
One end of the sensor goes to Vcc.
The other end of the sensor goes to the an analog input.
The sensor/analog input is also connected to a resistor.
The other end of the resistor goes to the transistor's collector.
The transistor's emitter goes to ground.
A digital output goes through a resistor to the transistor's base.
A second sensor goes in parallel to the first with it's own resistor and goes to it's own analog port.
The exact values of the resistors isn't critical but 4.7K should be a good value for all of them in a 5V system.
To read sensor X1 and X2, turn digital output X on, read the two analog inputs and when done, turn it off.
Repeat this 5 times and you have 10 sensors using 2 analog and 5 digital pins.
For even better sensor lifespan, use an H bridge and switch the direction of the current on each read. (design left as an exercise for the reader.)
You can actually connect up to 8 sensors to each digital output for a total of up to 48 soil moisture sensors on a single Pro Mini + NRF24 and more if you want to resort to port expanders. (As stated before, port expanders are not really realistic due to them costing about the same as a whole Pro-Mini.) Not all Pro Minis expose all 8 analog pins, choose one that does if you want the most possible sensors.
Average current consumption (1Hz data refresh rate)
1.8 μA @ 1 Hz (H, T)
2.8 μA @ 1 Hz (P, T)
3.6 μA @ 1 Hz (H, P, T)
H - humidity, P - pressure, T - temperature
0.1 μA in sleep mode
Supply voltage 1.71 - 3.6 V
I also failed into this trap in fact, bme280 consumption in NORMAL mode is 450-600ua
I just realized one of the suggestions is a radar sensor. I should have said I was looking for a sensor that would detect objects like humans, trees, or poles, so I guess it would need to detect any object in front or around it that was close to it about 1 foot away. Sorry I should have mentioned that before.
@Vertorix said in Vertorix - Easily Create your Own Mesh Network with Sensors and Controllers:
I have created a new IOT project which allows the user to easily create a mesh network of sensors and control End devices.
All programming of devices is done in the open source Arduino IDE, and there are already libraries and examples available. It's really easy to make your own network because all the mesh network side is automated. There is no stuffing around with complex wireless libraries, you just take your sensor readings and send them.
You can use Node-red to create Dashboards and forward messages to MQTT etc.
See Documentation here: link text
The VT1100 in sleep mode consumes 7uA, so can run on battery for years.
I'm trying to gauge interest in the project. If there is enough interest I will sell the devices cheaply.
thanks my issue has been fixed.
I also on my last work removed the LG33, it's faster
Well this most likely have been provided as info, but else it's here:
Remember to burn new OPTIBOOT 8MHz into the Arduino Pro Mini
and then I also use avrdude with a usbtinyISP to set the fuse to not check battery voltage monitoring, this is done after I have flashed this with Arduino IDE
avrdude -c usbtiny -p m328p -U efuse:w:0x07:m```
I'll consider it thanks! The price is higher of course but still in the affordable range. You see, personally I find useless to collect data that is inaccurate even if it is cheap. I have been playing with the DHT11 because I found it in the arduino starter kit I bought last year, so for prototyping is ok, but for a real application I'd prefer more accuracy and reliability