Arduino 32x8 LED Matrix Info Display

Arduino Nano 32x8 LED matrix displaying date, time, temperature and humidity with a motion sensor.

Oct 21, 2017

112325 views

79 respects

Components and supplies

1

PIR Motion Sensor (generic)

1

AM2320 Temperature and humidity sensor

4

MAX7219 8x8 LED matrix

1

Arduino Nano R3

1

DS1302 Real Time Clock

Apps and platforms

1

Arduino IDE

Project description

Code

Link to library: LedControlMS

Latest commit to the master branch on 19-12-2014

Link to library: LedControlMS

Latest commit to the master branch on 19-12-2014

Link to library: AM2320-master

Latest commit to the master branch on 10-03-2016

Link to library: arduino-ds1302-master

20171103 enhanced 32x8 LED matrix Sketch code with the 5V input of the AM2320 on pin D8

arduino

The code will check if the AM2320 gives an error and reset it.

Link to library: Low-Power-master

Latest commit to the master branch on 09-10-2021

Link to library: AM2320-master

Latest commit to the master branch on 10-03-2016

Link to library: Low-Power-master

Latest commit to the master branch on 09-10-2021

20171103 enhanced 32x8 LED matrix Sketch code with the 5V input of the AM2320 on pin D8

arduino

The code will check if the AM2320 gives an error and reset it.

32x8 LED matrix Sketch code

arduino

Link to library: arduino-ds1302-master

Downloadable files

32x8 LED matrix schematic

32x8 LED matrix schematic

32x8 LED matrix schematic

32x8 LED matrix schematic

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

Hello can help me please, have a error in the line (String dayAsString(const Time::Day day) { ), the error say "'Day' in 'class Time' does not name a type". tank...

ericBcreator

2 years ago

Are you using the same components and libraries?  I cannot reproduce the error, the code compiles without errors for me.

Anonymous user

2 years ago

Hello , I'm just try to set up time & date of this project but I wonder why I can't edit date & time in your .ino file. The LED still show the default day of RTC. Not follow on edited date&time . Thanks!!

Anonymous user

2 years ago

I have done it but the time is always the time i set and dont change. The minutes are always the same. The led between hour and minutes are flashing normally! Any ideas?

Frode

2 years ago

Could this help, this is from EricBcreator : Yes. Set the date and time (allow some time to compile and upload, 40 seconds for me), uncomment line 86: //setTime(); // run once to initialize the date and time of the rtc Upload the code and run it. Comment line 86 again and upload again - a bit rough approach but it works. or line 99 if if its the enchanced code (the newest)

Anonymous user

2 years ago

Thanks for the good project, but I do not understand how to set the time, there are no buttons to adjust the time with ? Sincerely, Torsten.

ericBcreator

2 years ago

Hi Torsten, I updated the project text: Setting the date and time: set the correct date and time in line 147 (166 for the enhanced version). Uncomment line 86 (99 for the enhanced version) and upload and run the code. Then comment line 86 (or 99) and upload the code again or else the date and time would be reset to the coded values everytime you power up).   Bye, Eric 

Anonymous user

2 years ago

Hi, i have a problem. the led matrix shows rtc error. can somebody help me?

Anonymous user

2 years ago

and if i connect the rtc, the matrix shows nothing

Anonymous user

2 years ago

Please help me in making Arduino 48 x 16 LED Matrix Info Display I just want to add, 3 texts Without history, temperature and humidity So that each text appears after pressing a particular pin For example, Pin Number 2 in Arduino shows the first text Pin number 3 in the Arduino shows the second text Pin number 4 in the Arduino shows the third text

Anonymous user

2 years ago

sorry Please help me in making Arduino 64 x 24 LED Matrix Info Display I just want to add, 3 texts Without history, temperature and humidity So that each text appears after pressing a particular pin For example, Pin Number 2 in Arduino shows the first text Pin number 3 in the Arduino shows the second text Pin number 4 in the Arduino shows the third text

Anonymous user

2 years ago

Hallo Jungs, bei mir zeigt nur INIT ... und das was mehr nicht, wo mache Ich fehler ?

Anonymous user

2 years ago

Hi sir am Harpreet I like your project. But now one problem come for me 32*8 matrix with max7219 not come market so how can make circuit diagram so pls help me

ericBcreator

2 years ago

Hi, try Aliexpress or Banggood or maybe a national webshop. Good luck! Eric

Anonymous user

2 years ago

AM2320 th; // pins connections: 1 to 5V, 2 (SDA) to A4, 3 to GND and 4 (SCL) A5 daha önceleride aynı preje üzerine çalıştım ve hata aldım kendime biraz ara verdikten sonra yeniden çalışmaya başladım ancak malesef yine KOD üzerinde hata alıyorum Lütfen bu proje çok güzel ve yapmak istiyorum çalışan bir kod güncellenmiş olarak bilen varsa yayınlayabilirmisiniz.

Anonymous user

2 years ago

THANK'S FOR THE PROJECT I'M GETTING AN ERROR IN REAL TIME CLOCK, CAN YOU HELP ME WITH THAT I HAVE ATTACHED IT HERE, Arduino: 1.6.6 (Windows 10), Board: "Arduino Nano, ATmega328" C:\\Users\\KARTHIC\\Desktop\\ard\\sketch_mar02a\ tdf65d\ tdf65d.ino:24:81: fatal error: DS1302.h: No such file or directory #include <DS1302.h> // library for DS1302 RealTimeClock ^ compilation terminated. exit status 1 Error compiling. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

ericBcreator

2 years ago

Looks like a problem with the DS1302 library, the compiler cannot find it. Try (re)installing it.

Anonymous user

2 years ago

Error list /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino: In function 'void powerOnTest()': /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:172:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] displayStringCondensed(2, "INIT..."); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:187:51: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, DS1302ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino: In function 'void displayTemp()': /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:255:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, AM2320ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:268:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, AM2320ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^

Anonymous user

2 years ago

Hello I want to ride the circuit Arduino 32x8 LED Matrix Info Display but I have a question, I do not want to mount the PIR Motion Sensor circuit, another thing I have to put the bookstores I do not understand it well The project needs 2 standard libraries to work: stdio.h Wire.h where I get them, and the library Link to library: Low-Power-master what is it for .

Anonymous user

2 years ago

I connect everything exact as the schematic but I dont know why the clock turns on every 8 seconds. Someone know why?

Anonymous user

2 years ago

It's probably because of the changes it makes, to save battery or there's an error with the battery, but I'm not an expert and I'm making the project myself in a while because I've not got the right things yet.

Anonymous user

2 years ago

Hello, I like this project a lot. Can you give a link to the photo frame you used? I'm trying to find casing. Thank you

ericBcreator

2 years ago

Hi, I bought a couple of these for cheap in a Dutch store when they were clearing out items. So they don't sell them anymore. Try searching online or in stores that sell photo frames or (tin) boxes or so.

Anonymous user

2 years ago

Hello! great project. I am trying to do something similar. I am having trouble finding the exact libraries you used. Is there any way you could add a link? Thanks for sharing your work.

ericBcreator

2 years ago

I also had this problem. Use the enhanced code I uploaded and connect the power input of the AM2320 to pin 8 of your Arduino. The code will check if the AM2320 gives and error and reset it by powering it off and on after a delay. This solved the problem for me :-)

ericBcreator

2 years ago

Great you got your project working! My version is just what it is: my version of an info display, there are many ways to do it. Post your work if you feel to, it may help others as well

ericBcreator

2 years ago

I don't have the exact links but got them from GitHub, try searching over there with the library names.

ericBcreator

2 years ago

Check my post above to see if that solves the problem.

Anonymous user

2 years ago

Hi, I have the same problem. Did you figure it out?

Anonymous user

2 years ago

Hi, have you checked that you have correct port and board in Arduino IDE ?

Anonymous user

2 years ago

I thought about it as I was telling you thanks. I am just starting out codeing. I don’t fully understand what it is that I did. It works good. I modified an example in MD_Parola. It’s more of a desk nameplate. It scrolls Name, position, temp, humidity, time, day of week, date. Lunch time pops up at 12:00 and go home at 3:30. I added a RGB that turns red if temp over 80*f blue if below 70*f I didn’t come up with a good way to turn it on and off. I like your idea with the motion detector, but I don’t think it works well in this application.

Anonymous user

2 years ago

I have not gotten it to work yet. I did find a library that didn’t give me an error. It was Russian. Got it off gethub.

Anonymous user

2 years ago

Thanks for responding so quickly. I did exactly that. I searched get hub. I am getting an error from the Am2320. This is only my second project. Still new to programming. I’ll play with it a little and see what I can do.

Anonymous user

2 years ago

Good morning. I finally got a version of this project working. I ended up using a different RTC and a few different librarys. Well I changed a bunch of stuff. Thanks for the help with a starting point anyway. Thanks for posting your work.

Anonymous user

2 years ago

I will give it a try, but I am having other issues. Might not be this program. I can’t get anything to upload and a lot of stuff won’t compile

Anonymous user

2 years ago

ciao mi piacerebbe tanto farlo ma è troppo difficile ...poi ho un 3231 invece che 1302 ma vorrei fare solo orologio per imparare ad usare matrici di led mi aiuti? sono un vecchietto di 69 anni e mi piace arduino grazie giuseppe hello I'd love to do it but it's too difficult ... then I have a 3231 instead of 1302 but I'd like to just do a watch to learn how to use LED arrays to help me? I'm a 69 year old man and I like Arduino thank you joseph

Anonymous user

2 years ago

Hi, great project :) I just wonder, what are the use for the pir sensor? I've made a clock showing all day/month/year and so on, but I wonder if its possible to use a sensor like that to turn on and off clock, if there is people in the room or not? Movement sensor?

ericBcreator

2 years ago

Yes, if it doesn't detection motion for a set time, it puts the Arduino into sleep and wakes it up when it does detect. It saves battery power, you can use it for other projects as well.

ericBcreator

2 years ago

You can use another RTC but may have to use another library for it or change some code, compare the specs with the one I used.

Anonymous user

2 years ago

Ok 😁 I have ds3231 rtc can I use that instead of your clock module? Have to order the pir sensor

Anonymous user

2 years ago

A great project, will someone help me in exchanging ds1302 for ds3231?

Anonymous user

2 years ago

Dear Eric. I have setup the project and everything seem to be running fine. I have one problem. Led matrix seems to be in the wrong order. Matrix 4 should be in position 1. Matrix 1 in position 4 and position 2 in position 3. Thanks and regards, Primoz

ericBcreator

2 years ago

Hi, do you have 4 matrices of 8x8 leds or 1 matrice with 4x8x8 leds? Eric

ericBcreator

2 years ago

Can you send me an email with the picture? Hackster doesn't support attachments.

Anonymous user

2 years ago

Hi. I have MAX7219 display 8x8 matrix Red. See attache picture for better understanding of the problem. I have tried to change the code:  lc.setColumn(destMatrix, i, B00000000); Change it to lc.setColumn(destMatrix, 7 - i, B00000000); But if I do so than the order is fine but everything is mirrored. Would really appreciate if you have any idea. Thanks Primoz

Anonymous user

2 years ago

On the screen I get another date and I not can change Help me please

Anonymous user

2 years ago

Hi ericBcreator, your 32x8 Clock is a nice weekend-Project. i bulid it and followed your instructions exactly. i´m a beginner. if i´m starting the upload, the Display shows the time and date, but in mirror-characters… how can i fix it? please help. thanks.

ericBcreator

2 years ago

Hi Volker, I think you have to send me an email, the picture doesn't show up with a hackster comment.

ericBcreator

2 years ago

Hi Volker, is it exactly mirrored or maybe rotated or display in reverse order? Can you send a picture? Eric

Anonymous user

2 years ago

Hi Eric, the text scrolls from right to left. cu Volker

Anonymous user

2 years ago

Hi Eric,   thank you for your reply. Please have a look into the attached pic.   Thank you   volker  

Anonymous user

2 years ago

Hi Volker, On my laptop it is hard to see what is being displayed on the leds but the matrices look still wired from right to left. Did you try connecting them from left to right? Eric

Anonymous user

2 years ago

Hi Eric, the Clock is now counting 😊 …i uncomment the line 98 … setTime(); // run once to initialize the date and time of the rtc now, we have only 1 open issue, how about the „:“ between HH and MM? The „:“ is on the bottom of Matrix Module 2 „..“ . <image001.jpg> …did you see the second-dots on the bottom (red marked)? I can´t find the problem at the moment…. Hmmm, do you have any idea?

Anonymous user

2 years ago

Hi Eric, thanks for all! I re-wired the Matrix-LED, beginning from the left side, i replaced all things you written, but 2 things are open: 1. How can i start the clock, it´s not counting it still at 00:00, the 2 dots are blinking on the ground 2. The 2 dots in the middle are on the bottom oft he 2nd Matrix-Module (line 8) The dots are blinking there Do you have an idea? The text is now on the right direction. Temp and hum is correct. CU Volker

Anonymous user

2 years ago

Hi Volker, So it is almost working correctly now, great. For the blinking, check lines 203 to 207: lc.setLed(1,5,0,false); lc.setLed(1,2,0,false); delay(1000); lc.setLed(1,5,0,true); lc.setLed(1,2,0,true); Lines 203 and 204 will turn the 2 leds on, lines 206 to 207 will turn them off. Try this: lc.setLed(1,7,5,false); lc.setLed(1,7,2,false); delay(timeBlinkDelay); lc.setLed(1,7,5,true); lc.setLed(1,7,2,true); delay(timeBlinkDelay); You might have to change the 0 to display the blinking at the right place, experiment with it. Good luck! Eric

Anonymous user

2 years ago

Hi Volker, I see. Your matrices are wired differently then the one I used. You have connected them bottom input, top output, I guess it won't work if you reverse that? BTW: is the 2nd matrix from the left not working? I cannot test it but you could try this: - you now have the matrices connect from right to left, connect them from left to right - then search the code for the all lc.setColumn commands and change the 2nd parameter from value to 7 - value. Example, the 1st one is line 318 lc.setColumn(destMatrix, i, B00000000); Change it to lc.setColumn(destMatrix, 7 - i, B00000000); The others are lc.setColumn(destMatrix, destCol change them to lc.setColumn(destMatrix, 7- destCol I think it may work, give it a try! Eric

Anonymous user

2 years ago

Hi Volker, It is indeed not doing as intended and the 2nd matrix from the left look strange. It still looks like you wired from right to left. Try removing all connections from the matrices and start connecting them again, starting with the signal coming from the Arduino to the left matrix. Then to the one right of it, etc. Then try the original code and the '7 - value' one and see what happens. Good luck! Eric

Anonymous user

2 years ago

Love it! I Bought the Components and supplies on ali express hope i receive them in time so i can try to build my own. thanks for sharing the code. im gonne try to build an wake up mp3 alarm in it!

ericBcreator

2 years ago

Cool idea, let me know when you finish it! BTW: I moved the PIR sensor from the top to the front panel because the detection is better.

Anonymous user

2 years ago

Hello, how to use the DHT11 Module instead the AM2320, ? how the code stays?? plzz help me in my proyect..

ericBcreator

2 years ago

Hi, you need to change the AM2320 library for the DHT one and replace the th. commands with the corresponding DHT commands. Check the DHT example for the names. Good luck! Eric

Anonymous user

2 years ago

Hey! So I recently purchased all of the parts and put the code together, but I am having some issues troubleshooting the project. This is going to be a Christmas gift for my brother, and I would like to get this working. On my serial monitor, I get random motion detected signals, but not when I actually try to trigger the sensor. I also noticed that when this happens, the LED matrix just lights up in a quick left to right pass. I uncommented the debugging parts of the code, but I am unable to troubleshoot the project. Any insight would be greatly appreciated!

ericBcreator

2 years ago

OK, so the LED display is working (as you can see the sweep) but apparently the code is not working correctly. Try downloading the original code from hackster again and upload it without changing anything. Which microcontroller are you using?

ericBcreator

2 years ago

the diagnostic code isn't showing anything in the serial monitor   The serial window only displays a few items for debugging it was programmed to do, Arduino does not provide a full fletched debugger, unfortunately. the motion sensor doesn't function correctly   That's vague, in what doesn't function correctly? every LED turning on in each section from left to right after a motion detection signal   That's the wake-up animation, so the sensor seems to work. Is the problem that it doesn't display the date, time and temperature after it woke up? Is it displaying correctly before entering sleep mode?

ericBcreator

2 years ago

Hmm, hard to tell from here what the problem is. Can you post a picture of the setup and a short video of what happens when you power it on?

ericBcreator

2 years ago

Does it display INIT at startup (or any other information)?

ericBcreator

2 years ago

So the problem you have is with just the IR sensor? I would isolate it and test it with a simple sketch to check if it is working OK. Another thing to check is they way you power the setup: PC / laptop / powerbank / AC adapter and USB or VIN. I had problems with a certain powerbank which would keep retriggering the IR sensor, even without motion. It could be power fluctation or not the required voltage.

ericBcreator

2 years ago

Does the motion sensor work correctly in a simple test project?

ericBcreator

2 years ago

Then what exactly is the problem? You have to pinpoint it to be able to solve it.

Anonymous user

2 years ago

No, it doesn't display any information, just the led sweep from left to right when it "detects motion."

Anonymous user

2 years ago

How do I add pictures/video? Should I email you?

Anonymous user

2 years ago

I'm not sure what the problem is, and how can I pinpoint it when the diagnostic code isn't showing anything in the serial monitor? I described the issue (the motion sensor doesn't function correctly, and nothing is displayed on the LED matrix other than every LED turning on in each section from left to right after a motion detection signal in the serial monitor.)

Anonymous user

2 years ago

the diagnostic code isn't showing anything in the serial monitor The serial window only displays a few items for debugging it was programmed to do, Arduino does not provide a full fletched debugger, unfortunately. Right, I understand as much, I just didnt know how fully fledged the debugging function was. the motion sensor doesn't function correctly That's vague, in what doesn't function correctly? It randomly detects motion when there isn't any, and doesn't defect motion when i am deliberately trying to get it to function. every LED turning on in each section from left to right after a motion detection signal That's the wake-up animation, so the sensor seems to work. Is the problem that it doesn't display the date, time and temperature after it woke up? Yes! It doesn't display anything after the wakeup function. Is it displaying correctly before entering sleep mode? As stated above, nothing is displayed other than the wakeup function, and I have commented out the section to upload date/time/etc to the rtc.

Anonymous user

2 years ago

I downloaded the original code and uploaded and I still am experiencing the same thing. I am using an Arduino Nano, just Sunfounder's version of the nano. A quick sidenote, the serial monitor is now displaying motion detected infinitely.

Anonymous user

2 years ago

I'm not sure if the problem is just the sensor. I am only powering the system with the USB connection to a PC.

Anonymous user

2 years ago

Yes I did, I get the same results. It seems pretty eratic. May be a bad sensor, so I'll move on from that for now. What am I supposed to do about the display not displaying any information? It seems to go through the startup sequence, but it doesn't display any information.

GPIER

2 years ago

Quick question for anyone out there...if I want to use this on an 8x16, would I need to change any of the code? I'm using an Uno and the adafruit 16x8 LED Matrix HT16K33. Thanks for sharing this project.

Anonymous user

2 years ago

Let me try this. I am very eagerly waiting to make this for my daughter.

Anonymous user

2 years ago

Excellent clock, thank you for the idea.

ericBcreator

2 years ago

Thanks, you're welcome!

Anonymous user

2 years ago

Amazing Project! I want to rebuild it but I have a question: Wich type of power Source did you use? In the video I saw a 9V Battery but in the next clip it seemed to be something else.

ericBcreator

2 years ago

Hi, thanks. There are many ways to power an Arduino, in the end I chose a rechargeable USB power bank. Good luck! Eric

Anonymous user

2 years ago

Hello Eric; Thanks a lot for share and teach step by step us , Actually I tried to study to understand your code; Is amazing how you mastering writing code. Hi guys! All syntax it's ok , however always appears this message: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, DS1302ErrorMessage); Someone had this issue too?

drosherjc

3 years ago

On the screen I get another date and I not can change Help me please

Anonymous user

4 years ago

Hi, i have a problem. the led matrix shows rtc error. can somebody help me?

Anonymous user

2 years ago

and if i connect the rtc, the matrix shows nothing

Anonymous user

5 years ago

I connect everything exact as the schematic but I dont know why the clock turns on every 8 seconds. Someone know why?

Redstoneregards

2 years ago

It's probably because of the changes it makes, to save battery or there's an error with the battery, but I'm not an expert and I'm making the project myself in a while because I've not got the right things yet.

Anonymous user

5 years ago

Hallo Jungs, bei mir zeigt nur INIT ... und das was mehr nicht, wo mache Ich fehler ?

Anonymous user

5 years ago

Hello I want to ride the circuit Arduino 32x8 LED Matrix Info Display but I have a question, I do not want to mount the PIR Motion Sensor circuit, another thing I have to put the bookstores I do not understand it well The project needs 2 standard libraries to work: stdio.h Wire.h where I get them, and the library Link to library: Low-Power-master what is it for .

Anonymous user

6 years ago

Hello Eric; Thanks a lot for share and teach step by step us , Actually I tried to study to understand your code; Is amazing how you mastering writing code. Hi guys! All syntax it's ok , however always appears this message: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, DS1302ErrorMessage); Someone had this issue too?

Anonymous user

6 years ago

Dear Eric. I have setup the project and everything seem to be running fine. I have one problem. Led matrix seems to be in the wrong order. Matrix 4 should be in position 1. Matrix 1 in position 4 and position 2 in position 3. Thanks and regards, Primoz

Anonymous user

2 years ago

Hi. I have MAX7219 display 8x8 matrix Red. See attache picture for better understanding of the problem. I have tried to change the code:  lc.setColumn(destMatrix, i, B00000000); Change it to lc.setColumn(destMatrix, 7 - i, B00000000); But if I do so than the order is fine but everything is mirrored. Would really appreciate if you have any idea. Thanks Primoz

ericBcreator

2 years ago

Can you send me an email with the picture? Hackster doesn't support attachments.

ericBcreator

2 years ago

Hi, do you have 4 matrices of 8x8 leds or 1 matrice with 4x8x8 leds? Eric

Anonymous user

6 years ago

Hi ericBcreator, your 32x8 Clock is a nice weekend-Project. i bulid it and followed your instructions exactly. i´m a beginner. if i´m starting the upload, the Display shows the time and date, but in mirror-characters… how can i fix it? please help. thanks.

Anonymous user

2 years ago

Hi Volker, I see. Your matrices are wired differently then the one I used. You have connected them bottom input, top output, I guess it won't work if you reverse that? BTW: is the 2nd matrix from the left not working? I cannot test it but you could try this: - you now have the matrices connect from right to left, connect them from left to right - then search the code for the all lc.setColumn commands and change the 2nd parameter from value to 7 - value. Example, the 1st one is line 318 lc.setColumn(destMatrix, i, B00000000); Change it to lc.setColumn(destMatrix, 7 - i, B00000000); The others are lc.setColumn(destMatrix, destCol change them to lc.setColumn(destMatrix, 7- destCol I think it may work, give it a try! Eric

Anonymous user

2 years ago

Hi Eric,   thank you for your reply. Please have a look into the attached pic.   Thank you   volker  

Anonymous user

2 years ago

Hi Volker, It is indeed not doing as intended and the 2nd matrix from the left look strange. It still looks like you wired from right to left. Try removing all connections from the matrices and start connecting them again, starting with the signal coming from the Arduino to the left matrix. Then to the one right of it, etc. Then try the original code and the '7 - value' one and see what happens. Good luck! Eric

Anonymous user

2 years ago

Hi Eric, the text scrolls from right to left. cu Volker

Anonymous user

2 years ago

Hi Eric, the Clock is now counting 😊 …i uncomment the line 98 … setTime(); // run once to initialize the date and time of the rtc now, we have only 1 open issue, how about the „:“ between HH and MM? The „:“ is on the bottom of Matrix Module 2 „..“ . <image001.jpg> …did you see the second-dots on the bottom (red marked)? I can´t find the problem at the moment…. Hmmm, do you have any idea?

Anonymous user

2 years ago

Hi Eric, thanks for all! I re-wired the Matrix-LED, beginning from the left side, i replaced all things you written, but 2 things are open: 1. How can i start the clock, it´s not counting it still at 00:00, the 2 dots are blinking on the ground 2. The 2 dots in the middle are on the bottom oft he 2nd Matrix-Module (line 8) The dots are blinking there Do you have an idea? The text is now on the right direction. Temp and hum is correct. CU Volker

Anonymous user

2 years ago

Hi Volker, So it is almost working correctly now, great. For the blinking, check lines 203 to 207: lc.setLed(1,5,0,false); lc.setLed(1,2,0,false); delay(1000); lc.setLed(1,5,0,true); lc.setLed(1,2,0,true); Lines 203 and 204 will turn the 2 leds on, lines 206 to 207 will turn them off. Try this: lc.setLed(1,7,5,false); lc.setLed(1,7,2,false); delay(timeBlinkDelay); lc.setLed(1,7,5,true); lc.setLed(1,7,2,true); delay(timeBlinkDelay); You might have to change the 0 to display the blinking at the right place, experiment with it. Good luck! Eric

Anonymous user

2 years ago

Hi Volker, On my laptop it is hard to see what is being displayed on the leds but the matrices look still wired from right to left. Did you try connecting them from left to right? Eric

ericBcreator

2 years ago

Hi Volker, I think you have to send me an email, the picture doesn't show up with a hackster comment.

ericBcreator

2 years ago

Hi Volker, is it exactly mirrored or maybe rotated or display in reverse order? Can you send a picture? Eric

cezarycezary

6 years ago

A great project, will someone help me in exchanging ds1302 for ds3231?

Anonymous user

6 years ago

Please help me in making Arduino 48 x 16 LED Matrix Info Display I just want to add, 3 texts Without history, temperature and humidity So that each text appears after pressing a particular pin For example, Pin Number 2 in Arduino shows the first text Pin number 3 in the Arduino shows the second text Pin number 4 in the Arduino shows the third text

Anonymous user

2 years ago

sorry Please help me in making Arduino 64 x 24 LED Matrix Info Display I just want to add, 3 texts Without history, temperature and humidity So that each text appears after pressing a particular pin For example, Pin Number 2 in Arduino shows the first text Pin number 3 in the Arduino shows the second text Pin number 4 in the Arduino shows the third text

Anonymous user

6 years ago

ciao mi piacerebbe tanto farlo ma è troppo difficile ...poi ho un 3231 invece che 1302 ma vorrei fare solo orologio per imparare ad usare matrici di led mi aiuti? sono un vecchietto di 69 anni e mi piace arduino grazie giuseppe hello I'd love to do it but it's too difficult ... then I have a 3231 instead of 1302 but I'd like to just do a watch to learn how to use LED arrays to help me? I'm a 69 year old man and I like Arduino thank you joseph

taiJones00

6 years ago

Hello, I like this project a lot. Can you give a link to the photo frame you used? I'm trying to find casing. Thank you

ericBcreator

2 years ago

Hi, I bought a couple of these for cheap in a Dutch store when they were clearing out items. So they don't sell them anymore. Try searching online or in stores that sell photo frames or (tin) boxes or so.

Anonymous user

6 years ago

Hey EricBcreator... I followed your project tutorial and everything works fine expect for the display. I couldn't find the LED Matrix Module you used so I daisy chained 4 separate LED Matrix Modules... But now everything is rotated 90 deg clockwise... Can you please guide me how can I rotate it back to work as normal ??

ericBcreator

2 years ago

Hi, Try replacing all  lc.setColumn()  commands with lc.setRow()  commands. Good luck! Eric

Anonymous user

6 years ago

Hi sir am Harpreet I like your project. But now one problem come for me 32*8 matrix with max7219 not come market so how can make circuit diagram so pls help me

ericBcreator

2 years ago

Hi, try Aliexpress or Banggood or maybe a national webshop. Good luck! Eric

Anonymous user

6 years ago

Excellent clock, thank you for the idea.

ericBcreator

2 years ago

Thanks, you're welcome!

RoyFawaz

6 years ago

Hello, how to use the DHT11 Module instead the AM2320, ? how the code stays?? plzz help me in my proyect..

ericBcreator

2 years ago

Hi, you need to change the AM2320 library for the DHT one and replace the th. commands with the corresponding DHT commands. Check the DHT example for the names. Good luck! Eric

Anonymous user

6 years ago

AM2320 th; // pins connections: 1 to 5V, 2 (SDA) to A4, 3 to GND and 4 (SCL) A5 daha önceleride aynı preje üzerine çalıştım ve hata aldım kendime biraz ara verdikten sonra yeniden çalışmaya başladım ancak malesef yine KOD üzerinde hata alıyorum Lütfen bu proje çok güzel ve yapmak istiyorum çalışan bir kod güncellenmiş olarak bilen varsa yayınlayabilirmisiniz.

Anonymous user

6 years ago

Error list /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino: In function 'void powerOnTest()': /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:172:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] displayStringCondensed(2, "INIT..."); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:187:51: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, DS1302ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino: In function 'void displayTemp()': /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:255:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, AM2320ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:268:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] displayStringCondensed(0, AM2320ErrorMessage); ^ /Users/ibrahimhaliloluk/Desktop/led_saat/led_saat.ino:311:6: note: initializing argument 2 of 'void displayStringCondensed(int, char*)' void displayStringCondensed (int startCol, char * displayString) { ^

GPIER

6 years ago

Quick question for anyone out there...if I want to use this on an 8x16, would I need to change any of the code? I'm using an Uno and the adafruit 16x8 LED Matrix HT16K33. Thanks for sharing this project.

GraphicContext

6 years ago

Hey! So I recently purchased all of the parts and put the code together, but I am having some issues troubleshooting the project. This is going to be a Christmas gift for my brother, and I would like to get this working. On my serial monitor, I get random motion detected signals, but not when I actually try to trigger the sensor. I also noticed that when this happens, the LED matrix just lights up in a quick left to right pass. I uncommented the debugging parts of the code, but I am unable to troubleshoot the project. Any insight would be greatly appreciated!

ericBcreator

2 years ago

OK, so the LED display is working (as you can see the sweep) but apparently the code is not working correctly. Try downloading the original code from hackster again and upload it without changing anything. Which microcontroller are you using?

GraphicContext

2 years ago

I downloaded the original code and uploaded and I still am experiencing the same thing. I am using an Arduino Nano, just Sunfounder's version of the nano. A quick sidenote, the serial monitor is now displaying motion detected infinitely.

GraphicContext

2 years ago

How do I add pictures/video? Should I email you?

GraphicContext

2 years ago

I'm not sure if the problem is just the sensor. I am only powering the system with the USB connection to a PC.

GraphicContext

2 years ago

I'm not sure what the problem is, and how can I pinpoint it when the diagnostic code isn't showing anything in the serial monitor? I described the issue (the motion sensor doesn't function correctly, and nothing is displayed on the LED matrix other than every LED turning on in each section from left to right after a motion detection signal in the serial monitor.)

GraphicContext

2 years ago

the diagnostic code isn't showing anything in the serial monitor The serial window only displays a few items for debugging it was programmed to do, Arduino does not provide a full fletched debugger, unfortunately. Right, I understand as much, I just didnt know how fully fledged the debugging function was. the motion sensor doesn't function correctly That's vague, in what doesn't function correctly? It randomly detects motion when there isn't any, and doesn't defect motion when i am deliberately trying to get it to function. every LED turning on in each section from left to right after a motion detection signal That's the wake-up animation, so the sensor seems to work. Is the problem that it doesn't display the date, time and temperature after it woke up? Yes! It doesn't display anything after the wakeup function. Is it displaying correctly before entering sleep mode? As stated above, nothing is displayed other than the wakeup function, and I have commented out the section to upload date/time/etc to the rtc.

GraphicContext

2 years ago

Yes I did, I get the same results. It seems pretty eratic. May be a bad sensor, so I'll move on from that for now. What am I supposed to do about the display not displaying any information? It seems to go through the startup sequence, but it doesn't display any information.

GraphicContext

2 years ago

No, it doesn't display any information, just the led sweep from left to right when it "detects motion."

ericBcreator

2 years ago

Does it display INIT at startup (or any other information)?

ericBcreator

2 years ago

Does the motion sensor work correctly in a simple test project?

ericBcreator

2 years ago

Then what exactly is the problem? You have to pinpoint it to be able to solve it.

ericBcreator

2 years ago

the diagnostic code isn't showing anything in the serial monitor   The serial window only displays a few items for debugging it was programmed to do, Arduino does not provide a full fletched debugger, unfortunately. the motion sensor doesn't function correctly   That's vague, in what doesn't function correctly? every LED turning on in each section from left to right after a motion detection signal   That's the wake-up animation, so the sensor seems to work. Is the problem that it doesn't display the date, time and temperature after it woke up? Is it displaying correctly before entering sleep mode?

ericBcreator

2 years ago

So the problem you have is with just the IR sensor? I would isolate it and test it with a simple sketch to check if it is working OK. Another thing to check is they way you power the setup: PC / laptop / powerbank / AC adapter and USB or VIN. I had problems with a certain powerbank which would keep retriggering the IR sensor, even without motion. It could be power fluctation or not the required voltage.

ericBcreator

2 years ago

Hmm, hard to tell from here what the problem is. Can you post a picture of the setup and a short video of what happens when you power it on?

itssjonas

6 years ago

Amazing Project! I want to rebuild it but I have a question: Wich type of power Source did you use? In the video I saw a 9V Battery but in the next clip it seemed to be something else.

ericBcreator

2 years ago

Hi, thanks. There are many ways to power an Arduino, in the end I chose a rechargeable USB power bank. Good luck! Eric

Anonymous user

6 years ago

Thanks for the good project, but I do not understand how to set the time, there are no buttons to adjust the time with ? Sincerely, Torsten.

ericBcreator

2 years ago

Hi Torsten, I updated the project text: Setting the date and time: set the correct date and time in line 147 (166 for the enhanced version). Uncomment line 86 (99 for the enhanced version) and upload and run the code. Then comment line 86 (or 99) and upload the code again or else the date and time would be reset to the coded values everytime you power up).   Bye, Eric 

Anonymous user

7 years ago

Hello , I'm just try to set up time & date of this project but I wonder why I can't edit date & time in your .ino file. The LED still show the default day of RTC. Not follow on edited date&time . Thanks!!

Anonymous user

2 years ago

I have done it but the time is always the time i set and dont change. The minutes are always the same. The led between hour and minutes are flashing normally! Any ideas?

Anonymous user

2 years ago

Could this help, this is from EricBcreator : Yes. Set the date and time (allow some time to compile and upload, 40 seconds for me), uncomment line 86: //setTime(); // run once to initialize the date and time of the rtc Upload the code and run it. Comment line 86 again and upload again - a bit rough approach but it works. or line 99 if if its the enchanced code (the newest)

Anonymous user

7 years ago

THANK'S FOR THE PROJECT I'M GETTING AN ERROR IN REAL TIME CLOCK, CAN YOU HELP ME WITH THAT I HAVE ATTACHED IT HERE, Arduino: 1.6.6 (Windows 10), Board: "Arduino Nano, ATmega328" C:\\Users\\KARTHIC\\Desktop\\ard\\sketch_mar02a\ tdf65d\ tdf65d.ino:24:81: fatal error: DS1302.h: No such file or directory #include <DS1302.h> // library for DS1302 RealTimeClock ^ compilation terminated. exit status 1 Error compiling. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

ericBcreator

2 years ago

Looks like a problem with the DS1302 library, the compiler cannot find it. Try (re)installing it.

Anonymous user

7 years ago

Hello can help me please, have a error in the line (String dayAsString(const Time::Day day) { ), the error say "'Day' in 'class Time' does not name a type". tank...

ericBcreator

2 years ago

Are you using the same components and libraries?  I cannot reproduce the error, the code compiles without errors for me.

Frode

7 years ago

Hi, great project :) I just wonder, what are the use for the pir sensor? I've made a clock showing all day/month/year and so on, but I wonder if its possible to use a sensor like that to turn on and off clock, if there is people in the room or not? Movement sensor?

ericBcreator

2 years ago

You can use another RTC but may have to use another library for it or change some code, compare the specs with the one I used.

ericBcreator

2 years ago

Yes, if it doesn't detection motion for a set time, it puts the Arduino into sleep and wakes it up when it does detect. It saves battery power, you can use it for other projects as well.

Frode

2 years ago

Ok 😁 I have ds3231 rtc can I use that instead of your clock module? Have to order the pir sensor

Tufan_Gorai

7 years ago

Let me try this. I am very eagerly waiting to make this for my daughter.

austinibew145

7 years ago

Hello! great project. I am trying to do something similar. I am having trouble finding the exact libraries you used. Is there any way you could add a link? Thanks for sharing your work.

austinibew145

2 years ago

I have not gotten it to work yet. I did find a library that didn’t give me an error. It was Russian. Got it off gethub.

austinibew145

2 years ago

Good morning. I finally got a version of this project working. I ended up using a different RTC and a few different librarys. Well I changed a bunch of stuff. Thanks for the help with a starting point anyway. Thanks for posting your work.

austinibew145

2 years ago

Thanks for responding so quickly. I did exactly that. I searched get hub. I am getting an error from the Am2320. This is only my second project. Still new to programming. I’ll play with it a little and see what I can do.

austinibew145

2 years ago

I thought about it as I was telling you thanks. I am just starting out codeing. I don’t fully understand what it is that I did. It works good. I modified an example in MD_Parola. It’s more of a desk nameplate. It scrolls Name, position, temp, humidity, time, day of week, date. Lunch time pops up at 12:00 and go home at 3:30. I added a RGB that turns red if temp over 80*f blue if below 70*f I didn’t come up with a good way to turn it on and off. I like your idea with the motion detector, but I don’t think it works well in this application.

austinibew145

2 years ago

I will give it a try, but I am having other issues. Might not be this program. I can’t get anything to upload and a lot of stuff won’t compile

Anonymous user

2 years ago

Hi, I have the same problem. Did you figure it out?

ericBcreator

2 years ago

I don't have the exact links but got them from GitHub, try searching over there with the library names.

ericBcreator

2 years ago

Great you got your project working! My version is just what it is: my version of an info display, there are many ways to do it. Post your work if you feel to, it may help others as well

ericBcreator

2 years ago

Check my post above to see if that solves the problem.

ericBcreator

2 years ago

I also had this problem. Use the enhanced code I uploaded and connect the power input of the AM2320 to pin 8 of your Arduino. The code will check if the AM2320 gives and error and reset it by powering it off and on after a delay. This solved the problem for me :-)

Frode

2 years ago

Hi, have you checked that you have correct port and board in Arduino IDE ?

jefgroote

7 years ago

Love it! I Bought the Components and supplies on ali express hope i receive them in time so i can try to build my own. thanks for sharing the code. im gonne try to build an wake up mp3 alarm in it!

ericBcreator

2 years ago

Cool idea, let me know when you finish it! BTW: I moved the PIR sensor from the top to the front panel because the detection is better.