Shared by Polytech Marseille to contribute to the improvement of the mbed community !

Dependencies:   Adafruit_SGP30_mbed mbed GSM X_NUCLEO_IKS01A2 max31865 GroveGPS SDFileSystem DFPlayerMini BME280 DS1820

Committer:
ayoubzahir
Date:
Tue Apr 30 15:00:03 2019 +0000
Revision:
3:cb77ea3370e8
This Program is shared by PolytechMarseille_MT to contribute to the improvement of the mbed community.; Have fun !

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ayoubzahir 3:cb77ea3370e8 1 /////////////////////////////////////////////////////////////////////////
ayoubzahir 3:cb77ea3370e8 2 // AMU - Aix-Marseille Université
ayoubzahir 3:cb77ea3370e8 3 // Polytech Marseille - Microelectronique & Telecommunications (MT)
ayoubzahir 3:cb77ea3370e8 4 // Projet MT5A "STM32 In the Sky - HAB", 2018-2019
ayoubzahir 3:cb77ea3370e8 5 // Enseignants : C.Dufaza & H. Aziza
ayoubzahir 3:cb77ea3370e8 6 // Etudiants : ...
ayoubzahir 3:cb77ea3370e8 7 /////////////////////////////////////////////////////////////////////////
ayoubzahir 3:cb77ea3370e8 8 // Version avril 2019, C.Dufaza
ayoubzahir 3:cb77ea3370e8 9
ayoubzahir 3:cb77ea3370e8 10 /////////////////////////////////////////////////////////////////////////
ayoubzahir 3:cb77ea3370e8 11 // Activation des différents modules de ce code (via directives de compilation)
ayoubzahir 3:cb77ea3370e8 12 // Permet de désactiver rapidement la compilation de certaines parties du code
ayoubzahir 3:cb77ea3370e8 13 // Commentez les lignes pour désactiver les modules/fonctionnalités :
ayoubzahir 3:cb77ea3370e8 14
ayoubzahir 3:cb77ea3370e8 15 #define DEBUG_SERIAL_PC 1 // Debug sur Serial PC COM Port
ayoubzahir 3:cb77ea3370e8 16 #define DEBUG_SERIAL_PC_BAUDRATE 115200
ayoubzahir 3:cb77ea3370e8 17 //#define BUZZ_FUNCTION 1 // Buzzer
ayoubzahir 3:cb77ea3370e8 18 #define BUZZ_FUNCTION_DURATION 1500 // Nbre de périodes du buzzer
ayoubzahir 3:cb77ea3370e8 19 #define BUZZ_FUNCTION_HZ 333 // 1/2 Période de la Hz buzzer (en us)
ayoubzahir 3:cb77ea3370e8 20
ayoubzahir 3:cb77ea3370e8 21 #define SD_GPRS_DATA_SIZE 150 // Chaine car pour SD et SMS
ayoubzahir 3:cb77ea3370e8 22
ayoubzahir 3:cb77ea3370e8 23 #define HAB_FUNCTION 1 // HAB Ticker
ayoubzahir 3:cb77ea3370e8 24 #define TICKER_HAB_TIME 5.0 // HAB Ticker toutes les ... secondes
ayoubzahir 3:cb77ea3370e8 25 #define BASE_PRESSURE 1016 // Pression du jour, altitude = 0
ayoubzahir 3:cb77ea3370e8 26
ayoubzahir 3:cb77ea3370e8 27 #define SD_FUNCTION 1 // Carte SD
ayoubzahir 3:cb77ea3370e8 28 #define SD_FUNCTION_SDNAME "sd" // Nom de la carte SD
ayoubzahir 3:cb77ea3370e8 29 #define SD_FUNCTION_FILENAME "/sd/data.txt" // Nom du fichier sur carte SD
ayoubzahir 3:cb77ea3370e8 30 #define SD_FUNCTION_TESTFILENAME "/sd/sdtest.txt" // Nom du fichier sur carte SD
ayoubzahir 3:cb77ea3370e8 31
ayoubzahir 3:cb77ea3370e8 32 #define MP3_FUNCTION 1 // Module lecteur MP3
ayoubzahir 3:cb77ea3370e8 33
ayoubzahir 3:cb77ea3370e8 34 #define GSM_FUNCTION 1 // Module GSM
ayoubzahir 3:cb77ea3370e8 35 #define TICKER_CHECK_GSM_TIME 60.0 // GSM Ticker toutes les ... secondes
ayoubzahir 3:cb77ea3370e8 36 #define GSM_BAUDRATE 9600
ayoubzahir 3:cb77ea3370e8 37 #define GSM_SIM_NUMBER "0758897561" // SIM mobile number
ayoubzahir 3:cb77ea3370e8 38 #define GSM_START_ALTITUDE 5000 // Vérification du GSM à partir de 5Km pendant en attérissage
ayoubzahir 3:cb77ea3370e8 39
ayoubzahir 3:cb77ea3370e8 40 #define GPRS_FUNCTION 1 // Données mobiles
ayoubzahir 3:cb77ea3370e8 41 #define SMS_FUNCTION 1 // SMS de données toute les 10 min
ayoubzahir 3:cb77ea3370e8 42 #define TICKER_SMS_DATA_TIME 6000.0 // SMS Ticket toutes les ... secondes
ayoubzahir 3:cb77ea3370e8 43
ayoubzahir 3:cb77ea3370e8 44 #define POLYTECH_SERVER "http://147.94.16.160/etudiantmt/index.php?message="
ayoubzahir 3:cb77ea3370e8 45 #define GSM_SEND_NUMBER "+33676040268" // SMS to this phone number
ayoubzahir 3:cb77ea3370e8 46 #define GSM_SEND_SMS_HELLO "AMU - Polytech Marseille MT - STM32 In the Sky" // SMS Welcome Message
ayoubzahir 3:cb77ea3370e8 47 //
ayoubzahir 3:cb77ea3370e8 48 #define GPS_FUNCTION 1 // Module GPS
ayoubzahir 3:cb77ea3370e8 49 //#define GPS_DEBUG // Transmission des données serie GPS sur UART
ayoubzahir 3:cb77ea3370e8 50 #define GPS_BAUDRATE 9600
ayoubzahir 3:cb77ea3370e8 51 //
ayoubzahir 3:cb77ea3370e8 52
ayoubzahir 3:cb77ea3370e8 53 #define XNUCLEO_FUNCTION 1 // Shield capteurs XNUCLEO
ayoubzahir 3:cb77ea3370e8 54 #define PT100_FUNCTION 1 // Module PT100
ayoubzahir 3:cb77ea3370e8 55 //#define DS18_FUNCTION // Capteur temperature DS18
ayoubzahir 3:cb77ea3370e8 56 #define UV_FUNCTION 1 // Capteur UV
ayoubzahir 3:cb77ea3370e8 57 #define PHOTORES_FUNCTION 1 // Capteur photoresistance
ayoubzahir 3:cb77ea3370e8 58 #define BOSCH_FUNCTION 1 // Module triple capteur Bosch
ayoubzahir 3:cb77ea3370e8 59 #define CO2_FUNCTION 1 // Module CO2
ayoubzahir 3:cb77ea3370e8 60 #define O3_FUNCTION 1 // Module spi_ozone O3
ayoubzahir 3:cb77ea3370e8 61
ayoubzahir 3:cb77ea3370e8 62 /*
ayoubzahir 3:cb77ea3370e8 63 #define LORA_FUNCTION 1 // Carte LoRa, not used !!
ayoubzahir 3:cb77ea3370e8 64 #define LORA_FUNCTION_BAUDRATE 9600
ayoubzahir 3:cb77ea3370e8 65 #define LORA_FUNCTION_DATASIZE 50
ayoubzahir 3:cb77ea3370e8 66 */