Monsterjoy.py with 2 thunderborg motorcontrollers?
Forums:
Hello, i have a question about the monsterjoy.py file. Is there a program with two Thunderborgs?
With kind regards
Thieu
- Log in to post comments

Hello, i have a question about the monsterjoy.py file. Is there a program with two Thunderborgs?
With kind regards
Thieu
piborg
Sun, 02/24/2019 - 12:25
Permalink
Running with two ThunderBorgs
We do not have an example, but it is fairly easy to make the changes.
First you need to initialise both boards at the top of the script.
Make sure the
i2cAddress
values match what the boards were set to.Next you will need to change the motor outputs. Assuming the first ThunderBorg is connected to both right side motors and the second to both left side motors change these lines:
to:
Next change the drive fault check so that it includes all four outputs. Change:
to
Now all that needs to be done is to change all of the remaining calls to
TB
to bothTB1
andTB2
. For example:becomes:
After all the changes the script should behave like it did before, but using two motor outputs per side ^_^
Thieu
Sun, 02/24/2019 - 18:31
Permalink
Thankyou very much, it works
Thankyou very much, it works perfectly