Show Posts
Pages: [1]
1  Products / Arduino Due / Re: i2cdevlib + MS561101BA + due on: June 09, 2014, 05:27:43 pm
On some boards, you have to put a blob of solder on the board in order to select i2c.  So make sure that you can see the device with i2cscanner.

Also, the due has problems with i2c. If you can't see it with i2cscanner, then you have to use a modified Wire.h file - https://raw.githubusercontent.com/bluesign2k/Arduino/d8d6d62853a5308c21b95dad4bdd64e358e857cc/hardware/arduino/sam/libraries/Wire/Wire.cpp

2  Products / Arduino Due / Re: Due I2C not working on: May 29, 2014, 03:40:37 am
This is a confirmed bug in the arduino Wire library:  https://github.com/arduino/Arduino/pull/1994

Specifically:

Download:

https://raw.githubusercontent.com/bluesign2k/Arduino/d8d6d62853a5308c21b95dad4bdd64e358e857cc/hardware/arduino/sam/libraries/Wire/Wire.cpp

And overwrite in your arduino installation: hardware/arduino/sam/libraries/Wire/Wire.cpp

For me, this just fixed i2c on the Due.

Other people said that it gave a compile error - I don't know why.
3  Products / Arduino Due / Re: Is I2C working correctly on 1.5.5?? on: May 16, 2014, 07:03:08 pm

Specifically:

Download:

https://raw.githubusercontent.com/bluesign2k/Arduino/d8d6d62853a5308c21b95dad4bdd64e358e857cc/hardware/arduino/sam/libraries/Wire/Wire.cpp

And overwrite in your arduino installation: hardware/arduino/sam/libraries/Wire/Wire.cpp

For me, this just fixed i2c.
4  Products / Arduino Due / Re: How to use second I2C? on: May 16, 2014, 07:01:59 pm
> I tried using accelerometer on pins 20 & 21 but it seems like there is something wrong with the board

For those wondering, this is a confirmed bug in the arduino Wire library:  https://github.com/arduino/Arduino/pull/1994

Specifically:

Download:

https://raw.githubusercontent.com/bluesign2k/Arduino/d8d6d62853a5308c21b95dad4bdd64e358e857cc/hardware/arduino/sam/libraries/Wire/Wire.cpp

And overwrite in your arduino installation: hardware/arduino/sam/libraries/Wire/Wire.cpp

For me, this just fixed i2c on the Due.
5  Products / Arduino Due / Re: Due I2C not working on: May 16, 2014, 06:58:35 pm
I had the same problem with the GY-521.

Use the fix also worked for me.

Specifically:

Download:

https://raw.githubusercontent.com/bluesign2k/Arduino/d8d6d62853a5308c21b95dad4bdd64e358e857cc/hardware/arduino/sam/libraries/Wire/Wire.cpp

And overwrite in your arduino installation: hardware/arduino/sam/libraries/Wire/Wire.cpp

For me, this just fixed i2c.
6  Development / Other Software Development / Stepper Motor library and example on: May 11, 2011, 05:31:10 pm
Hi all,

  The stepper motor library does not state the order in which it drives the pins.  Looking at the code, it drives the pins out of order.  So code like:

Stepper(steps, pin1, pin2, pin3, pin4)

Will drive the pins in the order:  pin1, pin3, pin2, pin4

This means that the code works for stepper motors which have the pins out of order, but fails for stepper motors which have the pins in sequential order.  I happen to have a stepper motor where the pins are in sequential order, leading to much confusion when I tried to do the example.  It was only by hooking up LEDs and running the example really slowly that I worked out what was wrong.

So could you please:

1) Update the documentation page: http://arduino.cc/en/Reference/StepperConstructor   to state exactly what order the pins will be driven in  (pin1, pin2, pin3, pin4)

2) Update the tutorial page: http://arduino.cc/en/Tutorial/MotorKnob   to state the same.

3) Say on both what to do if the stepper motor requires the pins in sequential order  (e.g wire it differently or use Stepper(pin1, pin3, pin2, pin4)

Thanks!

JohnFlux
Pages: [1]