<< return to Pixycam.com

Run Pixy2 on Lego EV3 with Simulink

Hello,
I want to use the Pixy2 (Lego version) with my Lego EV3 Brick and program everything with Simulink.
In Simulink (V24), there is already a ready-made block for the Pixy2, but I’m not getting any output.
All the original Lego sensors work, but I’m not receiving any signals from the Pixy2.
In the Lego Mindstorms Line Tracking Demo, the Pixy2 works and the vector is displayed on the screen.
Has anyone ever done this in Simulink?

Best regards

Hello,
I stumbled upon this:
https://www.mathworks.com/help/simulink/supportpkg/arduino_ref/get-started-pixy2-visionsensor-using-arduino-simulink.html

If you’re using the LEGO firmware, it won’t work with the way they are using Pixy. You will need to install the general firmware. This page can help get your LEGO Pixy to act like a regular Pixy:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:can_i_use_my_lego_pixy_with_arduino

Hope this helps :slight_smile:
Edward

Hello,
thank you for the help.
I thought it would go directly from Pixy to Simulink, but then I’ll have to get an Arduino and take the route you showed.
Sorry, I don’t have much experience with this yet.

That was very helpful, thank you very much.

Best regards