Shop OBEX P1 Docs P2 Docs Learn Events
Propellar Auto Pilot status — Parallax Forums

Propellar Auto Pilot status

Old man EarlOld man Earl Posts: 46
edited 2009-05-09 04:47 in General Discussion
I'll start a new thread on the prop autopilot using the wii nunchuck guts.
Here is a pic of the output on a LCD tv screen

We now have a 3 axis accelerometer from a wii nunchuck $15

altitude (up to 10 feet) via a prop 'ping' module from parallax (for landing) $29

a 5 Hz GPS module from sparkfun $59
http://www.sparkfun.com/commerce/product_info.php?products_id=8975

The barometer module is $39 from here
http://www.quadroufo.com/product_info.php?cPath=1_4&products_id=41&osCsid=2910ac278a02c18b5d485093ae6d2f45

Gonna add the compass Hitachi HM55B Compass Module from Parallax $29
http://www.parallax.com/Store/Sensors/CompassGPS/tabid/173/CategoryID/48/List/0/Level/a/ProductID/98/Default.aspx?SortField=ProductName,ProductName

and the barometer module for altitude in software soon.

Code below as of 3/30/09

Post Edited (Old man Earl) : 3/31/2009 6:46:20 AM GMT
«1

Comments

  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-01 01:56
    Here is the latest with the compas module working.
    Now for the barometer !
    There is still a lot of work like relaying all the data to the ground, acting upon it, and using the rc tx to send new data!
    Earl

    Post Edited (Old man Earl) : 4/1/2009 2:02:37 AM GMT
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-01 04:17
    Here is some pics of the test hardware YEA, thats a karoke machine im using for a tv display. When i am stuck, i put on some tunes and belt it out ! my stress reliever !!
    Here is some pics of the test hardware YEA, thats a karoke machine im using for a tv display. When i am stuck, i put on some tunes and belt it out ! my stress reliever !!
    You should see the 'ping' device, a 32 ch. GPS 5 hz ,Nunchuck guts,compas,and the baromiter/temp/altituder,tv out, 8 ch 72mhz synth rc rx sd 2g card, rc TX in background and my scope!
    Earl

    Post Edited (Old man Earl) : 4/1/2009 4:37:06 AM GMT
    1197 x 1108 - 267K
    1294 x 1200 - 354K
    1142 x 1256 - 327K
    1142 x 1256 - 327K
    1600 x 1200 - 373K
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-01 06:00
    Earl -

    This is way cool! I will keep watching the thread. Also, I have a 3.0" LCD TV display you could buy from Brilldea and make a portable display with it. I am also considering adding that very same GPS module to our store. I have communicated with the supplier and I have two on my desk that I am testing now. It is a nice module!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-04-01 14:18
    Earl,

    What flying platform are you developing for?· Is it an RC Helicopter?· It seems like you will need some way to monitor the orientation of the aircraft.· If it's not moving the accelarometer can be used as a tilt meter, but you will get ambiguous results if the aircraft is accelarating.· You would need to add a 3D gyro to determine if the aircraft is rotating.

    I'm working on a "hovering" rocket platform.· I have done a few flights using a 2D gyro chip to keep it vertical.· I plan on adding an accelarometer so I can determine it's altitude and fire retro-rockets at the correct time.

    Dave
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-01 14:25
    I have all the stuff for a quadrocopter. Been working on the software so the hardware will have to wait. Yea, I have to put the gyros in yet. Waiting on the breakout board. Well, its time for me to go to the coffee shop this AM. Morning ritual here !
    I hope when I get the software to the point I can read all the sensors, someone will help on the flight controller stuff. Right now the baro i2c is eluding my efforts to read the data, tho I can see it at the proper i2c address. I need to study more on the i2c communications. When your 63, the ole brain don't work as good as it used to ! CUL
    Earl
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-02 05:30
    Think the barometer is working....

    here is tv pics and new code..
    Earl
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-03 06:37
    Here is the test code for the smd500 i2c barometer module. It does seem to work by I still need help on this...
    Earl
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-04 03:37
    Tonight I was able to read the SMD200 baro modules Temp or Pressure ! I will post the code in the obj's when I clean it up. Now to add it to the autopilot !!
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-05 09:13
    Here is the code for the SMD500 Temp/Pressure Module in spin code !
    Earl

    I guess I should put this in the Obj section

    Post Edited (Old man Earl) : 4/5/2009 9:22:31 AM GMT
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-05 09:37
    Here is the start of the quad..
    1200 x 1127 - 320K
    1200 x 979 - 241K
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-05 13:54
    Would it be better (more stable) to have the electronics and batteries hang down a little more - lower the center of gravity?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • Old man EarlOld man Earl Posts: 46
    edited 2009-04-05 19:39
    Well I am kinda stuck converting mmHg from the module to altitude in feet in spin programming. Can anyone help here. This is the formula... I know it works, because on my daughters calculator the answer comes out correct.
    here is the formula

    altitudeF :=((1-(mmHg*1.333224/1013.25)^0.190284)*145366.45)

    The module reports 604 mmHg in variable mmHg. How to convert in spin using 32 bit math routines ???? Want result in variable altitudeF word.

    I also have the temp in F or C from the module to compensate for temp.

    Thanks , Earl

    My code to look at...

    Post Edited (Old man Earl) : 4/5/2009 7:48:58 PM GMT
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-04-05 23:36
    Ewww, that forumula doesn't look too bad - except for that ugly exponent. I'm not sure spin can do that sort of math, but I could be wrong. If it can't, you could always linearize the function into some sort of lookup table of sorts.

    I've always been curious how you can get a reliable reading from air pressue. The pressure changes as a storm moves in/out. I'm guessing you have to caliberate upon take off? But then, the pressure changes while you're up there - not because of altitude, but because of weather changes. Just curious...
  • BradCBradC Posts: 2,601
    edited 2009-04-06 08:39
    Philldapill said...

    I've always been curious how you can get a reliable reading from air pressue. The pressure changes as a storm moves in/out. I'm guessing you have to caliberate upon take off? But then, the pressure changes while you're up there - not because of altitude, but because of weather changes. Just curious...

    In my experience if the pressure changes that quickly you have far more to worry about than the potential loss of a flying model!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • Dave HeinDave Hein Posts: 6,347
    edited 2009-04-06 15:45
    Earl,

    You can compute the expression using 32-bit fixed point values with logs and anti-logs.· The expression would look like the following:

    ·· altitudeF := ((10000 - aLog2(Log2(10000) + ((Log2(mmHg) - Log2(760)) * 1903)/10000)) * 145366) / 10000

    The floating point values are scaled up by a factor of 10,000 in this expression.

    I·have never used the propeller, but I know it has log and anti-log tables.· According to the propeller manual the tables are scaled·up by 16 bits.· I wrote a C program to simulate this.· It is attached below.··With a value of 604 for mmHg I got a result of 6218.02 using floating point·math, and a value of 6221 using fixed point.

    Dave
    c
    c
    817B
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-08 01:12
    Tim, the motors and props are on the floor, not mounted yet ! Yes, you are right. The pic just shows on of a couple ideas I have on the final configuration.
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-08 22:06
    Here is the latest pictures of the tv readout and the prop board and sensors...
    564 x 480 - 72K
    573 x 480 - 87K
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-10 00:16
    Picture of the day....

    If you guys get tired of me posting the progress......... let me know !

    The XBee stuff is not in ...yet
    Will get it next week.. Got in on the $99 development deal !

    Post Edited (Ole Man Earl) : 4/10/2009 12:24:23 AM GMT
    632 x 480 - 99K
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-10 00:34
    It is great to see the progress, keep it coming Earl. With the Xbee are you going to send the data from the on-board to the off-board and have the display on the off-board?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-10 00:50
    Thinking of a Ground Station to process the sensor data and send it back to the UAV.
    Maybe have 5 modes

    Mode 1 = RC only
    Mode 2 = RC with onboard stabilation
    Mode 3 = Return to base for any number of reasons ....Battery low, XBee not recieving, etc
    Mode 4 = Go To a way point
    Mode 5 = Follow a course...
    Mode 999 = Find Osama Bin Laden and take him out ..... (takes extra batteries !)

    Once you have the sensors, prop, video, xbee, gps, and the hardware stuff...its all a matter of what you wanna do...

    Beside the UAV sending the XBee data it will also send a video overlay from the camera. Maybe 2 video transmitters, one for the AP screen and one for the live video. What do you think ?
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-10 00:56
    For flight operations I think the sensor data will stay on-board. You will really need a fast update rate of data and data processing to keep the flight control good. However for things like navigation to way-points or target tracking (look out Osama!) then you can use the topology of an on-board system and a ground station system.

    Keep taking the baby steps and I think the best system will be built up. Time and experience will tell if you need all some, or even more equipment.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-10 01:06
    Sensors or functions or interfaces that work now...

    1. GPS - 5Hz model
    2. Compass - Parallax H55B i2c
    3. Accelerometers - Wii Nunchuck Knockoff
    4. Barometric pressure module i2c
    5. Ping sensor - Parallax
    6. RC Receiver - Synthesized 72 Mhz ModelRP8D1
    7. Servo Output from prop board
    8. i2c to compass and Barometric pressure module
    9. Auto pilot video screen

    Ya, I think we have come a ways...still a lot to do....
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-10 01:13
    The trick is using the fewest cogs with the above items. How many cogs do you have going right now?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-04-10 01:25
    Bah! Who needs to be stingy with cogs when the Prop is only $8 now? [noparse];)[/noparse]

    I'm only kidding. It seems that with more powerful processors, programmers have gotten lazy. I wasn't around waaay back in the day, but looking back, I'm amazed that you could run something like windows on a 386. Granted, alot of people have pulled off some amazing things with the propeller, so I'm not knocking you guys at all.

    You're totally right, Timothy, but man... $1 a cog? I know it's nearly 10 days later, but I'm still blown away at the price...
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-10 01:32
    I agree the new price is amazing and helpful to me in several upcoming projects. I don't want laziness to creap in either. Some designs are good as multiple propeller designs, other designs should be kept in one propeller when possible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-10 05:09
    In my barn I have a Mits Altair 8080 I bought new in 1974. The serial # is 000026 !!!
    It had 1 K of ram. LED's and Switches on the front panel were all ya had.
    Told ya I was an OLD dude !
    Can hardly wait for prop II

    Post Edited (Ole Man Earl) : 4/10/2009 5:15:35 AM GMT
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-14 01:07
    Latest pics and spin code with all but XB and gyro data working.

    Most sensors working:
    HM55B Compass
    Baro and Temp Module i2c
    Wii ACCL i2c module
    GPS Module
    Ping Module
    72 Mhz RX R/C Module
    Servos

    To get working:
    XB module
    Gyros

    THEN....the ground station software:
    This will rx data via XB and display on laptop screen.
    A way to set waypoints.
    A command to return to home
    Set home position

    and LOTS of other stuff... now needing prop II !!!

    Post Edited (Ole Man Earl) : 4/14/2009 1:49:03 AM GMT
  • mikedivmikediv Posts: 825
    edited 2009-04-14 17:51
    OME this is awesome I wish I found this sooner , I have been building a quad hovercraft myself and planned on controlling it from the ground with the ping sensor and some IR stuff I want it to be completely controlled from the ground computer no hand RC unit
    Please keep the info coming .. Old Man Earl can I ask are you going to put together some schematics??? and a parts list.. I can not tell from the photos if you have 4 independent motors or one main motor to control all 4 propellers?
    Also can you tell us where you purchased the Gyros and Baro?
    Very nice project.
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-14 19:55
    Sure, I will draw some schematics and put together a parts list. But today I am heading out to the Sparkfun.com robot completion in Bolder Co. That's an 8 hour drive for me... See ya all soon...
    Be back on the 16 th
    Oh, 4 separate moters with 4 ESC's Electronic speed controllers , they run off the rc rx signals sent by the laptop.
  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-04-16 02:08
    Typing this on my iPod in Bolder Co having a GREAT time at Sparkfun robot competion! Got my 6 axis dof today can't wait to get home!
    earl
Sign In or Register to comment.