Go to Post When in doubt, ask... don't assume (unless you don't mind wasting time/money). - Bill Gold [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 04-03-2013, 21:00
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Accelerometer (4 pin) with Java

We've looked at this for an hour and can't figure out for the life of me how to wire and program the 2013 accelerometer. Is it digital or analog? Which pins go where? How do I instantiate it in java (and get input)?
  #2   Spotlight this post!  
Unread 04-03-2013, 21:40
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Accelerometer (4 pin) with Java

As for wiring it. It uses I2C (I squared C). The I2C port on the Digital Sidecar is located behind the Phone-like jack (Which is also an I2C jack for use with Certain sensors), as seen in the image below. (Note: ONLY the one closest to the phone-like port is I2C, the other 4 pins next to that are not).



For programming I will refer you to the code we used this year. We use it in a PID loop for use in Leveling our robot during climbing.

Subsystem:
ClimbingMotor

Command:
LevelDuringClimb

Forgive any roughness in this code, it was done by our newer programmers. Any other questions, please ask away!
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker

Last edited by gixxy : 04-03-2013 at 21:47.
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


All times are GMT -5. The time now is 20:16.

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