NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » 4 Digit 7 Segment LED Display
September 10, 2013 by Affarram |
Hello All,
I found two different data sheets for this display. Here is one for the chip that drives the display http://gtbtech.com/wp-content/uploads/2013/02/PT6961.pdf and this is all I could find on the display itself http://gtbtech.com/?p=528 This is as far as I have gotten in my code.
I tried experimenting with sending info to the display but im really not sure how to do it. If I could be pointed in the direction of how to light up even one segment Im sure I could figure out the rest. thanks Sean |
---|---|
September 10, 2013 by rajabalu21 |
Hi Affarram, I have used this type of display as part of one of my projects. You can take a look at this and this. The code is for Energia but it should be compatible with Arduino/AVR. -Raja Balu |
September 11, 2013 by pcbolt |
Hi Sean - From a quick look through the data sheet, that's an interesting driver chip. Seems to be overkill for your application but if it came with the LED module I guess it can do some of the work for you. The wiring should be fairly straightforward, common and 5v are obvious, DIN (from your second link above) should go to MCU pin 18, CLK to MCU pin 19, and CS to MCU pin 16. If we assume the PT 6961 chip is wired correctly to the LEDs the first step would be to initialize the 6961 chip. I'm pretty sure the CS pin in the LED picture is actually the strobe pin on the actual 6961 chip so you can use the terms as the same so we can call it STB from now on. If you're at the stage where you can control the 2-segment LED, you'll know how to make the STB/MCU pin 16 high in your initialize routine and to make it low before each command or data sent to the 6961 (and high afterward). SPI is very easy to use, first set the byte you want to send in the SPDR register and wait. The whole sequence is here...
Once you are sure that works, follow the flow chart on page 13 of your first link to send commands and data to the 6961 chip. Hope this helps, be sure to update your progress/road blocks. |
Please log in to post a reply.
Did you know that a piezoelectric buzzer can be used in reverse as a microphone? Learn more...
|