ANUVIND ASOK
Published © CC BY

COVID-19 Emergency Ventilator

Minimalistic Emergency ventilator with fine control over BPM, tidal volume and flow rate, with a digital interface.

IntermediateFull instructions provided8 hours2,280
COVID-19 Emergency Ventilator

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Stepper motor driver board A4988
SparkFun Stepper motor driver board A4988
×1
Stepper Motor, Bipolar
Stepper Motor, Bipolar
×1
Alphanumeric LCD, 20 x 4
Alphanumeric LCD, 20 x 4
×1
Pushbutton switch 12mm
SparkFun Pushbutton switch 12mm
×3
Resistor 10k ohm
Resistor 10k ohm
×1
60W PCIe 12V 5A Power Supply
Digilent 60W PCIe 12V 5A Power Supply
×1
Ambu bag
×1
Lead Screw 8mm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

test code

Arduino
#define EN        8  
#define X_DIR     2 //Direction pin
#define X_STP     3 //Step pin

int delayTime=30; //Delay between each pause in uS
int stps=6400;// Steps to move

void step(boolean dir, byte dirPin, byte stepperPin, int steps)

{
  digitalWrite(dirPin, dir);
  delay(100);
  for (int i = 0; i < steps; i++) {
    digitalWrite(stepperPin, HIGH);
    delayMicroseconds(delayTime); 
    digitalWrite(stepperPin, LOW);
    delayMicroseconds(delayTime); 
  }
}

void setup(){
  pinMode(X_DIR, OUTPUT); pinMode(X_STP, OUTPUT);
  pinMode(EN, OUTPUT);
  digitalWrite(EN, LOW);
}

void loop(){

  step(false, X_DIR, X_STP, stps); //X, Clockwise
  delay(100);
  step(true, X_DIR, X_STP, stps); //X, Counterclockwise
  delay(100);
}

Git repo

Credits

ANUVIND ASOK

ANUVIND ASOK

1 project • 0 followers
I'm an Artist, Innovator and Engineer by profession specialized in robotics, computer vision and automation.

Comments

Add projectSign up / Login