I want to retrieve time and temperature data to display on an LCD and also set alarms. But I have no clue how to do this, I tried searching it up but I'm getting bits of information there and there doesn't make sense to me. I'm a beginner and I know this is probably an easy task for most of you guys so I was wondering if you can provide some help. I'll summarize what I need help with below:
Is there an libraries I can use to work with this module to retrieve time and temperate data.
How can I use buttons to set the alarm? What is the minimum number of buttons needed? One to go to alarm mode and one to change scroll through the numbers?
How can I display this on an 16x2 LCD?
Thank you, I am working on this myself but I would love any help. I appreciate it!
Is there an libraries I can use to work with this module to retrieve time and temperate data.
It's fairly straight forward to interrogate the DS3231 for the information you require. Page 11 of the data sheet I have shows the register address map, where the various values are to be found. Use the Wire library to read the registers. It may seem like more work than required to use a library, but you will gain a thorough understanding of how to address similar chips in future!
If you are looking to read the temperature from the DS3231, here is a library that I wrote for the DS3232/1 and here is an example sketch that reads and displays the temperature.
PS: I'm still working on the documentation for the library. The ReadMe file is not yet complete, but the methods are fairly well documented in the source. I also want to add another couple examples.
I'm fairly new to programming in Arduino do you guys know any good resources on how I can learn how to utilize the wire library and get data from chips like the DS3231 RTC? I don't know how to write my own library yet, so any explanations with very simple terms is appreciated. Thank you so much guys!
That library is only for the Dallas Semi range of Temperature probes isn't it (i use it as well with the DS18B20) - do not think this will help the OP with the integrated temp sensor in the DS32xx series will it ?
I want to retrieve time and temperature data to display on an LCD and also set alarms. But I have no clue how to do this, I tried searching it up but I'm getting bits of information there and there doesn't make sense to me. I'm a beginner and I know this is probably an easy task for most of you guys so I was wondering if you can provide some help. I'll summarize what I need help with below:
Is there an libraries I can use to work with this module to retrieve time and temperate data.
How can I use buttons to set the alarm? What is the minimum number of buttons needed? One to go to alarm mode and one to change scroll through the numbers?
How can I display this on an 16x2 LCD?
Thank you, I am working on this myself but I would love any help. I appreciate it!
They sell a module with the chip and have had a couple of different people write libraries for it.
It is a much faster way to get started with the chip and then you can rip the library apart to see how they do it - rather than inventing from a data sheet yourself
That library is only for the Dallas Semi range of Temperature probes isn't it (i use it as well with the DS18B20) - do not think this will help the OP with the integrated temp sensor in the DS32xx series will it ?
regards
Craig
You are correct. I seem to have pasted in the wrong link. I fixed my post to have the right one.
Thanks guys, I need a library to retrieve the temperature data too. I will look into your libraries to see if I can use and learn from them as well! For now I'm using a library that was provided by a person who made this site and article: http://kevinrye.net/files/reading_the_temp_ds3231_and_ds18b20.php .
I was just wondering do any of you have a good idea on implementing a way to set an alarm? I was thinking one button to go into alarm mode, another to set the hours (24 hours) and another to set the minutes. Then hitting the alarm mode button to reset it. Do you guys have a much simpler way of doing this possibly even making it 12 hour am/pm style. Thanks!
Sorry I wasn't being clear I would like to make a bedside alarm using an LCD. I want to set the alarm using buttons, and the alarm would use a buzzer. I also have infrared sensors I would like to use as a cool way to turn off the alarm by moving my hand over it. They're gifts for my friends so I'm really trying hard to finish it and learn in the process. Thank you!
DanT29:
Sorry I wasn't being clear I would like to make a bedside alarm using an LCD. I want to set the alarm using buttons, and the alarm would use a buzzer. I also have infrared sensors I would like to use as a cool way to turn off the alarm by moving my hand over it. They're gifts for my friends so I'm really trying hard to finish it and learn in the process. Thank you!
If you have a look at the Freetronics link i gave you and download the zip he links to - that is exactly the project he has designed this for - he has pictures buried within the zip file also - i believe he furnishes you with an alarm etc and menus