+ Reply to Thread
Results 1 to 8 of 8

Thread: Spinneret (Internet) controlled FM radio

  1. #1

    Default Spinneret (Internet) controlled FM radio

    I thought I would combine two fun Parallax offerings into a single project.

    * Spinneret and FM Radio module.

    The goal here is to have an FM radio which can be controlled from my android phone both across the room and across the world. The hardware for this project is easy, and I'll post software as we go along to help others replicate the project. See message two for project videos.

    About the code:

    I'm using Mike G's contest winning webserver software as the basis for this project. I've also lifted the control object from the FM Radio spin demo, and placed some of the commands into the Spinneret webserver.

    Here's some of the important bits in the webserver code.

    Start by configuring lines 14,15, and 16 to match your network settings...

    The control page is located at http://WWW.IP.OR.NAME/hello.html

    If you want to change the name, simply change line 670
    Code:
      if(strcomp(Request.GetName(id), string("hello")))

    Around line 730 is the code which creates the button controls. More controls could easily be added.
    Code:
    StringSend(id, string("<form>",13,10))
    StringSend(id, string("<BR><BR>Oldbitcollector's Spinneret Controlradiocontrol Radio<BR><BR>",13,10)) 
    StringSend(id, string("<button type=submit name=radiocontrol value=1>ON</button> &nbsp;&nbsp;&nbsp;",13,10)) 
    StringSend(id, string("<button type=submit name=radiocontrol value=0>OFF</BUTTON> <BR><BR> ",13,10)) 
    StringSend(id, string("<button type=submit value=2 name=radiocontrol>VOLUME UP</button> &nbsp;&nbsp;&nbsp;",13,10)) 
    StringSend(id, string("<button type=submit value=3 name=radiocontrol>VOLUME DOWN</BUTTON> <BR><BR>",13,10)) 
    StringSend(id, string("<button type=submit value=4 name=radiocontrol>SEARCH</button> ",13,10)) 
    StringSend(id, string("</form>",13,10))
    Around Line 700 is where I'm processing the returned data. I'm cheating a bit by examining only portion of the returned data. I've added some Parallax Serial Terminal code so that you can extend the cheat a bit by adding buttons, monitoring the terminal, then added the detected codes. I'm sure there is an elegant way to do this, but this hack works.

    Code:
      pst.str(string("Cheap Input Detection:"))
      pst.dec(radiocontrol)
      pst.newline
      
      if radiocontrol == 92 or radiocontrol == 208
          pst.str(string("OFF"))
          outa[23]:=0
          FM.PowerOff





    OBC
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	hardware.JPG‎
Views:	581
Size:	51.0 KB
ID:	85304  
    Attached Files Attached Files
    Last edited by Oldbitcollector (Jeff); 09-25-2011 at 02:26 AM.
    Visit PROPELLERPOWERED.COM -:- Over 160 items in stock for Propeller enthusiasts.
    After you are done here, wander over to our friendly forums.
    Projects, not Platforms -:- Follow me on Twitter.

  2. #2

    Default Re: Spinneret (Internet) controlled FM radio

    Initial Video




    I've got some software working! As soon as I clean up the code a bit I'll post it.

    Had some trouble getting signal today in my office, but you can see it working.




    Another video of it actually getting signal.



    OBC
    Last edited by Oldbitcollector (Jeff); 09-25-2011 at 02:13 AM.
    Visit PROPELLERPOWERED.COM -:- Over 160 items in stock for Propeller enthusiasts.
    After you are done here, wander over to our friendly forums.
    Projects, not Platforms -:- Follow me on Twitter.

  3. #3

    Default Re: Spinneret (Internet) controlled FM radio

    across the room and across the world.
    Cool!! I know how annoying it is when somebody changes the radio station every time I fly to Australia!!!
    MOV OUTA, PEACE

    ... Rick


    "Forth is FUN!"

    Introduction to TACHYON Forth


    PropFORTH Wiki

  4. #4

    Default Re: Spinneret (Internet) controlled FM radio

    That's a cool project Jeff. It would've won if it was entered into the Spinneret Contest and it would be perfect for a contest for the FM module. The bummer thing is there is no contest for the FM module and the Spinneret contest is done too. One, thing I can say is late contest entries win something.

    Keep up the good work. You may have another Pandroa. But, yours can be called OBC Radio.
    William Stefan
    The Basic Stamp Nut with some Spin

  5. #5

    Default Re: Spinneret (Internet) controlled FM radio

    More progress...

    Added additional demo videos to the thread. (See message 2)

    Added code and code notes for others who might want to replicate or jump off this project.

    Set project as completed, but I'll likely post a revision of the code which doesn't use the "cheat".

    OBC
    Last edited by Oldbitcollector (Jeff); 09-25-2011 at 02:25 AM.
    Visit PROPELLERPOWERED.COM -:- Over 160 items in stock for Propeller enthusiasts.
    After you are done here, wander over to our friendly forums.
    Projects, not Platforms -:- Follow me on Twitter.

  6. #6

    Default Re: Spinneret (Internet) controlled FM radio

    Cool project, thanks for posting.

  7. #7
    PJ Allen's Avatar
    Location
    Outer Darkness! Charon-Quaoar-Sedna Circuit
    Posts
    4,745
    Blog Entries
    1

    Default Re: Spinneret (Internet) controlled FM radio

    Somebody's getting the word out --
    http://hackaday.com/2011/09/26/over-...ernet-control/

    PE -- 3 Cheers... Hurrah, Hurrah, Hurrah!
    Last edited by PJ Allen; 09-27-2011 at 12:10 AM.

  8. #8

    Default Re: Spinneret (Internet) controlled FM radio

    Thanks for the heads up, PJ!

    WTG JEFF!!
    Infernal Machine

+ Reply to Thread

Similar Threads

  1. Connecting your Spinneret to the Internet: HOWTO - Comments Requested
    By Oldbitcollector (Jeff) in forum Spinneret Web Server
    Replies: 2
    Last Post: 06-30-2011, 02:47 PM
  2. Jameco ADs on local INTERNET radio!
    By $WMc% in forum General Discussion
    Replies: 3
    Last Post: 12-31-2010, 02:22 PM
  3. Replies: 14
    Last Post: 09-05-2007, 02:55 AM
  4. Internet Controlled Bot
    By HavoKane in forum Robotics
    Replies: 9
    Last Post: 06-11-2007, 06:25 AM
  5. internet controlled basic stamp?
    By Archiver in forum BASIC Stamps Archive
    Replies: 6
    Last Post: 03-26-2004, 09:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts