projet capteur connecté ST/SE

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Committer:
MathieuM
Date:
Mon Dec 10 11:26:41 2018 +0000
Revision:
82:6f5913a97489
Parent:
78:ab7595f2133b
Various updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MathieuM 45:60f602ecd59b 1 #ifndef __CONFIG__
MathieuM 45:60f602ecd59b 2 #define __CONFIG__
MathieuM 45:60f602ecd59b 3
MathieuM 45:60f602ecd59b 4 // communication
MathieuM 77:67faccef7f14 5 #define SERIAL_PORT D1, D0 // Rx <-> Tx | Tx <-> Rx
MathieuM 52:d49b6f468b97 6 #define WAIT_TIME 60*15 // 15 minutes
MathieuM 45:60f602ecd59b 7
MathieuM 45:60f602ecd59b 8 // T_H_air
MathieuM 52:d49b6f468b97 9 #define PIN_NAME D6
MathieuM 52:d49b6f468b97 10 #define DHTtype DHT22
MathieuM 45:60f602ecd59b 11
SBACCARI 67:3ccbc6a532eb 12 // T_H_soil
SBACCARI 67:3ccbc6a532eb 13 #define AIR_SOIL_HUMIDITY 0.78 // dry dirt at 0.75 with AnalogIn.read()
SBACCARI 67:3ccbc6a532eb 14 #define WATER_SOIL_HUMIDITY 0.38 // wet dirt at 0.54
SBACCARI 67:3ccbc6a532eb 15 #define SOIL_T_PIN A4
Fayge 73:bc3b0ee46dfc 16 #define SOIL_H_PIN A3 // max: 0.77 min:0.38
MathieuM 45:60f602ecd59b 17
MathieuM 49:b1ac7ebb715f 18 // Altitude
MathieuM 52:d49b6f468b97 19 #define HP20X_I2C_DEV_ID 0xEC
MathieuM 52:d49b6f468b97 20 #define HP20X_I2C_PORT D12, A6
MathieuM 52:d49b6f468b97 21
MathieuM 52:d49b6f468b97 22 // Magnetometer
MathieuM 77:67faccef7f14 23 #define HMC5883_I2C_PORT D4, D5 //sda, scl
MathieuM 49:b1ac7ebb715f 24
MathieuM 46:40b6bbf6167e 25 // Warnings
MathieuM 52:d49b6f468b97 26 #define W_AIR LED3
MathieuM 46:40b6bbf6167e 27
MathieuM 77:67faccef7f14 28 // Voltage control
MathieuM 78:ab7595f2133b 29 #define TRANSISTOR_ALTITUDE_PIN A0
MathieuM 78:ab7595f2133b 30 #define TRANSISTOR_GENERAL_PIN D3
MathieuM 78:ab7595f2133b 31
MathieuM 78:ab7595f2133b 32 // OLED screen
MathieuM 78:ab7595f2133b 33 #define MISO NC
MathieuM 78:ab7595f2133b 34 #define MOSI D2
MathieuM 78:ab7595f2133b 35 #define CLK D9
MathieuM 78:ab7595f2133b 36 #define DC D10
MathieuM 78:ab7595f2133b 37 #define RST_SPI D11
MathieuM 78:ab7595f2133b 38 #define CS A7
MathieuM 77:67faccef7f14 39
MathieuM 45:60f602ecd59b 40 #endif