I received this
Sparkfun RN-42 Bluetooth Module, which has no level shifter or voltage regulator unlike the
Bluetooth Mate Gold which has all the stuff included. All you have to do is hook it up directly to Arduino +5v, TX, and RX, BUT its costs $50 more(basically a circuit board and
VERY few components). While, i just looked at the
datasheet, used a few resistors(10k and a 20k), some wire and a header; and got the same exact functionality. It requires four connections: TX, RX, VCC(3.3v), and GND; and these were quite easy to solder with a bit of flux on my first try. After connecting it according to the scheme below, just turn on your Arduino(and the RN42), get a serial Bluetooth enabled computer etc, pair them(default password: 1234), and then you can exchange serial data. :)
|
Front |
|
Back |
|
Connected! |
Its best feature is that its a serial data exchange Bluetooth Module. Now its easy to get a serial Bluetooth enabled computer.
ReplyDeletecould you please provide how you connected the rn-42 to the arduino board
ReplyDeletelook at the first image. its not perfect, but it shows you, in red, what the connections are.
DeleteGreat tutorial, helped to get me started with my first Arduino project.
ReplyDeleteI'm implementing the same setup and hit the wall trying to make Arduino communicate with RN-42. RN-42 itself powers up, pairs with my laptop and echoes everything back when short RX and TX. However when I'm trying to hook it up to Arduino and upload any sketch (even the one that doesn't communicate with serial) Arduino ends up blinking TX led and not finishing the upload.
Probably I'm not grounding it properly. Any idea how can I troubleshoot this?
Could you post your Arduino initialization code just in case?
Thanks a lot!
you need to un-connect the RN42 while uploading ssketches.
ReplyDeleteit is no different in any way than using regular serial. the default baud of the RN42 is 9600.
at least tx and rx un-connected atleast, i mean.
DeleteJordan, thanks, it helped. Can send and receive data now!
DeleteHi. i receive the RN-42 Bluetooth Module from Sparkfun. i have try your tutorial for my arduino mega adk. with this setup i'm able to find the RN42 by my android device but application name blue term(andoird app) can not able to connect the device.
ReplyDeletei have add 10k resistors beetween the rx(rn42) and tx(arduino), the 20k resistors add with 10k and gnd to arduino. but still cant connected.
please help me out.
I'm guessing your entering the password; 1234 ? any exact errors given?
Deleteyes i'm entering the password 1234 the device can pair but not connected and dont get any error i just got unable to connect using blue term apk, i have try to use amarino example application, with this application i am able to connect the device but the arduino cant receive the command. please help me out.
Deletehmm. do you have a computer you could test it with?
Deleteyes i can debug it.
DeleteHi, I need to use RN42 to communicate with Arduino. I need to do a PCB design of the circuit . So is it ok to leave all other pins except those four pins free? Plz help me out.
ReplyDelete