Real Time Clock with Display Example
-
Put together a new example inspired by @gregl for the RTC module.
Also added a display to show date, time and temperature.
-
Nice Hek.
Can you explain the values here?
(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE)I know the 0x27 is the i2c address - but the others are foreign to me, and i cant find the doco/wiki for that lib...or at least that version of the lib!
-
I was thinking the same thing as @GREGL
I'm using the following to initialize my LCD:LiquidCrystal_I2C lcd(0x27,20,4);
lcd.init();Don't think I'm using the same Lib either.
-
I was just poking around on codebender and found the lib..but none of the examples use all these params.
IIRC ,I use a different lib...as my i2c lcd controllers are pretty old..byvac from memory.
-
Found the new liquidcrystal library while searching my display Funduino/1602.
The parameters are:
addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
Example:
http://jaredstemen.blogspot.se/2014/01/getting-funduino-1602-lcd-to-print.html
-
Tried the lib out in my setup and it seems to be working just fine so I think I will use that one to so that I can be on the same page as @hek
-
I has been checked in to master.
https://github.com/mysensors/Arduino/tree/master/libraries/LiquidCrystal
-
These OLED displays seem pretty cool also if the quality is ok and the library doesn't eat up too much space:
https://www.youtube.com/watch?v=mMiMNTv25Bw
A lot more information being displayed in a much smaller package. Price is similar to the 16x2 LCD and they run on 3.3-5V apparently. Available as I2C also.
-
Hey maybe i can use this with the microview http://forum.mysensors.org/topic/48/idea-s-microview/
-
@bjornhallberg said:
These OLED displays seem pretty cool also if the quality is ok and the library doesn't eat up too much space:
https://www.youtube.com/watch?v=mMiMNTv25Bw
A lot more information being displayed in a much smaller package. Price is similar to the 16x2 LCD and they run on 3.3-5V apparently. Available as I2C also.I have a couple of these (I2C) and they are great.
I have tried to use them together with a temp sensor but I failed doing so.
I was able to compile and upload the sketch but due to a lack of patience I did not investigate why it failed.
My gut feeling is that the problem was the use of too many string values...
-
I have a couple of these OLED displays on order, will see if I can get them working with the sensors.
-
@hek said in Real Time Clock with Display Example:
Hi
Can you modify code for adding temp sensor to GW.
And may be display day of week.
Thank you.
Suggested Topics
-
💬 MDMSPanel "Nextion"
OpenHardware.io • 23 Feb 2019, 12:10 • openhardware.io 27 Feb 2019, 11:52 -
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
DS3231 RTC Module Pin out and operation confusion
Hardware • 13 Oct 2019, 18:58 • Nafees Ahmed 20 Oct 2019, 15:25 -
RealTimeClockDisplaySensor.ino - no fetch time from controller
OpenHAB • 11 Jan 2015, 22:18 • osalval 9 Feb 2016, 15:08 -
💬 Piglets - IOT Development Board
OpenHardware.io • 22 Jan 2017, 19:56 • openhardware.io 7 Oct 2017, 12:59 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14