Instant Response is not necessary... delays of 1 second is fine.
It seems the only thing I can think of, is a 500K resistor in series with the trigger resistance, and when the voltage gets to be about 2.5 volts or less, flip my motor on.
Dwayne
Instant Response is not necessary... delays of 1 second is fine.
It seems the only thing I can think of, is a 500K resistor in series with the trigger resistance, and when the voltage gets to be about 2.5 volts or less, flip my motor on.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
even with a resistor in series with the 500k, a pic pin seeing it in parallel is way above the recommended 10k or 5k impedance depending on the chosen chip. Myself using thermistors via resistor capacitor timing (choice dependant on environmental conditions) have had results well within the necesarry parameters.
all the best
Oh Guys, stop struggling....
10K between the PIC pin and 0v. Your 500K between the pic in and +5v. Use an ADC pin. If your device is subject to noise pick-up, then put a 100nF across the 10K. That's it.
Calibration. Take an ADC reading with a Resistor at 500k. This is your minimum 'threshold'. Take another ADC reading with a Resistor at say 450k. This is your max threshold.
You now have two values... at which point you decide to signal your 'event' condition between thos two points is up to you. You may have to use 10-bit ADC as the values will be pretty tight and 8-bit won't give you much leeway.
I was going to suggest using a PIC with ADC, but I thought that the ADC's needed a fairly low source impedance to drive them...
From the 16F727 data, 9.3 A/D Acquisition Requirements,
"The maximum recommended impedance for analog sources is 10 kΩ."
Is this not true for most of the PICs?
Some of the PICs have analog voltage comparators don't they? Perhaps they'd be better suited to the voltage divider with 500K resistor? I guess I don't know what the input impedance is on those voltage comparator inputs.
Last edited by Byte_Butcher; - 12th March 2009 at 17:03.
That's why I put the 10K Resistor across the PICs input! The 500k feeds it... you end up having a 50:1 potential divider.I was going to suggest using a PIC with ADC, but I thought that the ADC's needed a fairly low source impedance to drive them...
From the 16F727 data, 9.3 A/D Acquisition Requirements,
"The maximum recommended impedance for analog sources is 10 kΩ."
Is this not true for most of the PICs?
Bookmarks