It is for a servo and the converter does not have to be super perfect precise because it is going to follow my finger push anywhoand I cant push that correct!
I guessed it would be a problem with that duty cycle, and that is why I dont quite know how to handle thisI dont need a fansy circuit with a superior resolution, just easy road.
hi,
What is the output voltage going to be used for.?
To be controlling a quadrocopter. The analog signal will be connected to microprocessor that will also have a gyrometer attached. I will use a ADC to read the signal made from this board, and I know some dont like going from digital to analog to digital, but I just cant make it perfectly work with room etc with my PSOC microcontroller.
hi,
This is an option, the 556 is just the servo generator pulse circuit.
The right hand section is the pulse to DC converter.
Arrange for the PIC to sample the DC out when the 0.5m to 2.5ms is inactive.
Hi Eric
Fantastic, you make the world turn
I will make an interrupt to do the sample at falling edge.
Few quistions though.
-Does all the transistors work as switches or amplifiers?
-The opamp's minus is connected to ground or a minus voltage? And it is a none inverting amplifier?
Thanks
The simplest way to generate an analog signal is to just run the pulses through an RC low pass filter (integrator). That's basically what your multimeter does. But it's not as fast as Eric's circuit.
You would need an RC time-constant of about 200ms to minimize the ripple, so obviously the response time to a change in pulse-width is slow. Also you would likely need to amplify the signal since the maximum output signal is only 2.5/20 = 12.5% of the pulse amplitude.
Just a simple option for your consideration.
The receiver sends pulses at the length of 0.5 - 2.5 ms and with 20 ms periods,
dooggy
The OP said
The signal is only using 1/10 of the range. I am not sure that the output of a filter would be useful.
I agree, it might wont work. I will still try unless someone can confirm otherwise, sinze it is so easy and I dont need a fanzy perfect signal
hi,
If you are able to write the program for the PIC, I would go the same route as suggested by Pommie aka Mike and let the PIC sample the ON period of the 0.5 thru 2.5mS pulse.
Hi Eric
The problem is that I need to read 4 different inputs, and in a PSOC falling and rising and all I/O use the same interrupt. That means that I have to check which port of the 4 that is not turned on after I have got an interrupt I also have to figure out if it was falling or rising. I just dont know if this would work and there will be a chance that it will have two falling edges the same time.
Also I have to connect a gyrometer, barometer and accelerometer to the same uC and they will probably be using interrupts aswell.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?