roboTT wrote:
Can you please make a shot how did you connect the compass to RN board?
Sorry I missed your post roboTT:
In my previously posted I2c code I used ports 5 and 10, and later ..... ports 15 and 16 however, based on advice from i-Bot i decided to change the PWM ports 46 and 47 as they are rarely used.
Therefore:
- Code: Select all
CONST SDA = 46 'Use port 15 for Data, constant SDA
CONST SCL = 47 'Use port 16 for Clock, constant SCL

See port assignments here:
http://robosavvy.com/Builders/i-Bot/C3024%20ports.pdfRoboJeronimo wrote:
I tried with your code (the last you posted) but i'm making something wrong. I think my i2cdata variable is always at 255.
...
Can u help me?
Sorry to hear this, I will try...? If you are using the old 15,16 ports have you disabled you motor outputs?
Note: Not related to the core i2c code, Ive just seen some strange code in the TurnReqHeading routine

.....the if statements were jumbled up... maybe got mixed up with the BBCode when I originally pasted them in?
...so I have deleted the old code segments and uploaded a PDF with the "correct" code segments in , sorry if this has caused anyone problems.
John wrote:
The problem that immediately came to mind was not only the initial calibration but the noise induced by all the motors/moving metal work and the electronics.
Has this proved to be an issue?
The CMPS03 seems be far enough away from the servos to work fine in single byte mode. The main problem I had was that I wanted to mount a speaker in the head for the SP03..... the mag field did mess up the compass so I used a piezo speaker instead.....not really getting much volume from that though
Currently I do not have either connected, will have to see what I can fit in the new design...but don't hold your breath....
I was thinking of using the Cameras from Sparkfun as they are already digital and probably even smaller than the units you have pre installed in your head.
Sounds great! please post the pics
Out of interest wouldn't say some IR leds or 2D bar code symbols in it's environment be at least as good to direct your RN especially in a crowded home with lots of Mag field distortions ??
Yes, or perhaps a the camera from a wiimote

roboTT wrote:
Can you please make a shot how did you connect the compass to RN board?
Sorry I missed your post roboTT:
In my previously posted I2c code I used ports 5 and 10, and later ..... ports 15 and 16 however, based on advice from i-Bot i decided to change the PWM ports 46 and 47 as they are rarely used.
Therefore:
- Code: Select all
CONST SDA = 46 'Use port 15 for Data, constant SDA
CONST SCL = 47 'Use port 16 for Clock, constant SCL

See port assignments here:
http://robosavvy.com/Builders/i-Bot/C3024%20ports.pdfRoboJeronimo wrote:
I tried with your code (the last you posted) but i'm making something wrong. I think my i2cdata variable is always at 255.
...
Can u help me?
Sorry to hear this, I will try...? If you are using the old 15,16 ports have you disabled you motor outputs?
Note: Not related to the core i2c code, Ive just seen some strange code in the TurnReqHeading routine

.....the if statements were jumbled up... maybe got mixed up with the BBCode when I originally pasted them in?
...so I have deleted the old code segments and uploaded a PDF with the "correct" code segments in , sorry if this has caused anyone problems.
John wrote:
The problem that immediately came to mind was not only the initial calibration but the noise induced by all the motors/moving metal work and the electronics.
Has this proved to be an issue?
The CMPS03 seems be far enough away from the servos to work fine in single byte mode. The main problem I had was that I wanted to mount a speaker in the head for the SP03..... the mag field did mess up the compass so I used a piezo speaker instead.....not really getting much volume from that though
Currently I do not have either connected, will have to see what I can fit in the new design...but don't hold your breath....
I was thinking of using the Cameras from Sparkfun as they are already digital and probably even smaller than the units you have pre installed in your head.
Sounds great! please post the pics
Out of interest wouldn't say some IR leds or 2D bar code symbols in it's environment be at least as good to direct your RN especially in a crowded home with lots of Mag field distortions ??
Yes, or perhaps a the camera from a wiimote
