Ds1302 + dht11 + lcd16x2 i2c

Hi sorry for my english i search the code to show time date and temperature in an lcd i2c using ds1302 and dht11 for my project! pls i need help

Your topic does not indicate a problem with IDE 1.x and therefore has been moved to a more suitable location on the forum.

I suggest that you start looking at examples for the components that you want to use; google mostly is your friend.

Libraries for the DHT11, I2C LCD and DS1302 will make life easier.

  1. For the I2C LCD, you can use the HD44780 library by Bill Perry, available via the library manager. Reason for suggesting this is that there are too many different LiquidCrystal libraries and you will get confused when using one that does not match code that you found on the web.
  2. There are a few libraries that support the DHT11; pick one in library manager and try / play around with it.
  3. For the DS1302, you can have a look at Ds1302 - Arduino Reference.

Start by running the examples and studying them; if you don't understand something, ask. Once you have the idea how you can achieve things with the components, you can start writing your own code based on what you figured out.

1 Like

Get a copy of the Arduino Cookbook and read it from cover to cover, there will be many pleasant surprises.