by Pev » Wed May 16, 2007 7:29 pm
by Pev
Wed May 16, 2007 7:29 pm
Humanoido wrote:So what would be involved in using this approach with the MR-C3024, I2C interface, and Basic X24? (hardware and software) or basic stamp, etc...
humanoido
Now there is a leading question. Firstly I found these post from KurtE:
*********************************************************
I finally had some success with bit banging out an I2C interface in RoboBasic. I ended up not using the SDA/SCL pins on the board as they are used by an EEPROM on the board and it is unclear in RoboBasic what IOPORTS are assigned to thise signals. Currenty I am using the ATOI 1 (33) and ATOI 2 (34) pins for SCL and SDA.
I have now can do pings on a Devantech SRF10 Range Finder.
*********************************************************
I believe a copy of the source code is still up at:
http://robosavvy.com/Builders/KurtE/I2C_Test.bas
The ATI pins are up upper right hand side of the board. At the point I did the post I was using ATI 1 and 2 as 0 was used for a GYRO. Currently I am using ATI 2 and 3 and I am now playing with two gyrsos and they use 0 and 1.
I hope this helps.
**********************************************************
So that has the code for making the MR-C3024 an I2C master. The tricky bit would be making it a slave so that it's "functions" could be called over I2C so for example a motion could be called by writing a motion number (11 for walk forward) to an I2C slave register.
Then a Master Processor ( the Basic X24 for example) could act a the primary and call the motions and also communicate with other I2C processors or units such as sonar LCDs etc etc
All very theoretical in reality other than the fact I have made an MR-8 CPU Board acting as a slave I2C device for another project driven by an AMTEL processor.
The Software for that system was all written in BASCOM basic.
Pev
Humanoido wrote:So what would be involved in using this approach with the MR-C3024, I2C interface, and Basic X24? (hardware and software) or basic stamp, etc...
humanoido
Now there is a leading question. Firstly I found these post from KurtE:
*********************************************************
I finally had some success with bit banging out an I2C interface in RoboBasic. I ended up not using the SDA/SCL pins on the board as they are used by an EEPROM on the board and it is unclear in RoboBasic what IOPORTS are assigned to thise signals. Currenty I am using the ATOI 1 (33) and ATOI 2 (34) pins for SCL and SDA.
I have now can do pings on a Devantech SRF10 Range Finder.
*********************************************************
I believe a copy of the source code is still up at:
http://robosavvy.com/Builders/KurtE/I2C_Test.bas
The ATI pins are up upper right hand side of the board. At the point I did the post I was using ATI 1 and 2 as 0 was used for a GYRO. Currently I am using ATI 2 and 3 and I am now playing with two gyrsos and they use 0 and 1.
I hope this helps.
**********************************************************
So that has the code for making the MR-C3024 an I2C master. The tricky bit would be making it a slave so that it's "functions" could be called over I2C so for example a motion could be called by writing a motion number (11 for walk forward) to an I2C slave register.
Then a Master Processor ( the Basic X24 for example) could act a the primary and call the motions and also communicate with other I2C processors or units such as sonar LCDs etc etc
All very theoretical in reality other than the fact I have made an MR-8 CPU Board acting as a slave I2C device for another project driven by an AMTEL processor.
The Software for that system was all written in BASCOM basic.
Pev