Back in February I wanted to teach Nybble some tricks on the high bar. It would involve intense experimenting and debugging in the air so I'd prefer program Nybble wirelessly. I knew it's doable to connect Bluetooth UART to the serial port on NyBoard, but didn't validate it myself.
I mainly referred to this Instructable posts, the bluetooth module is HC-05, with a push button on it. Notice HC-05 allows uploading sketches seamlessly, while HC-06 can only be used for communication.
My soldering:
Next follow the Intructable post to set up HC-05. Make sure you read the original post thoroughly.
First still use the FTDI uploader as serial port to program the baudrate, chip name and password of HC-05. Note some versions of the board may require CAPITALIZED tokens, like "AT" instead of "at".
Then plug the bluetooth module into the 1x6 socket on NyBoard, and power on. You should be able to see its name on your computer's bluetooth list. Connect and type in your password.
Now the device is connected to the bluetooth of your computer.
In the serial port selection of Arduino IDE, you will see the device:
Then you can communicate with Nybble through serial monitor. The list of supported commands is attached here.
With the serial protocol, it's very convenient to have both high and low level control with Pi or other chips. Detailed instructions for communication are in section 4.2.5 of the documentation. It works with both Arduino IDE and my serial commander in Python.
Now Nybble can be programmed freely 360 degrees in the air!
That's how Nybble plays on the high bar.
And do light painting.
Or follow voice commands if you have a voice server (either on or not mounted on Nybble)
----
Chico has made an app for Nybble:
https://github.com/codeandrobots/codeandrobots-app
After connecting Nybble with the app through bluetooth, you will be able to do remote controlling and motion scheduling.
I have validated it on Android phone because it supports bluetooth 2.0 with the previous HC-05 module. Any one knows how to wire some newer bluetooth module so that it can also support IOS phones?
Volevo capire una cosa.......installando quindi pySerial posso inviare i comandi tramite python alla seriale così come si fa ora dal terminal di arduino ? E se fosse così potrei creare anche un codice python che invia comani in automatico ?
I tried the app (on IOS) together with the the official Petoi Bluetooth-module. Connection etc. works fine and I can send commands for walking backward, sitting and so on. The only thing is, that I can't make Nybble walk forward. Is it possible, that the command changed? Does anyone else have this problem?
Edit in,
Found out the reason to the need for resistors here, so no need to reply, Regards.
https://howtomechatronics.com/tutorials/arduino/arduino-and-hc-05-bluetooth-module-tutorial/
----
@Rongzhong Li Super interesting!
As I wrote earlier been a while since I did fiddle soft/hw so maybe this is a very stupid question and I am to lazy :)
But why do one need the modification with cabling, resistors and soldering? Is that if the HC-05 do not have a on-board voltage regulator?
Can't it just be done with a breadboard, the Petoi Kit included FTDI, a HC-05 with a voltage regulator on-board and some patch cables to set-up the HC-05 and afterwords just have the HC-05 connected to Arduino with a female/female split cable if the HC-05 have pins and a voltage regulator to 3,6-6v on board?
Maybe looked a bit like that from probably a new link from the page you linked to in your post,
https://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/
Anyhow,
If you think it might work I am willing to try it (own risk :)) and post the outcome.
And thanks for a great project/product!
I have not got to the actual assembly part yet, started with all the reading/software first but will in a moment.
hi, I like to fiddle and I followed your advice and I mounted on the kitten a hc05 bluetooth and then connected the bluetooth (h05) to my mobile phone through this app "Arduino bluetooth controller", now I send the commands through the keyboard of the phone "terminal" and everything works perfectly, but not happy I wanted to try "Voice controller" always on the same app and wonder of the wonders it works and my kitten can now command it by voice commands, it doesn't always respond but I'm happy with it, I enclose some tests done.
thanks Giuseppe