TOP Contributors

  1. MIKROE (2641 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136214 times)
  2. FAT32 Library (69476 times)
  3. Network Ethernet Library (55703 times)
  4. USB Device Library (45988 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40777 times)
  7. GSM click (28785 times)
  8. PID Library (26327 times)
  9. mikroSDK (26050 times)
  10. microSD click (25133 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Example of Using a STP16CPC05 16 Bit Serial in Shift register to light LED's

Rating:

0

Author: Dick Berry

Last Updated: 2016-02-18

Package Version: 3.0.0.0

Example: 1.0.0.0

Category: Light control

Downloaded: 515 times

Followed by: 2 users

License: MIT license  

Test software to demonstrate the capabilities of the STP16CPC05 serial in 16 bit shift register with Current Limiting to light 12 LED's Rev 2.0

Rev 3.0 is the end of this project. I added a couple more test and am including a link to a Video on You Tube.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Example of Using a STP16CPC05 16 Bit Serial in Shift register to light LED's" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Example of Using a STP16CPC05 16 Bit Serial in Shift register to light LED's" changes.

Do you want to report abuse regarding "Example of Using a STP16CPC05 16 Bit Serial in Shift register to light LED's".

  • Information
  • Comments (0)

Example Blog

 

I found these KOMANI Gaming Machine LED boards surplus for $20 for a set of five. I thought it would be a fun project to sort them out ans see if I could get some software to blink them. I reversed Engineered the board and found they use Three STP16CPC05 Serial in Shift registers with programmable current limiting. I've included the schematic in the zip file. If you need to expand outputs these chips work very well and have the capability to drive LED's directly in a 20 Pin SSOP Package' The interface is simple just Clock, Data, and a Latch Enable Bit. The outputs are not affected while shifting data in and are transferred with a Latch Enable pulse. I tested the board at 8 Mhz, 32 Mhz, and 64 Mhz with a 18F45K22 and it works at all speeds. I'll attach some pictures of timing at 64 Mhz. A fun little project. More pictures in the zip.

Thanks for Looking Dick

The Test Setup

The Test Setup

A V7 board with a 4 Line by 20 Char LCD Display

View full image
The Surplus Board

The Surplus Board

Labeled KOMANI Horz-LED. 12 bright LED's with three STP16CPC05 chips daisy chained together. Five boards were $20 at Electronic Goldmine.

View full image
LED Board Schematic

LED Board Schematic

I reversed engineered the Board and entered the schematic into Express SCH. The Express SCH file is in the zip.

View full image
Rotating the Seven Colors right to left

Rotating the Seven Colors right to left

By sending just four bits the colors can be rotated right to lrft through the shift registers.

View full image
Displaying one color on all LED's

Displaying one color on all LED's

I rotate through all the Colors including OFF by pressing the E.0 button. While on any color the software flashes at a 1.5 Second Period.

View full image

Rev-02 2014/08/27 added a couple tests and cleaned up the source to eliminate
all the lables Main_xx to something that relates to the test in progress
Made turning OFF all the LED's a Sub Procedure and included some const's
for describing the numbers I had in the source. Also made a dummy test
at the end for the next test I haven't thought up yet.

I also have three of the boards daisy chained now.

This version is a much smaller ZIP file because I removed the DOC's folder and put it on the ONE Drive here

https://onedrive.live.com/?cid=AE67FFF392766057&id=AE67FFF392766057%215774

But it hasn't changed from the original. Now you can download only the files in the DOC's folder you want.

 

Thanks For Looking

Dick

 

Revised Schematic.

Revised Schematic.

I had the binary color codes wrong in the table so here is a correction.

View full image

I added a couple more tests in Rev 3.0 and made a Video. You can view the Video here.

https://www.youtube.com/watch?v=Uq11tz4TwSY

 

Thanks for Looking

Dick

ALSO FROM THIS AUTHOR

RV Monitor System Two Displays, Battery Voltage, Fresh Water Level, Outside Temp, Inside Temp, With Cycleing Mode

10

This is a Monitor system for Travel Trailers, Pop Up's and other RV's. I have made provisions for two displays, one inside and one outside. A single button for each display steps through the modes. Modes include Battery Voltage: Fresh Water Level: Outside Temp: Inside Temp: Cycle The Data Displays: Off: Thanks For Looking Dick

[Learn More]

Saving Glcd Calibration Data in internl EEPROM

0

Calibrate the Touch Panel (only if required) with saved data that is check summed. Displays Cal Data and EEPROM Data on GLCD PIC 18F46K22

[Learn More]

ExpressPCB Schematic and PCB Layout (FREE Software)

0

A very nice Schematic Drawing Tool and PCB Layout Software (Free Download) Extensive Library with component building. Up to four layer PCB can be ordered from them but not required. Software is not a trial and is fully enabled. Many PIC Controllers in the Library. http://www.expresspcb.com/index.htm Enjoy! Dick

[Learn More]