|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: October 27, 2012, 04:43:31 am » |
I'd go for the digital one.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Netherlands
Online
Tesla Member
Karma: 90
Posts: 9438
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #2 on: October 27, 2012, 04:52:23 am » |
best? What is your definition of best? How many samples do you want to take? frequency, precision, etc. What is the ultimate goal of your project?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #3 on: October 27, 2012, 04:55:08 am » |
I'm fairly new to electronics and haven't really done alot. I suppose i'd be looking to calculate the angle every second or so.
The ultimate aim of the project is to build a handheld device which is capable of detecting slopes (i.e. angles) when placed on surfaces or objects.
If I'm right in saying the digital one is the MMA8452Q accelerometer?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Online
Tesla Member
Karma: 90
Posts: 9438
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #4 on: October 27, 2012, 05:01:25 am » |
If I'm right in saying the digital one is the MMA8452Q accelerometer? yep! there is example code on the page of teh shop that should help you to get started.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #5 on: October 27, 2012, 05:04:19 am » |
Thanks.
Do you think that it would be possible to have an accelerometer, shift register, 4-digit 7 segment display, LED, push button and Arduino Nano on all on the same breadboard (half)?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Online
Tesla Member
Karma: 90
Posts: 9438
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #6 on: October 27, 2012, 05:09:39 am » |
you are talking about an optimization that you should not do in this phase of the project. First get it to work right, second get it to work fast enough and third productise it  in other words, just take a full breadboard, you will need it in the future anyway (I assume)
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #7 on: October 27, 2012, 07:51:57 am » |
Which of the following accelerometers is best? You can perform adc much faster than performing an i2c / spi read. Whether speed is important to you however will depend on your application.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #8 on: October 27, 2012, 11:38:56 am » |
You can perform adc much faster than performing an i2c / spi read. ...but not to the twelve bits resolution offered by the digital device, without using additional hardware.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #9 on: October 28, 2012, 03:23:55 am » |
What kind of speeds are we talking about here?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #10 on: October 28, 2012, 03:57:07 am » |
This is the circuit that I have designed for my application. Can you see any obvious mistakes or ways that I could improve the circuit layout? Ideally I'd like to get all of the components on a single half breadboard (except the display) but I don't know if this will be possible. 
|
|
|
|
« Last Edit: October 28, 2012, 04:00:53 am by evans123 »
|
Logged
|
|
|
|
|
|