Skip to content

Build your module

Totoo edited this page Oct 20, 2024 · 8 revisions

If you selected the components what you will use, it's time to assemble. The PINs in ESP can be changed if you compile the firmware yourself.

TLDR:

  • ESP Serial RX (for GPS) PIN 6
  • I2C SCL -> ESP PIN 4
  • I2C SDA -> ESP PIN 5

Serial GPS module

Line the GND to the module's GND, and 3.3V or 5V according to your module to the VCC of your module. The GPS TX pin should be wired to ESP's PIN 6. GPS RX not used.

I2C devices

Line the GND to the module's GND, and 3.3V or 5V according to your module to the VCC of your module. Wire the module's SCL pin to ESP PIN 4, and SDA pin to ESP PIN 5.

With I2C devices you must use the same SCL, SDA pins for all devices you want to connect.

Example of a built module

To connect with PP H4

Get power for the ESP from anywhere ( I don't recommend using PP 3.3V out, only with a DCDC !) Wire the H4's GND to ESP's GND. I2C SCL from H4 goes to GPIO 10 on ESP. I2C SDA from H4 goes to GPIO 11 on ESP. That's all. Using nightly build after 2024.01.20 will detect the module, and get GPS, Environment, Light, Orientation data from the ESP (depends on the sensors you got wired)

Don't use USB + I2C at the same time, it won't help in anything, the PP will receive the same data but duplicated.