GPS
Porting an NMEA GPS Parser to an ATMega128
04/06/10 20:45
Just posted an article on porting my Ragel-based
NMEA GPS parser to an AVR ATMega128.
See “Porting a Ragel GPS NMEA Parser to AVR ATMega128”
See “Porting a Ragel GPS NMEA Parser to AVR ATMega128”
Falcom FSA03 GPS Breakout
10/27/09 08:33
News Summary: ESawdust just released a
breakout board for the Falcom FSA03 GPS
module.
The FSA03 is a surface mounted device with no mounting holes. We loved the module but needed an easy way to work with it, evaluate it, and mount it in our enclosures. So, we made the FSA03 Breakout board for that purpose.
It’s now available in assembled or bare versions.
The FSA03 is a surface mounted device with no mounting holes. We loved the module but needed an easy way to work with it, evaluate it, and mount it in our enclosures. So, we made the FSA03 Breakout board for that purpose.
It’s now available in assembled or bare versions.
The Great Pumpkin Launch - 2009
09/26/09 07:40
Remember when you were a kid and your buddy built
the pole vaulting pit in his backyard? Except his
was a special pole-vaulting pit. Instead of the
traditional run-and-jump-with-a-pole technique, you
bail out of a tree, hook the zip line, zing across
the yard, drop onto the teeter-totter and launch
your friend’s cat over the fence. Ya, that’s what
made it special!
Well, Jon Dory is that neighborhood kid your parents warned you about, except now he has bigger toys and a lot more stubble.
Jon Dory
How the Great Pumpkin Launch Came to Be
I met Jon through the climbing community in Colorado. His son, Ian, and my oldest daughter, Chauncenia, are roughly the same ages and so they climb at many of the same events and it was just a matter of time before we crossed paths. I got to know Jon at the youth climbing nationals event in SLC when I did the speed climbing timing system for the event.
Jon’s an engineer at HP and, it just so happens, built a life-size trebuchet and launches pumpkins with it near Ft. Collins, CO. How many of your friends can you say that about? I have a cool buddy, no doubt! (But that’s not all...he also has a corn cannon and a corn maze - check him out.)
A few months ago, Sparkfun, another cool buddy in corporate form, launched one of their products, an accelerometer, in a model rocket to measure G forces (ostensibly.) I suspect it was actually more about drinking beer and playing with explosive charges during work hours, but my judgement is probably severely clouded by the thought of drinking beer and playing with explosives during work hours.
I put 2 and 2 together and saw it was time for Nathan Siedle, CEO of Sparkfun, Pete Dokter, Sparkfun EE extraordinaire, creator of the accelerometer logger for Sparkfun, and Jon Dory to meet. It was high time to launch high-tech instruments using medieval siege engines. That’s precisely how it came to be: The Great Pumpkin Launch we did this past weekend.
Since I brokered the ensuing carnage, I figured I ought to make an entry into the event also. Sparkfun was bringing an 18g accelerometer, Nathan, Pete, and their videographer, Christopher Rojas. I wanted to try a different technical twist and built a wireless Pumpkin-GPS and brought my ground crew (kids.)
The Weapon
This is Jon’s 4th trebuchet (he says 3.5, because he started, but didn’t finish one). Each one got progressively larger just as big-boy toys, especially weapons, have a tendency to do.
This fearsome machine can launch a 12 lb pumpkin 350 to 400 feet and a long ways up in the air - probably 8 seconds of hang-time. (Videos later in the article.)
The Pumpkin GPS
In a nutshell the Pumpkin-GPS consisted of a Sparkfun Venus GPS breakout board with its UART tied directly to an XBee 900 Pro so that it can send telemetry data back to a ground station and we could track its flight (ostensibly for later reconstruction - ahem - of the ultimate splat).
Unlike the Mars rovers, our instruments didn’t get a nice, cushy air-bag landing in martian gravity (0.38 of earth’s.) An average farm pumpkin and a Chameleon 1 enclosure were all we had to protect our valuable electronics from the near ballistic reentry after the trebuchet launch.
My goals and questions in putting this device together were:
1) Crash test the Chameleon 1 enclosure and see how well it would hold up and how well it would protect the electronics (also what G forces it absorbed.)
2) Find out if the XBee 900’s could keep a signal associated in-flight to the ground station while the pumpkin was rotating in-flight. I hypothesized it would be like a satellite spinning out of control.
3) Find out if the GPS could maintain a lock and produce good data in-flight (again, a nasty high frequency rotation factor.)
Here are the guts of the pumpkin GPS on the workbench - just a Sparkfun Venus GPS UART strapped (bi-dir) to the XBEE 900 Pro UART with a lipo batery mounted on a Chameleon 1 baseplate and an LED on GPS transmit line. Very simple set up. (I went with the 2nd version - a thin, light silver 2000mAh lipo below.) The battery was velcro’d in place on the bottom. The electronics were soldered on perfboards to make them easy to mount securely with 4-40 hardware.

A couple of holes drilled into a blank Chameleon faceplate for antennas and LED and soon, I had a bomb-proof enclosure.
With the Venus GPS viewing software I could talk to and configure the GPS over the XBee link. I set it for a 5 Hz update rate - the GPS and the XBee 900 ran at 38,400 baud for these games (I mean tests.)
The Launch Vehicle
To prep the expendable launch vehicle, I carved a slot in the pumpkin and slid the Pumpkin GPS into the slot:

Below, Jon Dory inspected my work and gave it the “Go Flight!”
My ground control crew was positioned about 200 feet down-range and to the side - this is my 10 year-old son, Nakoa, who kept me apprised by two-way radio of the NMEA RF stream coming out of the Pumpkin GPS. He would say things like “Data looks clean, Dad.” (Our next gen Chris Kraft?)
The Launch
You really have no idea how powerful this trebuchet is unless you watch it in action. Without further ado, here’s a video including some slo-mo of the pumpkin launches with our goods in them:
The Release
The release stage, where the trebuchet finally lets the pumpkin fly free, baffled me to no end until I saw it in action and asked Jon to explain the mechanics. First, the pumpkin goes in a sling and two ropes attach to either side of the canvas pouch, but one end of the rope has a ring on it which slides over a rod on the end of the arm. Here’s a shot of the black, adjustable rod mechanism on the end of the arm (as well as the red trigger used for launch):
As the launch begins, the pumpkin is hurled backwards and outwards and pins the pumpkin against the sling and taut rope. The rope-ring and the rod-arm form a substantial angle which results in a normal force between the ring and rod and holds the rope and sling David and Goliath style.
At some point, David has to let go of one end of the sling - the release.
At the top point in the arc, as the pumpkin is coming around, the ring-end of the sling rope comes off the rod when the normal forces of the ring against the rod on the end of the arm go to near zero. At that point, the ring slides off the rod and the pumpkin will release more-or-less at the top of the arc.
Jon’s got a turnbuckle mechanism which you can see on the arm in the photo above to adjust the rod angle and therefore the release point - it works by changing the amount of normal force of the ring on the end of the sling’s ropes at the top of the arc. Depending upon how the rod angle is adjusted, he can control the release to be early or late and throw a pumpkin really high or like a line-drive through the corn field.
It’s an ingenious piece of mechanical engineering. In the images below, you can see the release sequence which I think is fascinating. In these pictures, the forward direction is to the right.
In this first shot, the arm is near the top of its swing, but the pumpkin is still hurling on the back-side of the arc. Both sling lines are still attached and the pumpkin is firmly in the pouch:
As the pumpkin is nearing the top of the arc, the sling line ring is approaching 0 normal force and ring is about to slide off the rod:
If you look closely at the next shot, the ring on one of the sling ropes has just slipped loose from the rod and the full release has begun:
The release at full extension - you can see one side of the sling totally opened up and the pumpkin is flying:
Results
In one sense, it was “mission accomplished” on all 3 counts. We did find out the answers to these questions. Question #1 (crash test) and #2 (RF signal) were positive outcomes and I was pleased with the results. Goal 3 - not so much. Oh well, you win some and lose some.
We did three launches total. One each with the Pumpkin GPS and accelerometer. One combined GPS/accelerometer flight.
In the first launch of the Pumpkin GPS, the electronics survived and still had a red blinking light. The device was coated with pumpkin mush and it landed with its 900 MHz antenna and faceplate down in the ground. So, we lost RF signal on impact. As soon as I lifted it out of the dirt and mush, we got signal again to the base-station. The middle of the lid was dented on one end and dented the faceplate edge somewhat, but the enclosure was basically intact and electronics were obviously still working - we had a blinking LED from the GPS and RF signal back to the ground station. The external GPS antenna was not ripped and the SMA connector miraculously survived impact despite ending up on its faceplate.
Here’s Nathan and Jon inspecting the accelerometer capsule when they recovered it after the first flight - it was ejected from the pumpkin (wasn’t found in the mush.)
Pasted Graphic 2
Before the launch, we were all speculating about what would get destroyed. Nate and Pete thought for sure the velcro’d lipo battery for the GPS would rip loose...I was sure it would not. We were all pretty sure the SMA connector and GPS would be destroyed. When I picked it up after its first flight and saw it was all still running, I shook the box to hear if anything was loose and there was nothing rattling inside - the battery definitely held tight.
With the box intact, I felt compelled to smack-talk Pete - I was proud that my velcro’d battery design and enclosure worked. Pete was a good sport and offered to send me some of his -Rejected- PCB’s as my reward. I’m still looking for some autographed PCB’s in the mail from him. Here’s a shot of Pete in a good mood when his accelerometer data was being downloaded from the device - the look of relief.
I did not open the Pumpkin GPS between launches, but just stuffed it in a second launch vehicle.
By this time, the GPS was horrified with anticipation of a second launch but the freshly picked, fleshy pumpkin had no idea it was about to experience the ride of its life. After the second ride, the Chameleon 1 was a bit more squashed (sorry for the pun, couldn’t help it) and yet still functioning. Still nothing rattling inside after all that.
Even in this condition, the first two goals were met - the electronics survived two huge impacts and we were able to receive good RF from the XBee 900’s during a wild flight.
The 3rd goal, GPS data, was probably unrealistic to begin with. GPS is by its nature a heads-up technology and I did not get good GPS data in this experiment. To say I got squirrelly GPS data is an understatement. This is the Google Earth profile I got on the 2nd flight - south facing:
Needless to say, I consider that basically garbage. To the degree it resembles the nice parabolic arc we observed, well, you’d have to have a wild imagination (and more than a few beers and explosive charges ringing in your ears.) I was able to put together an elevation/distance profile and try to tease out the basic launch data from the NMEA strings and came up with these plots. The fingerprint of the launch and impact are in the plot but the numbers are not correct despite having a good satellite fix.

Regarding Sparkfun’s accelerometer, initially Pete thought the launch was definitely less than 18g’s but that the impact might have pegged it. He sent me these two flight graphs and they came out like this:

Since the accelerometer was not fixed in a specific orientation, probably the best you can make of these is an absolute value G force it withstood in any axis in flight.
[ Accelerometer graphs provided courtesy of Pete Dokter - Sparkfun EE, and designer of the accelerometer ]
What do you get when you fling a pumpkin 100 mph?
Despite the problems I had with the GPS, this was pretty cool finding: if you fling an oblong pumpkin out of a trebuchet at a theoretical 100 mph (Jon did the dynamics and math with a JPL engineer), it will very often spin perfectly on a horizontal axis that’s perpendicular to the line of flight. That was not theoretical - that was how they often flew! Sometimes they would fly like a football spiral. We could not have predicted that! Jon had seen it 100’s of times. I thought maybe they’d come out end over end or wobbly, and sometimes do the more round they are, but often they come out of the sling with a wicked spin John Elway would be proud of.
If you look at a closeup of the accelerometer data from Pete’s acceleration graph, mid-flight it looked like this:

I might be reaching based on this data but looks like the pumpkin was rotating in two dimensions at about 7Hz. Like I said, I might be reaching, but think it’s interesting to see these small periodic waves mid-flight embedded in an overall sine-like wave. Is that vibration or rotation? I’m not sure.
We were able to receive RF data throughout the flight, but found the GPS numbers were sketch....speed and altitude were out of the pale with our visual observations (they were too slow and too low from what the flight looked like.)
If pumpkins fly with their vertical axis horizontal, parallel with the ground, perpendicular to the line of flight, that means the GPS antenna is more or less rotating around the pumpkin’s vertical axis with its antenna plane facing north or south not up towards the sky. The line of flight was west towards the Rocky Mountains.
When I looked at the data, I had a 3D GPS fix and the number of satellites fixed was, on average, at least 8. But the altitude read low even before the start, so I had something wrong with the GPS from the get-go. Instead of 7,000 feet, it was reading about 4900 feet (~1500M). My velocity numbers looked like 14 feet / sec at the max which is speed over ground...obviously, a GPS can’t really measure airspeed through the arc which would have had to be a lot higher. Still 14 ft/sec was way low. One flight was pretty short - maybe 200 ft distance and the other flight was about 350 feet.
Lessons Learned
I should have validated the altitude numbers I was getting from the GPS before the flight, but it was kind of chaotic getting set up....what with carving pumpkins, shooting high pressure corn cob cannons, cranking down monster Trebuchets and all. Next year I’ll try to do better with the numbers. Think it would be really cool to use a gyro next time also. I’d do more ground work on marking specific waypoints of impact to get more accurate ranges.
I hope you enjoyed seeing the Great Pumpkin Launch of 2009. The whole thing was a hoot, but the most fun was combining medieval technology with high-tech instruments in the same event. I think geeks should make this an annual event the world over.
THANKS!
Many thanks to Jon Dory for making such a cool toy and letting us use it. And thanks to Sparkfun for being a willing sport to launch their products in such a zany event.
Next time you’re in the Ft. Collins area and feel the need to lay siege to a pumpkin patch, go checkout “Something From the Farm”, launch some pumpkins and be sure to meet Jon ( jonrdory@gmail.com ) and his crew. Lets do it again next year.
Landon Cox
www.ESawdust.com
Well, Jon Dory is that neighborhood kid your parents warned you about, except now he has bigger toys and a lot more stubble.
Jon Dory
How the Great Pumpkin Launch Came to Be
I met Jon through the climbing community in Colorado. His son, Ian, and my oldest daughter, Chauncenia, are roughly the same ages and so they climb at many of the same events and it was just a matter of time before we crossed paths. I got to know Jon at the youth climbing nationals event in SLC when I did the speed climbing timing system for the event.
Jon’s an engineer at HP and, it just so happens, built a life-size trebuchet and launches pumpkins with it near Ft. Collins, CO. How many of your friends can you say that about? I have a cool buddy, no doubt! (But that’s not all...he also has a corn cannon and a corn maze - check him out.)
A few months ago, Sparkfun, another cool buddy in corporate form, launched one of their products, an accelerometer, in a model rocket to measure G forces (ostensibly.) I suspect it was actually more about drinking beer and playing with explosive charges during work hours, but my judgement is probably severely clouded by the thought of drinking beer and playing with explosives during work hours.
I put 2 and 2 together and saw it was time for Nathan Siedle, CEO of Sparkfun, Pete Dokter, Sparkfun EE extraordinaire, creator of the accelerometer logger for Sparkfun, and Jon Dory to meet. It was high time to launch high-tech instruments using medieval siege engines. That’s precisely how it came to be: The Great Pumpkin Launch we did this past weekend.
Since I brokered the ensuing carnage, I figured I ought to make an entry into the event also. Sparkfun was bringing an 18g accelerometer, Nathan, Pete, and their videographer, Christopher Rojas. I wanted to try a different technical twist and built a wireless Pumpkin-GPS and brought my ground crew (kids.)
The Weapon
This is Jon’s 4th trebuchet (he says 3.5, because he started, but didn’t finish one). Each one got progressively larger just as big-boy toys, especially weapons, have a tendency to do.
This fearsome machine can launch a 12 lb pumpkin 350 to 400 feet and a long ways up in the air - probably 8 seconds of hang-time. (Videos later in the article.)
The Pumpkin GPS
In a nutshell the Pumpkin-GPS consisted of a Sparkfun Venus GPS breakout board with its UART tied directly to an XBee 900 Pro so that it can send telemetry data back to a ground station and we could track its flight (ostensibly for later reconstruction - ahem - of the ultimate splat).
Unlike the Mars rovers, our instruments didn’t get a nice, cushy air-bag landing in martian gravity (0.38 of earth’s.) An average farm pumpkin and a Chameleon 1 enclosure were all we had to protect our valuable electronics from the near ballistic reentry after the trebuchet launch.
My goals and questions in putting this device together were:
1) Crash test the Chameleon 1 enclosure and see how well it would hold up and how well it would protect the electronics (also what G forces it absorbed.)
2) Find out if the XBee 900’s could keep a signal associated in-flight to the ground station while the pumpkin was rotating in-flight. I hypothesized it would be like a satellite spinning out of control.
3) Find out if the GPS could maintain a lock and produce good data in-flight (again, a nasty high frequency rotation factor.)
Here are the guts of the pumpkin GPS on the workbench - just a Sparkfun Venus GPS UART strapped (bi-dir) to the XBEE 900 Pro UART with a lipo batery mounted on a Chameleon 1 baseplate and an LED on GPS transmit line. Very simple set up. (I went with the 2nd version - a thin, light silver 2000mAh lipo below.) The battery was velcro’d in place on the bottom. The electronics were soldered on perfboards to make them easy to mount securely with 4-40 hardware.

A couple of holes drilled into a blank Chameleon faceplate for antennas and LED and soon, I had a bomb-proof enclosure.
With the Venus GPS viewing software I could talk to and configure the GPS over the XBee link. I set it for a 5 Hz update rate - the GPS and the XBee 900 ran at 38,400 baud for these games (I mean tests.)
The Launch Vehicle
To prep the expendable launch vehicle, I carved a slot in the pumpkin and slid the Pumpkin GPS into the slot:

Below, Jon Dory inspected my work and gave it the “Go Flight!”
My ground control crew was positioned about 200 feet down-range and to the side - this is my 10 year-old son, Nakoa, who kept me apprised by two-way radio of the NMEA RF stream coming out of the Pumpkin GPS. He would say things like “Data looks clean, Dad.” (Our next gen Chris Kraft?)
The Launch
You really have no idea how powerful this trebuchet is unless you watch it in action. Without further ado, here’s a video including some slo-mo of the pumpkin launches with our goods in them:
Trebuchet Pumpkin Launch - Slow Motion from Landon Cox on Vimeo.
The Release
The release stage, where the trebuchet finally lets the pumpkin fly free, baffled me to no end until I saw it in action and asked Jon to explain the mechanics. First, the pumpkin goes in a sling and two ropes attach to either side of the canvas pouch, but one end of the rope has a ring on it which slides over a rod on the end of the arm. Here’s a shot of the black, adjustable rod mechanism on the end of the arm (as well as the red trigger used for launch):
As the launch begins, the pumpkin is hurled backwards and outwards and pins the pumpkin against the sling and taut rope. The rope-ring and the rod-arm form a substantial angle which results in a normal force between the ring and rod and holds the rope and sling David and Goliath style.
At some point, David has to let go of one end of the sling - the release.
At the top point in the arc, as the pumpkin is coming around, the ring-end of the sling rope comes off the rod when the normal forces of the ring against the rod on the end of the arm go to near zero. At that point, the ring slides off the rod and the pumpkin will release more-or-less at the top of the arc.
Jon’s got a turnbuckle mechanism which you can see on the arm in the photo above to adjust the rod angle and therefore the release point - it works by changing the amount of normal force of the ring on the end of the sling’s ropes at the top of the arc. Depending upon how the rod angle is adjusted, he can control the release to be early or late and throw a pumpkin really high or like a line-drive through the corn field.
It’s an ingenious piece of mechanical engineering. In the images below, you can see the release sequence which I think is fascinating. In these pictures, the forward direction is to the right.
In this first shot, the arm is near the top of its swing, but the pumpkin is still hurling on the back-side of the arc. Both sling lines are still attached and the pumpkin is firmly in the pouch:
As the pumpkin is nearing the top of the arc, the sling line ring is approaching 0 normal force and ring is about to slide off the rod:
If you look closely at the next shot, the ring on one of the sling ropes has just slipped loose from the rod and the full release has begun:
The release at full extension - you can see one side of the sling totally opened up and the pumpkin is flying:
Results
In one sense, it was “mission accomplished” on all 3 counts. We did find out the answers to these questions. Question #1 (crash test) and #2 (RF signal) were positive outcomes and I was pleased with the results. Goal 3 - not so much. Oh well, you win some and lose some.
We did three launches total. One each with the Pumpkin GPS and accelerometer. One combined GPS/accelerometer flight.
In the first launch of the Pumpkin GPS, the electronics survived and still had a red blinking light. The device was coated with pumpkin mush and it landed with its 900 MHz antenna and faceplate down in the ground. So, we lost RF signal on impact. As soon as I lifted it out of the dirt and mush, we got signal again to the base-station. The middle of the lid was dented on one end and dented the faceplate edge somewhat, but the enclosure was basically intact and electronics were obviously still working - we had a blinking LED from the GPS and RF signal back to the ground station. The external GPS antenna was not ripped and the SMA connector miraculously survived impact despite ending up on its faceplate.
Here’s Nathan and Jon inspecting the accelerometer capsule when they recovered it after the first flight - it was ejected from the pumpkin (wasn’t found in the mush.)
Pasted Graphic 2
Before the launch, we were all speculating about what would get destroyed. Nate and Pete thought for sure the velcro’d lipo battery for the GPS would rip loose...I was sure it would not. We were all pretty sure the SMA connector and GPS would be destroyed. When I picked it up after its first flight and saw it was all still running, I shook the box to hear if anything was loose and there was nothing rattling inside - the battery definitely held tight.
With the box intact, I felt compelled to smack-talk Pete - I was proud that my velcro’d battery design and enclosure worked. Pete was a good sport and offered to send me some of his -Rejected- PCB’s as my reward. I’m still looking for some autographed PCB’s in the mail from him. Here’s a shot of Pete in a good mood when his accelerometer data was being downloaded from the device - the look of relief.
I did not open the Pumpkin GPS between launches, but just stuffed it in a second launch vehicle.
By this time, the GPS was horrified with anticipation of a second launch but the freshly picked, fleshy pumpkin had no idea it was about to experience the ride of its life. After the second ride, the Chameleon 1 was a bit more squashed (sorry for the pun, couldn’t help it) and yet still functioning. Still nothing rattling inside after all that.
Even in this condition, the first two goals were met - the electronics survived two huge impacts and we were able to receive good RF from the XBee 900’s during a wild flight.
The 3rd goal, GPS data, was probably unrealistic to begin with. GPS is by its nature a heads-up technology and I did not get good GPS data in this experiment. To say I got squirrelly GPS data is an understatement. This is the Google Earth profile I got on the 2nd flight - south facing:
Needless to say, I consider that basically garbage. To the degree it resembles the nice parabolic arc we observed, well, you’d have to have a wild imagination (and more than a few beers and explosive charges ringing in your ears.) I was able to put together an elevation/distance profile and try to tease out the basic launch data from the NMEA strings and came up with these plots. The fingerprint of the launch and impact are in the plot but the numbers are not correct despite having a good satellite fix.

Regarding Sparkfun’s accelerometer, initially Pete thought the launch was definitely less than 18g’s but that the impact might have pegged it. He sent me these two flight graphs and they came out like this:

Since the accelerometer was not fixed in a specific orientation, probably the best you can make of these is an absolute value G force it withstood in any axis in flight.
[ Accelerometer graphs provided courtesy of Pete Dokter - Sparkfun EE, and designer of the accelerometer ]
What do you get when you fling a pumpkin 100 mph?
Despite the problems I had with the GPS, this was pretty cool finding: if you fling an oblong pumpkin out of a trebuchet at a theoretical 100 mph (Jon did the dynamics and math with a JPL engineer), it will very often spin perfectly on a horizontal axis that’s perpendicular to the line of flight. That was not theoretical - that was how they often flew! Sometimes they would fly like a football spiral. We could not have predicted that! Jon had seen it 100’s of times. I thought maybe they’d come out end over end or wobbly, and sometimes do the more round they are, but often they come out of the sling with a wicked spin John Elway would be proud of.
If you look at a closeup of the accelerometer data from Pete’s acceleration graph, mid-flight it looked like this:

I might be reaching based on this data but looks like the pumpkin was rotating in two dimensions at about 7Hz. Like I said, I might be reaching, but think it’s interesting to see these small periodic waves mid-flight embedded in an overall sine-like wave. Is that vibration or rotation? I’m not sure.
We were able to receive RF data throughout the flight, but found the GPS numbers were sketch....speed and altitude were out of the pale with our visual observations (they were too slow and too low from what the flight looked like.)
If pumpkins fly with their vertical axis horizontal, parallel with the ground, perpendicular to the line of flight, that means the GPS antenna is more or less rotating around the pumpkin’s vertical axis with its antenna plane facing north or south not up towards the sky. The line of flight was west towards the Rocky Mountains.
When I looked at the data, I had a 3D GPS fix and the number of satellites fixed was, on average, at least 8. But the altitude read low even before the start, so I had something wrong with the GPS from the get-go. Instead of 7,000 feet, it was reading about 4900 feet (~1500M). My velocity numbers looked like 14 feet / sec at the max which is speed over ground...obviously, a GPS can’t really measure airspeed through the arc which would have had to be a lot higher. Still 14 ft/sec was way low. One flight was pretty short - maybe 200 ft distance and the other flight was about 350 feet.
Lessons Learned
I should have validated the altitude numbers I was getting from the GPS before the flight, but it was kind of chaotic getting set up....what with carving pumpkins, shooting high pressure corn cob cannons, cranking down monster Trebuchets and all. Next year I’ll try to do better with the numbers. Think it would be really cool to use a gyro next time also. I’d do more ground work on marking specific waypoints of impact to get more accurate ranges.
I hope you enjoyed seeing the Great Pumpkin Launch of 2009. The whole thing was a hoot, but the most fun was combining medieval technology with high-tech instruments in the same event. I think geeks should make this an annual event the world over.
THANKS!
Many thanks to Jon Dory for making such a cool toy and letting us use it. And thanks to Sparkfun for being a willing sport to launch their products in such a zany event.
Next time you’re in the Ft. Collins area and feel the need to lay siege to a pumpkin patch, go checkout “Something From the Farm”, launch some pumpkins and be sure to meet Jon ( jonrdory@gmail.com ) and his crew. Lets do it again next year.
Landon Cox
www.ESawdust.com
Sparkfun Autonomous Vehicle Comp '09
04/15/09 19:55
Only in Boulder. Only at Sparkfun. Only in the town
that gave us Kenetics could you have an
event like this. It was the inaugural Sparkfun Autonomous Vehicle
competition where the only rule was pretty
much:
Build a vehicle that will get around the Sparkfun building autonomously once without cheating.
My son and I went up for the day to watch and it was a gas.
Two of the funniest highlights of the day were:
[Update 2/3/10: See the ESawdust Autonomous Vehicle category for a series on controlling an R/C car autonomously.]
There were so many cameras (mondo Canon 5Ds), media and so on, I feel foolish for putting these pictures up because there are probably better ones elsewhere to be had. But these might be some of the first to emerge from the day, so enjoy them. I’m sure Sparkfun will be putting up lots of fun stuff over the next few weeks just from today. We had a beautiful wind-free (for the most part) day.
My pictures and video below. Thanks Sparkfun for holding a really fun event. Next time, I’m in.
The Sparkfun building and lake.
The pit area next to the production area on the ground level.
This next picture is of one of the coolest contraptions in the pit area, but unfortunately the owner couldn’t ever get it to work in order to enter the race. It’s a wire ball with a motor, controller and battery that pendulums from the axle. I really wish I could have seen this guy go.
Eric from Highland Ranch (suburb of Denver) with the fastest and only ground AV to complete the one lap. He got second place to the UAV that was able to finally fly the course in 36 seconds.
His car had two AVRs on it, a 5 Hz GPS, compass, and IR sensors on the front. Good software too - his first run he was able to pull out of a pickle where he got caught behind an island on the first turn.
The most dangerous and wettest entrant goes to “ocraptheresalake”:
This is the video I shot of it going right off the course. Unfortunately, I couldn’t catch it flying over the side and into the creek, but I got the aftermath in this video:
Another crowd favorite had to be this cooler on wheels by Dennis of Norman, OK:
He had a rough go of it, but this thing was the balls. It could turn on a dime with each wheel independently driven. He used a Propeller dev board and a bunch of grease and glue to keep this thing running.
Here’s a video of his last (unsuccessful) run:
The DIY Drones guys stuck one in the tree twice, but this one was the cats meow. Good thing the fire dept is right around the corner:
Here’s a fun video of the mass start they did at the very end. There’s just stuff driving every which way as you’ll see:
Thanks to Nate and all the staff at SparkFun for making a really fun day for all of us.
Build a vehicle that will get around the Sparkfun building autonomously once without cheating.
My son and I went up for the day to watch and it was a gas.
Two of the funniest highlights of the day were:
- The entrant “ocraptheresalake”, a completely out of control and dizzingly fast R/C car chassis, ended up in the adjacent creek. (video below)
- One of the UAV airplanes from DIY Drones ended up in a tree so high it took the local fire department and its ladder truck to retrieve it. (photo later/below)
[Update 2/3/10: See the ESawdust Autonomous Vehicle category for a series on controlling an R/C car autonomously.]
There were so many cameras (mondo Canon 5Ds), media and so on, I feel foolish for putting these pictures up because there are probably better ones elsewhere to be had. But these might be some of the first to emerge from the day, so enjoy them. I’m sure Sparkfun will be putting up lots of fun stuff over the next few weeks just from today. We had a beautiful wind-free (for the most part) day.
My pictures and video below. Thanks Sparkfun for holding a really fun event. Next time, I’m in.
The Sparkfun building and lake.
The pit area next to the production area on the ground level.
This next picture is of one of the coolest contraptions in the pit area, but unfortunately the owner couldn’t ever get it to work in order to enter the race. It’s a wire ball with a motor, controller and battery that pendulums from the axle. I really wish I could have seen this guy go.
Eric from Highland Ranch (suburb of Denver) with the fastest and only ground AV to complete the one lap. He got second place to the UAV that was able to finally fly the course in 36 seconds.
His car had two AVRs on it, a 5 Hz GPS, compass, and IR sensors on the front. Good software too - his first run he was able to pull out of a pickle where he got caught behind an island on the first turn.
The most dangerous and wettest entrant goes to “ocraptheresalake”:
This is the video I shot of it going right off the course. Unfortunately, I couldn’t catch it flying over the side and into the creek, but I got the aftermath in this video:
Another crowd favorite had to be this cooler on wheels by Dennis of Norman, OK:
He had a rough go of it, but this thing was the balls. It could turn on a dime with each wheel independently driven. He used a Propeller dev board and a bunch of grease and glue to keep this thing running.
Here’s a video of his last (unsuccessful) run:
The DIY Drones guys stuck one in the tree twice, but this one was the cats meow. Good thing the fire dept is right around the corner:
Here’s a fun video of the mass start they did at the very end. There’s just stuff driving every which way as you’ll see:
Thanks to Nate and all the staff at SparkFun for making a really fun day for all of us.
Compute the Distance Between Two Latitude/Longitudes - Haversine Formula in Ruby
12/16/08 18:37
Synopsis: Haversine formula in
Ruby. This is Ruby code to compute the
distance between two points when their position is
given as a latitude and longitude. It’s very handy
and I used it to compute an absolute distance to
signal strength graph using a GPS and custom code I
wrote which could read signal strength from a
embedded WiFi device I was
testing. The test was undertaken to determine
the signal strength vs distance
characteristics in the field of a LANtronix Matchport b/g.
This article answers the question: How to
compute the distance between two GPS
coordinates using Ruby?
Here’s one of many resulting graphs (gnuplot) based on lat/lon points, ping latency, and signal strength. There were many more graphs and tests done, but this gives you an idea of what the Haversine formula is good for. For every lat/lon I took a signal strength reading (automated of course.) Using the Haversine formula coded in Ruby, presented below, I could easily compute the distance between points to create a signal strength to distance graph. Those distances comprised the X axis of this graph of Signal Strength and Ping latency vs Distance in feet:
Here’s one of many resulting graphs (gnuplot) based on lat/lon points, ping latency, and signal strength. There were many more graphs and tests done, but this gives you an idea of what the Haversine formula is good for. For every lat/lon I took a signal strength reading (automated of course.) Using the Haversine formula coded in Ruby, presented below, I could easily compute the distance between points to create a signal strength to distance graph. Those distances comprised the X axis of this graph of Signal Strength and Ping latency vs Distance in feet:
Next Prototype of XBee GPS
05/24/07 12:01
I've spent some time to take the concept of an XBee
GPS off the breadboard and have built a 2nd
generation prototype of an XBee GPS.
Read
More...
Read
More...
XBee Pro Wireless GPS
04/12/07 05:27
This shows a quick
and dirty wireless GPS I made from a
Copernicus
GPS and XBee Pro. I use it because my office
doesn't get a good GPS signal, so I can set this
little gizmo up on the south side where the GPS
signal is good and spit the NMEA strings to my
office. I catch them with another XBee that
pipes them into my microcontroller....it's none
the wiser.
Read More...
Read More...
asdfasdf
