Making an ESP32-based quadcopter from scratch
Python arduinoautopilotcontrol-theorydroneesp32flight-controlflight-controllermavlinkquadcopterquadcopter-firmwareuav
Use default recommended chip-select pin (GPIO5) for SPI Update link to the schematics #3 to the most recent version
Oleg Kalachev1c9b10a674ac
diff --git a/README.md b/README.mdindex ad11385..f72552d 100644--- a/README.md+++ b/README.md@@ -38,7 +38,7 @@ Simulation in Gazebo using a plugin that runs original Arduino code is implement<img src="docs/img/schematics.svg" width=800 alt="Flix schematics">-You can also check a user contributed [variant of complete circuit diagram](https://github.com/okalachev/flix/issues/3#issue-2066079898) of the drone.+You can also check a user contributed [variant of complete circuit diagram](https://miro.com/app/board/uXjVN-dTjoo=/) of the drone.*\* — SBUS inverter is not needed as ESP32 supports [software pin inversion](https://github.com/bolderflight/sbus#inverted-serial).*diff --git a/flix/imu.ino b/flix/imu.inoindex acbade5..9d0107b 100644--- a/flix/imu.ino+++ b/flix/imu.ino@@ -6,10 +6,9 @@#include <SPI.h>#include <MPU9250.h>-#define IMU_CS_PIN 4 // chip-select pin for IMU SPI connection#define LOAD_GYRO_CAL false-MPU9250 IMU(SPI, IMU_CS_PIN);+MPU9250 IMU(SPI, SS);void setupIMU() {Serial.println("Setup IMU, stand still");