Hello, im trying to use a sr04 distance sensor with my nano iot 33, and it simply just outputs 0cm every time. I know that the sensor works and that the pins are in the correct placement because when I replaced the bot 33 with a normal nano and uploaded the code the sensor worked perfectly. I am just using the example sketch provided with sr04 library
Answer: thanks to the help, I've solved it. What you need to do is solder the two pads on the underside of iot 33 on the vusb and add 2 10k resisters in series from the echo pin to the pin you want to use for the echo so that it brings the 5v logic down to 2.5v.
If you are feeding 5v to the HC-SR04 and hadn't been using level shifting on the echo pin, you may have killed the Nano's pin. Maybe try another pin.
I don't have a Nano IOT 33, so I'm not sure about VUSB. What does the Nano IOT 33 datasheet say about using VUSB? I seem to remember seeing something about "no connection" unless a jumper is closed somewhere......
Also, in lieu of a voltmeter, you could try lighting an LED with VUSB (and current-limiting resistor).
So apparently I have to solder two pads under the 5v pin for it to work, which is a relief that I haven't been damaging the board. Also thanks for your help! Ill solder it later and let you know how it goes
Ok, hope it works. BTW, you really should get a digital multimeter, if you plan to do anything more than this project. Even a cheap one ($10 or $15) is better than nothing.