How to wire/connect multiple sensors to Arduino

2.4k views Asked by At

I would like to connect two sensors to Arduino Mega, but I don't how to connect the pins. My two sensors have 0-5V Signals, each with a positive and minus cable. Should I connect the positive cable to each A-X pin of arduino (e.g. A0 and A1) and connect both negative cables to the same Arduino GND pin?

Would this way mix analoge and digital GND? I read that both should be kept separated. How to achieve this.

UPDATE:

Sensor Specification: http://www.optris.com/optris-ctlaser-3m

Outputs / analog: 0-5/10 V

Output impedances: mV min. 100 kΩ load impedance

Power supply: 8-36 V DC Current draw: max. 160 mA

3

There are 3 answers

2
Mepix On BEST ANSWER

Your general configuration is correct. You can connect the 0-5V output from the sensor to the Analog In on the Arduino Mega. This link has a diagram that shows the best pins to use for the Analog vs. Digital Ground. Use the pins that are near the label "analog ground".

Arduino Mega with Digital and Analog Ground Labelled

As a side note, there appears to be some discussion on how "good" the internal separation is between analog and digital ground on the Arduino Board in the forums (here and here). All the grounds are connected on the Arduino board. You seem to be using a high quality sensor and other boards or ADCs may be more suitable for your needs. Try it, look at the quality of the signal, and make a determination if your signal suits your needs. For most applications, you should be OK.

0
Malith Ileperuma On

First of all you have to have an idea about the sensor and what kind of output you expect from your sensor. There are digital and analog pins in arduino board. if you're expecting analog output it would be better if you use A0-A15 pins. If you're expecting digital so you can use 1-53 pins.

for every sensor there are power pins and IO pins. in power pins there are plus and minus pins. Plus wire should connect into 5V/3V (according to the sensor) and your minus pin should grounded into GND. be careful when connecting plus pin because some sensors can't work with 5V. you have two power options in your arduino board. (3.3V and 5V).

When connection plus and minus pins it would be better if you use breadboard. because there are only few power and GND pins are available on board. you can use common power lines and ground lines.

for your question there is no any issues mixing ground or power lines together. The only thing you have to keep separate is your IO pins.

0
Ishanka Nirmal On

you can use common ground line for all the sensors which saves your ground pins