Question completely rewritten
Trying to assess an Arduino project feasibility. New to Arduino... but did a lot of controller programming (assembly), Roboteq (C) and Phidgets (C++) , using various kinds of motors and sensors ; and reading the Arduino documentation makes me feel confident interfacing and programming shouldn't be an issue.
However, before investing time (and some money) in the project, I thought it'd be better to ask here if Arduino is the right choice, considering
- a non-latching Hall sensor is to be connected to Analog 0,
analogRead()
to return a [0,1023] value, used as a proximity sensor. This should be straight forward.
Question →
- while the Arduino runs my program, and is still connected to the PC (USB), is it possible to synchronously or asynchronously send commands from the PC to the Arduino. I.e. can the Arduino poll if there is something coming from USB (synchronous), or is there a way for the PC via USB to have Arduino do something (asynchronously)?
Thank you.
millis()
insteaddelay()
or else doing multiple stuff at the same time won't work or be buggy. With that, you would be able to ask more specific questions. – gre_gor Aug 27 at 15:50