- July 18, 2017 at 3:56 pm #4396
The arduino code references PIN5 as “int strafeSignal5Vpin = 5;” Is this pin provided to provide power to the RC Receiver? I was planning on pulling power from the 5V.. But it seems that this “strafeSignal5Vpin” is referenced as a “// 5V reference for strafe signal”…
Could someone please clarify? What is this pin’s use?
I found an error on the Mecanum schematic vs. the Arduino code for RC control. The arduino code has the RC pins as
// RC mappings — strafe: aileron, drive: elevation, turn: rudder
int strafePinRC = 13, drivePinRC = 12, turnPinRC = 11;
The Schematic at https://www.superdroidrobots.com/product_info/Schematics/Schematic_Mecanum_wheel_Sabertooth_encoders.pdf has the pins at:
Attachments:You must be logged in to view attached files.July 18, 2017 at 5:58 pm #4399
Are you looking at the GitHub code or code for a specific order? It’s most likely to supply power to the receiver if there is no SDR Arduino Mega shield involved. In this case, we power the Arduino with the 5V output from the Sabertooth and use a digital for the receiver. We have found the voltage regulators coming off the Arduino barrel jack to be unreliable in the long run.July 18, 2017 at 9:12 pm #4400
I am looking at the git hub code arduino sketch… I have already uploaded the Arduino sketch, and I was cross referencing it with the loose instructions. There are some inconsistencies so I wanted to clarify.
I am using an Arduino UNO. The schematic has both sabertooths wired into the Arduino. I’m assuming that only is necessary? Also, the kit came with a 24 to 12 V regulator that I assumed it was for powering the Arduino. It doesn’t look like it needs to be used in this case if we are taking power off of the sabertooths and 5v arduino pin for the receiver.July 19, 2017 at 8:14 am #4401
The code use a arduino pin to power the rc receiver, but that is not necessary for the updated schematic. The 12V regulator us often to power relays, and if you use a different type of motor controller.July 19, 2017 at 10:51 am #4402
Awesome.. I figured as much. I have a 9v and 12v adapter to power my other peripherals. The Arduino code is pretty simple.. I wish that it included code for the encoders. Having each wheel turn EXACTLY in sync would be great. It’s not autonomy, but would provide a nice level of accuracy and avoid drift and turn when strafing or crabbing (using this platform for video).July 19, 2017 at 2:34 pm #4403
What are the advantages of using the 5v Arduino Pin to connect power from the Sabertooths over the VIN pin… It seems that Arduino does not recommend this 5V connection method…July 19, 2017 at 2:49 pm #4404
We had tons of problems with the arduino regulator, since we decided to do it this way we haven’t had problems.
You must be logged in to reply to this topic.