Wireless Remote Propane Tank Level Gauge

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wireless Remote Propane Tank Level Gauge

Re: Wireless Remote Propane Tank Level Gauge

by BeanieBots » Mon May 13, 2024 10:08 am

Really glad you got it working. Well done. :D
Wish I could say the same about my neural network :cry:

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Fri May 10, 2024 11:37 pm

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Jan 16, 2024 11:30 am If your supply can provide enough current, you should not get any brownout until less than 2v.
It's probably the regulator collapsing due to insufficient head room.
Also, make sure you have adequate decoupling. It is one of the most neglected subjects by hobbiests :cry:
It's not simply about having large caps, it's about having the right type and several decade values in parallel and at the right location on the power rail.
eg 100uF + 10uF + 100nF of low ESR type. Larger caps eg 1000uF have higher ESR and will not catch very high short current spikes.

Please be careful if you are thinking of using 1.5v Alkaline batteries. (3*1.5 -0.6) = 3.9v That is enough to kill the ESP.
You could use just two cells and no diode. That will give you a good solid 3v. ESPs really do work well even down at 2v. >3.6v kills them!
They do not HAVE to be at 3v3 to work well.

Just a thought. How about rechargeable topped up by an old garden solar lamp?
Hi BeanieBots
I took your advice and used 2 "D" cells. After 4 months of "once a day" data transmission, the cell voltages are still above 1.5v each. Even with 14 days of -40 weather. Awsome! Thanks for the suggestions.
Zim

Re: Wireless Remote Propane Tank Level Gauge

by BeanieBots » Wed Jan 17, 2024 11:51 am

Decoupling:
Whenever a transistor switches state, it has to move a bunch of electrons from one location to another. Very similar to discharging a capacitor.
That results in a very brief yet high current. What is not appreciated is that the time can be sub nano second or even pico second and the current can be as much as 10's of amps. It is not possible to see this even with the best o'scope but it IS there.
These 'spikes' can cause all manner of issues, not only to the device which is switching but also to other nearby devices. Especially when analogue and digital are mixed on the same board.
Memory devices have very fast spikes, an IO changing state is much slower but the current is on for much longer.
A simple analogy would be like comparing hitting a nail with a hammer compared to nudging the garage door with your car!

So, what to do about it.
The answer is to have something that can supply that current for the amount of time required.
If capacitors and the PCB were perfect, it could simply be solved by fitting a capacitor.
Unfortunately, all tracks, connections, component legs and even devices have both resitance and inductance. (as well as capacitance)
Although these values are very small, when we are talking about amps and sub nano second time scales, they become significant.
All capacitors have a characteristic ESR (effective series resistance). It is a compound value made up of resistance and inductance.
As a general rule, the smaller the capacitor, the lower the ESR. Or more to the point, large value capacitors tend to have a large ESR.
Therefore, fast switching needs low value capacitance and slow switching requires larger capacitance to be effective.

Unfortunately, it doesn't end there.
As leads etc. also have inductance and resistance, where the capacitor is physically placed and how far away it is from the device it is trying to decouple can have a large effect. It needs to be fitted as close as possible to the device. If it is at the end of some long tracks or even leads, fitting a decoupling capacitor can actuall make things worse. That is because you now have inductance + capacitance + current spike = tuned circuit. You've now made a radio transmitter!

Summary:
Use several decade values of capacitor in parallel as close as possible to each switching device. 10uF - 100uF + 10nF - 100nF will fix most issues.
Regulators are another subject. Most REQUIRE capacitance on input and output to actually work. The datasheet will advise.

Sorry about the long ramble but it really is a missunderstood subject. More than happy to give any further explanation if required.

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Tue Jan 16, 2024 4:47 pm

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Jan 16, 2024 11:30 am Also, make sure you have adequate decoupling. It is one of the most neglected subjects by hobbiests :cry:
Hi BeanieBots
Thanks for the reply. Please explain decoupling.

Just a thought. How about rechargeable topped up by an old garden solar lamp?
That would have made my project so much easier, but the area is totally shaded.

Thanks again!
Zim

Re: Wireless Remote Propane Tank Level Gauge

by BeanieBots » Tue Jan 16, 2024 11:30 am

If your supply can provide enough current, you should not get any brownout until less than 2v.
It's probably the regulator collapsing due to insufficient head room.
Also, make sure you have adequate decoupling. It is one of the most neglected subjects by hobbiests :cry:
It's not simply about having large caps, it's about having the right type and several decade values in parallel and at the right location on the power rail.
eg 100uF + 10uF + 100nF of low ESR type. Larger caps eg 1000uF have higher ESR and will not catch very high short current spikes.

Please be careful if you are thinking of using 1.5v Alkaline batteries. (3*1.5 -0.6) = 3.9v That is enough to kill the ESP.
You could use just two cells and no diode. That will give you a good solid 3v. ESPs really do work well even down at 2v. >3.6v kills them!
They do not HAVE to be at 3v3 to work well.

Just a thought. How about rechargeable topped up by an old garden solar lamp?

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Mon Jan 15, 2024 5:52 pm

Hi BeanieBots
It seems to me the only affordable batteries that withstand -45F to some degree, are alkaline. My theory is having a 6v battery with a regulator gives me a 2 volt buffer zone to lose before brownout. Lantern batteries are cheap like me! I'll try that first. Then I'll try 3 "D" batteries with a diode in series (no regulator) and see how that performs. Its all fun!
Thanks
Zim

Re: Wireless Remote Propane Tank Level Gauge

by BeanieBots » Mon Jan 15, 2024 9:14 am

Hi Zim,
You could save yourself a further 5uA and possibly some battery cells by eliminating the regulator.
Not sure about your best battery option for such cold temperatures but there are a few options that would not need a regulator.
3.7v LiPo (eg 18650) via a 1N4001 diode. (4.2v fully charged)
3.2v LiPO4 Direct connection. (3.6v fully charged, also available in 18650 size)
3 * 1.2v NiMh or NiCd via 1N4001 (4.3v fully charged) [Maybe even only 2 cells direct connection]
2 * Regular 1.5v disposable cell, direct connection.
The ESP will be OK down to as low as 1.8v. Don't know about the compass though.
I'm using 3 * NiMh which are currently at -3 'C and working fine.

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Mon Jan 15, 2024 2:20 am

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jan 03, 2024 1:05 pm Could you use a naked ESP8266 such as the 12F? (cheaper and lower current)
Will it run off 3v or does it require 5v?
Can an IO pin supply the required current or will it require a transistor?
Lithium batteries don't like the cold. Fine down to -5 but again, I'm afraid I have no hands on experience at -50.
You are in for a fun project and will have the pleasure of making new discoveries.
Please post your findings so we can all learn.
More than happy to help where I can but even my deepfreeze only goes down to -22 so you're on your own at -50.
Good luck!
Hi BeanieBots
Our temperature dropped to -44 F. Propane furnace quit. (low tank pressure) We are prepared for it though...

The IO pin will supply enough current for the compass module without a trans. After building a bare bones ESP32s, I got the deep sleep current down to 9uA. The C005 (although very neat) draws around 400uA, so the ESP32's deep sleep function wins for me. I used a HT7833 reg. I was getting random brownout errors until I added a 1000uf across the 3.3v. Now its rock stable. I will post a pic of the board and module when I finish. Really cheap at Aliexpress...

Cheers!
Zim

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Wed Jan 03, 2024 5:49 pm

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Jan 02, 2024 6:58 pm Hi Zim, I tend to say: Never change a running system , but ...
The signal strength seems to be sufficient for your purposes or distance ... but at the moment there is obviously NO antenna connected to the output of the ESP8266, because the bridge would still have to establish the connection to the center contact of the antenna socket. At the moment there is certainly only a weak capacitive coupling, which also explains why your connected external antennas could not generate any serious differences.
Thanks PeterN
signal went from 83% to 86% !

Zim

Re: Wireless Remote Propane Tank Level Gauge

by Zim » Wed Jan 03, 2024 5:34 pm

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jan 03, 2024 1:05 pm Please post your findings so we can all learn.
More than happy to help where I can but even my deepfreeze only goes down to -22 so you're on your own at -50.
Good luck!
I sure will!
Thanks

Top