Introduction: Reuse Electronic Parts - 7 Segment Display Based on PT6964

Hello, this is my first little instructable.

I am a big fan of taking electronic things apart and look inside. I've learned much stuff about designs, chips and also salvaging parts out of old electronics is a cheap and easy way to get electronic parts for the next project. Also it is very interesting to have whole modules from stuff that got ripped apart or stop working. In this little instructable i will show you how i reused a "human machine interface" from a old tv receiver. It is a nice little module with a 4 digit 7 segment display, a green and a red led, 3 keys and also a integrated ir receiver for the remote. Everything you need for the next robot, arduino project or just learning stuff. So lets begin!

Step 1: Look What I Found: a PT6964, What Is That?

Picture of Look What I Found: a PT6964, What Is That?

First take a look at the module and find out which is the main function of the module. In this case this was easy, there is a single chip a PT6964. Sometimes it is difficult to get a datasheet from the mighty internet, but this time it was the first hit on google.

In the datasheet you find a application example, most designs are easily using this. We see a serial interface to a microcontroller to send commands and data to the controller. We also see that the PT6964 can handle 7 segment digits and also read keys. Nice thing found in the trash can. So it seems the LEDs and keys are also connected to the PT6964.

Step 2: Connection

Picture of Connection

So we already have a idea how this module is working. The main part is the PT6964, let's see further. There is no microcontroller on the board, so the interface must be on the connector.

All you need to do now is take your multimeter an measure the ohms (or beep) of the corresponding pins of the PT6964 for the serial interface. The signals DIO, CLK and STB should be on the connecter 1:1 straight. Sometimes there is a resistor in the signal line to make the design short circuit proof, then you don't measure 0 ohms (or beep) but a couple of ohms (let's say everything <1000ohms is suspicious). In this case there was series resistors in the signal path. I found all signals on the connector. GND and VCC the same. First i could not find Vcc on the connector, because there is a protection diode 1N4148 in the Vcc track.

At least one signal on the connector didn't match to the PT6964, you can guess: the ir sensor signals. This one is not handled by the PT6964 and so the microcontroller on the old mainboard got this signal too. I noted it but i am not using this in this instructable.

Step 3: Now It Is Our Turn! Bring Me the Solder..

Picture of Now It Is Our Turn! Bring Me the Solder..

So we have the connection. Now i soldered a tiny little PCB with a Attiny2313 to give it a try to bring life back in the module. You can use a arduino or maybe a raspberry pi to connect the display too (maybe a made this for my 3d printer.. let's see :-) )

The datasheet contains all information to get the simple serial interface done. I used bitbanging to make it more portable to later projects.

The PT6964 is a amazing chip with a lot of nice features:

  • dimming function using settings in the chip to adjust the brightness, neat!
  • whole display on/off with one single command, save power!
  • read keys and debounce them, just what you need to make a nice interface!

After getting the first life sign of the display i discovered that the segment connection is not as mentioned in the datasheet of the PT6964. I guess the designer liked to have a cheap single side pcb so they connected everything as it was the best from the point of view of the layout. But no problem a little try and error and you get the right segments. I created a little LUT (Look Up Table) in my code to get the right bitcode for every digit.

I host the code on github (i wrote this in one evening, don't be rude :-))

https://github.com/ringo2k/pt6964

Step 4: That's It

So now i have a fully function 4 digit 7 segment display with leds, keys and different brightness levels. I can control it with my microcontroller, Muahahah! The question is now, where do i put i in ;-)

Sometimes it is just funny to work things out. So it had a lot of fun "hacking" this thing and learned a lot.

Take a look in the trashcan and make something with it!

Hope you liked my little howto.

Comments

RaymondH29 (author)2017-10-21

Great instructable, if anyone is interested...

Code for arduino to operate PT6964 or SM1628C as a 0 to 9999 count.

It shouldn't be too difficult to make it do other things.

https://github.com/raymondodinzeo/PT6964-SM1628C_Hack

bpgpeter (author)2017-04-23

Can anyone tell me how to remake the code to connect such a display to Arduino?

petersoldan (author)2016-09-11

great instructible.Thanks.

DIY Hacks and How Tos (author)2016-06-05

Great way to reuse old parts. I get so many components by taking apart old and broken electronics. Saves me a lot of money.

Yeah that's the spirit :-)

About This Instructable

1,299views

35favorites

License:

More by RingoR87.:4000mAh - USB Powerbank Out of the Trash Can Reuse Electronic Parts - 7 Segment Display Based on PT6964
Add instructable to: