TextualHealing

Member Since: September 18, 2010

Country: United States

  • Product ROB-09571 | about 3 years ago

    void setup()
    {
    Serial.begin(115200); //set serial to 115200 baud rate
    }
    void loop()
    {
    Serial.print(‘1’); // to control motor 1
    Serial.print(‘f’); // move in forward direction Serial.print(‘9’); //run at full speed
    Serial.print(‘\r’); /“carriage return” note it IS the opposite way around to the rest of the slashes had me stuck for a while, I think its typo-ed in the user manual/
    delay(1000); //just to make the code do something other than repeat the serial command over and over
    this will set the arduino serial rate to 115200, send a full single channel instruction to the motor driver and then loop again. Copy that into an arduino sketch by itself and test it. To stop the motor again you will need to send a command telling that motor to run at “0” speed

  • Product ROB-09571 | about 3 years ago

    as a query, could the voltage reset issue be solved by removing or cutting the output of the 5v reg, then tying the arduino 5v onto the motor driver board 5v “out” (making it an input for 5 v from an external regulated supply). Then running the arduino from a separate power supply to the vcc of the motor controller, eg a 9v battery wired to the arduino Vin.
    cheers

  • Product ROB-09571 | about 4 years ago

    actually that wont completely work. it will only set the first instruction and wont change, did some more playing and got it to work properly. the original code should be fine with one exception: the slash on the return carriage is the wrong way round. This meant that in the original version it wasnt finishing the command, and in my version it sort of finished it but not really since I had a new line but not a proper end carriage.

  • Product ROB-09571 | about 4 years ago

    I stole that segment of code to try get started with and played around with it for about 10 hrs before I accidentally commentented out the ‘/r’ and left a Serial.println, viola!
    void setup()
    {
    Serial.begin(115200); //set serial to 115200 baud rate
    }
    void loop()
    {
    Serial.print(‘1’); // to control motor 1
    Serial.print(‘f’); // move in forward direction
    Serial.print(‘9’); //run at full speed
    //Serial.print(‘/r’);//
    Serial.println();
    //Serial.print(‘r’);//
    delay(2000);
    thats just running straight off the arduino’s serial pins, not in soft serial.
    For debugging I found it helpful to put an LED one way round on the motor output and one the other so I would see results either way and could test a change in direction. I noticed also that theres seems to be a bleethrough from one of the serial pins, as soon as they were plugged on all the leds on the board and connected to it lit dimly.

No public wish lists :(