CIRCUIT DIAGRAM
The following circuit is used in our ventilator where one potentio - meter is connected to Arduino Uno board analog input A2 since A0 and A1 are reserved for current sensing of channel one and two of the driver , two push button are connected to digital inputs 2 and 6 for changing the breath frequency . the I2C LCD is going to be added in the next satge and will be connected to A4 and A5 which is the I2C Bus .
Finally, the motor shield is attached on top of the Arduino Uno board and its pins are directly connected to the Arduino without any wires.
The following is a tutorial of how to use the motor control shield without using any library
BOM : BILL OF MATERIALS:
Arduino Uno Board
Two 10 K Ohms POT's
Two tactile Push Buttons
I2C LCD 4 X 20
Arduino Motor Control Shield R3
Some wires male to male and male to female
12 V DC motor 29 rpm 30 kg . cm torque