Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Problem with TM1637.

Status
Not open for further replies.

Spacy

Newbie level 4
Joined
Jul 16, 2017
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
Hey,

I am using this module.
It has a TM1673 chip on the back and I am trying to control it with my raspberry pi version b.

I am using this script with python 2.7.9.

The pins are conneted in the following way:

VCC -> 3V3
GND -> Ground
Clock(CLK) -> GPIO3(pin 15)
Data(DIO) -> GPIO4(pin 16)

I replaced the line:
display = TM1637(CLK=21, DIO=20, brightness=1.0)
with
display = TM1637(CLK=15, DIO=16, brightness=1.0)

But after running the script nothing shows up on the display and the program just shows the first normal output "1234 - Working? (Press Key)".
I also tested both GPIO, the 3V3 and Ground pins with an LED and they are all working.

Is the script outdated? If so could you please help me fix it.
Otherwise what could be the problem?

Ps: I also tested replacing the CLK and DIO numbers with the GPIO numbers but that didn't work aswell.
 
Last edited:

Testing a clock or data signal with an LED and it's "working"?? What was the frequency of the clock you measured with the LED? What was the data you measured with the LED? How about the timing relationship between clock and data?
 

Appreciate the reply.
But I didn't test the data and clock on an LED obviously...
I only checked if the high and low states if the GPIO pins are working.
As far as i my understanding goes I can only test the pins in that way, right?
What other things could be the problem with the display?
Could I test the Module in a way?
Should they light up when only connecting Ground and Power?
 

Appreciate the reply.
But I didn't test the data and clock on an LED obviously...
I only checked if the high and low states if the GPIO pins are working.
As far as i my understanding goes I can only test the pins in that way, right?
What other things could be the problem with the display?
Could I test the Module in a way?
Should they light up when only connecting Ground and Power?

You SAID you tested your GPIO, which are Clock and Data, AND they were working.

Anyway, if you have an oscilloscope to verify the signals, that would be big help. Without a scope, how can you verify you've got the correct signals on the correct pins?
 

You SAID you tested your GPIO, which are Clock and Data, AND they were working.

Anyway, if you have an oscilloscope to verify the signals, that would be big help. Without a scope, how can you verify you've got the correct signals on the correct pins?

It's finally working, I just used the wrong GPIO pin numbers.
Thanks for your help.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top