Shop OBEX P1 Docs P2 Docs Learn Events
AJAX Spinneret LED Demo and IP Camera — Parallax Forums

AJAX Spinneret LED Demo and IP Camera

Mike GMike G Posts: 2,702
edited 2011-08-21 15:10 in Accessories
This works in Firefox. IE does not like cross domain scripts. Not sure about other browsers. Anyway, here’s the page. http://www.agaverobotics.com/spinneret/controlpanel.htm

You might need to install the camera software if prompted.

If the LED radio buttons don’t work because you’re browser squawks, then open the URL below as well. Then you can hit the Spinneret directly and watch the video.

http://spinneret.servebeer.com:5000/

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2011-01-08 14:03
    Mike,

    I can see the video loud and clear, and I click on the LED on/off but don't see anything happen.
  • Mike GMike G Posts: 2,702
    edited 2011-01-08 14:26
    I don't know if it that was you Beau but the LED flashed on and off a bunch of times in the last 5 minutes. What OS and Browser so I can look you up in the log.
  • Mike GMike G Posts: 2,702
    edited 2011-01-08 14:56
    Well, Opera does not work but Chrome and Firefox seems to be okay. Looks like I'll have to create a service to get the http request for IE and Opera. If you see "Not sure!" no matter what you select On/Off. then the browser does not like cross domain script calls.
  • jazzedjazzed Posts: 11,803
    edited 2011-01-08 15:49
    Cool. Worked fine for me. Bohnam would be proud if you played some tracks.
  • Mike GMike G Posts: 2,702
    edited 2011-01-08 16:06
    Had my axe out the whole time. Hey Hey what can I say... lol
  • Roy ElthamRoy Eltham Posts: 2,996
    edited 2011-01-08 16:35
    The LED that toggles is right next to other LEDs that are toggling too.. you have to look a little closer to see the one that you are controlling.
  • Mike GMike G Posts: 2,702
    edited 2011-03-12 09:38
    Well, I finally got off my butt wrote an Ajax handler for IE and the other browsers that complain about cross domain scripts. So... when you click the LED On/Off radio buttons the message that comes back is from the Spinneret.
    http://www.agaverobotics.com/spinneret/controlpanel.htm
  • $WMc%$WMc% Posts: 1,884
    edited 2011-03-12 20:18
    Mike G wrote: »
    Well, I finally got off my butt wrote an Ajax handler for IE and the other browsers that complain about cross domain scripts. So... when you click the LED On/Off radio buttons the message that comes back is from the Spinneret.
    http://www.agaverobotics.com/spinneret/controlpanel.htm
    '
    It works
    '
    Great work Mike G
    '
    Below is LED "on" and the next is LED "off"
    1024 x 771 - 75K
    1024 x 771 - 74K
  • LtechLtech Posts: 366
    edited 2011-03-13 07:12
    Great ! works G5 powerpc mac and Safari 5.04

    Perhaps put some black in top of other leds, or take a closeup of the orage led ...
  • michaelmonsomichaelmonso Posts: 19
    edited 2011-08-21 13:21
    how would i go about having the spinneret toggle the led on once for say 3 seconds then shut off.im trying to interface my spinneret with my automatic gate via the maunal push button controlls. using the demo code that would light an led and a relay it toggles the open button on my gate fine but i have to click off on the web server so it doesnt think im at the gate holding the button down. i need to do this for an open gate button close gate button and a lock gate at current position button for my web server. I only just got my spinneret and dont know what im doing or how to code it to say when button is pressed do action and then stop
  • Mike GMike G Posts: 2,702
    edited 2011-08-21 15:10
    Welcome to the forum.

    Start by reading this
    http://spinneret.servebeer.com:5000/
    how would i go about having the spinneret toggle the led on once for say 3 seconds then shut off
    The waitcnt command stops COG execution for some duration.
    Pause(3000)
    ...
    PRI Pause(Duration)  
      waitcnt(((clkfreq / 1_000 * Duration - 3932) #> 381) + cnt)
      return
    

    A detailed explanation of waitcnt can be found in the Propeller Manual on page 218. Open the Propeller Tool -> Click Help -> Select the Propeller Manual (pdf).
    I only just got my spinneret and dont know what im doing or how to code it to say when button is pressed do action and then stop
    See the PushbuttonLedTest.spin example in the Propeller Education Kit page 33. Open the Propeller Tool -> Click Help -> Select the Propeller Education Kit (pdf).

    If you are still having problems, please post your source code, schematic, and a detailed problem description in a new thread.
Sign In or Register to comment.