How can I set up and use an accelerometer and gyroscope for data collection?

Click For Summary
SUMMARY

This discussion focuses on setting up an accelerometer and gyroscope for data collection, specifically using the MMA7455 3-Axis Accelerometer Module and the LISY300 Gyroscope Module. Participants emphasize the importance of understanding the difference between forces measured by accelerometers and the gravitational field, clarifying that accelerometers do not directly detect gravity. For data output, a microcontroller is necessary, and users are encouraged to refer to datasheets and wiring diagrams for proper connections. The EZ430-Chronos development kit is suggested as an alternative for those seeking a ready-made solution.

PREREQUISITES
  • Understanding of accelerometer and gyroscope functionalities
  • Familiarity with microcontroller wiring and programming
  • Knowledge of SPI and I2C communication protocols
  • Ability to interpret technical datasheets for sensors
NEXT STEPS
  • Research the wiring and connection process for MMA7455 and LISY300 modules
  • Learn about SPI and I2C communication protocols for sensor integration
  • Explore Kalman filtering techniques for sensor data processing
  • Investigate the EZ430-Chronos development kit for a simplified setup
USEFUL FOR

Engineering students, hobbyists in robotics, and developers working on motion tracking applications will benefit from this discussion, particularly those interested in integrating accelerometers and gyroscopes into their projects.

trannh
Messages
11
Reaction score
0
Hi,

I am an engineering student that needs help using an accelerometer and a gyroscope. I'm not sure where to begin. How can I setup the sensors to output readable data to a computer. Do I use a microcontroller? Do I need to program anything? I am just in need of help. Anything would be greatly appreciated. Thank you
 
Engineering news on Phys.org
Depending on your application, you might well need to learn about filtering as well. Kalman filters are widely with navigation sensors. In fact, navigation, particular, getting humans to the Moon and back, was the motivating factor that led to the development of this technique.

So what exactly is your application?

=====

mgb_phys said:
Yech. Accerometers do not sense gravity. Nothing can (directly).
 
The first thing I do before I start anything is find all the necessary datasheets for the components I am working with. What accel and gyro are you using?


D H said:
Yech. Accerometers do not sense gravity. Nothing can (directly).

Uh, why not? Every accelerometer I have used detects a gravitational field. I can directly detect gravity. I don't understand this statement.
 
Topher925 said:
The first thing I do before I start anything is find all the necessary datasheets for the components I am working with. What accel and gyro are you using?

Uh, why not? Every accelerometer I have used detects a gravitational field. I can directly detect gravity. I don't understand this statement.

Accelerometers measure forces, which get converted into accelerations.
 
Topher925 said:
Uh, why not? Every accelerometer I have used detects a gravitational field. I can directly detect gravity. I don't understand this statement.
Accelerometers cannot, and nothing can, directly detect gravity.
  • Accelerometers would be much less useful for ground-based applications if they could directly detect gravitation. An accelerometer sitting still on the ground measures 1g directed upward precisely because accelerometers cannot sense gravitation. If they sensed gravitation also, they would register 0.034 m/s^2 at the equator, less elsewhere, and this acceleration would point toward the Earth's rotation axis. Accelerometers don't work that way, fortunately. They sense the outward normal force but not the inward gravitational force.
  • Spacecraft navigation would be much simpler if accelerometers could directly detect gravitation. Accelerometers on a spacecraft are sensitive to drag, thruster firings, acceleration due to spacecraft rotation, etc., but not gravitation. An accelerometer at the center of gravity of a non-firing, non-rotating spacecraft well outside Earth's atmosphere will register near-zero acceleration (all that's left is solar radiation pressure). Spacecraft navigation systems must instead compute the acceleration due to gravity. This means the onboard software needs to model of Earth's gravity field, and because Earth's gravity field is not spherical, the software need a model of Earth's rotation as well.
  • Einstein's theory of general relativity would be false if accelerometers could directly detect gravitation. That they cannot is a direct consequence of the equivalence principle.
 
D H said:
Accelerometers cannot, and nothing can, directly detect gravity.

Ok, now I understand, had momentary brain lapse. Accelerometers (and nothing for that matter) can directly detect a gravitational field but only the forces that the field generates.

PS: Sorry for hijacking the thread.
 
I'm trying to make a system that will allow me to record the acceleration/velocity of the foot during walking, as well as the rotational velocity of the foot. I'm using the MMA7455 3-Axis Accelerometer Module and the LISY300 Gyroscope Module. I'm not sure how and where to connect these sensors to in order to get readable data on a computer. How do I connect the sensors (to a board? What kind?) Also, I'm thinking about using a microcontroller and a transmitter. Would that work?
 
I'm not exactly sure why one would need a gyroscope and an accelerometer. What can you do with a gyro that you can't with an accelerometer?

But basically, you've got modules with SPI buses on them (one has I2C). You take your microcontroller of choice and wire 'em up like this: http://en.wikipedia.org/wiki/File:SPI_three_slaves.svg

Depending on what microcontroller system you're using you might have something with a transmitter on board. Alternatively, you could just wire it to the computer.

Of course, if you're willing to ditch those modules, you could just get yourself a ready made solution. A fun possibility might be this EZ430-Chronos sports watch development kit put out by TI. It's got an Accelerometer, wireless tranciever, and a microcontroller all in a cute little package!

http://focus.ti.com/docs/toolsw/folders/print/ez430-chronos.html
 
Last edited:
  • #10
So the accelerometer can give me rotational velocity of the foot during walking as well?

I'm still a beginner with wiring. Should I soder the sensor(s) to the board, then the microcontroller, then connect them? I'm just confused on the order of the connections. So i would just need the sensors, the microcontroller, the board, the battery, which would connect to the PC? Also how would I connect it to the computer. Would using the following work?

http://www.parallax.com/Store/Microcontrollers/BASICStampOEM/tabid/135/CategoryID/10/List/0/SortField/0/catpageindex/2/Level/a/ProductID/501/Default.aspx

It seems to have a connection that could connect to a PC.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
10K