<< return to Pixycam.com

I2C error "cs error" with Arduino

Hello, I found nothing on the forum to solve my problem. I can not connect my pixy in I2C with the 0.1.7 library, while it works with 0.1.5 library. I get the error “cs error”. My firmware is 2.0.17, and 2.0.8 version of pixmon.
I repeat that it worked in 0.1.5 library.
Thank you for helping me.

Edit:
Sorry, in fact it was because of the Arduino NG (atmega 168). With an Arduino UNO, there is no problem. So the Atmega 168 does not support the latest library.

Hello Olivier,
Do you get the cs error message intermittantly, or constantly?

cs errors can sometimes crop up when there is a checksum error, caused by a long cable, and/or noise on the communications signals. They can be reduced by reducing the datarate (since it’s I2C, the datarate is set on the host (Arduino) end), and/or reducing the cable length, if the cable is longer than say 2 feet or so.

Edward

Hello, I have only this error on a Atmega168 with 0.1.7 Arduino library. With the 0.1.5 library, no problem but these are the servos commands (setServos) that are not working. I tested with a 10 centimeters cable and the I2C example provide with the library. With an Arduino UNO, no problem, but I wanted to use this motor control card AR1(http://www.gotronic.fr/pj-654.pdf), which is a bit old but very effective.

Hello Olivier,
This is an important question: do you get the cs error message intermittantly, or constantly?

Also, make sure you are using the latest firmware. (version 2.0.17)
http://cmucam.org/projects/cmucam5/wiki/Latest_release

Does the hello_world example produce the cs error message?

Edward

Hello,

I have no problem with the hello_world example that does not concerne i2c but with the i2c example, and i get the cs error message constantly with the latest firmware (2.0.17).

Hello Olivier,
Thanks! OK, it sounds like you have a lack of communication in I2C.

Just so I can reproduce this, let me finish gathering information. You are using firmware 2.0.17, Arduino library 0.1.7, the i2c example and an Arduino NG, correct? You have to make your own cable since you are using I2C, but can you tell me how you are hooking up the Pixy’s I/O port, which pin goes to which pin?

Edward

Thank you for trying to help me. I have managed to connect my pixy with my NG using i2c, but with the old library (0.1.5). So I think it’s not a cable problem. With the latest library (0.1.7), I get the error “cs error”.

I do not have much experience but still i want to do work on your problem.
Please share your all hardware setup details and he specifications of all the components you have in the setup.
And also upload your firmware if you can.

http://www.7pcb.co.uk/SMT-assembly/