Hey.. i’m making weather station with arduino uno.. connected temp, humidity and barometer + small lcd display.. code works fine but sometimes lcd flicker when all sensors update at same time… tried adding pullups and some delays.. not sure its code or power..
Prototype is messy.. breadboard everywhere.. want to make pcb.. should i put sensors close to microcontroller or near edge? and how to route power for sensors separate from lcd.. i’m really confused.. any tips??
The flickering is most likely power or signal noise, especially on a messy breadboard. I think u should add some capacitors on power and gnd pins.
On a PCB, it’s best to route separate power lines for the sensors and the LCD, keeping thick, short traces for both. Place 0.1uµF decoupling capacitors close to each sensor and the LCD, and consider a larger 10uF capacitor on the main 5 V rail to smooth spikes. read this guide on decouplign cap: Capacitors - SparkFun Learn
For placement, sensors can be near the edges if you need them exposed, but keep the data lines short and direct to the Uno. Avoid routing sensor or LCD traces under high-current lines, and if possible, use a ground plane for the Uno and logic side to reduce noise. Read these guides on solid gnd planes:
Hey there, @Eva314934, and welcome to the forum, glad to have you here.
I agree with @ahsrab292840 that the flickering is most likely power or signal noise. How are the Sensors connected to the Arduino? Are you using multiple sensors on the same I2C bus as the screen?