Welcome, Guest. Please login or register.

Username: Password:

Author Topic: Arduino connection via Bluetooth  (Read 4654 times)

GigiG

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Arduino connection via Bluetooth
« on: January 25, 2015, 15:10:33 »

Hi, I was wondering if there was any way to connect the AstroEQ board to PC via Bluetooth using a device like the HC-06 module. I was thinking about using the RX-TX pins on the Arduino Mega.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Arduino connection via Bluetooth
« Reply #1 on: January 25, 2015, 15:54:39 »

Would work fine, just connect it to the RX0 and TX0 lines of the Mega, set the baud rate of the BT module to 9600, and away you go :)
Logged
Tom Carpenter (AstroEQ)

GigiG

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arduino connection via Bluetooth
« Reply #2 on: July 20, 2015, 15:45:38 »

Hi Tom, the HC-06 modules I got have RX and TX pins at 3.3V voltage levels. The Arduino board's pins works at 5V. There could be problems with long duration usage? As for now I tested only for short duration time.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Arduino connection via Bluetooth
« Reply #3 on: July 20, 2015, 18:44:01 »

It's not ideal to drive it with +5V. Putting a 1k or so resistor between the TX of the Arduino and RX of the Bluetooth module would help, though a potential divider circuit (say 1.5k from Arduino to Bluetooth RX and 3.3k from Bluetooth RX to ground) would be a better approach.

There are many simple voltage divider circuits out there, including ones using a diode and resistor amongst other things. Given that the serial is relatively slow (9600 baud) any of these will work.

For Bluetooth TX to Arduino RX you shouldn't need anything.
Logged
Tom Carpenter (AstroEQ)