Archives by Tag 'AVR C'

Adding Infrared Distance Sensors to an AVR Atmega32

By aliasmrjones - Last updated: Thursday, April 16, 2009

After the test run on the actual race course, it was clear that GPS was not going to be accurate enough to keep the car out of the pond.  I tried sonar, which is great for general obstacle avoidance because it will detect basically anything in a 45 degree cone, but it didn’t work well [...]

How to read rc servo pulses with an AVR Atmega32 and final board construction

By aliasmrjones - Last updated: Monday, April 13, 2009

In the last post we took a run around the race course and found out we will need obstacle avoidance.  I forgot one step – putting the final board together.  In this installment I will show how I read rc server pulses from the receiver allowing me to use the rc transmitter as a failsafe [...]

Adding an I2C Compass to the AVR Atmega32

By aliasmrjones - Last updated: Monday, April 6, 2009

The new 5hz gps module I added in the last post is working.  Now, to tackle the biggest problem discovered during Deathpod3000’s maiden voyage, we need a way to get very fast heading updates during turns.  While the faster refresh rate of the new gps will help, it is never going to give us accurate [...]

Adding a 3.3v GPS to a 5v AVR Atmega32

By aliasmrjones - Last updated: Monday, April 6, 2009

So the maiden voyage of Deathpod3000 was a disaster.  The problems seemed to be twofold.  One, gps updates were too slow and two and probably most importantly, heading info coming from the gps was way too slow to be useful in turns.  The net result was that it mostly drove around in circles.  I decided [...]

AVR servo control

By aliasmrjones - Last updated: Friday, March 13, 2009

In the last post we built some functions to store and retrieve waypoints and settings to/from EEPROM. Now our waypoints and settings will survive power being turned off. The next and virtually last thing we need is to be able to control servos. Both steering and the throttle of our r/c car [...]

AVR EEPROM Tutorial

By aliasmrjones - Last updated: Saturday, March 7, 2009

The last post we figured out how to calculate distance and bearing to a waypoint, the fundamentals of our navigation routine.  Now that we can determine where to go, we have to create a way to store and retreive the waypoints we want to follow.  That is the topic for today.