-
Notifications
You must be signed in to change notification settings - Fork 21
Triangle profile #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Got an example of the command you're using on the serial port and the function call you're trying to get work the same in Python? |
Thanks mutesplash, I've sent "help" command, and I received an answer. here my simple python code ` ser = serial.Serial("/dev/serial0",115200,timeout=1) ser.write(f'help \r'.encode()) for i in range(100): I don't have any errors, in vscode terminal the cursor move down but no letters or other characters. Please let me know if I'm wronging something and if you can propose some python code to test on my side. |
Sorry, thought you were actually trying to set the triangle motor profile, not do basic serial interaction. You can check serinterface.py in the repo to see what's messed up:
|
Hello,
I'm trying to set a triangle profile with build hat and python library, but no way.
If I use a serial interface and follow build-hat-serial-protocol, everything works well. Different story with python.
Another big issue with python is that the communication doesn't react as a serial interface.
I'm using build Hat on a raspberry pi 5 and the PI OS at this version:
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.74+rpt-rpi-2712
Do you have some more example about motor control with profile in python?
Do you have a working python file that communicate with build hat in a good way?
Thanks
Stefano
The text was updated successfully, but these errors were encountered: