Go to Post We've done all the speculation we can do (some of us with less knowledge than others); let's rest our minds and keyboards and wait. - Astrokid248 [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
  #1   Spotlight this post!  
Unread 20-12-2014, 23:05
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Using KOP Gyro on Arduino?

I'm trying to get an angle reading from it, but I cannot find any libraries or code for it. Can someone help? Thank you.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
  #2   Spotlight this post!  
Unread 21-12-2014, 01:25
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: Using KOP Gyro on Arduino?

You don't need a library. After doing this maybe you could even help out the community by writing your own.

Did you already check out the data sheet? I assume you're talking about this one.

If you scroll down to the section on the Gyro it tells you how the sensor works. For starters you should be connecting it up to +5v and ground, and then connecting both the temperature and rate to analog inputs on the arduino. The datasheet then tells you everything you need to know for sensing the rate of change of the robot's angle. Integrate that in your code to get the angular displacement.

I think you learn more by figuring it out on your own, I know I have, so if you need any more pointers I'll point you in the right direction


If you want more help this page will detail pretty much what you have to do, minus any temp stuff. I'm hoping you already found this though since I just googled "arduino gyro"...
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award

Last edited by dellagd : 21-12-2014 at 01:29.
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 02:45.

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