Bluetooth control

Note: The Bluetooth server will be automatically closed after the client connection ends, and it needs to be reopened when it is used again (it is best not to actively close the server, which may cause it to fail to open next time)

myBuddy

start the server

1.Double click to open this software on the desktop

2.Select Transponder, the port is /dev/ttyACM0, click Connect

3.Select "Wlan Socket"

4.Click "OPEN" to open the server

If the server starts successfully, you can start using it

Client

Note: Please install pybluez2 before using it, you can install it by command: pip install pybluez2==0.40

from pymycobot import MyBuddyBlueTooth

mst = MyBuddyBlueTooth("00:00:00:00:00:00", 1)
mst.connect("/dev/ttyACM0", "115200")

print(mst.get_angles(1))

results matching ""

    No results matching ""