question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

brickpi3 and medium motors

See original GitHub issue

The firmware in BrickPi3 (and earlier BrickPi models) doesn’t know about different kinds of motors, so we just treat everything like an NXT motor. – dlech in https://github.com/ev3dev/ev3dev/issues/1059

The work-around is to use the LargeMotor class for the medium motor. One potential problem is if the user’s program relies on max_speed since that value is different for medium vs large motors.

If the user does try to use the MediumMotor class we will fail to set the driver (see the intro in https://github.com/ev3dev/ev3dev/issues/1059). One option for presenting the user with a more informed error message is to raise an exception if the MediumMotor class is used:

        if platform in ('brickpi', 'brickpi3'):
            raise Exception("%s is unaware of different motor types, use LargeMotor instead" % platform)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dlechcommented, Oct 31, 2018

Can you use set_device on the output port to tell it there is a medium motor attached?

0reactions
dlechcommented, Oct 31, 2018

I don’t see any reason why this couldn’t be implemented in the ev3dev driver using the existing BrickPi3 firmware (other than lack of time to do the work needed).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Brickpi3 firmware an medium motors - Dexter Industries Forum
We can make a medium motor run on a brickpi3 by treating it like a NXT motor but this is less than ideal...
Read more >
Dexter Industries BrickPi3 - ev3dev documentation
BrickPi3 is a LEGO MINDSTORMS compatible daughterboard for Raspberry Pi ... However, the motors will not move because the motor controller chips are ......
Read more >
brickpi3 - npm
If you have multiple brickPi3's, you can stack them and control even more motors/sensors with a single raspberry pi. First attach each brickPi ......
Read more >
python-ev3dev Documentation - Read the Docs
EV3 medium servo motor. Same as Motor, except it will only successfully initialize if it finds a “medium” motor. Additional motors. DC ...
Read more >
Rubik's cube robot — first steps. Written by Jeroen
... Pi enabled with a BrickPi3 hat by Dexter Industries. Using this hat for the Pi and the libraries from Dexter, the LEGO...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found