All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > The Projects Forum

Notices

The Projects Forum Working on an electronics project and would like some suggestions, help or critiques? If you would like to comment or assist others with their projects, this is the place to do it.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 10-27-2008, 06:47 PM
kballing's Avatar
kballing kballing is offline
Junior Member
 
Join Date: Jun 2007
Posts: 18
Default Controlling LED intensity

A project that I am planning is an automated glockenspiel (xylophone) that uses a serial controller and a bunch of soleniods to bang out the notes. The instrument has 37 notes and the shift registers in the circuit have 8 channels each making 5x8 = 40 channels, 40-37 = 3 left over. So I was thinking of what to do with the other three channels. I thought, why not add light to the project and include a channel for R, G, and B leds. The circuit only controls on/off via transitors without dimming, which seemed a bit boring to me.

I'm not asking for a detailed schematic or long lecture on LED physics, but what are some ways I can control the intensity of each LED so I can get more colors?

I have a few piezo pickups that I got really cheap. One idea I had was to use the audio signal to modulate the LED intensity, but don't know where to start there.

I don't know much about LEDs, but I can figure it out. Any other cool suggestions are welcome.
Reply With Quote
  #2  
Old 10-27-2008, 07:25 PM
bertus's Avatar
bertus bertus is online now
Administrator
 
Join Date: Apr 2008
Location: Amsterdam,Holland (GMT + 1)
Posts: 12,099
Default

Hello,

Here is a simple schematic of a lightorgan with leds.
http://www.dieelektronikerseite.de/Index.htm
It is in german, but the drawing will say a lot.

Greetings,
Bertus
__________________
You don't have to know everything, if you know where to find it.
When you do ask questions, you may look stupid.
When you do NOT ask questions, you will STAY stupid.

It would be nice to have the Timezone ( GMT +/- x ) in the location field in the profile.
(User CP -> Edit Your Details)
Reply With Quote
  #3  
Old 10-28-2008, 12:10 AM
mik3's Avatar
mik3 mik3 is offline
Senior Member
 
Join Date: Feb 2008
Location: Cyprus, but now in UK (GMT+0)
Posts: 4,846
Blog Entries: 9
Default

Quote:
Originally Posted by kballing View Post

I'm not asking for a detailed schematic or long lecture on LED physics, but what are some ways I can control the intensity of each LED so I can get more colors?
Each leds illuminates only one colour,which depends on the material the led is contructed or more strictly on its badgap, unless it is a two or three colour led. You can vary the intensity (brightness) of the leds by varying the current through it but not its colour.
Reply With Quote
  #4  
Old 10-28-2008, 07:17 AM
StephenDJ's Avatar
StephenDJ StephenDJ is offline
Member
 
Join Date: May 2008
Location: Mississippi
Posts: 54
Blog Entries: 1
Default

The original poster's project is very interesting (i'm a musician too). I'm assuming the shift registers are of the serial-in/parallel-out type. If it were possible to add an extra shift register, the 8-bit binary output of it could be feed into a resistor network to produce an analog voltage level that can vary the brightness of all LEDs that happen to be on at any one time. But you'll need a transistor operating in analog mode rather than switching mode to make this digital-to-analog scheme work, tho. Oh well, just a suggestion.

Last edited by StephenDJ; 10-28-2008 at 07:27 AM.
Reply With Quote
  #5  
Old 11-04-2008, 06:25 PM
kballing's Avatar
kballing kballing is offline
Junior Member
 
Join Date: Jun 2007
Posts: 18
Default

Thanks Bertus, a light/color organ is exactly what I was thinking about (I just forgot). StephenDJ, interesting idea, but not what I'm going for.

I guess I can just use an op-amp for 3 band-pass filters, and then I'll probably put the LED under a cool engraved plexi-glass bezel.

maybe if I get really ambitious I'll add a RGB led for each note and use the extra three channels to control the on/off state of each color so that I can modulate color according to how many notes are played or something.

This thread isn't closed, new ideas are still welcome.
Reply With Quote
  #6  
Old 11-04-2008, 08:29 PM
wy6k wy6k is offline
New Member
 
Join Date: Nov 2008
Posts: 1
Default

The accepted way to do this is to drive the LEDs with a pulse train. By varying the duty cycle, you can vary the intensity. The beauty is that you can do this totally digitally, under program control - no analog stuff.

You can either send a pulse train on each of the three channels or you could build it to send a control word that specifies the duty cycle and then let the logic in the unit convert that control word to a pulse train. When you want to change the duty cycle, and therefore the intensity of each color, you send a new control word.
Reply With Quote
Reply   Post New Thread

Tags
, , ,


Related Site Pages
Section Title
Worksheet Microcontroller principles
Worksheet Shift registers
Worksheet Flip-flop circuits
Worksheet Design Project: Pulse-Width Modulation (PWM) signal generator
Worksheet Signal modulation
Textbook Ring counters : Shift Registers
Textbook Serial-in, parallel-out shift register : Shift Registers
Textbook Serial-in/serial-out shift register : Shift Registers
Textbook Introduction : Shift Registers
Textbook Special-purpose diodes : Diodes And Rectifiers


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help me.Need advice ridge84 Embedded Systems and Microcontrollers 4 11-29-2009 09:35 PM
Photodetector to LED robby991 General Electronics Chat 17 05-21-2008 09:40 PM
Controlling led with the pc's serial port arthur92710 General Electronics Chat 13 05-19-2008 09:36 PM
LED short of forward voltage Pootworm General Electronics Chat 5 10-28-2007 12:58 PM
LED Dimming in Parallel pfhorge The Projects Forum 6 02-27-2007 07:36 PM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:44 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.