TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139567 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57256 times)
  4. USB Device Library (47631 times)
  5. Network WiFi Library (43220 times)
  6. FT800 Library (42566 times)
  7. GSM click (29932 times)
  8. mikroSDK (28292 times)
  9. PID Library (26934 times)
  10. microSD click (26309 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: 548 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

Camper Light Control Project Update

0

This is the mid point of this project. The Light Control is working with Blue Tooth Coms between the head end and the light controller. The VGLCD code is working the touch panel to turn on and off lights. I will be adding Voice Control using the Speak-Up and Smart_MP3 modules in the near future. Enjoy New Version, more functionally. Dick

[Learn More]

Interrupt Driven State Machine MP3 Player for Smart MP3-Board

0

This is a real time state machine that plays MP-3 files from the SD Card using the Smart-MP3 board. Now I can service the GLCD and Touch Panel while playing Audio Files. I've included the five songs I tested with. Just copy them to your SD Card.

[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]