-
Notifications
You must be signed in to change notification settings - Fork 144
Open
ev3dev/ev3dev-lang-python-demo
#50Description
- ev3dev version: PASTE THE OUTPUT OF
uname -r
HERE - ev3dev-lang-python version: INSERT ALL VERSIONS GIVEN BY
dpkg-query -l {python3,micropython}-ev3dev*
HERE
We get a fairly steady stream of people trying to use BrickPi3 and failing because it cannot automatically detect sensors and motors. It would be super-helpful if the docs here had an example that people could copy and paste to get started.
Despite the constant questions, I still cannot find any known working example in any of the ev3dev GithHub issues.
WasabiFan
Metadata
Metadata
Assignees
Labels
No labels
Activity
WasabiFan commentedon Mar 18, 2020
Good call. I don't personally have a BrickPi but I can certainly try to write some code if someone else can test it.
WasabiFan commentedon Mar 19, 2020
I'm trying to test manually setting port modes on my EV3. This works with tacho motors, but when I have a US sensor connected I see the following behavior:
Is there something obvious I'm doing wrong here, or do you have suggestions for where I should look? This should be supported on the EV3, right?
dlech commentedon Mar 19, 2020
Since EV3 can automatically detect UART sensors, it doesn't let you pick a different one. BrickPi3 and PiStorms (and mindsensors EV3 sensor multiplexer) on the other hand can't automatically detect sensors, so you have explicitly tell them which sensor is attached.
WasabiFan commentedon Mar 19, 2020
Ah, got it -- I didn't realize it wasn't supported on the EV3 ports. I opened a PR on the python demo repo with a sample program; would you be able to test it?
WasabiFan commentedon Mar 19, 2020
I'll link to this example in docs and maybe quote some of it too.
dlech commentedon Mar 19, 2020
Yeah, I'll try it tomorrow.
dlech commentedon Mar 19, 2020
Perhaps another tip for the documentation, if you get this error...
Then you probably forgot to edit
config.txt
.WasabiFan commentedon Mar 23, 2020
@dlech Do you have any particular recommendations for where that should go? I am tempted to put it in our FAQ but no one reads the FAQ 😢
dlech commentedon Mar 23, 2020
The more places the better 😄
Maybe add some links to the FAQ from different places? e.g. at the top of the sensor docs, say "If you are using BrickPi3, also see the FAQ"