0

I'm trying to make a system that can take multiple sensor inputs from an Arduino connected through USB to a Raspberry Pi.

Is it possible to differentiate the different sensor inputs on the Pi so Serial.readline() can still be used? If not how else can I read the inputs on the Pi?

Darth Vader
4,21824 gold badges47 silver badges71 bronze badges
asked Aug 11, 2017 at 22:51

1 Answer 1

2

That is completely under your control.

Personally I would start each sensor message from the Arduino to the Pi with an identifier identifying the sensor.

answered Aug 12, 2017 at 7:04
1
  • So lets say i need all of the inputs at the same time, is there another way to differentiate it? Commented Aug 14, 2017 at 20:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.