Skip to content

snorkman88/suntastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRAFT: Suntastic

An ultra low-power management board for meshtastic solar repeater devices.

Overview

This repository contains the design proposal of a power management board for ultra low power embedded devices. The board features a solar charger circuit with Maximum Power Point Tracking (MPPT) for 5V solar panels, two DC-DC converters, a load switch control with adjustable hysteresis and an external Watchdog Timer.

Hardware block diagram

Why did I start this project?

MPPT is a must

I recently started working with Meshtastic and decided to deploy solar powered repeaters based on the WisBlock Core module that contains a RAK4631. So far it's been recommended to use this core module with any of the available base boards, however after inspecting RAK's 19007 base board, I noticed that the battery charging stage based on the TP4054 is not performing any kind of optimization to maximize the power available from the solar input.

In contrast to linear chargers, MPPT chargers excel in extracting energy from solar panels under conditions such as partial shading, changing light angles, and fluctuating weather conditions. This adaptability is crucial for maximizing energy harvesting in real-world scenarios. By efficiently managing the charging process, MPPT helps prevent overcharging or undercharging of the accumulators in small IoT devices. This contributes to extending the overall lifespan of the battery, reducing the frequency of maintenance or battery replacement, and enhancing the device's reliability.

Reduce the current consumption of all the additional electronics

The recommended Wisblock base board RAK19007 contains extra electronics that are not really necessary once the RAK4631 core module has been correctly configured and flashed. This extra electronics however, do imply extra power consumption.

As it's been empirically proven in this thread once the RAK4631 core is flashed, it only needs a proper 3.3V power source to start working.
However RAK actually recommends providing two voltage sources to the RAK4631, one that supplies power to the input of internal DC-DC buck converter and another 3.3V for the SX1262 chip. SEE THIS POST

Supercapacitors as main energy storage

Another point that motivated the start of this project is the use of supercapacitors instead of conventional LiPo or LiFePo batteries. Whether supercapacitors are better than batteries for IoT devices depends on the specific requirements of the application. Here are some factors to consider:

  1. Power Density: Supercapacitors generally have higher power density than batteries. They can quickly charge and discharge, making them suitable for applications that require rapid bursts of energy. This can be advantageous in IoT devices that need to transmit data or perform periodic tasks quickly.

  2. Cycle Life: Supercapacitors often have a longer cycle life compared to batteries. Compared to batteries, they can withstand a large number of charge-discharge cycles without significant degradation in their structure even when being completely depleted and its output voltage drops down to 0V. This is beneficial for IoT devices that may need to operate for extended periods without maintenance.

  3. Lifetime and Maintenance: Supercapacitors can have a longer overall lifetime than batteries, as they do not suffer from the same degradation issues over time. They also require less maintenance since they do not have the same chemical processes that can lead to wear and tear in batteries.

  4. Size and Weight: Supercapacitors can be more compact and lighter than batteries, which is important for IoT devices with size and weight constraints. This is particularly relevant for small, portable devices or those with limited space.

  5. Temperature Sensitivity: Supercapacitors are known for their resilience to temperature variations, making them suitable for applications in harsh environments. This can be an advantage in IoT devices deployed in diverse environments where temperature fluctuations are common. Supercapacitors have a temperature range of operation og -40°C to 85°C or even higher in some cases.

  6. Energy Density: Batteries typically have higher energy density, meaning they can store more energy per unit of volume or weight. If the IoT device requires long periods of operation without recharging, a battery might be a more suitable choice.

supercaps

In summary, the choice between supercapacitors and batteries for powering IoT devices depends on the specific requirements of the application. Supercapacitors may be a better choice for applications that require high power density, quick charge/discharge cycles, and long cycle life, while batteries may be preferable when higher energy density and longer operating periods without recharging are crucial. Each technology has its own strengths and limitations, and the decision should be based on the specific needs and constraints of the IoT deployment.

External Watchdog timers are sometimes needed

For IoT devices deployed in remote areas, the incorporation of an external watchdog timer becomes even more critical due to the challenges associated with limited accessibility and maintenance. Remote locations often entail harsh environmental conditions and restricted physical access, making it challenging to address issues promptly. The watchdog timer becomes a crucial asset in such scenarios as it autonomously monitors the device's operational state and intervenes in the case of failures. This capability ensures that even if a device experiences a software glitch or hardware malfunction, it can autonomously reset itself, mitigating potential downtime without requiring manual intervention.

The reliability and self-correcting nature of an external watchdog timer contribute significantly to the overall resilience of IoT devices in remote deployments, enhancing their ability to function autonomously and maintain consistent operation in challenging and hard-to-reach environments.

IMPORTANT

IMPORTANT: this board has been specifically thought to handle 5V solar panels and supercapacitors up to a voltage of 5.4V max.

Table of Contents

Solar Charger Circuit

The solar charger circuit is designed to efficiently charge an accumulator using 5V solar panels. It incorporates Maximum Power Point Tracking (MPPT) to optimize the energy harvesting from the solar panels.

The SPV1040 device is a low power, low voltage, monolithic step-up converter with an input voltage range from 0.3 V to 5.5 V, capable of maximizing the energy generated by solar cells (or fuel cells), where low input voltage handling capability is extremely important. Thanks to the embedded MPPT algorithm, even under varying environmental conditions (such as irradiation, dirt, temperature) the SPV1040 offers maximum efficiency in terms of power harvested from the cells and transferred to the output. The device employs a voltage regulation loop, which fixes the charging battery voltage via a resistor divider.

Screenshot 2024-02-07 at 00 53 47

It is possible to set the maximum output current according to charging requirements by a sense resistor .

DC-DC Converters

Boost Converter

The first DC-DC converter that is presented is a boost converter responsible for powering the control stage and the input of the internal DC/DC converter present in the nRF52840.
It is based on a TPS61202 from Texas Instruments and takes variable voltage seen at the accumulator (i.e a supercapacitor) and converts it to a 5V one.
boost_5v
This boost converter features a very low start-up voltage (0.5V) and Iq=50uA when in operation.
For the very first version of this board, in order to save schematic and PCB design time, it would be ideal to use a ready-to-use board like the Pololu U1V10F5.

For more info about this module visit Pololu Site

Buck-Boost Converter or LDO for obtaining 3.3V

The second voltage regulator is in charge of supplying power to the 3.3 V bus to which the SX1262 chip (present in the WisBlock RAK4631) and watchdog timer are connected.
This regulator should only start operating after the load switch controlled by the UVLO is closed.
It is very important to remark that clean power supplies are essential for RF transceivers to maintain optimal performance. RF signals are sensitive to electrical noise, and any disruptions in the power supply can lead to signal degradation.

In the case a buck-boost converter (like the TPS63020) is adopted, then it could either take as an input the variable voltage from the supercapacitor or the 5V constant output coming out of the TPS61202. This approach however, necessitates more filtering of the output voltage.

Using LDOs on the other hand, requires an input votlage higher than the one desired at the output (in this case 3.3V). Ergo, connecting its input directly to the supercapacitor is not an acceptable approach.
Although taking 5V coming from the TPS61202 as input voltage might bring some input ripple, the PSRR of an LDO contributes to suppress it at the output.
In the case the output of the LDO still shows some ringing at high frequencies (usually as peaks on the waveform), ferrite beads should be placed to filter the desired frequencies.

For more detailed info about this visit this Application Note from Analog Device - AN101

or watch this video

Video

Why are there two DC-DC converters?

It is desirable that the UVLO control circuit starts operating as early as possible if there is enough input power (around Vin=0.7V) and BEFORE any other electronic device. The opposite behaviour is also desired. In other words, when the input voltage coming from the accumulator decreases, the UVLO should be last part that is turned off.

Since it's expected that the control stage consumes only a few microamps when operating, the output voltage of 5V should remain steady while the accumulator (i.e: supercapacitor) continues to charge. Once the voltage seen accross the terminals of the accumulator reaches the lock-in voltage, the second converter, external watchdog timer and microcontroller will be energised.

UVLO - Schmitt Trigger Control

The project includes an UVLO circuit with with adjustable hysteresis that enables or disables a load switch. The load connected to the switch will be the main Buck-Boost Converter that feeds power the RAK431 or another microcontroller.

Since the supercapacitor bank I have at the moment (250F x 5.4V) already comes with an extra PCB to protect them against overvoltages higher than 5V, and for this simulation only, a value of 3V was chosen for the upper limit and 1V for the lower one.

Since it's the intention to make the supercapacitor charge up to a voltage value close to the maximum, the final version will have a lock-in voltage closer to 5V or 5.4V if I get a bank without the overvoltage protection. The lower limit of the hysterisis window will be kept at 1V.
In order to avoid flickering of the output when the supercap voltage reaches the lock-in and -out values, an SR latch based on NOR gates will either SET (and keep it HIGH even if the input flickers) when the lock-in voltage is reached; and RESET its output when reaching the lock-out value.

The circuit consists of two TLV3691 nano-power comparators powered by the 5V bus.

For the voltage references, it's yet to be defined if specific high-precision voltage references like REF35 will be used or simply get those reference values from a voltage divider. Current consumption reduction is PRIORITY.

For the latching of the output, low power SN74AUP2G02 NOR gates will be used. These gates will also be powered by the 5V bus.

The load switch will be a TPS22917.

In summary this circuit makes sure the embedded device stays de-energised until the supercapacitor is fully charged.

Watchdog timer

If for any unforeseen reason, the voltage supplied to the core module drops low enough that the device shuts down or to a level that causes a brown-out, it may not be able to resume its normal operation by itself without external intervention (manually or by automation) that either removes and reconnects the voltage supply or issues a reset.

An external watchdog timer will issue a reset in case of a software bug/glitch or brownout will be a TPL5010 from Texas Instrument.

description_wdt

The DONE signal resets the counter of the watchdog only. If the DONE signal is received when the WAKE is still high, the WAKE will go low as soon as the DONE is recognized. external_wdt

For this feature to be fully functional, two GPIO pins and CHANGES IN THE CORE MODULE FIRMWARE ARE NEEDED to monitor the WAKE signal and generate a DONE pulse to reset the counter of the WDT.
Images taken from the datasheet.

Monitoring the current voltage on the supercapacitor

Also mentioned in this thread. A voltage divider must be connected to Pin40 (P0.05/AIN3) of the RAK4631.
voltage_divider

CHANGES IN THE CORE MODULE FIRMWARE ARE NEEDED TOO in order to properly reflect the current voltage value on the supercapacitor based on the resistors ratio from the voltage divider.

About

An ultra low-power management board for IoT devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published