trying to make a strobe circuit and program
Masters69
Posts: 3
·I am currently working on a project for my electronics class and am working on a project that is using the bs2 and board of ed. i am trying to make a strobe circuit and program that will take music and judging by its frequency and amplitude and apply htat to the strobes in brightness and when they turn on and off.
i would appreciate any help i could recieve.
thank you
Post Edited By Moderator (Chris Savage (Parallax)) : 5/11/2007 5:18:34 PM GMT
i would appreciate any help i could recieve.
thank you
Post Edited By Moderator (Chris Savage (Parallax)) : 5/11/2007 5:18:34 PM GMT
Comments
For volume, you'll need:
Microphone -> amplifier -> low pass filter -> ADC -> BASIC Stamp
For the strobe, you'll need:
BASIC Stamp -> isoltation -> relay, solid state relay, etc.
The low pass filter will convert the audio signal to a DC signal that indicates the amplitude. The BASIC Stamp can use the ADC to convert these DC measurements to values its program can work with. Based on these values, the program will control the strobe. You'll need isolation circuits and then somethign to control the light.
For frequency with the BASIC Stamp, you might want to consider low pass, high pass, and maybe bandpass filters similar to the ADC subsystem above to measure singal strength in several frequency ranges.
There are also digital techniques for examining frequency ranges, but you'd need to switch to the Propeller Microcontroller to get the processing speed required.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
http://www.parallax.com/html_pages/downloads/siccurriculum/documentation_sic_curriculum.asp
The first step would be to use the ADC0831 potentiometer voltage measurements to control the LED blink rate. Then, expand from there. At some point, you will ned up replacing the LED with the strobe subsystem discussed in the 5/9/2007 1:58 PM post. Make sure to ask me how to gang up ADC0831 A/D converters without chewing up a lot of BASIC Stamp I/O pins when you are ready to start using more than one.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
thanks again Chris
The Basic Analog and Digital text introduces an opamp buffer in Chapter 1. That's one thing you can use to drive some relay inputs. Others can be driven directly by the BASIC Stamp, and others still require optocouplers or drivers with diode protection to prevent damaging BASIC Stamp I/O pins. Whether or not the LM358 will work for your particular setup depends on the opamp's output current limitations and the relay's input current requirements. You'll have to get the datasheets for both devices. For example, go to www.national.com. Then, type LM358 into the search field, and then download the datasheet from their product page. As you go through the electrical characteristics, there's a note about an absolute maximum output current limit of 40 mA, which you should stay well below, so maybe plan on not more than 20 mA. If you plan on getting closer to that 40 mA, you'll have to take a look at the rules for power dissipation, operating temperature, and so on. You may want to get some additional guidance from your instructor on those details.
So, then you have to look at your relay's datasheet and find out how much current its control input takes to make its switch throw. If it exceeds the LM358's output current limitations, you'll either want to go shopping for a different output amplifier or a different relay.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.