Using Raspberry Pi zero W as a bluetooth module for Arduino Nano

Hi I am new with Raspberry Pi's,

I have an arduino nano and would love to give it bluetooth connectivity. I don't have a bluetooth module on me but I have a raspberry pi zero w. I was wondering if it was possible to hook up the raspberry pi to the arduino and make it act like a bluetooth module.

I have the raspberry pi hooked up to the arduino via the hardware serial port as of now

Any advice would be helpful. Thanks!

Since you already have the two connected, you have a Raspberry Pi problem not Arduino. All you need do is receive signals from Nano which you are already doing, and know how to pass the same from Pi Bluetooth to wherever. This probably needs no more knowledge than knowing which serial port Pi's Bluetooth is on - Pi problem.

It can't be hard, and there can't be much point in it either. I would have thought that, whatever the Nano can do, the Pi can do directly, without its help.

Consider using a HC-05 Bluetooth module to connect the Arduino to the RasPi?

horace:
Consider using a HC-05 Bluetooth module to connect the Arduino to the RasPi?

According to the Original Post the OP is considering using the RPi because he does not have a Bluetooth module !

...R

loyalburrito:
Hi I am new with Raspberry Pi's,

I have an arduino nano and would love to give it bluetooth connectivity. I don't have a bluetooth module on me but I have a raspberry pi zero w. I was wondering if it was possible to hook up the raspberry pi to the arduino and make it act like a bluetooth module.

I have the raspberry pi hooked up to the arduino via the hardware serial port as of now

Any advice would be helpful. Thanks!

From little I can see when Googling, most of the tutorial are about using the Raspberry Pi as the master and the Arduino as the slave.

.

the experiments I did some time back used a Raspberry pi as the Bluetooth master paired with an HC-06 (which can only be a slave). attached to a Arduino Due
Worked OK - I could run teraterm on a PC communicating with the Arduino/HC-06 sending/receiving text with minicom or putty on the Raspberry pi
the HC-05 is capable of being a master so in theory should be capable of pairing with a Raspberry pi slave.
I think I have a HC-05 somewhere - will have to try it sometime

As far as I can see the OP wants to create a wired connection between the Arduino and the RPi and then send data to the RPi so that the RPi can send it onwards by Bluetooth because the OP does not have a regular Bluetooth module for his Arduino.

...R

Robin2:
As far as I can see the OP wants to create a wired connection between the Arduino and the RPi and then send data to the RPi so that the RPi can send it onwards by Bluetooth because the OP does not have a regular Bluetooth module for his Arduino.

...R

Unless I am mistaken, he will have to spend a lot of programming to make that happen versus just buying a HC-05. But some people like the challenge.

.

ieee488:
Unless I am mistaken, he will have to spend a lot of programming to make that happen

I think you most certainly are. This might be a pointless intellectual exercise using parts to hand, but at least it is clearly explained. All OP wants is Pi to work as an HC-05 substitute. He already has Arduino<>Pi connected, and the Arduino code is the same, irrespective of whether it is connected to Pi or HC-05. All that is required is similar code in Pi to receive the data and pass it on. I think the only possible complication is the the Pi’s Bluetooth is BLE, but OP probably already knows that.

Nick_Pyner:
He already has Arduino<>Pi connected, and the Arduino code is the same, irrespective of whether it is connected to Pi or HC-05.

He writes that he is using the Arduino hardware serial pins pin 0 and pin 1.
The Raspberry Pi UART pins are 3.3V so I hope he has provided some level shifting for the Arduino TX at the least.

My guess is that he was hoping for a hardware solution as in connect Arduino to heretofore unspecified Raspberry Pi pins and have the Raspberry Pi magically act like a HC-05 module without any Pi code whatsoever. As the OP has not returned, that is merely a guess.