Need help with _ _ _ schematic review _ _ _ for solar & supercap powered sensor - Page 1
Forum section: electronics / projects

author: doru.cazan
author_rank: Contributor
timestamp: April 22, 2024, 06:32:53 pm
content: Hi,I am building a temperature sensor powered by a solar panel with a supercapacitor for backup. The main power part is heavily inspired by a Hackaday.io project:https://hackaday.io/project/175514-wireless-solar-powered-sensor-node/logs.Will use a clock IC (below 1uA) to wake up the AVR MCU from deep sleep (also below 1uA); the MCU will set the clock IC timer alarm when initially powered then enters deep sleep. When the timer interrupt wakes up the MCU it will read the temperature then wake-up the radio part only for transmitting.Are there any obvious errors in the attached schematic?Many thanks!

author: zilp
author_rank: Frequent Contributor
timestamp: April 23, 2024, 12:16:23 am
content: Quote from: doru.cazan on April 22, 2024, 06:32:53 pmI obviously don't know what exactly the application will look like, but a few things to consider:- You are aware that the voltage supervisor eats probably half of your energy budget?- You are aware that D2 leaks another quarter or so of your energy budget through R3/R4?- Are you sure that the MTS01Z doesn't have any ESD protection diodes on the I²C pins?

author: doru.cazan
author_rank: Contributor
timestamp: April 23, 2024, 11:13:31 am
content: Many thanks @zilp for the points below!QuoteI was worried about this and the TLV809E data-sheethttps://www.ti.com/lit/ds/symlink/tlv809e.pdfshows a typical 250 nA supply current.QuoteI am open to select a diode that is better from this perspective (does better means lower reverse leakage current?); do you have any suggestions?QuoteNot sure. The data-sheethttps://www.lcsc.com/datasheet/lcsc_datasheet_2210121700_Mysentech-MTS01Z_C5197400.pdfshows max 100nA input leakage current.Can I assume that there are no ESD protection diodes?Many thanks!

author: Peabody
author_rank: Super Contributor
timestamp: April 23, 2024, 04:37:58 pm
content: What does R2 do?

author: doru.cazan
author_rank: Contributor
timestamp: April 23, 2024, 05:01:46 pm
content: Hi @Peabody, not really sure, it is part of the Hackaday.io project design, link in 1st post. My best guess is that it helps limiting the supercapacitor charging current to even a lower value (30mA when the solar panel outputs 6V) compared to the shunt regulator capabilities, that can sink more than 60mA (according to the data-sheet max 100mA). Or, maybe to make sure the voltage drop on the D2 diode(depending on forward current) is low enough to allow the supercapacitor to charge to a higher voltage?

author: zilp
author_rank: Frequent Contributor
timestamp: April 23, 2024, 05:09:17 pm
content: Quote from: doru.cazan on April 23, 2024, 11:13:31 amAh, yeah, I was looking at the TLV809 with 9 µA--though the 250 nA is only typical and for 3.3 V, up to 1.2 µA for Vdd=6 V.Quote from: doru.cazan on April 23, 2024, 11:13:31 amReverse leakage current is the datasheet number you are looking for, yeah. One I have lying around would be the BAV116T (5 nA max at room temperature), but no clue whether that's a good choice for your application.Quote from: doru.cazan on April 23, 2024, 11:13:31 amI can't read chinese, but other than that there is no indication there that there are no protection diodes. Ususally, such specs are under the condition that all other limits are observed, and typically, one limit would be something like VIH <= Vdd + 0.3V, which would be exceeded when Vdd is 0V and VIH is 5V. Now, in this case, the datasheet doesn't specify an upper limit for VIH, as far as I can tell. But that obviously can't be true (the chip certainly won't survive a sustained kilovolt applied to the pins), so we don't really know at what voltage those pins would not exceed 100 nA when powered down.Also ... did you test that chip? I once tested a Mysentech DS18B20 clone, and that one wasn't great, though I don't remember details, IIRC quite a bit of offset from a genuine DS18B20+ from Maxim.

author: Peabody
author_rank: Super Contributor
timestamp: April 23, 2024, 10:44:47 pm
content: Not an error, but it seems the circuit could be a lot simpler if you ran the ATTiny and the sensor at 3.3V. Then you wouldn't need a 5V supply or any voltage translation.Well on R2, it seems that it makes the regulated voltage vary with current. The more current drawn, the bigger the drop across R2 even if the shunt works perfectly. I just don't know why it's there, as opposed to making R1 200 ohms.

author: doru.cazan
author_rank: Contributor
timestamp: April 24, 2024, 08:42:16 am
content: Thanks @zilp, @Peabody!QuoteThe BAV116T looks good but will probably need to adjust the R3-R4 to be able to handle larger forward voltage drop; will look into it.QuoteUsed the chip on another project but nothing low power; have a nRF-PPK2 on order and will do as soon as it will be delivered.QuoteDue to supercapacitor backup for running overnight will need as much power as I can get; AVR, sensor and clock all run from 5.5V down to around 2V (will limit to 2.7V to be able to run the MCU at 10Mhz for smooth I2C communication and for reducing the processing time)QuoteI am not sure 100% either but the original design was tested by strange.rand so will keep it for now; depending on tests, I can replace the R1 with 200ohm and R2 with 0ohm later.