@mfalkvidd sorry, I was talking about the US-100 distance sensor. Jumped the gun here.
Posts made by kted
RE: HC-SR501 on batteries
@dbemowsk I have one sensor (oil tank level) running on an Arduino pro mini, with LEDs & regulator removed on 2 AA batteries for 2 months now.
I use pins 3 & 4 of for power and ground, and the hardware serial to communicate with the sensors. I take a reading every hour. No significant voltage drop so far, the battery level has only dropped by 3%.
I do get occasional spikes though, so when I get to it, I'll modify the sketch to take 3 readings and send the median.
RE: 💬 NodeManager
I just started using NodeManager, mainly for the ability to send settings to the node.
I started with a plain analog (Voltage) sensor, and it works just fine. But I cannot make a DS18B20 sensor to send any temperature data. It registers on the gateway, and that's it.
I have enabled the DS18B20 module in the config.h.
This is the code in the sketch:
/* * Register below your sensors */ nodeManager.setSleepSeconds(10); nodeManager.setReportIntervalSeconds(10); int temp = nodeManager.registerSensor(SENSOR_DS18B20); /* * Register above your sensors */
Am I missing something?
RE: SoftSerial battery drain
OK, problem solved.
First of all, I stopped using SoftSerial, and I am now using the regular serial port.
I can't debug the node any more, but it is working.
And the drain dropped to 1.9 mA.
This is the US100 idle current, so that was also a problem.
So I chose to power the sensor from pins 3 & 4, as VCC and GND, since just using pin 3 and GND kept the drain to 1.9mA
I turn pin 3 to output high and pin4 to output low, wait 5 seconds to let the sensor stabilize, since it gave erratic readings with anything less, take the measurement, and turn pins 3 & 4 to inputs, so there is no drain.
Seems to work so far, after a whole day of taking readings every minute, I am down by 10mV. I intend to take readings every 2 hours in normal operation, so I figure the batteries will last for about a year.
I am writing this from my phone, so I cannot post the source if anyone is interested, but let me know...
SoftSerial battery drain
I've built an oil tank level sensor, using the US100 ultrasonic sensor. The sensor, when communicating via serial protocol, has the capability to compensate for temperature variations, and is a lot more accurate than the traditional "ping" method.
My problem is the current drain.
When I enable the software serial port, the current drain during sleep goes from a few nA to 2mA, and the 2 AA batteries powering the node, only last for a couple of weeks.
I take measurements only every 3 hours, but I have the battery reporting it's level every 30 minutes, and it is dropping like rock.
Any suggestions for implementing a serial port for a battery powered sensor? (Pro mini @3.3V/8MHz, with NRF24L01+, powered by 2 AA batteries).
RE: How to continuously charge 18650s, as in solar?
Have been using this for more than a year, without problems
I was using a plain 5V solar cell at first, but later I used a rainproof solar LED light as a housing, after removing everything except the solar cell.
The node has an NRF24L01 PA version (with the antenna), and communicates with the GW 6 stories below, sending the solar water heater temperature every minute.
RE: 💬 jModule
@SubodhChettri Since you have removed the regulator, you should power the mini with 3.3V.
This is provided either by the jmodule's LDO which is capable to power the NRF, or directly by the battery (2xAA).
If you are using batteries, you dont need the LDO, so you bridge the Vin& Vout, and the 3.3V that feed the Mini go also to to the NRF.