I'm working on my first (robotics) project with the Pi and would like to connect it to the Arduino Uno to control some motors from there as well. I've already set up a bluetooth connection to the Arduino with a HC-06 and can send text messages from the Pi terminal to the Arduino Serial Monitor. The way my project works is that I have an adafruit Motor HAT on my Pi and I control two stepper motors from there through a Python script. It's connected to a Wiimote so a button on the remote is linked to one motor each. I would like to extend it to connect further motors to the Wiimote and run them from the Arduino Uno (which I already have anyway). I need to be able to run two motors that are not connected to the Pi via wires because of the setup of my project.
So, to my question:
Can I control the Arduino from a Python script run on my Pi via bluetooth?
I have found tutorials for the Serial Port but I'm not sure if that's what I need. Maybe I don't understand it correctly but So far I understand that you can send data and text messages that way?
If so, any tutorials that I could follow or tips?
P.S. I had also considered buying a Pi Zero W to control the "wireless" motors but since I already have the Arduino I wanted to try it this way first.