solarenergy 2.0.0.0
|
There are many battery chargers and solar energy harvesters out there already, but the Solar energy click has the unique feature - it encompasses both of these devices in a single package. The click uses Texas Instruments BQ25570 - a nano-power high-efficiency boost charger and buck converter device, designed to work with very low power energy harvesting elements, such as the photovoltaic and thermoelectric generators
We provide a library for the SolarEnergy Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for SolarEnergy Click driver.
- Initialization function.void solarenergy_cfg_setup ( solarenergy_cfg_t *cfg );
SOLARENERGY_RETVAL solarenergy_init ( solarenergy_t *ctx, solarenergy_cfg_t *cfg );
- Charge disable functions.void solarenergy_charge_enable ( solarenergy_t *ctx );
void solarenergy_charge_disable ( solarenergy_t *ctx );
uint8_t solarenergy_check_indicator ( solarenergy_t *ctx );
This application charge the batery when is empty.
The demo application is composed of two sections :
Initialization driver enables - GPIO and start to write log.
This is an example which demonstrates the use of Solar Energy Click board. The following example will charge the battery if it is empty, and stop charging when the battery is full. When battery full status is detected, the device is disabled, but will check battery status every 10 seconds. Results are being sent to the Usart Terminal where you can track their changes.
The full application code, and ready to use projects can be installed directly from compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.