AJ-SRO4M - unable to get distance
Posted: Thu Mar 13, 2025 8:52 pm
Hi all,
i am having a lot of trouble with my AJSR04M waterproof distance sensor.
my main issue is that the sensor is always giving me an error message of 9999 on my lcd.
i have used a flow chart form a working model using the exact same sensor and i am stumped.
i need it to get a distance and display it on my 2x16 lcd so i can reverse engineer it and input the distance into another flowcode so it can be used as a variable for an AND gate.
i am using an arduino R3 uno
i would appriciate if anyone could help me as this has been driving me mad for weeks
(P.S i have tried using the HCSR04 sonic sensor and i can make it work, that is why this is so fustrating)
flowcode file is attatched if needed
i am having a lot of trouble with my AJSR04M waterproof distance sensor.
my main issue is that the sensor is always giving me an error message of 9999 on my lcd.
i have used a flow chart form a working model using the exact same sensor and i am stumped.
i need it to get a distance and display it on my 2x16 lcd so i can reverse engineer it and input the distance into another flowcode so it can be used as a variable for an AND gate.
i am using an arduino R3 uno
i would appriciate if anyone could help me as this has been driving me mad for weeks
(P.S i have tried using the HCSR04 sonic sensor and i can make it work, that is why this is so fustrating)
flowcode file is attatched if needed