Tag Archives: c

Arduino GPS-based Lap Timer Revisited

GPS-based lap timing code is located here. The source code provided is an MSVC program used for testing purposes. This is simply the basic algorithms needed to function. Very little error checking is performed by the program. It can easily … Continue reading

Posted in arduino, c | Tagged , , | Leave a comment

Arduino C Pointers

Below is an arduino program which demonstrates some basic principles about pointers. Keep in mind, memory pointers (i.e. pointers to variables) are pointers to SRAM memory, while function pointers are pointers to flash memory. The AVR uses a modified Harvard … Continue reading

Posted in Uncategorized | Tagged , , , , | 1 Comment

Arduino Variable Sizes

char / signed char / int8_t signed 8 bits (1 byte) -128 to 127 byte / unsigned char / uint8_t unsigned 8 bits (1 byte) 0 to 255 (2^8 – 1) int / short / int16_t signed 16 bits (2 … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

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

Serial Transfer of Text File from PC to Arduino

I need to make a GPS Simulator to assist in the development of my Predictive Lap Timer Project. I have some data files (Race Technology DL-1 Data Logger) from racing at various tracks, and I realized I could use this … Continue reading

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

Book Recommendation

Caveat: It’s always risky to prescribe the best of anything. “bestness” can’t be proved objectively unless everybody has agreed in advance to the terms-and that would take much of the fun out of it. -Paul A. Merriman While I hesitate … Continue reading

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

Mixing C and Assembly in AVR GCC and AVR Studio 4

First, forget trying to learn the inline assembler syntax. I’ve read and re-read the AVR-GCC Inline Assembler Cookbook, and for the moment I can’t recall one useful detail. From the Cookbook: “Because of a lack of documentation, especially for the … Continue reading

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