PDA

View Full Version : PIC16F84 and SERVO S3003



vitulis
- 19th November 2009, 10:00
Hello. I am new to PIC Basic. Many people say it is easy to program the PIC to control servo motor, but nobody gives a simple program to show how it looks like. It is not enough to write: PULSOUT pin,100.... I don't understand it principles. If someone would give me an egsample of a program (eg., when I push button RA1, the motor is turning to right, when RA2, to left) I would very approciate that... Thank you!!! P.S. I use 4Mhz crystal and PicBasic Pro...

Ioannis
- 19th November 2009, 10:58
http://www.rentron.com/PICX5.htm

Ioannis

vitulis
- 19th November 2009, 14:48
But there are explayned how to control servo with SERIAL controller, I just need to control servo without pc, just a button and servo... Not SERIAL.

ScaleRobotics
- 19th November 2009, 16:39
But there are explayned how to control servo with SERIAL controller, I just need to control servo without pc, just a button and servo... Not SERIAL.

So instead of checking the serial port in the main loop, check a button.

Acetronics2
- 19th November 2009, 17:53
Hi,;

Try this one ... was written for Elektor Project 040172 Circuit enhancement ...

http://www.elektor.fr/magazines/2006/juillet/tremplin-pour-servo-radiocommande.68716.lynkx

here, in French ...

http://www.elektor.com/magazines/2006/july/rc-servo-tester-047-exerciser/magazines/2006/july/rc-servo-tester-exerciser.58302.lynkx

Here in English

Note attached file is a Highly enhanced file of the one you can FREELY download from Elektor ...
Also available on Elektor French Forum ...

You also can download Freely PCB and " paper " project for 1€20 ...

Alain

vitulis
- 19th November 2009, 20:31
Well it is getting better, but my servo isn't turning. There are just a noise like: "BZZZZZ....." But nothing happens. I tried few impulse frequences : 100,200 ms. Maby my battery amperage is too low.....