Mazen Sheikh Bashraheel
Published © MIT

The Smart Hospital Bed

Raspberry pi and Windows 10 powered device that transmits patient data to caregivers wherever they are, instantaneously.

IntermediateWork in progress5,507
The Smart Hospital Bed

Things used in this project

Hardware components

Raspberry Pi 2 Model B
Raspberry Pi 2 Model B
×1
Samsung SmartThings Multipurpose Sensor
Samsung SmartThings Multipurpose Sensor
×1

Software apps and online services

Microsoft Azure
Microsoft Azure
Windows 10 IoT Core
Microsoft Windows 10 IoT Core

Story

Read more

Schematics

circute discription

this describe the aide function
Smart%20bed bb

Code

smart bed wifi cod

Python
this for send value to the system
#!/usr/local/bin/python

# Reading an analogue sensor with
# a single GPIO pin

# Author : Matt Hawkins
# Distribution : Raspbian
# Python : 2.7
# GPIO   : RPi.GPIO v3.1.0a

import RPi.GPIO as GPIO, time

# Tell the GPIO library to use
# Broadcom GPIO references
GPIO.setmode(GPIO.BCM)

# Define function to measure charge time
def RCtime (PiPin):
  measurement = 0
  # Discharge capacitor
  GPIO.setup(PiPin, GPIO.OUT)
  GPIO.output(PiPin, GPIO.LOW)
  time.sleep(0.1)

  GPIO.setup(PiPin, GPIO.IN)
  # Count loops until voltage across
  # capacitor reads high on GPIO
  while (GPIO.input(PiPin) == GPIO.LOW):
    measurement += 1

  return measurement

# Main program loop
while True:
  print RCtime(4) # Measure timing using GPIO4

Credits

Mazen Sheikh Bashraheel

Mazen Sheikh Bashraheel

2 projects • 19 followers
I Bachelor Computer En Make a researcher at the University of Science and Technology in the Enterprise Development Center Creative

Comments

Add projectSign up / Login