onlaj / Piano-LED-Visualizer

Piano LED Visualizer: Connect an LED strip to your Raspberry Pi and create an immersive visual experience for your piano playing
MIT License
517 stars 111 forks source link

Bluetooth for iPad Information #284

Closed psscin01 closed 1 year ago

psscin01 commented 2 years ago

Hello,

First, I'd like to say thank you for putting this project together! Forgive me if this is out of line or not the correct place to share this information as I am quite new to this sort of thing. I just finished with my first attempt and got everything working, but I had quite a few issues with bugs and errors when trying to follow the bluez installation link that was provided by the neuma studio link. I found another site that worked perfectly for myself while using the iPad and RPi via Bluetooth and I wanted to pass it along to anyone else who may need help with it. Specifically, this section helped me a lot:

Setting Up Bluetooth Using Terminal or SSH Connection

  1. As the default Bluetooth packages are quite basic, you’ll need to install the additional Bluetooth management tools. Type sudo apt update && sudo apt upgrade to update your Raspberry Pi first. Once this process is complete, type the following command to install the necessary additional packages: sudo apt install bluetooth pi-bluetooth bluez

  2. Once these packages have installed, reboot your Raspberry Pi with sudo reboot. You’ll need to re-establish your SSH connection if you’re connecting remotely.

  3. With a terminal window (or remote SSH connection) open, typesudo bluetoothctl. You may need to type your username and password again to confirm this. This will launch the Bluetooth terminal configuration tool.

  4. Type scan on to begin searching for local devices. A list of visible devices will appear, with Bluetooth MAC addresses (the device’s hardware ID) and device names.

  5. To connect to one of these devices, you’ll need the Bluetooth MAC address for your device. If you see your device in the list, type pair XX:XX:XX:XX:XX:XX, replacing this string with your device’s Bluetooth MAC address.

  6. This will begin the pairing process — you may need to confirm this on your device. If instructed, type yes to confirm the Bluetooth passkey is correct.

  7. If the pairing process is complete, the terminal message will change to reflect the device name, and you may see a pairing successful message.

  8. Once the pairing process has completed, type connect XX:XX:XX:XX:XX:XX(using your Bluetooth device’s MAC address) to connect to it. If the connection is complete, a connection successful message (along with other log messages) will appear in the terminal.

  9. If you want to use this device regularly, type trust XX:XX:XX:XX:XX:XX to place the device in your Bluetooth trusted devices list. This will save you time, meaning you won’t need to pair it again in the future. If this is successful, a trust succeeded message will appear in the terminal.

  10. Typeexit to close the bluetoothctl tool once you’re done. As with the GUI Bluetooth Manager tool, you may need to follow additional steps to configure and use your device further, depending on the device itself.