Possible for Arduino to read sensor data and wait for user input to turn stepper?

I'm working on an AllSKy camera enclosure with an Arduino I/O board.
It will have 3 environmental sensors (two BME280, MLX90614, and TSL2591). It will control a case fan and dew heater using PWM to a MOSFET automatically based on internal case BME280 readings.
It will publish this data over the serial port for a simple GUI I'm building in Processing.

While it is running the above code, is it also possible for the Arduino to also monitor serial port for user input to rotate a tiny stepper motor to focus the AllSky camera lens?

I have the code written to monitor BME280, MLX90614, and TSL2591 and report back environmental conditions and calculate SQM for astronomy and compare MLX90614 (sky temp) vs BME280 (ambient temp) and determine the delta and report back if cloudy or clear conditions.

I'm hung up at the point where I would ask the program if a user wants to turn stepper clockwise (focus in) or counterclockwise (focus out), while also reporting the above sensor data.

Yes you have a problem but ours is much more difficult. We cannot see what you have, know how it is wired or what the code is. Posting this will help us help you!

Read and follow the how to get the best from the forum threads to get faster better help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.