All motors spinning wrong direction but wiring is correct
Forums:
Hello All,
I have just built my first Monsterborg, Im only using the webUI to control the device.
When I click forward the monster goes backwards and when i click reverse the monster goes forward, I thought it might be a wiring issue, I checked and everything is 100% the same as the instructions.
Also another point to support wiring is correct, when i click turn left or right they operate in the correct directions.
If I click turn left or right while the monster is moving forward or backwards it will stop and rotate in the direction I had clicked, this is because the motors then start going in the correct direction when the turn is clicked.
I need help the monster is not usable like this.
- Log in to post comments


piborg
Tue, 08/18/2020 - 17:19
Permalink
Changing motor directions on MonsterBorg
No problem, the motor directions can be changed in the script :)
In the
monsterWeb.pyscript look for these lines:# Set the outputs driveLeft *= maxPower driveRight *= maxPower TB.SetMotor1(driveRight) TB.SetMotor2(driveLeft)Add a
-to values for the twoSetMotorcommands so they look like this:# Set the outputs driveLeft *= maxPower driveRight *= maxPower TB.SetMotor1(-driveRight) TB.SetMotor2(-driveLeft)This should fix the forwards and backwards behaviour.