

This can be done by running the following command sudo bluez-simple-agent hci# xx:xx:xx:xx:xx:xx The Bluetooth serial module that we sell should be called something like ‘linvor’.īefore Bluetooth devices can communicate, they need to be paired. citool scanĪfter a short delay, this should return the addresses of nearby Bluetooth devices. Now, ensuring that the Seeeduino is powered on, run the following command to find out the address of the serial Bluetooth module. Get the name of your USB Bluetooth dongle by running hciconfig Sudo apt-get install bluetooth bluez-utils blueman Then open up a command line terminal and run the following commands sudo apt-get update Plug the USB Bluetooth dongle into the Raspberry Pi. Setting up the USB Bluetooth Dongle and Pairing it with the Bluetooth Serial Module Whilst the Bluetooth serial module is connected to the UART lines of the Seeeduino, you won’t be able to program the Seeeduino, but you can still power it with a USB cable. These connections will power the Bluetooth serial module from the 5V line of the Seeeduino, and connect RX => TX and TX => RX. This program listens on the serial connection for 2 numbers, and then adds them together before sending them back over the serial connection.Ĭonnect the two devices up as shown in the diagram below. First upload the following sketch to the Seeeduino. To test out the Bluetooth serial connection we’ll use a Seeeduino attached to a Bluetooth serial module. Preparing the Arduino/Seeeduino for Connection Arduino, or an Arduino compatible device such as a Seeeduino.

Raspberry Pi with Raspbian installed (this tutorial may also work with other distributions).To get a USB serial port set up on Windows, a good tutorial can be found here. This tutorial is aimed at a Raspberry Pi running Raspbian, but it should work on other popular Linux distributions such as Ubuntu. Once the set up is complete, we’ll have a new serial port on the Raspberry Pi that can be used to communicate with the serial Bluetooth module, either using a program such as Cutecom, or using one of the many serial programming libraries such as pySerial. In this post we show you how to set up a Raspberry Pi with a USB Bluetooth dongle so that it can communicate with an Arduino using a Bluetooth serial module. However, it can also be a bit tricky to set up.

Bluetooth is a very low cost and flexible way to add wireless communication to your projects.
