{"id":4846,"date":"2015-02-20T11:12:08","date_gmt":"2015-02-20T19:12:08","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=4846"},"modified":"2015-02-20T11:12:08","modified_gmt":"2015-02-20T19:12:08","slug":"testing-the-pmodacl-and-labview-on-the-race-track","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/","title":{"rendered":"Testing the PmodACL and LabVIEW on the Race Track"},"content":{"rendered":"<p>Recently I released a <a href=\"http:\/\/www.instructables.com\/id\/Manipulating-Accelerometer-Data-In-LabVIEW\/\">collection of projects<\/a> going over how to use LAbVIEW, \u00a0the chipKIT Max32, and the PmodACL to do some neat stuff with accelerometer data. These include filtering, multidimensional vector plots, and tilt measurement.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/www.instructables.com\/id\/Filtering-Accelerometer-Noise-In-labVIEW\/\">Filtering<\/a> <\/strong><br \/>\n<a href=\"http:\/\/i.imgur.com\/OajjJJ2.gif\"><img decoding=\"async\" class=\" aligncenter\" src=\"http:\/\/i.imgur.com\/OajjJJ2.gif\" alt=\"\" width=\"500\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/www.instructables.com\/id\/Plotting-2d-and-3d-g-force-vectors-in-labVIEW\/\">Multidimensional Vector Plots<\/a><\/strong><br \/>\n<a href=\"http:\/\/i.imgur.com\/PEgoXOH.gif\"><img decoding=\"async\" class=\" aligncenter\" src=\"http:\/\/i.imgur.com\/PEgoXOH.gif\" alt=\"\" width=\"500\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/www.instructables.com\/id\/Stationary-Accelerometer-Tilt-Sensor\/\">Tilt Measurement<\/a><\/strong><br \/>\n<a href=\"http:\/\/cdn.instructables.com\/FKI\/1AQT\/I5F7N0UE\/FKI1AQTI5F7N0UE.LARGE.jpg\"><img decoding=\"async\" class=\" aligncenter\" src=\"http:\/\/cdn.instructables.com\/FKI\/1AQT\/I5F7N0UE\/FKI1AQTI5F7N0UE.LARGE.jpg\" alt=\"\" width=\"500\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The inspiration for these projects came from an earlier prototype I designed to measure g-force vectors and tilt angles experienced in a car. My goal was to collect some data about how my car performed while turning. This was particularly important to me because I like to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Autocross\">autocross<\/a> in my spare time.<\/p>\n<p>&nbsp;<\/p>\n<p>At autocross events, I had been told by other racers my car had a lot of body roll, which can make the car difficult to drive. I figured I could build something that would measure how much body roll my car had as well the g-force levels that caused my car to slide on the race track. Unfortunately, I didn\u2019t have as much time as I would have liked between the autocross event and the inception of my prototype. I had to rush the project a bit to get it finished in time, so my first real test was on the track.<\/p>\n<p>&nbsp;<\/p>\n<figure style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/i.imgur.com\/EMD9VtU.jpg\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/EMD9VtU.jpg\" alt=\"\" width=\"500\" \/><\/a><figcaption class=\"wp-caption-text\">Location of the tilt\/g-sensor in my car.<\/figcaption><\/figure>\n<figure style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/i.imgur.com\/5yoIel3.jpg\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/5yoIel3.jpg\" alt=\"\" width=\"500\" \/><\/a><figcaption class=\"wp-caption-text\">Me and a friend testing out my project prototype on the track.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\">Here is a video of the prototype in action:<\/p>\n<p><iframe loading=\"lazy\" width=\"735\" height=\"413\" src=\"https:\/\/www.youtube.com\/embed\/vPGcxyKegXY?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>If you watched closely, you could probably tell most of the readings are not correct. The video shows I was getting roll values over 45 degrees, meaning my car would have been up on two wheels and probably flipped over. Since correct angle readings are needed to filter out the effect of gravity, my g-force values were also off. \u00a0I had overlooked the fact that additional acceleration vectors during the race would throw off my calculations. At my desk everything worked great because only gravity was acting on the device, meaning there were only 3 <a href=\"http:\/\/playground.arduino.cc\/Main\/WhatIsDegreesOfFreedom6DOF9DOF10DOF11DOF\">degrees of freedom<\/a> to measure. \u00a0While moving on the race track, there were <a href=\"http:\/\/en.wikipedia.org\/wiki\/Degrees_of_freedom_%28mechanics%29#Six_degrees_of_freedom\">6 degrees of freedom<\/a> to consider. So if I had wanted to get the correct measurements while driving, I would have needed to record 6 data values, 3 values from the accelerometer and 3 from an additional gyroscope. Unfortunately, I didn\u2019t realize this until after I saw my bad data. Still, I had a ton of fun testing the prototype and know how to remedy the issue for the future.<\/p>\n<p>&nbsp;<\/p>\n<p>While I was at the track I got to see some pretty interesting cars and figured I\u2019d share the photos.<\/p>\n<p>&nbsp;<\/p>\n<div id='gallery-1' class='gallery galleryid-4846 gallery-columns-4 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/mazda-miata\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/mazda-miata-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5598\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5598'>\n\t\t\t\tAn evil looking Mazda Miata.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/googly-eye-mazda-miata\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/googly-eye-mazda-miata-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5594\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5594'>\n\t\t\t\tA happier looking googly-eyed Mazda Miata.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/miata-on-track\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/miata-on-track-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5599\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5599'>\n\t\t\t\tEvil Miata out on the track.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/googly-miata-on-track\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/googly-miata-on-track-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5604\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/googly-miata-on-track-150x150.jpg 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/googly-miata-on-track-600x600-cropped.jpg 600w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5604'>\n\t\t\t\tGoogly-eyed  Miata out on the track.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/nissan-gtr\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/nissan-gtr-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5600\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5600'>\n\t\t\t\tA Nissan GTR lined up in grid waiting to race.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/gtr-on-track\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/gtr-on-track-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5595\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5595'>\n\t\t\t\tThe GTR out on the track.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/c7-stingray-corvette\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/c7-stingray-corvette-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5592\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5592'>\n\t\t\t\tA new C7 Stingray Corvette lined up in grid.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/subaru-brz-and-more\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/subaru-brz-and-more-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5601\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/subaru-brz-and-more-150x150.jpg 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/subaru-brz-and-more-600x600-cropped.jpg 600w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5601'>\n\t\t\t\tMy buddy&#8217;s Subaru BRZ (front), my Honda CRX (middle), and a Toyota MR2 (back).\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/honda-crx\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/honda-crx-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5596\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5596'>\n\t\t\t\tAnother Honda CRX out on the track.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/lowered-race-truck\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/lowered-race-truck-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5597\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/lowered-race-truck-150x150.jpg 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/lowered-race-truck-600x600-cropped.jpg 600w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5597'>\n\t\t\t\tA lowered race truck.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/volvo-station-wagon\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/volvo-station-wagon-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5603\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/volvo-station-wagon-150x150.jpg 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/volvo-station-wagon-600x600-cropped.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/volvo-station-wagon-1200x1200-cropped.jpg 1200w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5603'>\n\t\t\t\tA Volvo station wagon running a 5-liter Mustang engine and custom suspension. It is a LOT faster than it looks.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/digilent.com\/blog\/testing-the-pmodacl-and-labview-on-the-race-track\/dodge-viper-on-track\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/dodge-viper-on-track-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-5593\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-5593'>\n\t\t\t\tThe Dodge  Viper out on the track.\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_5602\" aria-describedby=\"caption-attachment-5602\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5602\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise-600x450.jpg\" alt=\"Close-up of the Viper at an autocross event in Boise.\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise-225x169.jpg 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/02\/viper-closeup-boise.jpg 1600w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-5602\" class=\"wp-caption-text\">Close-up of the Viper at an autocross event in Boise.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>This last car deserves an honorable mention. It is a 3rd gen Dodge Viper SRT-10 that has a 8.3 Liter V-10 (making 510 Hp and 535 lb\u00b7ft of torque). The owner modified the car with a custom suspension and race tires specifically for autocross. I was lucky enough to get a ride in it at an autocross event down in Boise, and it was mindbogglingly fast! The owner consistently put up some of the fastest track times of any car at either event.<\/p>\n<p>&nbsp;<\/p>\n<p>I hope you enjoyed the pictures and my LabVIEW projects. If Autocross looks interesting I HIGHLY recommend finding your local group and going to an event. The people are VERY friendly and racing is TONS of fun!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-4846 jlk' data-task='like' data-post_id='4846' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-4846 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-4846 jlk' data-task='unlike' data-post_id='4846' data-nonce='1c819b3974' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-4846 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-4846 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Recently I released a collection of projects going over how to use LAbVIEW,  the chipKIT Max32, and the PmodACL to do some neat stuff with accelerometer data. These include filtering, multidimensional vector plots, and tilt measurement.<\/p>\n","protected":false},"author":12,"featured_media":4951,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[38],"tags":[],"ppma_author":[4477],"class_list":["post-4846","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/01\/Autocross-Viper.jpg","authors":[{"term_id":4477,"user_id":12,"is_guest":0,"slug":"davis-cook","display_name":"Davis","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4ab74d04ea2b53d0707a8480bb80455cfb1a676b0606fae6518a5935b230a1c2?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/4846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=4846"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/4846\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/4951"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=4846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=4846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=4846"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=4846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}