I'm sure these are probably rookie questions but before I get too far into my project, I wanted to make sure I have the concept correct about my Arduino Nano 3.0 (8 analog inputs) and Raspberry Pi 2 B+. These are my questions:
- There is only one script file that loads and executes on the Arduino
- The best method of communication between the two is through USB serial
- The best method to get multiple sensor results is returned as a list or array through serial communication in the main loop to be parsed on the RPi?
- And following up on the multiple sensor results: Arduino will have 4 different sensors connected: 2 load sensors, 1 EC sensor and 1 pH sensor or basically 4 voltage dividers. EC and pH sensor can't be on at the same time but load sensors can be on all of the time. For the RPi to get the results of the EC sensor or pH sensor (that can't be on at the same time), is the best method to send a command to serial that tells the loop to turn on/off each sensor and return results?