TM1638 + Nano Troub...
 
Notifications
Clear all

TM1638 + Nano Troubleshooting - Advice needed

5 Posts
2 Users
0 Reactions
2,161 Views
(@donkeulito)
Active Member
Joined: 3 years ago
Posts: 6
Topic starter  

Hi SimHubbers,

I cant get the display and LEDs to work on a TM1638 with Arduino Nano or Pro Micro and need help troubleshooting.

  • Uploading the sketch works
  • TM1638 status LED works
  • all 8 push buttons are recognized in SimHub and
  • I used the exact same wiring as in a previous (still working) Nano+TM1638 setup

Still none of the 8 LEDs and no Display lights up.

I have since bought 3 more Arduinos and 3 more TM1638 as I thought these were just broken. 

  • Have tried to switch to a several different Nanos and two Pro Micro boards but the issue persists whatever I do. 
  • Tested the different Nanos and Pro Micros and they all work fine
  • Connected the non-working TM1638s to my other Button Box and LEDs + Display & LEDs work instantly on all of them

See Sketch picture here
https://imgur.com/a/kFWOA0s

So I´m quiet lost on finding a solution. It seems the TM1638 just isn´t initializing the Display and LEDs correctly after uploading, but I really have no idea how to check / test that. All the hardware works fine and software-wise I did nothing different (just used SimHub to upload sketch). That everything works with my other (three weeks old) button box makes my brain hurt.

  • Has something changed in SimHub so the same Sketch doesn´t work anymore?
  • Did I forget something?
  • How can I find out what to do?

Hope someone can point me in the right direction.

Thanks 

This topic was modified 3 years ago by DonKeulito

   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

Hi !

I just tested the sketch and i've not seen issues, my best bet based on that,
So I see two possibilities :
- Pin ordering : The order defined in the tm1638 configuration is not the same as the physical layout of the single color, you might have to double check it (on the board its STB, CLK, DIO and in the sketch setup it's the opposite). 
- Multiple arduino , if you are using multiple arduinos, old registered arduino might be "pushing" your display away, you need to make sure to clean all the old arduinos you have been using (or simply switch to single arduino mode) :


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

Another thing, I would avoid the pin "12", it's the pin with board integrated led, it might interfere with the display communication.


   
ReplyQuote
(@donkeulito)
Active Member
Joined: 3 years ago
Posts: 6
Topic starter  

#Solved 👌

https://imgur.com/a/pciPPuK

Switching to Single Arduino and avoiding pin 12 did the trick. I think the multiple old versions from itself confused it.

Thanks!


   
ReplyQuote
(@donkeulito)
Active Member
Joined: 3 years ago
Posts: 6
Topic starter  

One more question:

Is it even possible to run two TM1638 in two separate Button Boxes at the same time?

When I connect everything both boxes are recognized and connected. But only the right display works.

The left display only works in Single Arduino mode.

See the basic idea and Arduino Page Screenshot here: https://imgur.com/a/6xAPcFe

If that is true and only one TM1638 module can be used in the whole setup: Could I use a MAX7291 display with a WS2812b LED strip in each box at the same time instead?

Thanks 🙃

 


   
ReplyQuote
Share: