Contrôle de l'iRacer avec un Raspberry Pi en bluetooth.

Voiture : http://www.gotronic.fr/art-voiture-bluetooth-android-racer01-18767.htm 1) Connecter le Raspberry Pi et le iRacer en bluetooth. 2) Installer Cutecom :

[~] ➔ sudo apt-get install cutecom

3) Lancer cutecome :

[~] ➔ sudo cutecom

Configuration : Device : /dev/rfcomm0 Baud rate : 9600 Date bits : 8 Stop bits : 1 Parity : None Hex ouput : V Hex input : V 4) Commandes : Dans ligne de saisie "Input:", taper les ordres de mouvement suivants par exemple : 5A pour avancer tout droit rapidement. Control Bytes are Constructed in Hex like this: 0xXY Where X is the direction and Y is the speed. Here are some tables:

   0x0Y    Stop                              0xX0    Stop
   0x1Y    Straight / Forward                0xX1    Slowest
   0x2Y    Straight / Backward               0xX2    Way Way Slow
   0x3Y    Left / No Drive                   0xX3    Way Slow
   0x4Y    Right / No Drive                  0xX4    Less Way Slow
   0x5Y    Left / Forward                    0xX5    Slow
   0x6Y    Right / Forward                   0xX6    Easy-Going
   0x7Y    Left / Backward                   0xX7    Cruising
   0x8Y    Right / Backward                  0xX8    Moving Right Along
                                             0xX9    Moving Quick
For example: If you want to
                                             0xXA    Moving Quicker
drive left pretty darn quick,
just send a 0x5B. If you want                0xXB    Moving Pretty Darn Quick
to backup to the right slowly,
                                             0xXC    Fast
send a 0x85. All commands are
sent as single bytes at 9600
                                             0xXD    Faster
baud, 8-N-1.
                                             0xXE    Fastest
                                             0xXF    I lied, this is fastest.