I just finished a working project with a funduino (nano). In this code I use the USBSabertooth library, and everything works. When attaching my Due to the motorcontroller it won't send any signals.
Even the smallest things won't work:
This doesn't send anything, while the funduino does. I don't have a clue where to start looking, but it's pretty frustrating that a real Arduino is being more difficult than a fake one.
I'm using a Sabertooth 2x32 motorcontroller. Tried all the different TX pins on the Due.
Any advice is greatly appreciated.
Isaac96:
Wait-your code doesn't work with the Yun? If so, buffers won't help. Could you attach pictures and the USBSabertooth library?
Code doesn't work with the Yùn because apparently the TX and RX pins are used for Linux (I was told so on this forum). That's why I tried it out with the Due in the hope that this would change. The setup is fairly simple, I've made a simplistic scheme as I don't have the gear with me right now.:
The USBSabertooth library I'm using can be found here:
Couldn't attach the folder itself, so I attached all of the contents, except for the USBSabertoothArduinoLibrary.chm file which this site didn't allow...
The Due pins output 3.3V signal at very low currents (some as little as 3mA, most < 10mA) so
cannot drive opto-couplers directly, for instance. I don't know what you have connected
to pin 13, but I suspect it either needs more voltage or more current.
So the Funduino (328P) works and the Yun (32u4) and Due (SAM3X8E) don't work? How is the library initialized? Does it use the hardware serial port? Is the library supposed to work on the DUE?
MarkT:
The Due pins output 3.3V signal at very low currents (some as little as 3mA, most < 10mA) so
cannot drive opto-couplers directly, for instance. I don't know what you have connected
to pin 13, but I suspect it either needs more voltage or more current.
Pin 13 is our LED, to make sure our board or code isn't faulty. The LED works, but the signal isn't being sent out of the TX port. The motor controller is connected to the TX port and shouldn't need that much volts.
Isaac96:
So the Funduino (328P) works and the Yun (32u4) and Due (SAM3X8E) don't work? How is the library initialized? Does it use the hardware serial port? Is the library supposed to work on the DUE?
Funduino works, Yun and Due don't indeed.
This is the way we do it (and works on the funduino):
I believe this library is supported on both. The library description says that with this code it should work if you connect TX to S1, which we do on the funduino and works fine. We shouldn't change much for the conversion to another Arduino, though it is blocking a part of our project.
And the inputs claim to be non-opto isolated 3 .. 5V logic compatible with at most 1mA, so the serial
signals should get through. Have you checked start/stop/parity/baud configuration is
correct?
And the inputs claim to be non-opto isolated 3 .. 5V logic compatible with at most 1mA, so the serial
signals should get through. Have you checked start/stop/parity/baud configuration is
correct?
I haven't checked the configuration. Are you talking about the Saberooth 2x32 or the Arduino Due?
If it's about the Saberooth, then why does it work with 1 funduino but not another Arduino?
If it's about the Arduino, I woulnd't know how to do it but I'll try in the evening.