Hi!
How can I using PIC16F877 output analog values (0-5v) to control a DC motor from (0-24v)?
What hardware do I need?
any source code example in picbasic?
Regards
Hi!
How can I using PIC16F877 output analog values (0-5v) to control a DC motor from (0-24v)?
What hardware do I need?
any source code example in picbasic?
Regards
You can use the HPWM command to generate pwm at an outputpin.
The take a RC network to make a dc voltage from your pwm.
That dc voltage will go from 0 till 5 volts.
After that take an opamp like an LM324 (4 amp's in 1 ). Build this as a noninverting amplifier of 5 times.
Supply the opamp with a supplyvoltage of 30 volts.
Ok, good idea, but can I use an LM358? I have found a example in this forum with this opamp (0-10v output) so changing resistors I can make it 0-24v output. I think...Originally Posted by mat janssen
Regards
Why not? About any op-amp will do the job... if they can accept the supply voltage range.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
And also if they are Rail-to-Rail...Originally Posted by mister_e
See also the LMC66x series from NS. Low power and 5V.
Ioannis
Bookmarks