Simple server
chillybasen
Posts: 16
Hey guys,
I'm mainly a software guy, but I'm trying to connect the web server to a robot's servo.
I've been looking through threads and everything seems pretty advanced. I'm wondering if someone can point me in the right direction to do this:
1. Have spinneret running and accepting requests at http://myip/someurl/moveleft
2. By looking at the URL, do some magic that then makes the servo move
Any help would be amazing
Thanks
I'm mainly a software guy, but I'm trying to connect the web server to a robot's servo.
I've been looking through threads and everything seems pretty advanced. I'm wondering if someone can point me in the right direction to do this:
1. Have spinneret running and accepting requests at http://myip/someurl/moveleft
2. By looking at the URL, do some magic that then makes the servo move
Any help would be amazing
Thanks
Comments
Just followed the instructions on changing the mac, ip address and port -- works like a charm!
Now just to hook up to output pins -- any guides for that?
http://forums.parallax.com/showthread.php?127160-Powering-up-your-Spinneret-without-releasing-the-magic-smoke.&highlight=smoke
it did me finding the right pins
do you need help with making the servo move or do you have that?
Consider using the Parallax Servo Controller. The PSC connects to the 3 pin serial I/O port on the Spinneret. The Spinneret controls up to 16 (or 2x16) from a single serial connection.
I also saw that it's pretty easy to set a pin high or low with just:
DIRA[23] := 1
OUTA[23] := 1
Not sure the diff between dira and outa though
OUT is the state of a pin, high or low.
See the Propeller manual for details and examples.