It is possible to use an Arduino Uno to control a PicoBorg Reverse:
We have an example project which includes the library to make controlling the PicoBorg Reverse as simple as it is with the Raspberry Pi.
The example has a simple demo sequence which will check it is talking with the PicoBorg Reverse correctly.
The example also includes wiring instructions for most Arduino boards and a detailed explanation of what it does in the code comments.
Hi
I have tried to compile the code in the above link but get multiple definition errors
icoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEncoderSpeed(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:379: multiple definition of `PbrSetEncoderSpeed(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:379: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o:(.data.pbrAddress+0x0): multiple definition of `pbrAddress'
PicoBorgRev.cpp.o:(.data.pbrAddress+0x0): first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotors(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:344: multiple definition of `PbrEncoderMoveMotors(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:344: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotor1(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:322: multiple definition of `PbrEncoderMoveMotor1(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:322: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotor2(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:300: multiple definition of `PbrEncoderMoveMotor2(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:300: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEncoderMoveMode(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:270: multiple definition of `PbrSetEncoderMoveMode(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:270: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetCommsFailsafe(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:211: multiple definition of `PbrSetCommsFailsafe(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:211: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEpoIgnore(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:183: multiple definition of `PbrSetEpoIgnore(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:183: first defined here
have i done something wrong in installing it
cheers
I have a pro mini I would like to use with the piborg. I have run a test and it seems to be ok, however, the board is a 5v 16Mhz unit and doesn't seem to have a 3.3v output only a 5v one.
My question is can I run the board on 5v on the 3.3v pin or am i going to need a separate supply.
The PicoBorg Reverse will work fine with the 3V3 pin connected to a 5v supply.
The 3V3 pin is the power for the onboard PIC, it is also the reference "high" level for SCL and SDA.
It should work with any voltage between 1.8v and 5.5v, the LED brightness may change though.
piborg
Fri, 08/29/2014 - 09:42
Permalink
PicoBorg Reverse library for Arduino Uno
We have an example project which includes the library to make controlling the PicoBorg Reverse as simple as it is with the Raspberry Pi.
The example has a simple demo sequence which will check it is talking with the PicoBorg Reverse correctly.
The example also includes wiring instructions for most Arduino boards and a detailed explanation of what it does in the code comments.
You can download the example here: https://www.piborg.org/downloads/picoborgrev/PicoBorgRevArduino.zip
popeyesfx
Fri, 08/29/2014 - 14:28
Permalink
Thanks for the info looks
Thanks for the info looks like what I am looking for.
cheers
popeyesfx
Sat, 08/30/2014 - 11:16
Permalink
compile error
Hi
I have tried to compile the code in the above link but get multiple definition errors
icoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEncoderSpeed(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:379: multiple definition of `PbrSetEncoderSpeed(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:379: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o:(.data.pbrAddress+0x0): multiple definition of `pbrAddress'
PicoBorgRev.cpp.o:(.data.pbrAddress+0x0): first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotors(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:344: multiple definition of `PbrEncoderMoveMotors(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:344: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotor1(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:322: multiple definition of `PbrEncoderMoveMotor1(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:322: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrEncoderMoveMotor2(int)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:300: multiple definition of `PbrEncoderMoveMotor2(int)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:300: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEncoderMoveMode(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:270: multiple definition of `PbrSetEncoderMoveMode(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:270: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetCommsFailsafe(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:211: multiple definition of `PbrSetCommsFailsafe(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:211: first defined here
PicoBorgRevArduino/PicoBorgRev.cpp.o: In function `PbrSetEpoIgnore(bool)':
/Users/jackhider/Documents/Arduino/libraries/PicoBorgRevArduino/PicoBorgRev.cpp:183: multiple definition of `PbrSetEpoIgnore(bool)'
PicoBorgRev.cpp.o:PicoBorgRev.cpp:183: first defined here
have i done something wrong in installing it
cheers
popeyesfx
Sat, 08/30/2014 - 12:39
Permalink
Sorted
Its ok I sorted it, put file in wrong place.
popeyesfx
Sat, 08/30/2014 - 12:40
Permalink
Arduino Pro Mini and Piborg
I have a pro mini I would like to use with the piborg. I have run a test and it seems to be ok, however, the board is a 5v 16Mhz unit and doesn't seem to have a 3.3v output only a 5v one.
My question is can I run the board on 5v on the 3.3v pin or am i going to need a separate supply.
cheers
piborg
Sat, 08/30/2014 - 16:36
Permalink
Arduino Pro Mini and PicoBorg Reverse
The PicoBorg Reverse will work fine with the 3V3 pin connected to a 5v supply.
The 3V3 pin is the power for the onboard PIC, it is also the reference "high" level for SCL and SDA.
It should work with any voltage between 1.8v and 5.5v, the LED brightness may change though.