pybricks / pybricks-projects

Example programs for Pybricks
MIT License
94 stars 42 forks source link

DINOR3X instructions vs color sensor requirement #70

Open drk1 opened 2 years ago

drk1 commented 2 years ago

https://github.com/pybricks/pybricks-projects/blob/a9f01d961dd4d58545255d4f010d1ad5fe68b5b2/sets/mindstorms-ev3/home-bonus/dinor3x/dinor3x.py#L17

Hello,

Could you help me to identify which page of the instructions plan shows me how to Integrate the color sensor required by the python source code?

My guess is that some building instructions are missing for the color sensor https://pybricks.com/projects/sets/mindstorms-ev3/home-bonus/dinor3x/

Please advise.

Thank you in advance for your feedback.

Regards,

​Sam & Lenny (4 yrs old), Lego fans

dlech commented 2 years ago

https://pybricks.com/projects/sets/mindstorms-ev3/home-bonus/dinor3x/

This page says:

NOTE: please add a Color Sensor to Dinor3x’s back or tail.

It looks like there are 3 open pin holes on the beam at end of the tail which fits the color sensor perfectly.

drk1 commented 2 years ago

https://www.lego.com/cdn/product-assets/product.bi.additional.extra.pdf/31313_X_DINOREX.pdf

This page doesn't say how to mount it. Looks like the python code is not compliant with the instructions.

Your thoughts?

laurensvalk commented 2 years ago

The projects on our site are submitted by Pybricks community members. Perhaps the color sensor is a creative addition by the contributors of the code (@TheVinhLuong102).

It looks like the sensor is used for this purpose:

Dinor3x changes its speed when detecting some colors

  • Red: walk fast
  • Green: walk normally
  • White: walk slowly

So I'm guessing it doesn't matter too much where you mount the sensor. Anywhere there's space will do. And then hold a colored object close to the sensor to activate the aforementioned behaviors.

laurensvalk commented 2 years ago

If you try the program, perhaps you want to make a video of it in action? We're happy to share your video on the website instead of the one from LEGO :)