Bluetooth Setup for Calico Myro on Mac OSX

From IPRE Wiki

Jump to: navigation, search

Setup Bluetooth

Watch the Video or follow the instructions below

  1. Attach the IPRE Fluke to the scribbler
  2. Turn on the scribbler
  3. Click on the bluetooth icon in the upper right of your toolbar, select "Set up Bluetooth Device"
  4. Follow the wizard, select "Any device" as the device type
  5. Select the IPRE-XXXXXX where XXXXXX is your Fluke's serial number
  6. Enter the Passkey/PIN code (1234)
  7. From the bluetooth menu in the toolbar select "Open Bluetooth Preference"
  8. Highlight the IPRE bluetooth connection name
  9. Select Edit Serial Ports (little gear picture)
    1. Add a serial port to the Fluke via the "+" button if you don't have one already
    2. If you already have a serial port listed, change the port name to "scribbler" all lowercase
    3. Click Apply
  10. Select Edit Serial Ports again
    1. Select the "Require pairing for security" button
    2. Click Apply
  11. You should now have a device like "/dev/tty.scribbler" that is the serial port to the scribbler. Confirm the actual name using the terminal application.
    1. Start Calico
    2. At the Python prompt enter:
 from Myro import *

and then

 init("/dev/tty.scribbler")

now you can try

 forward(0.5, 1.25)

to tell your robot to move forward at half speed for 1.25 seconds

Troubleshooting

If you get an RFCOMM error, go back to the Bluetooth Menu

  1. Click "Disconnect"
  2. Click "Edit Serial Ports"
    1. Select the "Require pairing for security" button
    2. Click Apply
  3. In Python:
 init("/dev/tty.scribbler")

Bluetooth Problems

We have received reports that on some Macintosh computers the /dev/tty.scribbler port will sometimes change it's name to a /dev/tty.scribblerXX (where XX is a number). For example, /dev/tty.scribbler remains in the /dev/ directory, but does not connect to the scribbler robot, while /dev/tty.scribbler04 is the correct communications port to use when connecting to your robot. If you run into "A Bluetooth serial failure has occurred." and/or "Serial element not found." errors, please check for other entries in your /dev/ directory and try using the one with the highest number. You may have to delete your bluetooth serial port and re-add it to create a new entry that works.

Personal tools