Following on from this question. Can I place the capacitor anywhere in the circuit before the IR Distance Sensor? In my project I have 2 PCBs: A power circuit and a Processing Circuit. In the Diagram below you see the two PCBs Power Board and Processing as well as the Sharp distance sensor. Following the diagram, can I place the capacitor on the power board or will it be ineffective by the time it reaches the sensor? I don't want to damage my expensive sensors.
--------------- 12V ------------------
| |-------------------------| |
| Power board | 5V | Processing |
| |-------------------------| Board |
| | GND | |
|_____________|-------------------------|________________|
| | |
| | |
GND | Out | 5V |
| | |
------------------
| Sensor |
------------------