 by Zacohk » Thu Jul 28, 2011 3:32 pm
                by Zacohk » Thu Jul 28, 2011 3:32 pm
            
            
                     by Zacohk
                by Zacohk
Thu Jul 28, 2011 3:32 pm
            
            
            I took some time rewriting my server and other functions from Python to C. I found that Python was not fast enough on this board and I had some difficulties with some protocols.
I wanted to collect a maximum of environment data and display them to the web control page.  ( a next step will be to use these  data in a autonomous navigation program).
 
I gathered a batch of small I2c sensors and connected them in serial to the Bifferboard IO (pin 9 &12).
Following posts give  details and code samples showing how to configure and read the I2c sensors with a  Bifferboard running a Debian Squeeze distro with relevant patches (there is a link on my blog to download it).
Bifferboard preparation: 
Compile and install the i2c tools.
Then, add the following command in a startup script:
modprobe rdc321x_gpio
modprobe i2c-algo-bit
modprobe i2c-gpio
modprobe i2c-gpio-custom bus0=0,12,9       // I2c Pin 
modprobe i2c-dev
In this configuration Pin 12 = SDA, Pin 9 = SCL
 
All the following codes are compiled on the Bifferboard with GCC
I took some time rewriting my server and other functions from Python to C. I found that Python was not fast enough on this board and I had some difficulties with some protocols.
I wanted to collect a maximum of environment data and display them to the web control page.  ( a next step will be to use these  data in a autonomous navigation program).
 
I gathered a batch of small I2c sensors and connected them in serial to the Bifferboard IO (pin 9 &12).
Following posts give  details and code samples showing how to configure and read the I2c sensors with a  Bifferboard running a Debian Squeeze distro with relevant patches (there is a link on my blog to download it).
Bifferboard preparation: 
Compile and install the i2c tools.
Then, add the following command in a startup script:
modprobe rdc321x_gpio
modprobe i2c-algo-bit
modprobe i2c-gpio
modprobe i2c-gpio-custom bus0=0,12,9       // I2c Pin 
modprobe i2c-dev
In this configuration Pin 12 = SDA, Pin 9 = SCL
 
All the following codes are compiled on the Bifferboard with GCC