Go to Post It will mean far more than you can imagine...and really, you can't lose. - David Kelso [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 16-01-2009, 08:27
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Noisy Accelerometer

Quote:
Originally Posted by Al Skierkiewicz View Post
Lastly, have you insulated both the accelerometer and the CRIO? Sneak current through the robot frame will introduce noise as well.
Good Call, Al. It is good practice to check for chassis faults when this sort of thing happens.

LabVIEW has filters in its Signal Processing pallette, I'll try to write a blurb about them when I get time.
  #17   Spotlight this post!  
Unread 16-01-2009, 08:32
Felipe Sagui Felipe Sagui is offline
Registered User
FRC #1382 (EtepTeam)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Brazil
Posts: 25
Felipe Sagui is an unknown quantity at this point
Send a message via MSN to Felipe Sagui
Re: Noisy Accelerometer

If you read the accelerometer datasheet, the output signal can have a noise according with the internal frequency....or the noise from power supply

it's on page 7 on datasheet.

Quote:
For most applications, a single 0.1 μF capacitor, CDC, placed
close to the ADXL335 supply pins adequately decouples the
accelerometer from noise on the power supply. However, in
applications where noise is present at the 50 kHz internal clock
frequency (or any harmonic thereof), additional care in power
supply bypassing is required as this noise can cause errors in
acceleration measurement. If additional decoupling is needed,
a 100 Ω (or smaller) resistor or ferrite bead can be inserted in
the supply line. Additionally, a larger bulk bypass capacitor
(1 μF or greater) can be added in parallel to CDC. Ensure that
the connection from the ADXL335 ground to the power supply
ground is low impedance because noise transmitted through
ground has a similar effect as noise transmitted through VS.
__________________
Felipe Cezar Salgado
ETEPTEAM #1382
  #18   Spotlight this post!  
Unread 17-01-2009, 22:33
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Noisy Accelerometer

Quick update on our situation.

Today we accomplished many tests. Got assistance from another team who aided us in debugging our situation. There is not a current going through the robot. The "noisy-ness" still occurs whether we push the robot (without power) or drive the robot (with power). However, the noise does not occur when we "swing" the robot with our humans. We also let the robot sit in free-space and in a anti-static bags and it did not fix it. We tried a foam attachment to cancel out vibrations, not much help there. So we have found nothing to filter out this "noise", and we believe to have "broken" our accelerometer, as it returns nothing now but -5 G's (which apparently FIRST won't be selling).

So.... we're out of ideas...

-Tanner
  #19   Spotlight this post!  
Unread 17-01-2009, 22:48
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Noisy Accelerometer

If you are getting noise when the wheels are turning (by pushing or battery) but not getting it when the wheels are not turning, then it is most likely noise from your motor power lines. When you push the bot, the motors generate electricity because a DC motor is both a motor and a generator (depending on how you use it).

To reduce this problem, it would be best to locate the sensor near the controller to minimize the wire length. Also, avoid putting any major power supply line near the sensor. Consider shielding the sensor and the signal lines as well (an antistatic bag with an open end is not a quality shield).

If you need a replacement, there are many retailers who sell accelerometers. Sparkfun.com is a good supplier at a reasonable cost. However, this would count against your non-KoP spending limit.

-Jeff Erickson, FRC 41
  #20   Spotlight this post!  
Unread 18-01-2009, 08:43
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Noisy Accelerometer

It doesn't sound as if you've run the "up on blocks" test that I recommended - lift the robot off the ground and electrically spin the wheels. In this configuration, you should read zero acceleration (with the exception of gravity and any vibrations that couple the motors to the accelerometer).

Reading -5G is obviously an indication that something is broken. You'll need to either fix that problem (broken PWM cable?) or replace it before doing anything else.

Russ
  #21   Spotlight this post!  
Unread 18-01-2009, 09:05
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Noisy Accelerometer

-5G is probably 0V. This means you are either not powering the module or are not receiving the signal back.

Is the LED on the analog breakout lit?
  #22   Spotlight this post!  
Unread 18-01-2009, 15:50
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Noisy Accelerometer

Quote:
Originally Posted by jee7s View Post
To reduce this problem, it would be best to locate the sensor near the controller to minimize the wire length. Also, avoid putting any major power supply line near the sensor. Consider shielding the sensor and the signal lines as well (an antistatic bag with an open end is not a quality shield).
What types of shielding would be used to shield the sensor? I know what we can use for the wires, but don't know what we'd use for the sensor.

Quote:
Originally Posted by Russ Beavis View Post
It doesn't sound as if you've run the "up on blocks" test that I recommended - lift the robot off the ground and electrically spin the wheels. In this configuration, you should read zero acceleration (with the exception of gravity and any vibrations that couple the motors to the accelerometer).
Yeah, we ran that test yesterday, one of the first things we did. In that configuration we still had the noise (which probably just reinforces the fact of noise going through the motor wires).

Quote:
Originally Posted by EricVanWyk View Post
Is the LED on the analog breakout lit?
Yes, the LED in the analog breakout is lit.

Think we'll order another sensor or two, if this is the way we'd like to go.

Thanks
-Tanner
  #23   Spotlight this post!  
Unread 19-01-2009, 12:27
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Noisy Accelerometer

I am using a smoothing filter and it's working well, just don't try integrating it to get the velocity. The noise, insignificant on acceleration readings, always ruins velocity for me.

Btw, has anyone obtained a good velocity reading using the accelerometer? through which method?
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
  #24   Spotlight this post!  
Unread 19-01-2009, 12:39
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Noisy Accelerometer

Tanner,
Can you upload some test data that shows the noise (with sample rate/timing info)?

I'd like to see how much noise you're encountering. Please provide both "static" noise (no motors running) and "dynamic" noise (with motors running).

Also, can you put a jumper on an open analog input and measure your 5V power supply at the same time? I'd like to see that noise AND your battery voltage as well. More data is good. Maybe there is a correlation between your observed noise and noise on either the battery or 5V supply.

Russ
  #25   Spotlight this post!  
Unread 19-01-2009, 13:46
tpage22's Avatar
tpage22 tpage22 is offline
Registered User
AKA: Taylor Page
FRC #1503 (GM Spartonics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Burlington, Ontario
Posts: 8
tpage22 is an unknown quantity at this point
Re: Noisy Accelerometer

any accelerometer is going to give you a good deal of noise. Try using one that supports I2C. There are ports for I2C right on the digital sidecar, and I have heard that the these accelerometers eliminate most of the noise by themselves.

A affordable method I've thought about is using the Wiimote's Nunchuck. It uses the I2C protocol to interface with the wiimote, it only costs $25, and the accelerometer inside it goes for $40 last time I checked.

There are a lot of resources on the internet geared specifically towards interfacing with the nunchuck.
  #26   Spotlight this post!  
Unread 19-01-2009, 16:31
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Noisy Accelerometer

Quote:
Originally Posted by Daniel_H View Post
I am using a smoothing filter and it's working well, just don't try integrating it to get the velocity. The noise, insignificant on acceleration readings, always ruins velocity for me.

Btw, has anyone obtained a good velocity reading using the accelerometer? through which method?
Daniel,

We've gotten velocity readings from our accelerometer.

We modified the Gyro class, and made the m_analog member public. That way we can use the accumulator support in the Gyro class for the Accelerometer instead.

We manually specified accumulator centers and deadbands.

We also tweaked the averaging and oversampling bits on the analog module.

We are still having some problems with precision, but the numbers as is are useable for some basic autonomous movements. Maybe even good enough to accumulate again to get displacement data... we'll see!
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #27   Spotlight this post!  
Unread 01-02-2009, 15:33
weinbergmath's Avatar
weinbergmath weinbergmath is offline
Mentor to China FTC/FLL, FRC1230
AKA: Evan Weinberg
FRC #1230
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Hangzhou, China
Posts: 22
weinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to behold
Re: Noisy Accelerometer

Hi everyone,

I'm looking to do the same thing as you SlimBoJones, but in Labview. I have attached a VI with something that started as the 'Get Gyro Angle' vi, but made the changes I could see to the inputs to look at the accelerometer instead of the Gyro. I haven't tried it, as there is an error.

Two questions come out of this:

1. How can I modify the VI that changes the accelerometer DevRef global to the AI Channel cluster so that it works? At the moment, the error dialog says it's being referenced from outside the library, so it won't run. Is there another way to do this?

2. I don't understand the process of what the VI is doing with the accumulator to come up with the integrated value...is it enough to just feed it an accelerometer rate instead of angular rate, as well as the scaling and center voltage, and hope for the best?

Thanks for any and all responses...

Evan
Attached Files
File Type: vi Get V from Accelerometer.vi (38.5 KB, 52 views)
  #28   Spotlight this post!  
Unread 02-02-2009, 10:04
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: Noisy Accelerometer

We're seeing the same kind of jitter in the accelerometer from this years KoP. In all directions (x, y and z) we are getting odd values for an at rest bot. The nominal values are suppose to be 1.5V at rest. X is 1.84, Y is 1.76, Z is 1.74.

I tried resting the accelerometer on the ground, away from the bot and no change. I swapped the accelerometer with one from 2005, and while there's a little jitter it's in the +/- .002 range.

Now the new on is more sensitive (300 mV/G) and it's possible that we need to replace the bandwidth filter on the board, and isolate the board better but I'm leaning more toward that the board is broke.
  #29   Spotlight this post!  
Unread 02-02-2009, 11:23
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Noisy Accelerometer

Quote:
Originally Posted by mjcoss View Post
We're seeing the same kind of jitter in the accelerometer from this years KoP. In all directions (x, y and z) we are getting odd values for an at rest bot. The nominal values are suppose to be 1.5V at rest. X is 1.84, Y is 1.76, Z is 1.74.

I tried resting the accelerometer on the ground, away from the bot and no change. I swapped the accelerometer with one from 2005, and while there's a little jitter it's in the +/- .002 range.

Now the new on is more sensitive (300 mV/G) and it's possible that we need to replace the bandwidth filter on the board, and isolate the board better but I'm leaning more toward that the board is broke.
Your post is very informative, and a refreshing break from "It don't work". Thank You.

At rest, you shouldn't be able to see those values if everything is working - it corresponds to about 2.5g acceleration towards a corner. Something is wonky.

Do you have an oscilloscope? It could make debugging easier.

Can you plot the values over time? You may be able to see noise.

I would hold the accelerometer in each of the 6 basic positions (Z up, Z down, Y up, Y down, X up, X down) and record the values given. This may give you better insight into what is wrong.
  #30   Spotlight this post!  
Unread 02-02-2009, 11:55
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: Noisy Accelerometer

While our team is planning on using WindRiver, I hooked up the LabView Accelerometer VI to get the pretty pictures of what was going on with the sensor. It is a very jagged plot with a +/- 0.15 V, making it virtually useless. This test is being done on a bench test setup, the cRIO is on a piece of plywood, and the sensor is using a PWM cable that is long enough so that the sensor is resting on the floor. (and it a concrete floor in a manufacturing facility) We do have an oscilloscope and could test things.

I'm a mentor, and as such I'm at work at the moment so getting data will have to wait till this evening. For us, I suspect that we're going to use the older sensor because a) it works, b) only need x and y axis, and c) I doubt that were going to see 3G accelerations to warrant messing further with the newer device.

I just wanted to add some data to the discussion. I like the theory that it's just some noise artifact that could be corrected by either software or a hardware fix. But it seems to me that the board is bad.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
noisy ADCs on ports windell747 Electrical 0 14-02-2008 19:40
Noisy power supply interfers with rs232/ttl Mike Mahar Programming 1 27-01-2007 22:02
Accelerometer railerobotics Programming 1 27-01-2006 02:59
Accelerometer Tom McCurdy Programming 5 30-01-2005 23:45
Accelerometer buss Electrical 1 09-01-2005 00:10


All times are GMT -5. The time now is 02:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi