Dr. Shalaby is a nurse robot use to drive medicine to the patient rooms.
During COVID_19 we need to decrease the meeting between people to reduce the infection, special in the quarantine rooms at hospitals, So by using the infrared sensor as a line follower to follow the black track and enter the different patient rooms instead of nurses, before the robot moves, the nurse must enter a right password to be sure the medicine on the tray is correct, then when the robot arrives for the patient and the patient take the medicine, the patient can wave his hand near to 5 cm in front of the nose of the robot (ultrasonic sensor) and the robot move back and get out from the patient room.
I inspired this idea from a waiter robot in a restaurant, it is driving the meals for the tables without any humans effect, so I looked for a medical application for that, and with the situation of the world during COVID_19 I thought that was a good idea and we can improve it more and more
At first, I drew the design on paper and put the initial measurements. Then I started working on the cardboard to make sure the measurements were correct and to adjust them. Then I started drawing the pieces on the Fusion 360 program.
I divided the structure into 3 pieces, the head, the body, and the hands with the tray, I started by drawing the body and controlling its assembly, then the head and assembling it with the body and then the hands, after that, I inserted the electronic components to locate them and make holes to install them, then I extracted the drawings in the format of a DXF file and took them to the Laser ًWork V6 program to prepare them and download them. Cut into a laser device and cut them on wood.
After I cut the parts, I assembled them to make sure they were safe and fit, then fixed the components on them and finished the exterior
I use the laser cutting machine.
After I exported the sketch file from fusion 360 as DXF file, I import them on the laser work program and check if there is any overlap to remove it, and put the cutting lines with black color, 20 speed and 30 power, and scan line with red color, 300 speed, and 65 power. Then I export the file in LDR and download it to the laser cutting machine.
To use a laser cutting machine :
1_after download the file to the machine, make sure the reference point in the right position and the height of the laser is correct (use the focus tool).
2_select the file from the memory
3_try the track
4_ run the laser
The inputs:
1) Keypad : use for enter the password to allow the motor to move
2) IR sensor : sense the black trake to follow it (- forward if the 2 sensor are white
- Right if the right sensor sense black
- Stop if the 2 sensors sense black)
3) Ultrasonic sensor :to measure the distance and if it is less than 5 cm the robot move back and get out the room
The output:
1) Sounds from MP3 : to make better communication with the robot and make some nice voice for patients.
2) motors and wheels : move forward, left, right and back
The components :
1.arduino uno
1.h_bridge motor driver
4.motors and gears boxs
4.wheels
1. Keypad
1. Ultrasonic
2. IR sensor
1. MP3 module
First, I test each component on its own, review the datasheet, and wire it alone with Arduino to calculate the digital pins I need on Arduino and regulate them
Then, I draw the schematic diagram of the electronic circuit and wire all components together.
First, I calculate the power from the volt and current of each component from its datasheet or by the voltmeter.
H-bridge : 3.2 volt
0~36 mA
Ultrasonic :
Voltage:4.5V to 5.5V
Current:10 to 40mA
IR KY-033:
voltage: 3.3V-5V
Working current: ≥ 20mA
Dc motor :
Voltage :4.5V to 9V
Loaded Current :250mA https://components101.com/motors/toy-dc-motor
Mp3 module :
Volt :3.2-5 v
The power source of my project is a Lithium polymer battery with 9 v and we can recharge it and use the tester to make sure it is charged.
I supply the Arduino with the battery and supply the motor through h bridge by the Vin from the Arduino.
I am write and search about each part of components code alone and test it alone too after that I collect some code and function together , step by step even arrive to collect all parts of code together.
First, I divide the code into 3 stations: 1) enter the correct password by Keypad
2) sense the black track by IR
3)sense the distance by ultrasonic
I start by code every component alone then I integration some parts together and test them :
-the keypad with motors
-The IR sensor with motors
-The ultrasonic with mp3 module
Then I integrate all parts of the code together.
Testing :
For the test, I put some sentences to appear on the serial monitor and make sure the code arrives and enters for all loops and functions.
Code sequence:
First: enter the password -the password contains 4 number and #
So if you enter the wrong number with # the buzzer makes a 3 tone or the mp3 says "wrong password"
- if you enter the right numbers but don't enter the # the buzzer make 2 tones or the mp3 says"please try again"
- if you enter the right numbers and # the buzzer make one long tone or the mp3 says "welcome"
Second: when we enter with the right password, the IR sensor starts to sense the black track.
There are many different ways for that I try 2 of them:
1. - If the right and left sense a white color, the robot moves forward.
- if the right sensor read black, the robot move right
- if the right and left sensors read black, the robot stop.
2. If the left sensor read black, the robot moves forward
-if the right sensor reads black, the robot moves right.
-if the right and left sensor read black, the robot stop
3. When the robot stops behind the patient, it will be waiting for 10 seconds to make sure the patient takes the medicine and the mp3 will play a song.
Then if the patient finished he can wave behind the nose of the robot at a distance of 5 cm and the robot will return and get out of the room.
I cooperated a lot with my colleagues, especially my group (D), because everyone is cooperative and wants to provide assistance, and I have been involved in searching for some solutions for other projects such as the movement of the stepper motor and a code of the water pump.
The assistants in the fab lab, such as engineer Omar and Shams, helped me a lot in carving, repairing, and make holes in the wood I fabricated.
And Eng Mennah helped me a lot in making the tray and accessing problems and trying to solve them with me.
also, Some of my colleagues suggested a way to tie the tray with hand using a drill in the wood and it was very effective.
I ask one of my colleagues to buy screws from the RAM store and it was very helpful.
I passed the MP3 code to a number of its users and tried to explain to them how to use it, and we shared and exchanged the problems that we encountered and how to solve them, such as making sure the connections are in the correct place, the names of the files are correct and the power source is sufficient.
I encountered many problems, but I ask help from my instructors, my colleagues, the assistants in the Fab Lab, and Google search.
*One of these problems was when theMP3 module did not work, so I suspected that the speaker had been destroyed, so I looked for a way to test and verify its safety.
*Also, the MP3 stopped many times, so I searched on Google for someone who also faces these problems and how to deal with them.
*I first used the IR to read analog data, so I put it on the analog pin A0 and A1, but because I needed to use all Arduino pins so I use the rest of the analog pins as a digital pin (by use digitalWrite on code), and this affected on the reading of the IR sensor, so I changed the situation of IR reading from analog to digital and it received just 0, 1 and the problem is fixed.
*I also encountered a problem with the IR sensor and its sensitivity, it is read the lines on the ground as they are black lines, which leads to changing its direction because the concept of it is movement depend on white color if the 2 sensors sense the white color the robot walk in forward. so I changed the way of that working to move forward if you sense the black track.
I hope that it becomes a more effective robot and develop it to take a big role in the health system to provide a comfortable environment and good service to the patient and to improve health care by helping the nurses and doctors in the routine tasks.
So I will add:
- Different medical sensors to measure all we need to follow up with the patient, such as his temperature, the amount of oxygen in the blood, and pressure.
-A communication way between a nurse and a patient.
-Motors to move the hand of the robot up and down or replace it with another arm that has more details and flexibility of movement.