Open GianCann opened 4 years ago
Note: the Spike Prime Ultrasonic sensor works well.
It used to work - at least with EV3 Gryo sensor.
I can confirm that the LUMPDevice works well also with the EV3 Color sensor, but not with the EV3 Ultrasonic sensor. Here you can find the UART "presentation data" from the sensor: https://docs.google.com/spreadsheets/d/1fvs8xxCo_nJxBvKCv8mM_bAbfHo4EMdF1gnez5ICaSE/edit?usp=sharing
@GianCann, can you use your logic analyzer to capture the communications between a Powered Up hub with Pybricks firmware and the EV3 Ultrasonic sensor and post the results here?
@dlech here the file! EV3UltrasonicSensor.zip
What software is needed to view the file?
@dlech use this: https://sigrok.org/wiki/PulseView
thanks!
Tell me if you need more test ;)
We could enable this if/when we have sensor modes.
At the moment this won't work because the device manager doesn't recognize EV3 sensors, so never enters LPF2 UART mode.
Also, when skipping the connection manager and going straight to the UART process, something also doesn't work. It just keeps waiting for the sync byte forever.
I don't necessarily see this as a requirement for Powered Up, but it's a good test case for https://github.com/pybricks/pybricks-micropython/pull/241:
If EV3 sensors work with modern Pybricks drivers on Powered Up, then they will work on EV3 once we implement the UART drivers with GPIOs to control the buffers.
I tried to read an EV3 Ultrasonic sensor values with LUMPDevice class but I get: