I’m know very little about electric and how proper grounding works and should be setup. I have an issue while using the Arduino and some simple ultrasonic sensors. When hooked up at certain locations, the sensors do not get the correct readings and also the Arduino does not read the sensors correctly.
I know this is a power / grounding issue as when I switch the power source to a source that I know produces clean power and ground then everything works great. The wiring diagram is attached to this post. It looks a little complex, but it really is very simple. I’ll explain the diagram below.
Is there anything I am doing wrong, or is there any item I can use to further isolate / fix the grounding issue so everything works.
The power comes into a 24V power conditioner. This keeps power currently at 24V and cleans out any spikes or surges. The 24V ground and hot then go to connectors where they branch out to the other devices. There is a 9V regulator that brings the 24V down to 9V and powers the Arduino via the Vin pin. The Arduino is also connected to the ground from the 24V. There is also a 5V regulator that powers the sensors. This is connected to the 24V power, the ground from the 24V and also connected to the Arduino PWM Digital Pin 9. The Arduino triggers the 5V regulator by putting pin 9 high. This essentials turns on the 5V regulator so that 5V regulator can power the sensors. This is needed as the sensors need more power then the 5V output from the Arduino PWM pins.
Any help would be greatly appreciated!