SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-28T22:56:14-06:00SparkFun Electronicsflight on Rocket Sensors and gnuplotflighturn:uuid:651a27a6-a4f4-0e5b-2318-d0df5f19c8f12010-12-20T11:49:46-07:00<p>How do you wire the 9DOF Stick IMU to the logger? I see how the battery is wired but how do you connect the SCL and SDA to openlog?</p>
superbrad on Rocket Sensors and gnuplotsuperbradurn:uuid:d9aaf794-62e5-2835-5d54-3215d2c5ce732010-12-18T14:33:25-07:00<p>I also use Octave. It's got a pretty healthy support community, and is very compatible with Matlab code.<br>
I've used Octave for most of my Matlab assignments throughout college without any significant issues - while it doesn't have the same external hardware interfacing and other features of Matlab, it's still very powerful.<br>
It also outputs things nicely using gnuplot, without requiring you to know all the funky syntax.</p>
WarDamnEagle on Rocket Sensors and gnuplotWarDamnEagleurn:uuid:fe303598-2bd1-411d-a877-ee6c2f2e899a2010-12-17T14:06:29-07:00<p>I used MATLAB to look at the data. One thing interesting that I saw before even trying to decipher the accel data was the variation in sample time. With a sample rate of 59hz there should be roughly 17ms between each reading. But when you graph the variation between sample to sample ( e.g. time(2) - time(1) ) there is a saw tooth like progression of variation between sampling frequency with peak variations of 163ms between samples. I would imagine this would not be very good if you were integrating the data to find velocity or position. Really cool what you guys are doing though. Hoping santa brings me a logomatic this christmas.</p>
HardwareGeek on Rocket Sensors and gnuplotHardwareGeekurn:uuid:01a692ed-ab07-cf55-8e82-b3f6e7abb0bc2010-12-16T11:09:23-07:00<p>The problem with this product is that it needs a full 3 axis accelerometer with at least 50G capability in the Z axis for rocketry use. A nice add-on would be the unified temperature/humidity sensor. Great idea this product, just need components capable of logging the data from high power rockets.</p>
BlueValleyTech on Rocket Sensors and gnuplotBlueValleyTechurn:uuid:87a39786-4150-1edf-cafa-9ecc64b7310f2010-12-16T07:17:47-07:00<p>Nice experiment!<br>
BTW, the 65,536 row limit you mentioned is only on Excel 2003 and older. All of the versions after that will support 1,048,576 rows. Well over what you needed for this project, and you will get much nicer charts! :)</p>
BBB on Rocket Sensors and gnuplotBBBurn:uuid:f273658f-5127-03a1-47d2-24cecc407c852010-12-15T07:57:05-07:00<p>The Beetle in the parking lot is very nice. How much ice do you get in the inside of the windows in the Colorado winters? :)</p>
Dinuka on Rocket Sensors and gnuplotDinukaurn:uuid:9e7b73ae-0432-2b51-6e42-83532e7ad9ee2010-12-14T19:43:33-07:00<p>Very interesting stuff indeed. We've been meaning to do something like this for some time now, but could get our (home built) rocket finished.<br>
Anyhow, for those who are trying to make some sense out of the accl data, think I can help a little.<br>
1.) Prior to launch - 0ms - 130,000ms. Nothing interesting here. Y axis measuring a high + const value w.r.t x and z means that Y axis was vertical and pointing downwards.Z is measuring zero - it is nearly horizontal. X is measuring a slight + value - it is slightly slanted (which in-turn tells us that the value on Y axis should be slightly less than 1g)<br>
2.) Launch and Acceleration - This section in the graph is very small. It starts from the point the green line starts a sharp drop at about 130,000ms and ends at the point where the green line starts going up again. This is actually the burn time of the rocket engine.<br>
3.) Coasting - After the rocket has finished burning, the rocket continues to cost upward for a short time and then starts falling under gravity. When an accelerometer freefalls, it will measure a 0g. that's why the Y measurement suddenly goes to 0 for a brief moment at around 135,000<br>
4.) Parachute deployed descent - 135,000ms - 175,000ms Once the parachute deploys, the rocket is not falling under gravity. The downward acceleration is much smaller than 1g, therefore the green line is now not zero, but a negative value. One interesting thing to note is that the chute deployed slightly late. Ideally it should have deployed right at the end of coasting phase. This could be the reason why it got entangled.<br>
5.) Drop to the roof and staying there - from 175,000ms onwards<br>
Again not very interesting, but it seems that the rocket dropped on one of its sides, with X axis pointing approximately upwards.</p>
Customer #160581 on Rocket Sensors and gnuplotCustomer #160581urn:uuid:466d19c5-c37e-a01d-a904-c5fd500a43962010-12-14T14:26:16-07:00<p>I smoothed it severely and plotted, how do I upload the PNG?</p>
Gulopine on Rocket Sensors and gnuplotGulopineurn:uuid:9b9cf5de-066a-0be0-5f84-c1818897e7f62010-12-14T14:25:58-07:00<p>Also, to add to the endless stream of product requests, I'd love a similar stick for weather measurements (temp, humidity, pressure) that can be easily waterproofed.<br /><br>
<br /><br>
Oh, and something like OpenLog that's built for I2C, because it seems like that'd be a great way to chain a bunch of these small sticks together (IMU, weather, light/proximity, GPS, etc) for custom logging projects. If not a separate product, at least post the I2C code you guys hacked together for this.</p>
Gulopine on Rocket Sensors and gnuplotGulopineurn:uuid:97a74e89-f9b8-92a2-fb5b-fca4fab85c582010-12-14T14:19:03-07:00<p>This looks great! You guys really should update the <a href="http://www.sparkfun.com/tutorials/167" rel="nofollow">Accelerometer, Gyro, and IMU Buying Guide</a>. Not only is this not in it (nor is it linked from this product's page), it still references the deprecated 6DOF Razor. Keep up the good work!</p>
Lee on Rocket Sensors and gnuplotLeeurn:uuid:548859ee-ad4e-d586-9880-5739a2cbe3472010-12-14T12:50:17-07:00<p>Your post mentions the word "power" three times, yet you don't measure it? ;) <br /><br>
<br /><br>
I took the first 20 seconds of data(skipped the first row) and calculated "1g" to be roughly 285 units with a standard deviation of about 5%. The datasheet for the ADXL says a range of 232-286 LSB per g is typical, but the variation seems high. I see a lot of spikes in the data when the rocket should have been sitting still. Where could that come from? I presume it isn't noise since it's battery power -- environmental vibrations?<br /><br>
<br /><br>
If I did the math right, the max acceleration was only 3.1g +/- .1, which seems low. -- how much did that puppy weight, all-in? :)</p>
Azayles on Rocket Sensors and gnuplotAzaylesurn:uuid:917741d1-09cc-45ab-7e6b-bfb5f651e0772010-12-14T07:48:19-07:00<p>You chaps at Sparkfun need to make an all-in-one logger that has magnetometer, accelerometer, gyro and altimeter functionality, is tiny and runs of a lipo cell. Maybe something with a button to press to start logging.</p>
PeterG on Rocket Sensors and gnuplotPeterGurn:uuid:526fa176-7eba-f07f-4ebf-258ebf5283c62010-12-14T03:29:08-07:00<p>You mean the dog, or the athlete? <br /><br>
<br /><br>
Major LOL either way.<br /><br>
<br /><br>
P.</p>
PeterG on Rocket Sensors and gnuplotPeterGurn:uuid:ca54e042-abbd-1f64-9fcb-aefcb61237022010-12-14T03:23:43-07:00<p><strong><a href="/users/114535" rel="nofollow">JRMorrisJr</a>:</strong><br /><blockquote>
<p>Wonder what the data would look like if you taped this logger to the back of a boxers head.<br>
<br /><br>
You mean the dog, or the athlete?<br /><br>
<br /><br>
Major LOL either way!<br /><br>
<br /><br>
P.</p>
</blockquote></p>
KI4MCW on Rocket Sensors and gnuplotKI4MCWurn:uuid:d7276af6-6803-ed2e-9f69-821dd3b9ed652010-12-14T00:42:01-07:00<p>Wow, between this article and the one on using accelerometers to measure seismic activity, it seems like now would be a great time to throw down a tute (or even links) on =making sense= of this kind of real-world data. Specifically, some guidance on design, config, and analysis, especially for real-time embedded applications.<br>
<br /><br /><br>
I have to imagine there are a whole lotta SF customers who buy these kinds of sensors thinking they are going to get smooth data that makes logical sense... and instead they are either overwhelmed by the noise seen in the rocket's logs, or underwhelmed by an earthquake barely registering on the sensor.<br>
<br /><br /><br>
For example, what information about the dynamics of the rocket flight can be teased out of that data set? How high did it go? How fast was it going when it hit the neighbor's roof? More broadly, how can a smart layman start with twitchy data and get to that kind of information? How would you go about doing the same calculations on an 8-bit microcontroller, so that the flight computer itself knows that it's falling too fast?<br>
<br /><br /><br>
Juicy stuff, and a golden opportunity to share the next few steps.</p>
Customer #76709 on Rocket Sensors and gnuplotCustomer #76709urn:uuid:70c775ae-0b4f-b4e4-e87f-9d9d2d118bb52010-12-13T22:59:22-07:00<p>if you only want to plot data, gnuplot is nice, but if you want do do some computation and show graph, you can use SCILAB => http://www.scilab.org/en<br /><br>
it's a kind of opensource matlab...</p>
jbrandmeyer on Rocket Sensors and gnuplotjbrandmeyerurn:uuid:e12f2c58-70ed-eb6a-f1a9-fbcdba2169202010-12-13T20:32:38-07:00<p><strong><a href="/users/66473" rel="nofollow">kwan3217</a>:</strong><br /><br>
Also, 59Hz is hopelessly slow, especially on the gyros. A rule of thumb I have seen is either 100 samples per rotation, if you know the rotation rate, or 200Hz, whichever is higher<br /><br>
<br /><br>
Where does this come from? I respectfully disagree. Since you are only integrating the data, 10x the maximum pole of the system dynamics is fine. This sample rate should be enough to reliably follow up to 6Hz of vibration.<br /><br>
<br /></p>
thisupend on Rocket Sensors and gnuplotthisupendurn:uuid:fef7aca6-263f-f983-960a-fcf9f07a9bbb2010-12-13T20:23:58-07:00<p>BOT AD !!!!!!</p>
tz on Rocket Sensors and gnuplottzurn:uuid:74b22521-9c4d-722d-0aac-9a6bd9ab87262010-12-13T18:34:27-07:00<p>So when are you going to do an 11-Dof by adding one of the baro/temp sensors?<br /><br>
<br /><br>
if you do, would one of the newer, smaller i2c accels work better?.<br /><br>
<br /><br>
(I told you to add I2C to the OpenLog!).<br /><br>
<br /></p>
chortik on Rocket Sensors and gnuplotchortikurn:uuid:afca83aa-09f3-3e29-4c93-540c5e854f7e2010-12-13T17:56:34-07:00<p>judging from your accelerometer data, the electronics were not mounted perpendicular to the ground, if they were, red and blue charts would mirror each other prior to launch.</p>
Butterwaffle on Rocket Sensors and gnuplotButterwaffleurn:uuid:1156fa07-8598-2697-5cc4-98133a7ffecf2010-12-13T16:59:47-07:00<p>I typically use <a href="http://octave.org/" rel="nofollow">Octave</a> or Python+<a href="http://numpy.scipy.org/" rel="nofollow">numpy</a> for data exploration and then <a href="http://vtk.org/" rel="nofollow">VTK</a> and <a href="http://paraview.org/" rel="nofollow">ParaView</a> to do more in-depth analysis. VTK and ParaView both have Python+numpy integration but do have a bit of a learning curve.<br /><br>
<br /><br>
Octave is nice because it provides a lot of tools for doing filtering which kwan3217 and Ben121 hinted at.<br /><br>
For instance, since you don't appear to have calibrated the accelerometer beforehand, I thought it would be interesting to see if I could use the quiescent period before launch to pick out the maximum acceleration. But it looks like you set the accelerometer range to +/- 2g.<br /><br>
<br /><br>
Also, as far as all the noise goes... how well was the 9-DOF stick mounted to the rocket? And how well were the PCB components mounted to the board? Any chance the sensor stick could bend over and short wires against the data logger? Because you might be recording the sensor bouncing around instead of the rocket motion. Or you might be recording electrical noise. If you haven't seen it, <a href="http://spritesmods.com/?art=rocketlogger" rel="nofollow">this guy</a> had some cleaner-looking data and he epoxied the circuit components together on the board...<br>
<strong>Edit:</strong> I was looking at the wrong columns in the data in the previous version of this comment (and couldn't make sense of the peak acceleration because it wasn't acceleration I was looking at).</p>
CF on Rocket Sensors and gnuplotCFurn:uuid:ec1c52b4-01f4-65b6-94a2-ce106b54681c2010-12-13T16:13:15-07:00<p>I built this very same rocket when I was a kid!<br /><br>
Estes Payloader?</p>
Drmn4ea on Rocket Sensors and gnuplotDrmn4eaurn:uuid:e05feabd-1f06-0f1c-c512-4c6f7b3ea8992010-12-13T16:02:57-07:00<p>Thirding the recommendation of Python + matplotlib + NumPy (if data analysis is needed). Matplotlib is historically focused on 2D plotting, but in recent versions there is some support for 3D (surface / mesh) graph types as well.<br /><br>
<br /><br>
BTW, much of matplotlib's published docs/examples assume operation from a Matlab-like interactive shell. If anyone is interested in code examples for embedding matplotlib in a stand-alone GUI, I / my employer recently released an open-source <a href="http://www.mide.com/products/slamstick/slamstick_vr001_software.php" rel="nofollow">python GUI</a> for basic vibration data analyses (time, FFT, STFT / spectrograms). It's written with our <a href="http://www.mide.com/products/slamstick/slamstick_vr001.php" rel="nofollow">USB vibration recorder stick</a> in mind, but will also take any .CSV file of (timestep, x, y, z) from your own favorite source, and may make a helpful starting point for writing your own grapher.</p>
Exonerd on Rocket Sensors and gnuplotExonerdurn:uuid:a6919e0b-21ab-8211-3c40-d4d69abba0522010-12-13T15:55:09-07:00<p>That board's size & mass are amazing. I do biomechanics research and would love to play with one of these in our lab. Couple it with a data logger (as you did) and it would be ideal for some of our experiments (although a magnetometer is overkill, lol). Please post your link ASAP! :)</p>
Chris Zeh on Rocket Sensors and gnuplotChris Zehurn:uuid:c162f9b6-e019-4526-2acf-4885378ac3dd2010-12-13T15:00:11-07:00<p>I agree with NinjaMoose. Python + matplotlib = win!</p>
kwan3217 on Rocket Sensors and gnuplotkwan3217urn:uuid:1471478e-50c7-2e10-1d06-08d1747d874e2010-12-13T13:12:20-07:00<p>The sensors are fine, but I noticed that you don't have the interrupt lines for the accelerometer and gyro broken out. This is certainly usable as is, but it would be more useful if those two lines were broken out. You would end up with microsecond precision on the timing of the measurements.<br /><br>
<br /><br>
But, I just took the surface mount soldering class, so I can probably put the wires in myself.<br /><br>
<br /><br>
Also, 59Hz is hopelessly slow, especially on the gyros. A rule of thumb I have seen is either 100 samples per rotation, if you know the rotation rate, or 200Hz, whichever is higher.<br>
The accelerometer guide has a recommendation for the BMA180 as best digital sensor. I have two of them and I heartily recommend them myself. What made you choose the ADXL345?</p>
Imroy on Rocket Sensors and gnuplotImroyurn:uuid:dc4ca8e4-644f-aff1-f1fc-2b19b33439432010-12-13T13:10:52-07:00<p>That accelerometer data looks awfully noisy. Or are they data/bus errors?<br /><br>
<br /><br>
As for processing the data, I'd use Perl. But that's just because I've long used Perl for all sorts of stuff. Python would probably be just as good, it depends on what you know and are good with.<br /><br>
<br /><br>
And lastly, don't use JPEG for diagrams. Use PNG instead. The files will actually be a lot smaller because the content will better suite PNG's compression methods, and you won't have <em>any</em> artefacts.</p>
dksmall on Rocket Sensors and gnuplotdksmallurn:uuid:79656d03-1dd6-8d1f-859d-8fb3b0ef16dc2010-12-13T11:44:22-07:00<p>Tutorial on chute packing?? :-)</p>
SuperFlux on Rocket Sensors and gnuplotSuperFluxurn:uuid:18a1d924-a8d6-2412-48df-dad2fc7fd9e32010-12-13T11:30:15-07:00<p>It looks like you Ay maxed (check out point 7485 to 7852), however if the senor was the ADXL345 (+- 16 g) its is not likely to be the case. <br /><br>
<br /><br>
Also, whats up with your magnetometer data? that must have been one ruff flight</p>
Hexagon on Rocket Sensors and gnuplotHexagonurn:uuid:28c909f5-a004-a29a-f9c1-011e3f0231f92010-12-13T11:02:32-07:00<p>http://www.sparkfun.com/products/10121</p>
Chip Geek on Rocket Sensors and gnuplotChip Geekurn:uuid:dfd4f7cb-c9a9-7168-1856-a6bd3656e2ce2010-12-13T10:31:26-07:00<p>What sensors are used on this board? It would be nice to see graphs for just before lift-off to just after parachute ejection. ie, zoom in on the interesting part.<br>
Edit: Nevermind, it's in the gnuplot script. HMC5343 Magnetometer; ADXL345 Accelerometer; ITG3200 Gyro<br>
If the price is right, I'll be buying one of these.<br>
Edit 2: Now we just need one of these with a SCP1000-D01 Barometric Pressure Sensor added.</p>
Ben121 on Rocket Sensors and gnuplotBen121urn:uuid:874bdd4e-dfec-949d-a716-901d9ec0c1802010-12-13T10:06:21-07:00<p>The Data appear unintelligible. It might be improved if it were filtered.<br /><br>
<br /><br>
I would expect a strong and isolated acceleration signal from the rocket firing, followed by a single-axis gyration signal; instead I see noise amplitude where signal should be. Cool and all though, I'd be interested in the board with the mag sensor left out (optional though, leave the footprint). Also .1 pitch connections are beginning to overwhelm the size constraints - perhaps a footprint on the other end for a smaller profile connector?</p>
MichaelShimniok on Rocket Sensors and gnuplotMichaelShimniokurn:uuid:56ecf4e9-72ee-d2f4-eefe-ba0cd14bbd9c2010-12-13T09:45:19-07:00<p>And here I am dinking around with web-based XML/SWF Charts (http://www.maani.us/xml_charts/). Ah well, gnuplot here I come.</p>
kwan3217 on Rocket Sensors and gnuplotkwan3217urn:uuid:5800ff83-c54e-d83a-e596-ad54e0dc22d62010-12-13T09:45:10-07:00<p>I've been planning on designing one of these for BatchPCB. Thanks for saving me the trouble (if you picked the right sensors). I have flown a Logomatic along with 9dof of sensors in a much wider rocket, see a reconstruction on [YouTube] (http://www.youtube.com/watch?v=it6BsJS9C4w). The rocket reached a top acceleration of just under 6 Gs, and reached 50m/s and 150 m altitude. The parachute then failed and the nose cone plummeted from 150 meters. The electronics survived, I still use them to this day.<br /><br>
<br /><br>
This data appears a bit noisy, also did you calibrate the sensors before flight?<br /><br>
<br /></p>
Aditya on Rocket Sensors and gnuplotAdityaurn:uuid:bd59920c-4ffb-2a82-46ef-7db50cb006732010-12-13T09:34:02-07:00<p>Awesome stuff.<br /><br>
<br /><br>
Just wanted to note, excel 2007 and over support 1 million+ rows and make prettier graphs :P</p>
RobertC. on Rocket Sensors and gnuplotRobertC.urn:uuid:6c871815-4077-3d8c-4cfb-22f91ba154782010-12-13T09:28:29-07:00<p>Fixed.</p>
RobertC. on Rocket Sensors and gnuplotRobertC.urn:uuid:1dc549a5-78bb-8a4a-1069-bab8e613e8392010-12-13T09:27:32-07:00<p>We have no intention of breaking your nephew's heart. Give is a couple of days, you'll see the board.</p>
JRMorrisJr on Rocket Sensors and gnuplotJRMorrisJrurn:uuid:0a3a6951-99be-e384-68fc-1c2e0fbd29192010-12-13T09:16:03-07:00<p>Wonder what the data would look like if you taped this logger to the back of a boxers head.</p>
RobotNinja on Rocket Sensors and gnuplotRobotNinjaurn:uuid:3ef2b4ab-a96b-8f19-8798-49c81b9db4ca2010-12-13T09:15:52-07:00<p>For plotting, I use <a href="http://matplotlib.sourceforge.net/" rel="nofollow">matplotlib</a> which is a library for python. For all those students out there, I highly recommend the <a href="http://www.enthought.com/products/getepd.php" rel="nofollow">Enthought Python Distribution</a> which sets up python, matplotlib and a ton of other useful libraries with one install, on lots of different operating systems and it's free for students.</p>
AtommotA on Rocket Sensors and gnuplotAtommotAurn:uuid:eaed6efc-e9ec-1f64-a84c-f745c1417aa52010-12-13T09:15:26-07:00<p>The link to the Rocket Data and gunplot script is bad...404 Not Found on the .zip file</p>
pubdc on Rocket Sensors and gnuplotpubdcurn:uuid:15b286dc-a46e-e4f5-8c98-83c1b77e52962010-12-13T08:51:05-07:00<p>What a tease ! I have been looking for the perfect present for my nephew, here its is, complete a little demo of what can be achieved... but no product link for the 9DoF stick ! Common, please, you're breaking my nephews' heart )-; OK, I'll take one that was rocket-proofed if need-be.</p>