Using Sensors With ESP32

Hello! I'm making a robot, and for it I want to buy some sensors, but I have questions about them.

I have these details:

  1. ESP32/ESP23Cam;
  2. 2x VL53L0X ToF IR Distance Sensor;
  3. MPU6050 Gyro + Accelerometer Sensor;
  4. 2x Servo SG90;
  5. TP4056 UPS for li-ion battery;
  6. 1800mAh li-ion battery (B150AE, from Samsung phone);

I have these questions:

  1. Will all system be able to work simultaneously, at least all system and one IR Sensor (because, as I know for an instance in case of using Arduino Nano/Uno and HC-SR04 Ultrasonic Sensor, you are not able to use any other functions of microcontroller, when this sensor works). If no, how I can solve it (maybe use also arduino nano for IR Sensors, and ESP for all other components)?
  2. Will it actually work :sweat_smile:?
  3. Is exist small shield for ESP32, because I need small one for my project...
  4. Will it work on ESP8266?

Thanks for every reply!)

The servos need to be powered separately, 4.8-6V. A 4xAA battery pack will work, and be sure to connect the grounds.

The IMU and the distance sensors will work together, but you will have to change the I2C address of one of the distance sensors.

Thank you!

  • If I'll use MT3608 for my Servos, will it work good?

  • Do you mean I need to just change I2C adress, and it will work simultaneously?)

does your VL53L0X sensor have an XSHUT pin? e.g.
XSHUT: This pin is an active-low shutdown input; the board pulls it up to VDD to enable the sensor by default. Driving this pin low puts the sensor into hardware standby

you can enable/disable the sensors using XSHUT or use it to change one of the I2C addresses

All devices on the I2C bus must have different I2C addresses, and are read out sequentially, not simultaneously.

Yes, they have the XSHUT inputs

Aha, well, okay, thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.