XKC-Y25-v Ultrasonic Level Sensor

I have been playing with these sensors for a while and getting very frustrated. I am trying to build a tank-level monitoring system using 5 of the above sensors to interface with Hubitat using Hubduino. (It's a simple present/ Not present sensor)

I have set up a nano 33 IOT and it's reporting fine to Hubitat and creates the 5 contact sensors. So I know this is working. My problem comes with the sensors.

I know they specify a minimum working voltage of 5 on the sensor but from all my tests I have done using a meter they work at 3.3 volts and give me the correct 3.3v output on a voltmeter. But when connected to the Nano and powering everything from a 3.3v supply (Nano and sensors) - it bricked the Nano.

I then tried powering the sensors from 5 volts and running the output through a 5v to 3.3v level shifter and couldn't get any 3.3v output (ultimately I must have done something wrong because I have the same outcome, another bricked a Nano.

1/ Does anyone have experience with these sensors who can suggest a working solution!

2/ I am very confused with the Digital pins on the Nano. I am trying to use Actual Pin numbers 6 - 10 which I believe corresponds to D3 - D7. Can someone just confirm this is correct!

The final project can run from 5v or 3.3v. Obviously, sensor and Arduino can both run on 5v but the problem comes with the sensor output being 5v and needing to be 3.3v I don't care which way around the sensor works (Hi or Low) as I can fix this in Logic. Whichever is easiest to get a sensor signal into the Nano.

Thanks

Your description suggests the issue is likely in the wiring.

Can you provide a quick sketch of how you hooked up the sensors when the board was damaged?

Pls post your code using the </> function (in the forum entry window toolbar)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.