Touch Screen Controlled Wheel Chair
Touch Screen Controlled Wheel Chair
Touch Screen Controlled Wheel Chair
I.
INTRODUCTION
IMPLEMENTED FEATURES
Direction control of wheelchair.
Speed control of wheelchair.
ELECTRONIC DESIGN
ORANGE
RED
BROWN
PA2(38)
BLACK
PA2(37)
PROGRAM:
PA0(40)
PA1(39)
MICRO'S PIN(PORTB)
PB0(1)
PB1(2)
10
PB2(3)
15
PB4(4)
TO
4,5,12,13
1,9,16
8
SOFTWARE
The source program is written in C language and
compiled using AVR studio to generate the Intel
hex code. The generated hex code is programmed
into the chip using a suitable programmer. The code
is well commented and easy to understand.
The device is shipped with CKSEL=0001
and SUT=10. The default clock source setting is
therefore 1MHz internal RC oscillator with longest
startup time. To activate the internal oscillator,
program the fuse bytes of microcontroller as
follows:
Fuse low bytes=D4
Fuse high bytes=99
WIRE COLOUR
GROUND
VCC(+5 V)
3,6
LEFT MOTOR
11,14
RIGHT MOTOR
*/
#include<avr/io.h>
//header file
/* CONNECTION DETAIL
PORTB&=~_BV(0);
(RESISTIVE TOUCHSCREEN CONNECTION)
}
TOUCHSCREEN TOTAL PIN-5
PORTB&=~_BV(1);
ADMUX=(1<<REFS0)|(1<<ADLAR)|channel;
PORTB|=_BV(0);
_delay_ms(10);
return(ADCH);
}
int main()// Main function
{
{ DDRB=0x0f;//for motor PB -(0,1,2,3) connected
to motor driver
PORTB|=_BV(1);
PORTB&=~_BV(0);
}
adc_init();//adcinitilized
unsigned char x,y;//for storing value of x & y coordinate
while(1)
{
{ _delay_ms(20);
PORTB&=~_BV(2);
DDRA=0x05;//00000101
PORTB&=~_BV(3);
PORTA=0x01;//00000001for x init
x=read_adc_channel(3);
_delay_ms(20);
_delay_ms(20);
{
DDRA=0x0a;//00001010
PORTB&=~_BV(2);
PORTA=0x08;//00001000//for y init
PORTB|=_BV(3);
y=read_adc_channel(2);
}
_delay_ms(20);
if(LEFT==2)//if left == 2 then right motor
will go backward
{
PORTB|=_BV(2);
Drive_Motor(1,1);
PORTB&=~_BV(3);
}
else if(x>57 && x<140 && y<60)//backward
}
voidadc_init(void)
//PORTB=0b00001001;
//for adcinitilization
Drive_Motor(2,2); //PORTB=0b00000110;
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|
(1<<ADPS2);
SFIOR=0x00;
}
{
Drive_Motor(2,1); //PORTB=0b00000101;
}
else if(x>150 && y>80 && y<130)//right
{
Drive_Motor(1,2); //PORTB=0b00001010;
}
Soldering iron
Soldering wire
Zero PCB board
Cutter, striper, plier etc
Connecting wires
Bug-strip and connectors
Discrete components
ICs
else//stop
{
Drive_Motor(0,0); //PORTB=0b00000000;
}
}
}
IV.
IMPLEMENTATION:
V.
RESULTS
ACKNOWLEDGEMENTS
We hereby take this opportunity to acknowledge all
the help, guidance and support that we have
received during the making of our project. We
would like to thank our project guide and
inchargeMr.PavanBorra and Mr.Beral C. (Lecturer,
Electronics Department) for providing us with the
guidance, encouragement, advice and the vision
that helped us complete this project. We would like
to thank our classmates for helping and supporting
us through this project. And finally we would like
to express gratitude towards all the lab assistants
for their patience and co-operation throughout this
project.
REFERENCES
APPLICATIONS
Wheelchairs are used by people for whom walking is
difficult or impossible due to illness, injury or disability.
Touchscreen provides easy and independent navigation to
the user while the primitive means available requires the
user to move the chair with their arms or with the help of
others.
1.
2.
3.
www.electronicsforu.com
www.circuitstoday.com
www.atmel.com