RC India
Welcome Guest, please login or register.
 
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools Topic Tools 
Read
« on: November 08, 2013, 08:59:41 PM »
AnjanBabu
Aj Creations
Plane Lover
Forum Hero

*****

Reputation Power: 9 
AnjanBabu has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 576
Join Date: Jan, 2012




So this time around, it’s another fun and functional microcontroller based DIY, a g-force measurement system with data logging to SD card.

HARDWARE USED:

1) Arduino UNO w/ATmega328P
2) 3-axis accelerometer breakout
3) SD card
4) SD card breakout w/level shifting circuit
5) LED

HOW IT WORKS:

Basically, the system uses an accelerometer to measure g-force and a SD card to store the data. An Arduino UNO is used to process the data coming from the accelerometer and save it on to a SD card. The system was originally developed for setup tuning and performance optimization in RC cars. It makes use of Ch3 on the Rx for initiating or terminating the data logging sequence, which means you’ll need a three channel radio to make this work. However, if you’re familiar with Arduino, you can easily modify the code to substitute appropriate control actions and happily use it wherever and with whatever you want.

Technically, I’m using an ADXL335 3-axis accelerometer that can measure upto +/-3g. It doesn’t have an impressive output resolution, but I find it good enough for my application. The system reads data from all the three axes, which means it can measure a decent amount of useful data.
In RC cars, cornering forces, forward/reverse acceleration, breaking/collision forces, vertical shocks and suspension damping analysis data can be acquired. All this data is logged on to the SD card in independent .txt files for each axis.

HOW TO USE:

Mount the gForce gauge on to your RC car, wire it up to Ch3 on Rx, press Ch3 on your Tx to initiate data logging, do some hard acceleration/ breaking or take on some high speed corners or whatever you want to measure and press Ch3 again to terminate the data logging sequence. A small LED is used to indicate the data logging in process. Unplug the SD card, connect it to a computer and You have the data that you can analyse and make necessary changes to your RC car to make it run faster and smoother.

The Arduino schematic does not show the level-shifting circuit required for the SD card, but it’s necessary, refer to the “SDcard Breakout DIY” schematic.
Format the SD card to FAT32 file system before using. Please use older less capacity SD cards like 2 GB or less. Not tested with SDHCs yet and MicroSD cards with SD adapter can be used, but again, 2GB MicroSD cards or less only.
Please watch the voltage ratings of your I/O devices. My ADXL335 breakout board came with an on-board 3.3v voltage regulator, which is why my schematics show it connected to the 5v supply. The same applies to SD card breakout board. A few more warnings have been mentioned in the Arduino sketch itself, they’re worth noticing.

CONCLUSION:

It’s not that much of a complicated DIY, but you need intermediate electronics skills at minumum. Quite a few things can go wrong, I wouldn’t suggest you try this as your first electronics based project. However, nobody is stopping you- frying a microcontroller chip is a crime not punishable by law!

Original blog post: http://anjanbabu.wordpress.com/2013/11/08/diy-gforce-1-0/

Download: (Arduino code, schematics, pictures)  https://www.dropbox.com/s/lm5mcbca4pklxku/AjCreations_gForce1.0.zip

Good luck, DIYers!  Thumbs Up

DSC_1776.jpg
DIY- g-force measurement system
* DSC_1776.jpg (54.18 KB, 800x600 - viewed 649 times.)
This post has 2 more images(s)/attachment(s). Please login or register to view them.
Logged

Mechatronics engineer . Hopeless realist

anjanbabu.wordpress.com
 

Pages: [1]   Go Up
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Battery voltage - measurement reliability
Batteries and Chargers
anwar 14 11802 Last post October 21, 2009, 04:27:08 PM
by Ashta
Top speed measurement
Cars
traxxrc1 23 13406 Last post December 10, 2010, 01:08:23 PM
by traxxrc1
Sidewinder Force Feedback Joystick Microsoft
For Sale
tango 5 3229 Last post October 15, 2014, 05:41:56 PM
by tango
should i buy kingkong force 200 from rees52 or from banggood
RC General Topics
Priyanshu@ 20 4845 Last post June 21, 2017, 07:50:49 PM
by Priyanshu@
3D vectored Rafale with G-FORCE Smoke-EL (UltraHD/4K)
Gas/Glow/Nitro Planes
DominicM 0 1816 Last post June 23, 2017, 09:56:02 PM
by DominicM