Communicating with Raspberry Pi 3 and Bluetooth module


#1

Hi Everyone,

I am new here, my first post. I have tried many different ways to connect the raspberry pi 3 and the Ultimate 2.0. Haven’t been able to go anywhere. I am trying to connect the device through the bluetooth module and send instructions from raspberry pi3. Has anyone had any success with this?


#2

On the PI side, I would start with a serial terminal. How does your code on the Ultimate side look like?


#3

Thank you for your quick response @Andreas.
I tried the basic encoderMotorMove.py from the github its giving me this error:
Inappropriate ioctl of device


#4

Ok I could give you the code in Scratch, but I am not familiar with Python.


#5

Sure anything. I am open to c/c++ as well


#6

Just check this example here … maybe it helps a bit.


#7

Thanks @Andreas . Are you using the Raspberry Pi 3? I’m afraid the link you shared is more for Arduino, where its working fine.


#8

No, I did not try it with a PI yet, sorry


#9

I got it running.

  1. Serial Port should be enabled
  2. Add enable_uart = 1 and corefreq = 250 in your /boot/config.txt file
  3. change bot.start() to bot.start(’/dev/ttyS0’) in your python code

#10