Oxy-Pi project

The Project

Oxy-Pi is a project to make a ventilator using a Raspberry pi and a few other parts Code in python import RPi.GPIO as GPIO import time servoPIN = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(servoPIN, GPIO.OUT) p = GPIO.PWM(servoPIN, 50) # GPIO 17 for PWM with 50Hz p.start(2.5) # Initialization try: while True: p.ChangeDutyCycle(3) time.sleep(2.5) p.ChangeDutyCycle(7.5) time.sleep(3) except KeyboardInterrupt: p.stop() GPIO.cleanup()

Hardware
Community

About the team

  • United Kingdom
  • Raspberry Jam

Team members

  • Jay