USB WiFi or Bluetooth on botboard with usb to rs232 conv.?

is it possible to connect a USB WiFi or Bluetooth stick on the botboard II with a usb to rs232 converter?

Sounds quite simple but is it?

I have been looking for this all over the internet. It looks like there are quite some projects that use these converters and a wifi stick or bluetooth. But non of them with the botboard!

Why not connect up to the USART pins (14,15), then you don’t need the converter. That way, the hardware works in the background for you.

Alan KM6VV

Can you give me some more info on how to do that?
I have pin 14,15 in use for my ps2 controller. Are there other pins i can use?

You’ll want to move the PS2 interface to other pins. The PS2 interface is bit-banged anyway.

Alan KM6VV

Ok and what code do i need to read the data?

Same code, just change the pins!

Alan KM6VV

so the bluetooth will not send signals to the botboard but to the ssc32?

Who said that? The program that you write determines what is done with the information requested and received. The BB2 can receive/send data from/to multiple sources. The BB2 then commands the SSC-32 when it wants the 'bot to move.

I like BlueSmirf for telemetry and possibly some control, and initially will run my current 'bot (quadruped) with a PS2. I can also quite easily simulate a PS2 over the RS-232 link.

Alan KM6VV

So i connected it and changed the pins. I have the usb bluetooth stick in pin 14,15, and the ps2 controller on 4,5,6,7.
The botboard keeps beeping meaning the ps2 can’t be found. And i can’t find any bluetooth device through my mac ( xp ).

What am i doing wrong?

Anyone?

Look at the schematic for the Bot Board II. You will see a pull up resistor on the data line (I think) for the PS2 connection. When you moved the PS2 to other pins it no longer had a pull up. There might be other problems like there is a 3.3vdc pin on the Atom and I think it caused problems. This is all covered in older posts. How’s your forum search foo?

I think 4,5,6, and 7 are not good pins for the PS2 on the Atom Pro. We had trouble and decided it was a 3.3vdc I/O pin. That’s one of the reasons we moved from those pins when we started porting code to the pro. Maybe 8,9,10 and 11 would be better…

And should i put them in the code like this?

... Adin con P14

or

... Con P14

Huh? :open_mouth:

There are pull-ups on CLK and Data (just looked).

Alan KM6VV

Note: pin 9 is also used for the speaker, so if you do use these pins you will probably want to remove the jumper.

Kurt

Or use a little .025" jumper wire to move the speaker over to another pin.

Alan KM6VV

Thank you!

As for the “huh?” code hahaha,

when i use my ir sensor, the code i have at the beginning of the bas file is something like this:

adin P19,scanrange
if scanrange > 2…

What should i put in the code to get the bluetooth to work?
I am on pin 8,9.

can you tell me how to rewire it?

To remove the usage of the speaker simply undo the jumper labeled SPKEN from the board. To use the speaker on another pin, simply take a 1 wire jumper that has female ends on both ends. Then simply plug one side into your IO pin of choice and plug the other into one of the two pins where you removed the jumper (SPKEN). I would have to look more closely at the board to tell you which one, but my guess would be the one closer to the center of the board…

Kurt