Arduino Wireless Temperature + Humidity monitoring

Hello,

I have a problem during my project. Project is composed by:

Solar panel 133X73
Li-ion battery 3,7V
TP 4056 Charging Board
Arduino Uno
Power switch
LCD display, I2C module
DT22

When I use Arduino connected to laptop via USB, everything works, but when I disconnect, the display lights less than on USB and doesn't show the Temperature and Humidity values like on USB.

Code:

#include <dht.h>;
//I2C LCD:
#include <LiquidCrystal_I2C.h>
#include <Wire.h>

LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display,Pls check your lcd.
  
//Constants
#define DHTPIN 8     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

//Variables
//int chk;
float h;  //Stores humidity value
float t; //Stores temperature value

void setup()
{
    Serial.begin(9600);
    dht.begin();
    lcd.init(); //initialize the lcd
    lcd.backlight(); //open the backlight
}

void loop()
{
    //Read data and store it to variables h (humidity) and t (temperature)
    // Reading temperature or humidity takes about 250 milliseconds!
    delay(2000);
    h = dht.readHumidity();
    t = dht.readTemperature();
    
    //Print temp and humidity values to serial monitor
    Serial.print("Humidity: ");
    Serial.print(h);
    Serial.print(" %, Temp: ");
    Serial.print(t);
    Serial.println(" Celsius");
        
    // set the cursor to (0,0):
    // print from 0 to 9:

    // Temperature
    lcd.setCursor(0, 0);
    lcd.print("Teplota = ");
    lcd.print(t);
    lcd.print(" C");
    
    // Humidity
    lcd.setCursor(0, 1);
    lcd.print("Vlhkost = ");
    lcd.print(h);
    lcd.print(" %");    
    

  delay(10000); //Delay 2 sec.
}

TK

Wiring diagram:

What is the EXACT charging board used, link?

What voltage are you applying to your UNO? I may be wrong, but I think the minimum is 5V. Is you battery system providing 5V or around 3.7V?

Ahh, the voltage from battery is 3.3V and that is the problem. Do you know if I can jist chsnge the Li-ion battery from 3.3V to 5V and still the charging board TP4056 can be used? Do you have any example of 5V Li-ion battery?

1 Like

There are higher voltage battery packs, but that may well need a different charging module and a different solar panel.

An off the shelf UNO is a poor choice for a battery powered system. You would be better off with a Nano type board.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

Hi,
the way your schematic is assembled, (based on the schematic you posted), the output of the module with the TP4096 will be approximately 4V, since this module is not a step-up.
My suggestion is that between the output of the TP4096 module and the arduino you use a step-up module for 5V.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.