SMARTBOX
SMARTBOX
SMART WHEELCHAIR
Submitted in partial fulfilment for the award of the degree
of
BACHELOR OF TECHNOLOGY
in
by
Turjoy Dasgupta(RA1411005010318)
Ankan Mondal(RA1411005010320)
Shiladitya Dutta(RA1411005010331)
MAY 2017
P a g e | ii
BONAFIDE CERTIFICATE
Certified that this minor project report titled “Smart Wheelchair using Arduino
who carried out the project work under my supervision. Certified further, that to the best
of my knowledge the work reported herein does not form part of any other project report
or dissertation on the basis of which a degree or award was conferred on an earlier occasion
Date:
P a g e | iii
ACKNOWLEDGEMENT
We are very thankful to everyone who all supported us, for we have completed our
project effectively and moreover on time. We are equally grateful to our teacher
Dr. J. Preetha Roselyn. She gave us moral support and guided us in different matters
regarding the topic. She had been very kind and patient while suggesting us the outlines
of this project and correcting our doubts. We thank for her overall supports.
We would like to thank our dean Dr. K Vijay Kumar who helped us a lot in gathering
different information, collecting data from time to time in making this project despite of
their busy schedules.
Last but not the least; we thank our coordinator Mr. Ajith. He gave us different ideas in
making this project unique.
And we would also like to thank our Family; they have guided us from time to time in
making this project. We would like to thank our Friends and also the person who have
bound this report.
Turjoy Dasgupta(RA1411005010318)
Ankan Mondal(RA1411005010320)
Shiladitya Dutta(RA1411005010331)
P a g e | iv
ABSTRACT
TABLE OF CONTENTS
3. Chapter 3: Working 19
4. References 31
P a g e | vi
TABLE OF FIGURES
2. Figure 1.2 2
3. Figure 1.3 3
4. Figure 1.4 4
5. Figure 1.5 4
6. Figure 1.6 6
7. Figure 1.7 7
8 Figure 1.8 8
9 Figure 1.9 9
10 Figure 1.10 10
11 Figure 1.11 10
12 Figure 2.1 11
13 Figure 2.2 12
14 Figure 2.3 13
15 Figure 2.4 14
P a g e | vii
16 Figure 2.5 15
17 Figure 2.6 15
18 Figure 2.7 16
19 Figure 2.8 17
20 Figure 2.9 18
P a g e | viii
CHAPTER 1: COMPONENTS
INTRODUCTION
Various electronic and mechanical components are required for making the project.
The components used are listed below –
1. Motor Driver
2. DC Motor
3. Microcontroller
4. Sensor
5. Bluetooth Module
6. Battery
7. Wheels
8. Chassis
A L293D motor driver is used in the project. L293D is a dual H-bridge motor
driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a
low-current control signal and provide a higher-current signal. This higher current signal
is used to drive the motors.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of
operation, two DC motors can be driven simultaneously, both in forward and reverse
direction. The motor operations of two motors can be controlled by input logic at pins 2
& 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and
10 will rotate it in clockwise and anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to
start operating. When an enable input is high, the associated driver gets enabled. As a
result, the outputs become active and work in phase with their inputs. Similarly, when the
enable input is low, that driver is disabled, and their outputs are off and in the high-
impedance state.
P a g e | ix
FIG.1.1
P age |x
FIG.1.2
1.2 DC MOTOR
Two 12V, 1A DC motors are used for driving the wheels of the project. These
motors are connected to the motor driver in the circuit.
FIG.1.3
1.3 MICROCONTROLLER
FIG.1.4
FIG.1.5
P a g e | xii
An HC-SR04 ultrasonic sensor is used. It is attached to the front of the model for
the detection of obstacles in the trajectory.
The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like
bats do. It offers excellent non-contact range detection with high accuracy and stable
readings in an easy-to-use package. From 2cm to 400 cm or 1” to 13 feet. Its operation is
not affected by sunlight or black material like Sharp rangefinders are (although
acoustically soft materials like cloth can be difficult to detect). It comes complete with
ultrasonic transmitter and receiver module.
1.4.1 Features
Power Supply: +5V DC
Quiescent Current: <2mA
Working Current: 15mA
Effectual Angle: <15°
Ranging Distance: 2cm – 400 cm/1″ – 13ft
Resolution: 0.3 cm
Measuring Angle: 30 degree
Trigger Input Pulse width: 10uS
Dimension: 45mm x 20mm x 15mm
P a g e | xiii
FIG.1.6
1.4.2.1 Pins
VCC: +5VDC
GND: GND
P a g e | xiv
1.4.3 Schematic
FIG.1.7
FIG.1.8
Slave default Baud rate: 9600, Data bits: 8, Stop bit: 1, Parity: No parity.
Auto‐connect to the last device on power as default.
Permit pairing device to connect as default.
Auto‐pairing PINCODE:”1234” as default.
P a g e | xvi
1.6 BATTERIES
A single 12V battery is used for powering the motors.
P a g e | xvii
FIG.1.9
1.7 WHEELS
One castor wheel in front is used for all direction movement and two wheels of
diameter 10cm are used at the back for rotation of the chassis.
FIG.1.10
1.8 CHASSIS
A plastic box is used as the chassis for the entire project. All the components are
fitted in it.
P a g e | xviii
FIG.1.11
FIG.2.1
P a g e | xix
FIG.2.2
P a g e | xx
FIG.2.3
P a g e | xxi
FIG.2.4
P a g e | xxii
FIG.2.5
2.5.1 Connections with Arduino Uno
The Echo pin of the HC-SR05 is connected to the 7th pin and the TRIGGER pin is
connected to the 6th pin of the Arduino Uno board respectively.
FIG.2.6
P a g e | xxiii
FIG.2.7
2.6.1 Connections with Arduino Uno
The RXD of HC05 Bluetooth module is connected to the TX of the Arduino board
and the TXD of HC05 is connected to the RX of Arduino board.
P a g e | xxiv
FIG.2.8
P a g e | xxv
CHAPTER 3: WORKING
INTRODUCTION
The smart wheelchair is an obstacle avoiding wheelchair which can also be controlled via
Bluetooth. The project is a prototype of a smart wheelchair where a box has been used as
the chassis. Its chosen because its cheap and relatively durable and easily available in the
market. Two holes were made on both ends of the box to fit the dc motors, each of rating
100 rpm. The dc motors were chosen as the project had to be independently moving with
the help of a dc battery.
pins of the Arduino gets connected to the 2nd,7th,10th and 15th pins of the L293d.Therefore
the input control comes from the Arduino board and the output is given to the motors. If
the logic states 00 00, then the motor stops. If it states 10 10 then the motors move in the
forward direction. If the logic states 01 01, then the motors move backward. If the logic is
11 00 then is turns left and if the logic states 00 11 then the motor turns right. This way
the wheelchair gets its directions.
//Objects
AF_DCMotor motorRight(4, MOTOR12_64KHZ); // create motor #1, 64KHz pwm
AF_DCMotor motorLeft(3, MOTOR12_64KHZ); // create motor #3, 64KHz pwm
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
P a g e | xxviii
pinMode(trigPin, OUTPUT); // set the trig pin to output (Send sound waves)
pinMode(echoPin, INPUT); // set the echo pin to input (recieve sound waves)
//Initalization messages
Serial.println(" Wheelchair");
Serial.println(" Reday for working!");
void loop()
{
det = check(); //call check() subrotine to get the serial code
switch (det) //serial code analysis
{
case 'F': // F, move forward
motorRight.setSpeed(vel);
motorLeft.setSpeed(vel);
motorRight.run(FORWARD);
motorLeft.run(FORWARD);
det = check();
break;
P a g e | xxix
motorLeft.run(FORWARD);
det = check();
break;
case 'S':
// S, stop
motorRight.setSpeed(vel);
motorLeft.setSpeed(vel);
motorRight.run(RELEASE);
motorLeft.run(RELEASE);
det = check();
break;
case 'm':
else {
Serial.println ("No Wall detected. turning round");
delay (15);
motorRight.setSpeed(0);
motorLeft.setSpeed(vel);
motorRight.run(RELEASE);
motorLeft.run (FORWARD);
}
break;
case 'b':
//obstacle avoider robot
digitalWrite(trigPin, LOW);
delayMicroseconds(2); // delays are required for a successful sensor operation.
digitalWrite(trigPin, HIGH);
Serial.println (" The obstacle is declared a threat due to close distance. ");
Serial.println (" Turning !");
motorRight.setSpeed(vel);
motorLeft.setSpeed(vel);
motorLeft.run(BACKWARD); // Turn as long as there's an obstacle ahead.
motorRight.run (FORWARD);
}
else {
Serial.println ("No obstacle detected. going forward");
delay (15);
motorRight.setSpeed(vel);
P a g e | xxxiv
motorLeft.setSpeed(vel);
motorRight.run(FORWARD); //if there's no obstacle ahead, Go Forward!
motorLeft.run(FORWARD);
}
break;
}
}
}
else if (dataIn == 'I'){//Froward Right
determinant = 'I';
}
else if (dataIn == 'J'){//Backward Right
determinant = 'J';
}
else if (dataIn == 'G'){//Forward Left
determinant = 'G';
}
else if (dataIn == 'H'){//Backward Left
determinant = 'H';
}
else if (dataIn == 'S'){//Stop
determinant = 'S';
}
else if (dataIn == '0'){//Speed 0
vel = 0;
}
else if (dataIn == '1'){//Speed 25
vel = 25;
}
else if (dataIn == '2'){//Speed 50
vel = 50;
}
else if (dataIn == '3'){//Speed 75
vel = 75;
}
P a g e | xxxvi
}
return determinant;
}
P a g e | xxxvii
FUTURE ADVANCEMENTS
A brainwave sensor may also be used. This makes the control and maneuvering a lot
easier. However, significant costs are incurred.
P a g e | xxxviii
REFERNCES
Book References
Getting started with Arduino-Massimo Banzi
Arduino Workshop- John Boxall
Arduino Cookbook-Michael Margolis
Web References
https://www.instructables.com
https://www.playground.arduino.cc
https://en.www.wikipedia.org/wiki/Arduino
https://www.create.arduino.cc
https://www.adafruit.com/arduino