BasicMicroUK - Forums
It is currently Sun Oct 21, 2018 4:29 pm

All times are UTC [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Gyro, compass or GPS?
PostPosted: Mon Apr 12, 2010 3:40 am 
New User

Joined: Mon Apr 12, 2010 3:25 am
Posts: 1
Hello Guys
I am looking for a device which will keep my remote controlled lawn mower ( search for joestoys123) going in a straight line when commanded to. I do not want it to be autonomous. I want to point it in a direction, press a button and let a device make steering adjustments until I tell it otherwise. I have seen a RC helicopter heading gyro which may work. Use a 555 to input pulses into the heli heading gyro and use another 555 to decode the gyros output into a voltage and feed the analog voltage into a pic A/D.
I need some pros/cons from someone who have used a gyro,compass or a gps. Thanks JoeDodge

 Post subject: Re: Gyro, compass or GPS?
PostPosted: Mon Apr 12, 2010 6:36 am 
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
Depending how accurate you need it the compass may be the easiest solution. With the gyro you will get accumulated error over time. Maybe the best solution would be both at once. The gyro for immediate changes and the compass to correct for gyro error.

Using a heading hold gyro(the expensive ones which compensate for drift) is doable. Actually interfacing to them would be tricky. You could provide a servo input signal to it from an AtomPro no problem(use hservo). Writing the code to read the modified signal the gyro would output and then convert it back into something useful for the micro would be difficult(though not impossible). You could use one of TimerWs input capture pins to read the servo pulse generated by the gyro. Subtract the period of the pulse sent to the gyro from hservo to get the gyro adjustment(eg turn left, turn alot left, turn right, turn alot right etc...).

Tech Support
Basic Micro - Robotic Technology Evolved

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]

Who is online

Users browsing this forum: No registered users and 0 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

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group