Lynxmotion Tech Support

www.lynxmotion.com
Join the Accelerator Program
It is currently Wed Jun 19, 2013 7:07 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Jan 29, 2012 12:16 am 
Offline
Roboteer

Joined: Sat Feb 16, 2008 8:54 pm
Posts: 73
I wrote i little bit of basic code for an accelerometer and atom pro. It is really hard to get it working, i am just fiddling around a little right now. Only problem i keep on having is that that read out from the accelerometer is somewhat jerky, probably due to jitter etc of the servos, because when powered down there seems to be less of a problem with the value. I have tried averaging, that is to say, instead of taking one measurement i took several and averaged. I made i deadzone, but still. The deadzone has to be quit big to have it less jerky (30 percent of the range!?!). Anyone suggestions as to how the get a value that is less susceptible to instant changes? Anyone some example code how they solved it? I put a small movie in wich i reversed the x and y output. So now it doesn't level on the floor, but 'in the air'. And it does a calibrate routine first, asi said i was fiddling around. You can see it works...somewhat, but pretty jerky. Any advice is welcome...



Top
 Profile  
 
PostPosted: Sun Jan 29, 2012 5:40 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
Hard to tell. I played with a 2D accelerometer, but didn't get it on a 'bot yet.

Where is the sensor located? Is it up in the "head"? If so, Looks like the "neck" is flexible; maybe it gets bounced more?

Your deadzone and averaging sounds reasonable. Maybe graph it out? A little sensor fusion (if you have other sensors) or filtering might work.

Alan KM6VV


Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
PostPosted: Mon Jan 30, 2012 12:35 am 
Offline
Robot Guru
User avatar

Joined: Wed Feb 27, 2008 8:59 am
Posts: 3186
Location: Online @ innerbreed.co.uk
Its a catch 22 on this one. Iv been observing the footage and from what i can see everything it working fine. Or as its designed to do. By this i mean as the sensor is tilting (by you) the legs are working as they should. But when you place it on the table (tilted) it won't return to normal because you haven't told it to. The sensor remains tilted because the legs are doing what their told to do by the sensor. If that makes sense. Can you post your code? You need to make a command to make the body return to normal.

_________________
Jonny Poole,
Freelance Concept Art & Animatronics, 3D Art and 3D Modelling, as well as Physical Modelling, Mechanical design, and illustration.
http://www.innerbreed.co.uk
Create, Innovate, Inspire.


Top
 Profile  
 
PostPosted: Mon Jan 30, 2012 1:04 am 
Offline
Roboteer

Joined: Sat Feb 16, 2008 8:54 pm
Posts: 73
Thanks for the reply, made me think.

About the placement. I was thinking the closer to the center (x,y and z) the better. I have fixed it to the body because it seems to experience te least amount of interference there (jitter etc.) And besides the averaging and the deadzone i was thinking about a default to zero of a kind.... so innerbreed that does make sense.

I'll try that and post the results.


Top
 Profile  
 
PostPosted: Mon Jan 30, 2012 9:57 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Some accelerometers have a place to solder in a capacitor across the analog output that can be used to directly filter the output. Might be worth a try. I think the main problem is an accelerometer will provide the angle of the object it is connected to when it is stationary, but it has errors when the object is in motion. I think if it were to be accompanied with a gyro the error could be corrected.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Mon Jan 30, 2012 10:06 am 
Offline
Roboteer

Joined: Sat Feb 16, 2008 8:54 pm
Posts: 73
Okidoki, that helps! I am first gonna be stubborn i guess and try a software sollution and then go on to the capacitor and eventually the gyro sollution....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group