Étape 4: programmation
Connecter le module bluetooth à 3, 3V USB to serial 38400 baud et configurer avec ce qui suit :
- AT
- AT + RESET
- AT + ORGL
- AT + RÔLE = 0
- À + POLAIRE = 1, 0
- AT + UART = 57600, 0, 0
- AT + INIT
- AT + INQ
Lorsque vous utilisez une machine linux le bluetooth peut être configuré avec le texte suivant :
adresse de périphérique bluetooth # arduino et votre bluetooth
- $ hcitool scan # pour obtenir l’adresse bluetooth arduino
- $ hciconfig - un | grep « BD adresse » # pour obtenir votre adresse bluetooth
- $ echo « 1234 » > /var/lib/bluetooth// anti-violence
- $ rfcomm bind 0
Plus de détails ici
Il existe un service public pour la programmation de la sumorobots dans un laboratoire distant www.robocoding.com