Shop OBEX P1 Docs P2 Docs Learn Events
Control pins from webpage WITHOUT python? — Parallax Forums

Control pins from webpage WITHOUT python?

deanwesterburgdeanwesterburg Posts: 25
edited 2012-04-04 07:13 in Accessories
I'm trying to figure out how to Control pins from a simple web form as well as read the input from a pin.

I've read through nearly every page of the Spinneret section of the forums and I have not found an answer other than a Python form.

I hope there is an easier way!

Any sample code of Reading a pin value (high or low) as well as an example of setting a pin value from a web form would be appreciated.

Thanks!

Dean

Comments

  • Mike GMike G Posts: 2,702
    edited 2012-03-20 22:00
    On the Spinnerets the Spin language controls PIN I/O. See the Propeller manual for more information.

    In the HTML word a request/response is required to set or read an I/O pin. You must send a request to read a pin. You must send a request to set a pin

    Tutorial - shows how to do it.
    http://spinneret.servebeer.com:5000/

    Example of setting an LED.
    http://www.agaverobotics.com/spinneret/controlpanel.htm
  • deanwesterburgdeanwesterburg Posts: 25
    edited 2012-03-21 08:20
    That's a great example for what I need! Thank you!

    Oddly, some of the links appear to be working now on the page, but some still do not. Is that hosted on a Spinneret? It's almost like there are not enough sockets for how many users may be hitting the site at one time. 4 sockets isnt much, but its still really amazing for the price and size!

    Thanks for writing that great tutorial!
  • Mike GMike G Posts: 2,702
    edited 2012-03-21 13:10
    Yes, the tutorial is running on a Spinneret from a home network. A lot of activity this morning as the the link was also posted on the Propeller forum.
  • deanwesterburgdeanwesterburg Posts: 25
    edited 2012-04-04 07:13
    Uh, I think you intended to post that somewhere else..
Sign In or Register to comment.