TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136627 times)
  2. FAT32 Library (69830 times)
  3. Network Ethernet Library (55886 times)
  4. USB Device Library (46224 times)
  5. Network WiFi Library (41861 times)
  6. FT800 Library (41080 times)
  7. GSM click (28942 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 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: 516 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

Displaying a 12 VDC Battery Voltage on the LCD of a Easypic V7

5

By scaling the +9.4 Volt to 14.5 Volt battery voltage with a Zener Diode and a 10K resister you can display the Battery voltage with two decimal points resolution on the Two Line LCD of a EasyPic V7 Development board using the RA1 AtoD input of a PIC16F76 Microcontroller. Version 2 Uploaded on 2013/05/25

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

Readin the AM2303 Temp/Humidity Sensor with Basic

0

I'v seen a several C examples for reading these sensors but haven't found one in Basic. So here is the Source file for a Module in my RV Monitor Project for Handleing the AM2303. See the RV Monitor Project for a detailed Blog.

[Learn More]