I wanted a waterproof distance sensor and figured I could make my own by replacing the 40khz sensors on one of the HC-SR04 modules I have with 40khz waterproof sensors destined for the rear bumper of a car.
I got a cheap car reversing kit with 40khz sensors, tested that and it worked fine, then hooked up a couple of waterproof sensors in place of the non-waterproof ones on a HC-SC04, programmed a 20m2 with tested code that works fine on an unmodified HC-SR04, then tried the modified module.
Nothing, just 0's returned to the terminal window from the pulsin command.
I can hear the sensor sending out the pings when held up to my ear but the other one doesn't seem to be receiving them. If I hold the two sensors face-to-face just a few mm apart then I get some low numbers returning in the terminal window.
Anyone have any ideas why it might not be working as hoped? Could it be that the car reversing kit sends out a much louder ping?
I got a cheap car reversing kit with 40khz sensors, tested that and it worked fine, then hooked up a couple of waterproof sensors in place of the non-waterproof ones on a HC-SC04, programmed a 20m2 with tested code that works fine on an unmodified HC-SR04, then tried the modified module.
Nothing, just 0's returned to the terminal window from the pulsin command.
I can hear the sensor sending out the pings when held up to my ear but the other one doesn't seem to be receiving them. If I hold the two sensors face-to-face just a few mm apart then I get some low numbers returning in the terminal window.
Anyone have any ideas why it might not be working as hoped? Could it be that the car reversing kit sends out a much louder ping?