LED Matrix: Difference between revisions

From YSTV Documentation Wiki
m (changed category from techincal to technical)
(Float images on right, add frames)
 
Line 1: Line 1:
[[File:Led_magicbus.jpg|thumb|right|300px|All the LED boards in their original matrix]]
The LED boards came from a display board that sat outside Your Shop. In their past life they conveyed useful information about the magic bus, how to get NUS cards and the courtyard opening times. After some dismantling, starting at datasheets and tracing out; a vague schematic for the boards has been created.
The LED boards came from a display board that sat outside Your Shop. In their past life they conveyed useful information about the magic bus, how to get NUS cards and the courtyard opening times. After some dismantling, starting at datasheets and tracing out; a vague schematic for the boards has been created.
[[File:Led_magicbus.jpg|400px]]


== The Basics: ==
== The Basics: ==
Line 31: Line 30:


== Driving the Board: ==
== Driving the Board: ==
[[File:Led_ystv.jpg|thumb|right|300px|LED board with ystv logo]]


Clocking data into the LED drivers is trivial, setting the row is more difficult. IC2's outputs are connected (via FETs/transistors) to each row line. When the corresponding '''bit is 0''', that row is '''enabled'''.  
Clocking data into the LED drivers is trivial, setting the row is more difficult. IC2's outputs are connected (via FETs/transistors) to each row line. When the corresponding '''bit is 0''', that row is '''enabled'''.  
Line 36: Line 37:
Example (Arduino) code (By [[hist:Thomas Cheyney|Thomas Cheyney]]) for driving the boards is available from the [https://git.ystv.co.uk/MiscSoftware.git/ MiscSoftware] repo on YSTV's git server. At the time of writing there are timing issues to resolve and noticeable flicker.
Example (Arduino) code (By [[hist:Thomas Cheyney|Thomas Cheyney]]) for driving the boards is available from the [https://git.ystv.co.uk/MiscSoftware.git/ MiscSoftware] repo on YSTV's git server. At the time of writing there are timing issues to resolve and noticeable flicker.


[[File:Led_ystv.jpg|600px]]
[[Category:Technical]]
[[Category:Technical]]

Latest revision as of 20:01, 8 November 2013

All the LED boards in their original matrix

The LED boards came from a display board that sat outside Your Shop. In their past life they conveyed useful information about the magic bus, how to get NUS cards and the courtyard opening times. After some dismantling, starting at datasheets and tracing out; a vague schematic for the boards has been created.

The Basics:

The boards are relatively simple, they consist of two shift registers, an 8-bit buffer and three 16-bit serial LED drivers. The power supply to the boards should be 5V and at least 1.8A.

Each board has 4 inputs (the names are not official), there is also a chain output on each board such that two (maybe more) can be connected in a line. The only change for this is the amount of data you clock in on each row scan.

Pin Function
CTRL_DATA Control Data, used to transmit row data and enable the LED drivers.
COL_DATA Data driven straight into LED drivers, 48 bits long.
CLK Master clock for both COL and CTRL data.
STCP Connected to STCP on first shift register, and also output enable.


Led schematic.png

Driving the Board:

LED board with ystv logo

Clocking data into the LED drivers is trivial, setting the row is more difficult. IC2's outputs are connected (via FETs/transistors) to each row line. When the corresponding bit is 0, that row is enabled.

Example (Arduino) code (By Thomas Cheyney) for driving the boards is available from the MiscSoftware repo on YSTV's git server. At the time of writing there are timing issues to resolve and noticeable flicker.