Go to Post FIRST MANTRA: When Lawyer-ism fails, Gracious Professionalism Prevails! - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #1   Spotlight this post!  
Unread 06-02-2010, 11:08
TPekarjr TPekarjr is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 1111
Location: Summersville
Posts: 7
TPekarjr is an unknown quantity at this point
Wiring The accelorometer

well funny story, at my robo shop i wired acccelorometers, turns out i wired accelorometers that were a year old and was only 2 axis o.O.... Soo inturn we located the latest accelorometer and its 3 axis.. so i did some homework trying to understand exactly how to wire it but proved to be unseccessful.
can anybody help me with wiring pwm cables to the accelorometer? thank you
  #2   Spotlight this post!  
Unread 06-02-2010, 11:17
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Wiring The accelorometer

Have you looked at the sensor manual? http://usfirst.org/roboticsprograms/...nt.aspx?id=452
  #3   Spotlight this post!  
Unread 06-02-2010, 11:23
TPekarjr TPekarjr is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 1111
Location: Summersville
Posts: 7
TPekarjr is an unknown quantity at this point
Re: Wiring The accelorometer

yes i have, and i dont quiet understand it. i mean i know the ports... but exactly how, i am a little confused at the moment
  #4   Spotlight this post!  
Unread 06-02-2010, 21:22
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,113
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: Wiring The accelorometer

Quote:
Originally Posted by TPekarjr View Post
yes i have, and i dont quiet understand it. i mean i know the ports... but exactly how, i am a little confused at the moment
If you're using LabVIEW, there is an example showing how to use the accelerometer board with its I2C connection. I haven't looked closely at the C++ or Java environments to see what sort of accelerometer examples they have.

Quote:
Originally Posted by the Sensor Manual
The I2C port is found on J2 and was designed to be easily wired to the pins on the Digital Sidecar found directly behind the NXT connector. Connect 5V to 5V, SCL to SCL, SDA to SDA, and (-) to 0V.
Are those directions exact enough, or do you need more information?
  #5   Spotlight this post!  
Unread 12-02-2010, 18:19
TPekarjr TPekarjr is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 1111
Location: Summersville
Posts: 7
TPekarjr is an unknown quantity at this point
Re: Wiring The accelorometer

i still quiet don't get it... i read the instructions but still don't understand it... i hate to be a noob but i am wiring it with pwm cable..and using all 3 axis... can someone just tell me what color on the pwm goes to what port on the accelerometer... it would be much appreciated =D
  #6   Spotlight this post!  
Unread 12-02-2010, 18:35
DuaneB's Avatar
DuaneB DuaneB is offline
Registered User
FRC #1731
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Virginia
Posts: 20
DuaneB is an unknown quantity at this point
Re: Wiring The accelorometer

Quote:
Originally Posted by TPekarjr View Post
i still quiet don't get it... i read the instructions but still don't understand it... i hate to be a noob but i am wiring it with pwm cable..and using all 3 axis... can someone just tell me what color on the pwm goes to what port on the accelerometer... it would be much appreciated =D
If you're using PWM cable, you'll need to add a fourth wire to use I2C. The number of axes don't matter (for the wiring) and colors don't matter (though it may help to have black wire on 0V and red wire on 5V) - you just need to make sure the wires connect the same pins at each end. That is, the 5V pin on the accelerometer connects to the 5V pin on the digital side car, SDA to SDA, SCL to SCL, and 0V to 0V. Make sure you don't reverse one of the connectors and connect 5V to 0V or vice versa.
  #7   Spotlight this post!  
Unread 12-02-2010, 18:36
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Wiring The accelorometer

Well, that's the trouble.
It's not a PWM cable; it has 4 connections.
5v, GND, SCL, and SDA
You can find the 4-pin header on the digital sidecar, right next to that female RJ-14 (modified phone jack).
However, beware that on the accelerometer, they are in a different order than on the digital sidecar.
You must solder a pigtail or header to the accelerometer.
__________________
-- Marshal Horn
  #8   Spotlight this post!  
Unread 17-02-2010, 21:19
LinuxArchitect LinuxArchitect is offline
Registered User
AKA: George Boyce
FRC #0053 (Cow Abductors)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Greenbelt MD
Posts: 78
LinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to all
Re: Wiring The accelorometer

The other way to wire the accelerometer might be easier if you just have the three wire pwm cables.

Quote:
The SPI port is found on J4 and was setup to be easily wired to the Digital I/O on the Digital Sidecar. Although the pins can be connected to any GPIOs in any order, it is easiest to use Digital I/O 1-4. Connect 0V and 5V to the (-) and PWR pins that are just beyond Digital I/O 1, and [CK, DI, DO, CS] in order.
Looking at the 8 J4 connections, wire two pwm cables to the bottom 6. Plug the first one into the digital IO port 1 like a normal connection. Plug the second one across the signal pins of ports 2 , 3, and 4. This is slightly different from the doc quoted above which says to use the power pins located just below the port 1 pins. Not sure why it would matter.

Then go run the ADXL345 SPI Accelerometer example program and verify that you have everything wired correctly. It seemed to work for us today.
  #9   Spotlight this post!  
Unread 18-02-2010, 02:40
miniman's Avatar
miniman miniman is offline
Registered User
FRC #0701
 
Join Date: Sep 2007
Rookie Year: 2007
Location: fairfield
Posts: 10
miniman is an unknown quantity at this point
Re: Wiring The accelorometer

Just a note, but keep in mind that this is a digital accelerometer and not an analog accelerometer. Years before they have given us analog ones the digital ones are a little more interesting to wire.

We are using last year's 3-axis analog accelerometer for ease of use.
__________________
--The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...' -Issac Asimov
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
Wiring the wireless bridge to the robot CHSboy Electrical 5 16-02-2009 23:30
Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program EHaskins Programming 8 22-05-2006 12:08
Wiring the relay for the pnumatics Placebo OCCRA 3 05-11-2002 23:04
Wiring the actuator archiver 2001 5 23-06-2002 23:11
What is the wiring for the FESTO valve? Nuts4FIRST Technical Discussion 4 12-02-2002 17:14


All times are GMT -5. The time now is 12:35.

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