The Roving networks BT adapters i'm using can connect to a preprogrammed mac address, or it can sniff out and connect automatically.
Mine use the connect command, which is simply, go into command mode, send the connect command, then exit command mode. So if i have 6 bluetooth uart adapters powered, i can connect to a specific one ignoring the others.
Or i can connect to a PC's bluetooth dongle.
I'll be using a more sensitive stick when i make a version 2 of the controller. V2 will have more precision cuts.
This current controller may receive a
PSP style sliding thumb stick. Or two, on the underside of the controller. Can use a small PIC or Atom nano to add additional analog lines. Zenta could probably do that too.
Just have the pic/nano receive the analog data then transmit it over to the main MCU using a normal PIO port.
Code:
pot1 var word
pot2 var word
pot3 var word
pot4 var word
main
ADIN p0,pot1
ADIN p1,pot2
ADIN p2,pot3
ADIN p3,pot4
serout p4,i19200,[dec pot1\4,dec pot2\4,dec pot3\4,dec pot4\4]
pause 10
goto main
Then on the main MCU receive the 16 decimals of data. separated into sets of 4.
serin p10,i19200,[dec4 pot1,dec4 pot2,dec4 pot3,dec4 pot4]
The separation is so if a pot is 0 it transmits as 0000, if a pot is 512 (center) it's 0512
That's why the screen in the second picture has the numbers with an extra 0.
The slider, lower center, is just /100, so 1023 (max) displays 10, where 100-199 = 1. This is the speed multiplier for the rover.
I believe the nano 18 has 6 A/D channels. I think the nano 28 has 11.
I've said it before, the Nanos make fantastic support MCUs. IE secondary MCUs.