IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Arduino Discussion :

gps de affichage vitesse


Sujet :

Arduino

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    particulier
    Inscrit en
    Novembre 2022
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : particulier
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2022
    Messages : 16
    Par défaut gps de affichage vitesse
    bonjour je suis pas 100% debutant mais je cherche un programme entier mon ecrantNom : IMG20231026134634.jpg
Affichages : 302
Taille : 956,5 KoNom : IMG20231026134619.jpg
Affichages : 293
Taille : 1,02 Mo peu importe
    mais je voudrai piloter mon gps je joints une photo
    il a une librairie mais je sais pas de competance a le programme svp de l"aide
    c'est pour afficher la vitesse du ecrant oled noir et blanc en km/H

  2. #2
    Membre averti
    Homme Profil pro
    particulier
    Inscrit en
    Novembre 2022
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : particulier
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2022
    Messages : 16
    Par défaut
    j'ai trouvé une bibliotheque SAM_M8Q
    mais je sais aps comment on cofigue avec que autre bibliotheque le gps pourque ca fonctionne milles mercis

  3. #3
    Membre averti
    Homme Profil pro
    particulier
    Inscrit en
    Novembre 2022
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : particulier
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2022
    Messages : 16
    Par défaut
    j'arrive a faire fonctionner le gps par voie filaire

    l'ecran fonctionne il reste a afficher la vitesse sur l'ecrant voici les ligne de commande pour le filaire a modifier pour affichage ecrant

    Nom : IMG20231026175258.jpg
Affichages : 266
Taille : 767,7 Ko

    Nom : IMG20231026175302.jpg
Affichages : 268
Taille : 1,90 MoNom : IMG20231026175311.jpg
Affichages : 269
Taille : 703,8 Ko[ATTACH=CONFIG]

  4. #4
    Membre Expert

    Homme Profil pro
    Directeur de projet
    Inscrit en
    Mai 2013
    Messages
    1 650
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Directeur de projet
    Secteur : Service public

    Informations forums :
    Inscription : Mai 2013
    Messages : 1 650
    Par défaut
    Bonjour,

    Pour que nous puissions interagir, il faut au moins mettre le code (texte et pas photo) dans le message : copier/coller puis sélection du code et appui sur #.

    La section des câbles semble importante pour ce type de branchement. Ce n'est pas grave mais pas utile.

    Salutations

  5. #5
    Membre averti
    Homme Profil pro
    particulier
    Inscrit en
    Novembre 2022
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : particulier
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2022
    Messages : 16
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    /*
     * Created by ArduinoGetStarted.com
     *
     * This example code is in the public domain
     *
     * Tutorial page: <a href="https://arduinogetstarted.com/tutorials/arduino-gps" target="_blank">https://arduinogetstarted.com/tutorials/arduino-gps</a>
     */
     
    #include <TinyGPS++.h>
    #include <SoftwareSerial.h>
     
    const int RXPin = 2, TXPin = 3;
    const uint32_t GPSBaud = 9600; //Default baud of NEO-6M is 9600
     
     
    TinyGPSPlus gps; // the TinyGPS++ object
    SoftwareSerial gpsSerial(RXPin, TXPin); // the serial interface to the GPS device
     
    void setup() {
      Serial.begin(9600);
      gpsSerial.begin(GPSBaud);
     
      Serial.println(F("Arduino - GPS module"));
    }
     
    void loop() {
      if (gpsSerial.available() > 0) {
        if (gps.encode(gpsSerial.read())) {
          if (gps.location.isValid()) {
            Serial.print(F("- latitude: "));
            Serial.println(gps.location.lat());
     
            Serial.print(F("- longitude: "));
            Serial.println(gps.location.lng());
     
            Serial.print(F("- altitude: "));
            if (gps.altitude.isValid())
              Serial.println(gps.altitude.meters());
            else
              Serial.println(F("INVALID"));
          } else {
            Serial.println(F("- location: INVALID"));
          }
     
          Serial.print(F("- speed: "));
          if (gps.speed.isValid()) {
            Serial.print(gps.speed.kmph());
            Serial.println(F(" km/h"));
          } else {
            Serial.println(F("INVALID"));
          }
     
          Serial.print(F("- GPS date&time: "));
          if (gps.date.isValid() && gps.time.isValid()) {
            Serial.print(gps.date.year());
            Serial.print(F("-"));
            Serial.print(gps.date.month());
            Serial.print(F("-"));
            Serial.print(gps.date.day());
            Serial.print(F(" "));
            Serial.print(gps.time.hour());
            Serial.print(F(":"));
            Serial.print(gps.time.minute());
            Serial.print(F(":"));
            Serial.println(gps.time.second());
          } else {
            Serial.println(F("INVALID"));
          }
     
          Serial.println();
        }
      }
     
      if (millis() > 5000 && gps.charsProcessed() < 10)
        Serial.println(F("No GPS data received: check wiring"));
    }

  6. #6
    Membre averti
    Homme Profil pro
    particulier
    Inscrit en
    Novembre 2022
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : particulier
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Novembre 2022
    Messages : 16
    Par défaut
    il faut donc inclure mon ecrant et afficher que la vitesse merci c'est un 164 sur 68 je epux renseigner les lib ect..

    J'arrive maintenant à afficher sur l'écran mais il est avec accompagner d'un nuage de points inutile je sais pas pourquoi

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    #include <SPI.h>
    #include <Wire.h>
    #include <Adafruit_GFX.h>
    #include <Adafruit_SSD1306.h>
    Adafruit_SSD1306 display(4) ;
    float Mesuretension ;  
    float tension ;  
    float tension1 ;
     
     
     
    void setup() {   
      // put your setup code here, to run once:
    Serial.begin (9600) ;
    display.begin (SSD1306_SWITCHCAPVCC, 0X3C) ;
    display.setTextSize (2) ;
    display.setTextColor (WHITE) ;
    pinMode (A0 ,INPUT) ;
     
    }
     
    void loop() {
    Mesuretension =analogRead (A0) ;
      // put your main code here, to run repeatedly:
    tension =(Mesuretension*5)/1023 ;
     
    {
    if ( tension > 2 )
    if ( tension < 3 )
    {
     
    display.clearDisplay () ;
    display.setCursor (0,0) ;
    display.println (tension) ;
    display.display () ;
    delay (1000) ; 
    }}}
     
     * Created by ArduinoGetStarted.com
     *
     * This example code is in the public domain
     *
     * Tutorial page: <a href="https://arduinogetstarted.com/tutorials/arduino-gps" target="_blank">https://arduinogetstarted.com/tutorials/arduino-gps</a>
     */
     
    #include <TinyGPS++.h>
    #include <SoftwareSerial.h>
    #include <SPI.h>
    #include <Wire.h>
    #include <Adafruit_GFX.h>
    #include <Adafruit_SSD1306.h>
    Adafruit_SSD1306 display(5) ;
     
    const int RXPin = 2, TXPin = 3;
    const uint32_t GPSBaud = 9600; //Default baud of NEO-6M is 9600
     
     
    TinyGPSPlus gps; // the TinyGPS++ object
    SoftwareSerial gpsSerial(RXPin, TXPin); // the serial interface to the GPS device
     
    void setup() {
      Serial.begin(9600);
      gpsSerial.begin(GPSBaud);
     
      // put your setup code here, to run once:
    Serial.begin (9600) ;
    display.begin (SSD1306_SWITCHCAPVCC, 0X3C) ;
    display.setTextSize (3) ;
    display.setTextColor (WHITE) ;
    }
     
     
      void loop() {
      if (gpsSerial.available() > 0) {
        if (gps.encode(gpsSerial.read())) {
     
          //display.print(F("- speed: "));
          if (gps.speed.isValid()) {
           display.clearDisplay () ;
           display.setCursor (0,0) ;
           display.print(gps.speed.kmph());
     
    display.display () ;
    //delay (1000) ;   
    }}}}

Discussions similaires

  1. vitesse d'affichage d'un site
    Par carrie99 dans le forum Dreamweaver
    Réponses: 3
    Dernier message: 17/07/2007, 09h24
  2. problème du pause (sleep) ou problème vitesse d'affichage (Swing)
    Par MAD_Tarik dans le forum EDT/SwingWorker
    Réponses: 15
    Dernier message: 17/04/2007, 13h47
  3. Splash screen et vitesse d'affichage
    Par pierrot67 dans le forum Delphi
    Réponses: 4
    Dernier message: 09/12/2006, 16h37
  4. Vitesse d'affichage GDI
    Par acanicio dans le forum Delphi
    Réponses: 12
    Dernier message: 27/10/2006, 18h58
  5. [Swing] Vitesse affichage tooltip
    Par Pill_S dans le forum AWT/Swing
    Réponses: 3
    Dernier message: 23/09/2006, 11h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo