Go to Post last year I wanted to electrically charge our frame, then cover the whole bot in tape and say it was for insulating purposes. Then I settled down and read the rule book. - russell [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2009, 18:17
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
Accelerometer Problems

We just got our accelerometer wired up and connected, however, it is not outputting any acceleration. We think our code should be functional, but if someone could post some working code so that we could test if the wiring is defective or not, then I would be very appreciative.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2009, 21:01
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Accelerometer Problems

There are several posts on correct wiring; search them out and look if the wiring is right first.
Or post how you wired it so we can check it.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2009, 15:04
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
Re: Accelerometer Problems

Here are some pictures of how it is wired, forgive me if they are bad angles/bad quality. Also, here is a rough diagram of how it is wired:

o=wired
x=unwired

X Y Z
o o o (sig)
o o x (5v)
o o o (0v/ground)

Also, to expound on our problem, the only outputs we get are either constant negative numbers (ex: an unchanging -.983) or a sequence of bizzare negative numbers.
Attached Files
File Type: zip Accelerometer Pics.zip (39.9 KB, 43 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2009, 00:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Accelerometer Problems

Quote:
Originally Posted by VeedotJaydot View Post
Here are some pictures of how it is wired, forgive me if they are bad angles/bad quality. Also, here is a rough diagram of how it is wired:
That only shows us one end of the connection. What we really needed to know is where the other end of each of those wires is going.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2009, 14:54
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
Re: Accelerometer Problems

Here are some picture of the accelerometer connected to the analog module, as requested. Sorry in advance again if these are low quality/insufficient.
Attached Files
File Type: zip Accelerometer part deux.zip (33.6 KB, 41 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2009, 16:19
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
Re: Accelerometer Problems

Sorry to double post, but we resolved the problem. It seemed that we needed to scale the accelerometer drasticly to have any useful value.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2009, 16:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Accelerometer Problems

I hope you merely unplugged the 12 volt supply from that analog breakout's power connector so you could get a good photo of the sensor cables...

...but in case that's an accurate picture of how your control system looks when you're running it, the missing power connection explains your problem perfectly. The 12 volt input to the breakout is used to generate the 5 volts to power the accelerometer.

Just so we're clear on this, the tiny green LED on the analog breakout board needs to light up when you power up the control system. If it doesn't, you're not providing power to the sensors.
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2009, 16:59
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: Accelerometer Problems

I use this VI to test accelerometer wiring. It isn't ready for prime time, so please excuse any messiness. If someone wants to pretty it up and repost it, I'd be eternally grateful for at least a week.

It does silly things like assume everything is plugged into the first bumper, and I haven't figured out how to get the time to display on the waveform chart properly yet. I'm still learning this labview thing.

TODO:
Add miswiring indicators (alert! Y axis is unplugged!)
Add out of spec indicators (alert! you are on the moon!)
Prettify it.
Attached Files
File Type: vi Accelerometer Test.vi (38.8 KB, 43 views)
Reply With Quote
Reply


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
gyro and accelerometer problems paulcd2000 Programming 6 16-02-2008 15:17
Accelerometer railerobotics Programming 1 27-01-2006 02:59
accelerometer problems kjohnson Programming 3 02-02-2005 10:53
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 08:10.

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