Adding bluetooth module to sumobot
Ruturaj
Posts: 19
I want to use bluetooth module with sumo bot
https://core-electronics.com.au/attachments/guides/Product-User-Guide-JY-MCU-Bluetooth-UART-R1-0.pdf
Can I connect it to sumobot?
if yes
1.How to connect it?
2.What libraries will I need in order to use it?
if no
What other bluetooth module can I use?
https://core-electronics.com.au/attachments/guides/Product-User-Guide-JY-MCU-Bluetooth-UART-R1-0.pdf
Can I connect it to sumobot?
if yes
1.How to connect it?
2.What libraries will I need in order to use it?
if no
What other bluetooth module can I use?
Comments
Parallax's RN-42 Bluetooth module (http://www.parallax.com/product/30086) has lots of documentation and examples for use with a Stamp (like on the SumoBot). This documentation shows how to connect the RN-42 to a Stamp using 2 to 5 I/O pins depending on whether you want to use flow control and whether you want to be able to reset the RN-42 from the Stamp.
The Stamp doesn't use libraries the way an Arduino might. The serial I/O is built into the Basic interpreter used by the Stamp. Look at the Stamp Reference Manual (http://www.parallax.com/sites/default/files/downloads/27218-Web-BASICStampManual-v2.2.pdf) for a description of the SERIN and SEROUT statements.
Thank you for reply sir
RN-42 is little costly for me and I already have the one I mentioned
I used it with arcbotics sparki (based on Arduino) with 9600 baud
In code I just added one line saying
serial1.begin(9600)
I found this site
https://github.com/rwaldron/johnny-five/wiki/JY-MCU-Bluetooth-Serial-Port-Module-Notes
can I use same/similar code?
Also I am planning to use sane one with my activity bot too, should speed should I choose?
PS my main goal is to develop android application which can be used for sumo fight
SchmartBoards has a very small Propeller board that might be appropriate.
http://www.schmartboard.com/index.asp?page=products_populated&id=205
Of course, it might be worth asking Parallax to consider an upgrade of the Sumobot to a purpose built Propeller board. I suspect there are a lot of Sumbot users that might enjoy the upgrade.
The ActivityBot uses a Parallax Propeller which is different and can easily handle 38400 Baud or 9600 Baud. It uses 3.3V logic and a 3.3V power supply. With the ActivityBot, you must connect the Bluetooth module's power connections to +3.3V and Ground. Like the Stamp, you can use any unused I/O pins for serial I/O. Although you can program the Propeller in C, the structure of programs is different from Arduino programs. Look at the Propeller C example programs at the Learn (http://learn.parallax.com) website.
You may have to build higher on the SumoBox, as I recall there is no height limit.. just limits on weight and footprint.
There is also a Propeller board that plugs into Arduino boards and mimics all the characteristics. ... the Propeller ASC+ . That might be a good fit. You could easily piggyback a board to plug in the servo motors and all sorts of sensors and the Bluetooth.
http://mghdesigns.com/propeller/mgh-designs/propeller-asc-arduino-shield-compatible-1.html