DEWMOL JOHNYElvisEmy Sara Georgejosna mary
Created November 17, 2020

Trolley to mitigate infection risk

The trolley is a health care delivery system that is designed to transport medical equipment, medicines and other items without a companion.

IntermediateWork in progressOver 39 days28
Trolley to mitigate infection risk

Things used in this project

Story

Read more

Custom parts and enclosures

A Dissertation on our project

here is a complete dissertation of our project

Schematics

3D view

computer view of trolley

Circuit diagram

here is the circuit diagram which connects the motors to driver board and that to raspberry pi module also camera fixed.

equipped fully sample trolley

we made the trolley by fully customizing the base as actual design. The body was made as a sample prototype

base settings

Code

keyboard controlling trolly

Python
To drive the trolley remotely, we have to connect the keyboard and driver board using the code. That is attached below
# import curses and GPIO
import curses
import RPi.GPIO as GPIO

#set GPIO numbering mode and define output pins
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
GPIO.setup(11,GPIO.OUT)
GPIO.setup(13,GPIO.OUT)
GPIO.setup(15,GPIO.OUT)
GPIO.setup(12,GPIO.OUT)
GPIO.setup(16,GPIO.OUT)
GPIO.setup(18,GPIO.OUT)
GPIO.setup(22,GPIO.OUT)
# Get the curses window, turn off echoing of keyboard to screen, turn on
# instant (no waiting) key response, and use special values for cursor keys
screen = curses.initscr()
curses.noecho() 
curses.cbreak()
screen.keypad(True)

try:
        while True:   
            char = screen.getch()
            if char == ord('q'):
                break
            elif char == curses.KEY_UP:
                GPIO.output(7,False)
                GPIO.output(11,True)
                GPIO.output(13,False)
                GPIO.output(15,True)
                GPIO.output(12,False)
                GPIO.output(16,True)
                GPIO.output(18,False)
                GPIO.output(22,True)
            elif char == curses.KEY_DOWN:
                GPIO.output(7,True)
                GPIO.output(11,False)
                GPIO.output(13,True)
                GPIO.output(15,False)
                GPIO.output(12,True)
                GPIO.output(16,False)
                GPIO.output(18,True)
                GPIO.output(22,False)
            elif char == curses.KEY_RIGHT:
                GPIO.output(7,True)
                GPIO.output(11,False)
                GPIO.output(13,False)
                GPIO.output(15,True)
                GPIO.output(12,True)
                GPIO.output(16,False)
                GPIO.output(18,False)
                GPIO.output(22,True)
            elif char == curses.KEY_LEFT:
                GPIO.output(7,False)
                GPIO.output(11,True)
                GPIO.output(13,True)
                GPIO.output(15,False)
                GPIO.output(12,False)
                GPIO.output(16,True)
                GPIO.output(18,True)
                GPIO.output(22,False)
            elif char == 10:
                GPIO.output(7,False)
                GPIO.output(11,False)
                GPIO.output(13,False)
                GPIO.output(15,False)
                GPIO.output(12,False)
                GPIO.output(16,False)
                GPIO.output(18,False)
                GPIO.output(22,False)
             
                
finally:
    #Close down curses properly, inc turn echo back on!
    curses.nocbreak(); screen.keypad(0); curses.echo()
    curses.endwin()
    GPIO.cleanup()

Credits

DEWMOL JOHNY

DEWMOL JOHNY

1 project • 0 followers
Elvis

Elvis

0 projects • 1 follower
Emy Sara George

Emy Sara George

0 projects • 1 follower
josna mary

josna mary

0 projects • 1 follower

Comments