Monthly Archives: March 2012

Predicitive GPS Lap Timer (PC Prototype Version)

Here is a data file representing several laps of the Portland International Raceway. The data consists of 7,376 5Hz GPS RMC (filtered) sentences extracted from a Race Technology DL-1 Data Logger. The file has a .doc extension but its actually … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 10 Comments

Hardware Interfacing Basics

Here and here are two good primers on µC hardware interfacing techniques.

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Detect GPS Crossing a Boundary Line v2.0

Under testing I’m getting good results using the following code to determine if crossing the startline. Please note the code is missing some bound tests which would prevent division by zero, etc.

Posted in Uncategorized | Tagged , , , , , , , , | 10 Comments

Detect GPS Crossing a Boundary Line

Here is some mixed code and pseudo code that represents my 2nd attempt to detect when a GPS crosses a boundary line. The boundary line in my case is the start/finish line of a race course. I want the code … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Examination of the Arduino micros() Function

Background To fully understand the micros() function, you first need to understand the Timer #0 overflow interrupt handler which was covered in this post. Recall the typical Ardiuno runs on a 16MHz oscillator. Both the millis() and micros() functions base … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 9 Comments

Examination of the Arduino millis() Function

Clock Cycles First, some background information. The typical Arduino has a 16MHz oscillator. A 16MHz oscillator results in the microcontroller having a clock cycle once every 16-millionth of a second. A clock cycle is roughly the time it takes for … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 27 Comments

Which Bootloader Do I Have?

Is it’s easy to find out which boot loader is stored in the ATmega? That would indeed be very useful, especially since so many different versions are floating around. See this JeeLabs Blog post with links to code. BTW, if … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Arduino Scripted GPS Simulator v2.0

Find below an updated version of my Arduino Scripted GPS Simulator. Here are some of the program’s features: Configurable update rates: 1, 5 and 10Hz. Outputs NMEA RMC Sentences (can easily be converted for others). Uses Arduino DataFlash Library to … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Arduino Scripted GPS Simulator

Here is the basis of the Arduino program for my scripted GPS simulator. It works with the following test data file loaded into dataflash (see: Serial Transfer of Text File from PC to Arduino). Sample Data File: 045.593980122.690800292.10084.22 245.593980122.690800292.15084.97 445.594090122.691100291.01092.06 645.594120122.691200291.11087.55 … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment