ESP8266 Motor Shield with VL53L0X ToF Sensor

Hi All,

I'am trying to use NodeMCU Amica version with motor shield to control DC Motor, and measure distance with ToF sensor.

Previously I only using NodeMCU without motor shield, I can use:

  • D1 and D2 for LCD and ToF sensor.
  • D3 for servo with sensor
  • D4 for motor (one direction only)
  • D5 for servo (steering)

but when using motor shield, D1 and D2 is used to control direction for the L293D chip, and I cannot find how to change it.

so my question is there possible to change the l2C pin in Wire.h.?
or is there any work around for this.?
thank you.

try changing using command

Wire.begin(9,10); //9 as SDA and 10 as SCL

change 9 and 10 to the pins you wish to use for I2C - see if it works

thank you, that was working.