Shop OBEX P1 Docs P2 Docs Learn Events
help need GPS and IMU to VGA — Parallax Forums

help need GPS and IMU to VGA

skybotskybot Posts: 14
edited 2009-05-06 05:34 in Propeller 1
Hi all experts,
I want to make a UAV helicopter.
The first step that I want to do is that GPS and IMU·values to present·on the monitor.
However, I·don't know·how·to·define pins in the spin code and process the signal.
I am a new to program on the hardware but if I see some base code, I can jump start quickly. ·Sorry for my English. English is not my native language.
·
This is what I have.
Propeller proto board
IMU 5 Degrees of Freedom from sparkfun
20 Channel EM-406A SiRF III Receiver from sparkfun
·
Please help me to jump start.·

Comments

  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-30 01:35
    Skybot - you can start with the GPS objects shown in the Object Exchange. You can first read the Propeller Manual and then load those objects and dissect those objects to learn more details about the Propeller. From there you can try and code you your IMU or find one in the exchange or forum. I know there are couple people working on Propeller related drones and flying machines. Here is a thread that you can read through: http://forums.parallax.com/showthread.php?p=795698

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-30 05:38
    Here is an autopilot I am working on. It is pretty much self documented. Used sparkfun's 6DOF and GPS unit and a barometic unit, compass hm55b an R/C radio on 72 Mhz. XBee module to get the data to the ground station. A prop proto board, an R/C Tx on 72 mhz. You may want to follow this forum as ws have come a long ways.
    The secret is 6DOF sensor , gps, ground ststion and an UNBREAKABDE platform...Foomies are good for that, but I use a quadracopter.
    Been working on this 14-16 hrs a day for 3 months nor...getting close.
    BTW I am a RETIRED eng who got board after a few years of retirement.

    here is the latest version....tell me if you like it.
    Earl......be glad to help
  • skybotskybot Posts: 14
    edited 2009-04-30 12:59
    Hi, Timothy D. Swieter·and Ole Man Earl.
    Thank you so much for help.
    I am going to try AutoPilotProp code tonight.
    Ole Man Earl, before I try your code, I have a question. How can I test it individual objects. Something like put·only data from GPS on the TV screen and next step would be 5DOF. I want to display one by one. Could you help how to·display one objects?·I want to·display individual data and then, combine·all objects and display them together.
    Please help me. I·truly appreciate your help.·
    Thank you again.
    ··········· AutoPilotProp20.spin
    ·············
    ············· ├──Clock.spin
    ·············
    ············· ├──tv_text.spin
    ················
    ················ └──TV.spin
    ·············
    ············· ├──BS2_Functions.spin
    ·············
    ············· ├──GPS_IO_mini_PNAV.spin
    ················
    ················ └──FullDuplexSerial_mini.spin
    ·············
    ············· ├──FullDuplexSerial_mini.spin
    ·············
    ············· ├──i2c_Accl_Data_Read.spin
    ················
    ················ └──eci2c.spin
    ·············
    ············· ├──eci2c.spin
    ·············
    ············· ├──Ping.spin
    ·············
    ············· ├──Sensor.HM55B.Compass.spin
    ·············
    ············· ├──EC_i2c_readbaro.spin
    ················
    ················ └──eci2c.spin
    ·············
    ············· ├──XBee_Object.spin
    ················
    ················ └──FullDuplexSerial.spin
    ·············
    ············· ├──FullDuplexSerialPlus.spin
    ·············
    ············· ├──FullDuplexSerialPlusDOF.spin
    ·············
    ············· └──6DOFbinary.spin
    ··················
    ·················· ├──Clock.spin
    ··················
    ·················· ├──tv_text.spin
    ·····················
    ····················· └──TV.spin
    ··················
    ·················· └──FullDuplexSerialPlusDOF.spin
    ·
  • simonlsimonl Posts: 866
    edited 2009-04-30 13:42
    @skybot: Welcome! You'll find lots of help on this forum, and several people attempting UAVs.

    However, I'd suggest you at least follow the tutorials in the manual, or the Propeller Education Labs BEFORE attempting a UAV - remember, flying robots can KILL!

    Once you understand the basics, I'd suggest you take a look at Jason Wood's Kalman Filter object - in his thread at http://forums.parallax.com/showthread.php?p=696561. This was written for the Sparkfun 5DOF IMU that you have - unlike Ole Man Earl's AutoPilot, which is based of the 6DOF IMU wink.gif

    I'm not certain about Ole Man Earl's code, but it's probable that it'll run just fine with only the GPS connected, but won't display anything meaningful for the IMU stuff, give it a try...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    “Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
  • skybotskybot Posts: 14
    edited 2009-05-04 14:01
    hi Ole Man Earl,
    Could you help to connect pins( RCA jack break out)?
    There are 3 Pins (BRK, SPR, BRL) which one is ground and which pin goes to prop_pin?
    Thank you.

    08826-03-L.jpg

    [url=:window.close();][/url]
  • W9GFOW9GFO Posts: 4,010
    edited 2009-05-04 19:41
    skybot said...
    hi Ole Man Earl,
    Could you help to connect pins( RCA jack break out)?
    There are 3 Pins (BRK, SPR, BRL) which one is ground and which pin goes to prop_pin?

    Here is a picture (hope it's ok to post) and a link to the Propeller demo board schematic. At the bottom middle it shows how to hook up the RCA jack for TV. You need three contiguous pins, the first, the base pin, should be divisible by 4. eg, pin 12 or pin 16 etc...

    attachment.php?attachmentid=60641

    www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropDemoDschem.pdf

    Rich H
    335 x 514 - 67K
    TV.jpg 67.5K
  • FrameShift.FrameShift. Posts: 35
    edited 2009-05-04 21:11
    skybot said...

    Could you help to connect pins( RCA jack break out)?
    There are 3 Pins (BRK, SPR, BRL) which one is ground and which pin goes to prop_pin?

    Looks like BRK is ground and BRL is the barrel pin that connects to the prop.

    Do you have a multimeter? you could test continuity.
  • SRLMSRLM Posts: 5,045
    edited 2009-05-04 21:57
    W9GFO said...
    You need three contiguous pins, the first, the base pin, should be divisible by 4. eg, pin 12 or pin 16 etc...

    Thanks for that! I was trying to get some video yesterday, but it wasn't working (even though it had worked before!). I just looked, and sure enough my base pin is 23. I was debating about the worthiness of a thread on that topic...
  • skybotskybot Posts: 14
    edited 2009-05-04 22:30
    Thank you all.

    where should I connect SPR pin?
  • FrameShift.FrameShift. Posts: 35
    edited 2009-05-04 22:44
    Looks like SPR connects to the other big hole opposite BRK.. i would think they are both tied together for ground.. a multimeter would confirm though.

    Post Edited (FrameShift.) : 5/4/2009 11:08:18 PM GMT
  • hover1hover1 Posts: 1,929
    edited 2009-05-04 22:55
    FrameShift. said...
    Looks like SPR connects to the other big whole opposite BRK.. i would think they are both tied together for ground.. a multimeter would confirm though.
    Looks like Sparkfun:

    http://www.sparkfun.com/datasheets/BreakoutBoards/rcajack_breakout-v10sch.pdf

    Along with:

    http://www.sparkfun.com/datasheets/Prototyping/Connectors/RCA-Jack.pdf

    Jim
  • skybotskybot Posts: 14
    edited 2009-05-06 05:34
    Hi Guys,
    I need some more help.
    I modified Earl's code. I found his code in the forums.
    I tried to get it work but I have some problem. I use· Propeller Demo Board to test the code.··· Propeller Demo Board has only 8pins are available. So I used pin 1 and pin 2 for gps and output data thru TV. It displays only initial· screen. I cannot display gps data.
    Please help me out.
Sign In or Register to comment.