
08-11-2007, 09:59
|
 |
Mad Scientist
AKA: Me
 FRC #2040 (DERT)
Team Role: Engineer
|
|
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,964
|
|
|
Re: Deventeh Digatal - CMPS03 - Robot Compass Module
Quote:
Originally Posted by kE7JLM
I am in desperate need of help, I have been trying to integrate this compass for a while now with out any luck. At first we used interrupt code to read it, but the RC loop was too slow and did not give a accurate reading.
The compass has two interfaces, I2C, PWM. The PWM method is the one that did not work. Now since the RC is not compatible with I2C we bought a converter, it converts I2C to RS232. That means we have to connect it though the TLL port. But I have not experience with programming that port. Can anyone help me out. Anyone?
Thank You!
|
You may want to consider converting the PWM signal to an analog 0-5 Volt signal using something like this and then putting it into the analog in ports on the RC.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "- Tennyson, Ulysses

|