16x 10mm Circle LED Display Board - "Cooper"
16x 10mm Circle LED Display Board - "Cooper"
16x 10mm Circle LED Display Board - "Cooper"
www.MaximumOctopus.com/electronics/cooper.htm
Youll find the latest versions of the instructions and example code at the address above.
Thank you for purchasing the Cooper kit! I hope you have lots of fun with it!
If you have any suggestions for future boards then please let me know. Ill send you some free boards if I like your
idea!
This kit can be controlled by many microprocessors and development boards. I have been using it with the Arduino,
Espruino and PICAXE systems.
Kit Contents
This kit was put together by a team of highly skilled octopuses; it should contain the following items:
1)
2)
3)
4)
5)
6)
7)
Building Instructions
You will need a soldering iron, solder, an octopus (or a set of handy helper things) and wire cutters. To keep some of
the large components in place while soldering you might find Blue-Tac useful to stop them moving around or falling
off, but be careful not to put it on anything that will get hot (resistor leads, LED leads etc.) or youll end up with a hot
squidgy mess on your components.
Take your time and check the placement of every component before soldering them in place!
All of the components (except for the 6 pin header) sit on the top of the board, solder them to the underside.
STEP 2 Resistors
Solder each of the 16 330 resistors on to the board next. These protect the LEDs from excessive current. It doesnt
matter which way around they go (but I like to make them all face the same way!).
They are labelled on the PCB as R1 to R16.
STEP 4 Header
This will be used to connect power and data to the board. It is best placed on the underside of the board, and
soldered on top. The pins are labelled (left to right):
+5V
Connects to a 5V supply
GND
Connects to GND
ST_CP
SH_CP
DS
Q7
The output from the second shift register, use this when daisy chaining devices.
The output from this pin feeds in to the DS of the next device.
Thats all the hard work finished. You should now have
something that looks like this:
All yellow
All orange
All blue
All green
Temperature or sensor
Alternate red/green
Output Format
The pseudo-code for lighting up the LEDs on one board follows:
// send 16 bits, the first 8 go to the leftmost shift register
// the second 8 go to the rightmost shift register
Set the ST_CP (latch) low
Do this bit 16 times:
{
Set the DS pin (Data) to low or high (depending on data).
Set the CLOCK to low.
Set the CLOCK to high.
}
Set the ST_CP (latch) high
Byte 1
Byte 2
87654321 87654321
Byte 2 sets LEDs 1 8, byte 1 sets LEDs 9-16. A 1 turns an LED on, a 0 turns if off.
Its important to send the bits from LEFT to RIGHT. The MSB of byte 1 first; the LSB of byte 2 last.
Have a look at the example programs for more information on how to talk to the shift registers.
Example source code for the following platforms can be found here:
www.MaximumOctopus.com/electronics/cooper.htm
Arduino (and compatible boards) (arduino.cc)
Espruino (and compatible boards) (espruino.com)
PICAXE microcontrollers (picaxe.com)
Raspberry Pi (all models) (raspberrypi.org)
If you would like some example code for a different platform then please get in touch.
If you have any comments or suggestions for this kit then please let me know.
For more information, updates and details of new kits check out the following links:
Website
www.MaximumOctopus.com
http://www.twitter.com/maximumoctopus
Online store
http://store.MaximumOctopus.com
YouTube
https://www.youtube.com/user/freshneyorg
Paul A Freshney
December 27th 2014