brickpi3 and medium motors
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can you use
set_device
on the output port to tell it there is a medium motor attached?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).