Tagged: , ,

This topic has 6 replies, 2 voices, and was last updated 6 years, 8 months ago by SuperDroid.

  • Author
    Posts
  • #4396
     Daniel Phelps
    Participant

    Hi all..

    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?

    Also….
    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:
    11 StrafeRC
    12 DriveRC
    13 TurnRC

    Attachments:
    You must be logged in to view attached files.
    #4399
     SuperDroid
    Keymaster

    Hi Daniel

    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.

    #4400
     Daniel Phelps
    Participant

    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.

    #4401
     SuperDroid
    Keymaster

    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.

    #4402
     Daniel Phelps
    Participant

    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).

    #4403
     Daniel Phelps
    Participant

    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…

    #4404
     SuperDroid
    Keymaster

    We had tons of problems with the arduino regulator, since we decided to do it this way we haven’t had problems.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Login Register

©2024 SDRobots.com | All rights reserved.

Log in with your credentials

or    

Forgot your details?

Create Account