RN-42 bluetooth module on boe-bot
amzo
Posts: 7
I've got a boe-bot and RN-42 bluetooth module, but I don't know how to put these two together...Where should I insert the bluetooth module into the board? I tried to looked for tutorials but all I could find were on eb500 instead of RN-42...
Thanks in advance for your help!
Thanks in advance for your help!
Comments
I looked at the example provided by the documentation but it didn't mention how to deal with GND and VIN on RN-42, so I'm not sure whether my setup is right or wrong:
I have the GND on P6, VIN on P5, RST on P4, RX on P3, TX on P2, RTS on P1, and CTS on P0.
I have one wire connecting header P6 on X2 to header Vss on X3, and one wire connecting header P5 on X2 to header Vdd on X3.
Sorry I don't have a camera with me so I'm not able to post what it looks like...If the description is confusing, I will post a picture later on.
Thanks!
So this is what I've got. Would you please take a look to see if it's correct?
the Green LED on RN-42 is blinking 1X per second, indicating it's discoverable/idle.
When I try to identify device, the blue LED lights for 1 or 2 seconds and then goes out.
I checked the jumper setting on RN-42 and they are correct.
I also tried to disconnect the device and then reconnect. Still didn't work.
Do you have any idea how to get BASIC Stamp software identify the device?
Yes, you cannot Identify/Program the BASIC Stamp Microcontroller over the Bluetooth link. For starters you're not connected to the pins that are used during program, nor do you have direct access to them. Second, the DTR pin is required from the PC in order to Identify or Program. And typically a radio link will inherently be too latent for programming, requiring specialized hardware.
Your initial message did not indicat you were tyring to use the Bluetooth link in this manner.
Actually, I'm working on a project that allows a joystick to remotely control the Boe Bot. I've already had a C# program working together with BASIC Stamp code to implement it while the Boe Bot is connected to PC via USB cable. Thought I just need to replace the USB cable with the Bluetooth module to enable a wireless control.
I followed the projects posted in this post (How to create a communications template in VB and Twin Servo Control):
http://forums.parallax.com/showthread.php/96973-VB-Express-to-Stamp-Template?p=671804#post671804
To run the program, I need to first run the BASIC Stamp code and then I can establish a connection through the c# code and control servos.
So, is it even possible to get this implemented with Bluetooth (specifically, using RN-42 module)?
Thanks!
How to Boe-Bot Robot with Easy Bluetooth Module
http://forums.parallax.com/showthread.php/112822-How-to-%E2%80%93-Boe-Bot-Robot-with-Easy-Bluetooth-Module
I guess the only difference between my Boe-Bot and the one in that post is that the bluetooth module used. So I followed the suggested steps: pair the Bluetooth module to PC, included the Bluetooth COM port, ran the TestBluetoothConnection.bs2, unplugged the serial cable from Boe-Bot, and opened a new Debug Terminal. But when I tried to select the outgoing COM port (Bluetooth COM port), it says "cannot open port: reason unknown."
So do you have any idea what's the problem? Or is it because I'm using a different module than the one used in that post?
Thanks for your patient help
Thanks.