water flow sensor uses only pin 2 of atmega328?

DickCappels

Joined Aug 21, 2008
7,687
There is no PORT A on the ATMEGA328. Pin 2 is D0.

edit: If you are using pin 2 be sure it is configured as an output in Data Direction Register D.
 
Last edited:

KeithWalker

Joined Jul 10, 2017
1,911
water flow sensor yfs201 is not getting signal from atmega328 pu pin A0,
RDIONO, N
The signal on Analog pin 0 should be from the water flow Sensor to the ATMega328, not the other way round! Please show a schematic diagram and your coding to help us understand your problem.
 
Top