I'm looking for a circuit that takes an input voltage and does something like the following:
Voltage between 0 and 1 volt - blink LED at 1 Hz. Voltage between 1 and 2 volts - blink LED at 2 Hz. etc.. Voltage > 5 volts - LED steady on.
Easy to do with a uC, but interested in seeing analog solutions also.
Didn't find your answer? Ask the community — no account required.
B
bitrex
The changes in blink rate don't have to be discrete, they can be continuous as well.
J
Jan Panteltje
On a sunny day (Tue, 8 Jul 2014 03:00:01 -0400 (EDT)) it happened bitrex wrote in :
With all respect, I think it makes little sense to ask somebody to calculate the longest distance between 2 points, unless you get payed for the time and a bad product. A PIC 12F can do this without ANY external components, with great precision.
On a sunny day (Tue, 8 Jul 2014 05:11:58 -0400 (EDT)) it happened bitrex wrote in :
OK design a manned mars lander.
M
meow2222
So the input Vs switch a couple of trs; one changes the R or C in an RC-opa oscillator, the other turns the opamp on all the time. Not really rocket science.
NT
G
George Herold
Voltage to frequency converter.... done.
George H. (if not a discrete IC then a VCO -> current into a cap -> triangle wave.)
P
piglet
If the blink rates, duty cycle, thresholds and linearity are not critical why not just take a classic two transistor astable multivibrator and kludge in a resistor from Vin to base of one of the transistors?
If 50% duty cycle wanted then use another R to the other transistor too. To get the steady ON led when Vin>5V may need a third transitor with appropriate divider at base.
What supply voltage does this challenge circuit have available, 3.3V,
5V, 9V, 12V, or 24V?
Do you want to add restrictions to the challenge like no ICs, or no large value capacitors, or only parts available in 1975, or no more than twelve parts etc etc?
piglet
P
Phil Hobbs
A CMOS 555 with an RC lowpass between the output and the trigger & threshold pins, plus three resistors on the modulation pin. A D flip flop following will give you a 50% duty cycle if you need it.
Cheers
Phil Hobbs
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
T
Tom Miller
And you can only use 555 chips.
J
John Fields
Not quite; "Voltage > 5 volts - LED steady on".
John Fields
R1/R2 set threshold of first transition Vcc - Vbe is second transition
Block is a 555
G
George Herold
"picky picky", :^) Well at 20V it would be 20Hz which would look like it was continuous.
George H.
P
petrus bitbyter
Jan Panteltje wrote in news:lpga2h$nm6$ snipped-for-privacy@news.albasani.net:
Can be considered overkill. A six pins PIC10F220 will do. I'd advise to use a series resistor for the LED. Boring? Sure. After all it's not a real challenge. I don't expect anyone to build a circuit like this unless he (she?) has a use for it. (Nevertheless, if someone needs it, I can build a prototype for a reasonable price :)
petrus bitbyter
T
Tim Williams
The strength to weight ratio is too low to be practical.
As long as a supply of oxygen is allowed, they probably wouldn't be a bad propellant though.
D1-D5: 1N4001 D6: Some kind of small Schottky diode with low forward drop Q1: NPN, to suit current requirements of M1 M1: Small DC motor, probably about 6-8 V nominal R1: To suit current requirements of LED1 R2: Just enough to supply about 0.3 V to M1 LED1: LED of desired color, located behind disc Disc: Slotted disc attached to M1 shaft
At less than about 0.3 Vin, R2 supplies M1. The slotted disk occludes LED1 at 1 Hz.
From about 0.3 to 5.0 Vin, the input supplies M1 directly. Increasing voltages increase the RPM of M1, thereby increasing the apparent blink rate of LED1.
At 5.0 and above Vin, Q1 turns on, providing a high voltage to M1, causing it to spin so fast that LED1 appears to be continuously on.
Matt Roberds
Y
YD
formatting link
- YD.
J
Jan Panteltje
On a sunny day (08 Jul 2014 20:33:24 GMT) it happened petrus bitbyter wrote in :
Yes, I was planning on leaving the LED series resistor out and doing it this way: Use input pullup, connect LED to input. Modern high efficiency LEDs will work on a few hundred uA. Then if the LED needs to be off, reconfigure pin as output and logic level zero. Now I want half the reasonable price ;-)
The biggest problem will be the unspecified > 5 V. I think 5.1 will meet the spec, but he could be using 2 MV or more.
Experiment will show if we actually need a decoupling cap, or just use a good quality battery, The thing will have to run at 5.2 V or so to allow sufficient input range for comparators or ADC.
Analog is failry easy to, I'd use a quad single supply opamp,
2 of it used as comparator, one as oscillator, one for your other features you may want to add.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.