Picar-X Unable to Play More Than 4 Notes

When using the play_tone_for function the car will only play a few notes before the program crashes.

We are using Python.

Please describe in detail the problem you are experiencing, what specific script code is being executed?
Is there any error report during the execution? If so, please provide a screenshot of the error report.
What is the sound status of the cart when running the code? Please provide a video of the problem
We can analyze and solve the problem easily.

Posting here in case someone else has the same problem. We were able to fix this issue by opening the Music.py file in robot_hat and deleting the period from the line:

from .basic import Basic

And then rerunning the install script.

1 Like