I'm working on designing a device that mimics simple up and down breathing motion of the chest. My design currently uses an Arduino to control a servo motor. This is a portable device and thus will need to function without a computer save for uploading the programs. I have two feasibility questions:
- Is it possible to have the Arduino read from a single-column patient breathing file of position data (.txt) and rotate the motor to specific angles in real time that correspond to each position in the file? This is an essential requirement.
- Is it possible to have the Arduino be able to switch between patients at the flick of a switch; i.e. read from a different file and perform the same calculations and output to the motor? This is an optional requirement but is highly desired.
If either are possible, how would I go about doing this? Thanks for any help.