I need a little help on my first pcb

filfil
Posts: 1
Joined: Mon May 12, 2025 3:12 pm

I need a little help on my first pcb

Postby filfil » Mon May 12, 2025 3:19 pm

I am making a weather station, and I don't understand why the i2c doesn't work on the pcb but used to work when i was testing on breadboard. There is bmp180 and lcd connected to i2c and the board doesn't see any devices.
Attachments
image_2025-05-12_181524098.png
image_2025-05-12_181524098.png (96.34 KiB) Viewed 132 times

Sprite
Espressif staff
Espressif staff
Posts: 10599
Joined: Thu Nov 26, 2015 4:08 am

Re: I need a little help on my first pcb

Postby Sprite » Tue May 13, 2025 2:05 am

Please post your schematics and code and tell us exactly what boards the BMP180 and LCD are on; we can't really do much with only an unannotated PCB.

mikemoy
Posts: 688
Joined: Fri Jan 12, 2018 9:10 pm

Re: I need a little help on my first pcb

Postby mikemoy » Tue May 13, 2025 4:38 am

Where are your I2C pullup resistors ?

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: I need a little help on my first pcb

Postby ahsrabrifat » Tue May 20, 2025 3:11 pm

On breadboards, breakout modules often have built-in pull-up resistors on SDA and SCL. Your PCB may lack pull-ups, resulting in the I2C bus not working.Add 4.7kΩ or 10kΩ pull-up resistors from SDA and SCL to VCC (typically 3.3V or 5V).Look at your schematic/layout: Do you see resistors pulling up the I2C lines?
Your SDA and SCL traces appear to be routed, but verify continuity.

Use a multimeter in continuity mode to check:

MCU SDA → BMP180 SDA

MCU SCL → BMP180 SCL

MCU SDA/SCL → LCD SDA/SCL

Here is also a compact design of a weather station. You can see the PCB for further idea. https://www.pcbway.com/project/sharepro ... e923c.html

Who is online

Users browsing this forum: Applebot, Barkrowler and 4 guests