I need to have an ESP8266 connected with these components
- MPU6050 gyroscope/accelerometer
- HMC5883L compass
- BMP280 presure sensor
- GYNEO6MV2 GPS Module
and I should drive 4 PWM lines according the input calculated.
I'm not sure if the wiring that I'm thinking to use is appropriate.
Here my scheme:
I report the connections here if it isn't clear enough:
GPIO-12 -> control ESC1
GPIO-13 -> control ESC2
GPIO-14 -> control ESC3
GPIO-15 -> control ESC4
GPIO-1 -> SDA BMP280 (pressure sensor/altimeter)
GPIO-3 -> SCL BMP280 (pressure sensor/altimeter)
GPIO-2 -> SDA HMC5883L (compass)
GPIO-0 -> SCL HMC5883L (compass)
GPIO-5 -> SDA MPU6050 (gyroscope/accelerometer)
GPIO-4 -> SCL MPU6050 (gyroscope/accelerometer)
GPIO-9 -> SDA GYNEO6MV2 (GPS Module)
GPIO-10 -> SCL GYNEO6MV2 (GPS Module)
with common 3.3 Vin and GND to supply power to ESP8266 and all modules
Is this wiring appropriate? If no, how the components should be wired?
EDIT
Wise people here suggested to use multiple devices on same SDA and SCL lines, so: using I2C addressing it is enough to wire them directly in this way or is needed something to prevent them to interfere with each other? (Note that GPIO-4 and GPIO-5 are marked SDA and SCL on this board)