background image

SBRGB 

 6  

All that this example code does is to set the Red LED at 50% brightness. If we 
wanted to change it to 25% brightness, we would change line 2 to: 

              movlw   0x40                      ;25% (256/4 = 64 base10 = 40 HEX) 

Now imagine that we vary the percentage value in real time using a variable 
rather than a constant of 0x40 (HEX numbering system). On top of this, use a 
Sine lookup table to produce smooth changes. When we apply these principles 
to all three color elements in the LED at random, you get the Super Blinky!  

So how would you achieve an orange color with the SBRGB? First you would 
figure out what percentage of each color needs to be on to produce orange. 
From the choices of Red, Green and Blue, Orange resides somewhere be-
tween Green and Red. Mostly towards Red end. This means Red will be at a 
full 100% duty cycle (255), Green will be around 50% (127), and Blue will be off 
at 0% (0).  

How about a nice violet color? 

Off

On

0

255

Time--->

Off

On

0

255

Time--->

Off

On

0

255

Time--->

RED

GREEN

BLUE

255

Time--->

255

Time--->

255

Time--->

Off

On

0

255

Time--->

Off

On

0

255

Time--->

Off

On

0

255

Time--->

RED

GREEN

BLUE

255

Time--->

255

Time--->

255

Time--->

Summary of Contents for SBRGB

Page 1: ...in between Uses PWM methods to select any color with a simple 8 pin micro controller Switch able speed selection and transition mode as well Get your feet wet with surface mount technology on this fun...

Page 2: ...ometer LC1 Inductance Capacitance Meter RAMSEY AMATEUR RADIO KITS HR Series HF All Mode Receivers QRP Series HF CW Transmitters CW7 CW Keyer CPO3 Code Practice Oscillator QRP Power Amplifiers RAMSEY M...

Page 3: ...iption 5 Parts List 9 Assembly Steps 10 Using the SBRGB 16 Project Idea 16 Schematic Diagram 17 Parts Layout Diagram 17 Troubleshooting Guide 18 Specifications 18 Warranty 19 KIT ASSEMBLY AND INSTRUCT...

Page 4: ...at before I knew the time had come So how did I get around the Boss you may ask I turned this into a surface mount practice kit that met the requirements so many of you were asking for via the web It...

Page 5: ...is means we have a resolution of 256 256 256 16 777 216 colors We may not actually achieve this number due to limitations on switching speed but we ll still get more than your eye can discern Now let...

Page 6: ...ts in the LED at random you get the Super Blinky So how would you achieve an orange color with the SBRGB First you would figure out what percentage of each color needs to be on to produce orange From...

Page 7: ...ed with lookup data tables The rest of the circuit consists of the power supply and the LED itself The power supply is a simple 5V regulator that is required to keep the supply volt age to the micro c...

Page 8: ...Red Green and Blue elements respectively to get a good white when fully on After experimenting a bit we decided to change the scaling to 5 mA 60 mA and 10 mA to obtain a nice vivid green and a brighte...

Page 9: ...1 1 PIC12C509SN Micro controller in an SO 8 package U1 1 RGB Full Color LED DS 1024 105A D1 1 1N4148 Type switching Diodes 3 pin SOT 23 packages D3 Hardware Misc 1 9V Battery Clip 2 2 Pin header for m...

Page 10: ...s these steps Dab a small amount of solder on one pad of the PC board for the component you wish to install Usually choose pin 1 Locate the appropriate part from those packed in the kit Use tweezers t...

Page 11: ...solder joint The rosin core flux will clean the joint and insure stability If you have too much solder and wish to remove it use a solder sucker or solder wick to soak up the extra solder Solder brid...

Page 12: ...ll and down into the heat register Hence the extra parts If you are really careful this won t happen to you 1 We will begin with a few resistors first Locate and install R6 the 10K ohm resistor marked...

Page 13: ...board no silkscreen and allows lower voltage operation Clip off any excess wire after it is soldered in place Note the dashed line on the top silkscreen side indicates this optional configuration when...

Page 14: ...at side toward J1 J2 8B Install R1 a 51 ohm resistor Marked 510 9B Install R2 a 680 ohm resistor Marked 681 OPTIONAL JUMPER PLACEMENT 10 The mounting of J1 and J2 is another choice left to you They ar...

Page 15: ...you are excited to go and plug the battery right in but please don t do it yet We need to inspect our work to make sure we did everything correctly We don t want to destroy any of our parts after all...

Page 16: ...peed changes the LED will flash indicating a speed change command was received The mode selection Fade or Blink is chosen by simultaneously shorting both J1 and J2 The LED will turn a solid color Red...

Page 17: ...SBRGB 17 SBRGB PARTS LAYOUT DIAGRAM...

Page 18: ...s of solder that maybe short across two or more pins Correct battery installation and a good battery Replacement parts may be ordered directly from Ramsey Electronics Inc First read the warranty in th...

Page 19: ...h be assured that the 1K ohm resistors are actually the missing 10 K parts Hum m m I guess the red band really does look orange Ramsey Electronics project kits are packed with pride in the USA If you...

Page 20: ...ts Ramsey HH3 Desoldering Braid Ramsey RTS08 Digital Multimeter Ramsey M133 SUPER BLINKY SMT PRACTICE KIT Quick Reference Page Guide Introduction 4 Circuit Description 5 Parts List 9 Assembly Steps 10...

Reviews: