Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Projet terminale STI2D arduino et bluetooth

Featured Replies

Posté(e)

Bonjour à tous,

 

j'écris ce post aujourd'hui car je suis depuis maintenant plus de 3 mois sur un projet mais je ne parvient pas à avancer ...

 

Ce fameux projet consiste a développer une application capable de lire en temps réel la vitesse et la décharge d'une batterie de vélo électrique le tout en bluetooth, en récupérant ces données a partir d'une carte arduino uno

 

Je me suis donc intéressé a cette partie programmation mais j'ai beau lire des tutos je ne parvient pas a trouver de programme qui regroupe a la fois la connectivité bluetooth ainsi que l'arduino.

 

merci de bien vouloir m'aider :)

 

maxi56

Modifié par maxi56

  • 1 month later...
Posté(e)
  • Auteur

je reviens vers vous avec le programme arduino terminé et fonctionnel, module détectable etc...

 
#include <AltSoftSerial.h>

const int bluetoothTx = 9;
const int bluetoothRx = 8;

AltSoftSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()
{
 pinMode(bluetoothTx, OUTPUT);
 pinMode(bluetoothRx, INPUT);
 
 Serial.begin(38400);  
 bluetooth.begin(9600);
 delay(1000);
       
 bluetooth.print("\r\nAT+INIT\r\n");             // inizializzazione SPP
 bluetooth.print("\r\nAT+ROLE=0\r\n");           // imposta come slave  
 bluetooth.print("\r\nAT+IAC=9E8B33\r\n");       // impostazione Inquire Access Code di default
 bluetooth.print("\r\nAT+CLASS=0\r\n");          // accetta in connessione tutte le tipologie di dispositivo
 bluetooth.print("\r\nAT+INQM=1,9,48\r\n");      // inquire mode: RSSI, max 9, timeout 48
 bluetooth.print("\r\nAT+INQ\r\n");              // avvio
 delay(1000);
 
 Serial.print("Bluetooth should be initialized now");
}

void loop()
{
 if( bluetooth.available() )
   Serial.print(bluetooth.read());
   
 if( Serial.available() )
    bluetooth.write(Serial.read());    
}

 

mais toujours impossible de trouver un programme android pour la lecture des données émises par le module xbee,

auriez-vous des exemples d'appli a me proposer parce que là je suis réellement perdu ...

merci

Posté(e)
  • Auteur

Pour résumer, les infos des capteurs sont réunis sur un fichier texte lui même contenu dans une carte SD. Le principe de cette application est de lire ces infos en bluetooth et de les afficher sur l'écran de façon lisible.

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.