esp-drone icon indicating copy to clipboard operation
esp-drone copied to clipboard

how to make this work on icm 20948

Open NBL-NZ opened this issue 10 months ago • 6 comments

i want to make drone with esp32 and icm 20948. How to change the firmware to make it work with icm 20948

NBL-NZ avatar Apr 09 '24 13:04 NBL-NZ

@NBL-NZ - i may be able to help modify the firmware for the 20948. have you already built a version of the schematic using the 20948?

mvschaefer avatar Apr 09 '24 14:04 mvschaefer

@mvschaefer yes i have built using 20948.

NBL-NZ avatar Apr 11 '24 04:04 NBL-NZ

@NBL-NZ - can you share your schematic? specifically, are you using SPI or I2C, and is AD0 tied to GND (I2C address --> 0x68) or VDD (I2C address --> 0x69)?

mvschaefer avatar Apr 11 '24 15:04 mvschaefer

we are using i2c, pin number 21 and 22 (deault). INT pin used is 23.![Screenshot from 2024-04-12 13-14-35]15335_9DoF_Schematic.pdf icm connected with reference to spark fun schematics . pdf is attached here

NBL-NZ avatar Apr 12 '24 07:04 NBL-NZ

then the default address should be 0x69

a good starting point for src code would be to replace the components/drivers/i2c_devices/mpu6050/ folder w/a local/modified version of:

  • https://github.com/sparkfun/SparkFun_ICM-20948_ArduinoLibrary (if you are using arduino this could be easy?..) OR
  • https://github.com/stephendpmurphy/icm20948

if you are "past this point" already and things arent working, access to src code will likely be required...

mvschaefer avatar Apr 12 '24 15:04 mvschaefer

then the default address should be 0x69

a good starting point for src code would be to replace the components/drivers/i2c_devices/mpu6050/ folder w/a local/modified version of:

  • https://github.com/sparkfun/SparkFun_ICM-20948_ArduinoLibrary (if you are using arduino this could be easy?..) OR
  • https://github.com/stephendpmurphy/icm20948

if you are "past this point" already and things arent working, access to src code will likely be required...

Is there is any option to controll flight mode through mobile application .currently i have set pressure sensor to this drone. but didnt see any option regarding flight mode for using altitude control mode .i have checked complete app setting there is no option to switch or use flight modes using expansion module.. Is there is somthing i missing ?

NBL-NZ avatar May 27 '24 06:05 NBL-NZ