Sorry for the vague subject, it seemed hard to summerise what I am trying to overcome.
I have an Arduino Duemilanove And a GWS S125 Servo.
For those of you that dont know the S125 is a 360 degree servo (Note: limited 360 not continueos).
I have spent the last week getting to grips with Fimata VB.
I want to be able to do the following:
-Use one of the PWM to directly replace a pot. That is, use the PWM output instead of the sweeping pin on the pot.
-Use 3 outputs to controll relays.
-Use another one of the PWM outputs to control the position of the servo. It will be set to 1 of three locations (o degrees, 100 degrees and 250 degrees)
Now I have managed to use the FirmataVB!.Digitalwrite(Pin,Status) To control the pins for the Relay, and allthough I've yet to try the analogue.write I assume thats as easy to use.
The problems starts with the servo. Because it is a 360degree servo it seems to be causing problems. I have found a sketch on here that allows you to controll the position using the serial monitor, but that requires me to remove the Firmata sletch first.
(The sketch is here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1264208980/3)
Is there any way to combine these two sketches.
Im not asking anyone to do the hard work, but would someone please be able to help as this is really bugging me.
Thank you so much for reading and any help.
Thanks again, Phil.
The problem I have at the moment is that I also want to be able to control the postition