Electronics Project Automatic Bike Controller Using Infrared Rays
Electronics Project Automatic Bike Controller Using Infrared Rays
ABSTRACT
Bike controller can be done by using Electronic circuit, Microprocessor or microcontroller. Now microcontroller is advanced among all above circuits therefore we are using Microcontroller for Bike controlling. In this project, microcontroller 89s52 forms the processing part, which firstly receives data from receiver using remote controller. It likes a transmitter. Then microcontroller 89s52 performs the comparison of lock or unlock the logic of program for which microcontroller has already been programmed. The result obtained from the above operation is given through output port of 89s52 to LCD display of relevant data and generated pulses as per the logic program which is further fed to the driver circuit to obtain the desired output of controlling Bike. BLOCK DIAGRAM
Power supply
IR Transmitter
IR Receiver
L293D
motor
LCD screen
Output Block: In this project we are using MOTOR as output device. Display Block: In this project we are using 16 X 2 intelligent LCD display
to display the STARTING set point and very important is lock of Automatic Bike Controller.
Power Block: For our project we require + 5 Volt, - 5 Volt and +12 Volts
supply. +5 Volts and. 5Volts is given to Micro-controller board, IR receiver, Signal
Future Development:
1. We can send this data to a location using remote, any electronic devices using for locked for security level.
Software:
Single flakes MCS-51 family has a special programming language that is not understood by other types of single flakes. This programming language known by the name of the assembler language instruction has 256 devices. However, when this can be done with microcontroller programming using C language. With the C language, microcontroller programming easier, because the C language format will be automatically converted into assembler language with a hex file format. Software on a microcontroller can be divided into five groups as follows:
Arithmetic Instruction:
These instructions perform arithmetic operations including addition, subtraction, addition of one (increments), a reduction of one (decrement), multiplication and division.
Branching instructions:
Serves to alter the normal sequence of execution of a program. With this instruction, the programs that are implemented will jump to a particular address.
Pin Configuration:
AT89S52 microcontroller has 40 pins with a single 5 Volt power supply. It is having 4 ports. Those are port1, port2, port3, port4. The pin 40 is illustrated as follows:
The function of each pin AT89S52 is: Pin 1 to 8 (Port 1) is an 8-bit parallel port of a two-way (bidirectional) that can be used for different purposes (general purpose). Pin 9 is a pin reset, reset is active if a high ration.
Sponsored Link :
P3.0 (10): RXD (serial port data receiver) P3.1 (11): TXD (serial port data sender) P3.2 (12): INT0 (external interrupt 0 input, active low) P3.3 (13): INT1 (external an interrupt input, active low) P3.4 (14): T0 (external input timer / counter 0) P3.5 (15): T1 (external input timer / counter 1) P3.6 (16): WR (Write, active low) control signal from port 0 write data to memory and input-output data externally. P3.7 (17): RD (Read, active low) control signal of the reading of inputoutput data memory external to the port 0. XTAL pin 18 as the second, the output is connected to the crystal oscillator. XTAL pin 19 as the first, high berpenguatan input to the oscillator, connected to the crystal. Pin 20 as Vss, is connected to 0 or ground on the circuit. Pin 21 to 28 (Port 2) is 8 bits parallel ports in both directions. This port sends the address byte when accessing external memory is carried on. Pin 29 as the PSEN (Program Store Enable) is the signal used for reading, move the program the external memory (ROM / EPROM) to microcontroller (active low). Pin 30 as the ALE (Address Latch Enable) to hold down the address for accessing external memory. This pin also functions as a prog (active low) that is activated when the internal program flash memory on the microcontroller (on chip). Pin 31 as the EA (External Access) to select the memory to be used, the internal program memory (EA = Fcc) or external program memory (EA = Vss), also serves as Vpp (programming supply voltage) when programming the internal flash memory on the microcontroller Pin 32 to 39 (Port 0) is an 8-bit parallel port in both directions. Under which functions as a multiplexed address data to access an external program and data memory. Pin 40 as Fcc, connected to +5 V as a ration to the microcontroller. All single chips in the family division of MCS-51 have the address space to programs and data. The separation of program memory and data memory allows data to be accessed by a memory address 8 bits. Even so, the address memory 16 bits of data can be generated through the DPTR register (Point Data Register). Program memory can only be read cannot be written because it is stored in the EPROM.In this case the EPROM is available in a single chip AT89S52 for 8 Kbyte
Memory Program:
If EAs low value, the program will occupy the address 1000 H to FFFF H to external programs.
Data memory:
Internal data memory are mapped as shown below memory space is divided into three blocks of the 128 down, 128 up, and space SFR (Special Function Register) Under Section 128 bytes of RAM mapped into the 32 bytes are grouped into four banks and eight registers (R0 to R7). In the next 16 bytes, on the banks of register, form a block of memory space that can teralamati per bit (bit addressable).All bytes that are within 128 below can be accessed either directly or indirectly. Section 128 above can only be accessed by indirect addressing. Section 128 of the RAM is solely in the devices have 256 bytes of RAM.
Keyword :
microcontroller, project, circuit, products, datasheet, temperature ,programmer ,tutorials ,source code ,serial port ,sear ch ,power-down ,pic microcontroller ,microcontrollers ,isp programmer ,interfacing ,in-system programmable ,watchdog timer ,shipping ,rohs compliant ,robotics ,reviews ,registers ,quantity ,programmers ,new products ,libraries ,how to ,flash memory ,embedded system ,electronic components ,download ,digital thermometer ,development tools ,development board ,circuits ,circuit diagram ,avr microcontroller ,Atmel microcontroller ,Atmel corporation ,arduino , microcontroller.
Introduction of IR
This circuitry allows you to control your computer with a simple remote, like the one you already use for your TV-set. It's very useful when you want to control a DVD or an mp3 player without having to stay at the keyboard. Please note that this circuit is NOT IrDA compatible and it won't help you to connect to your mobile phone or whatever IrDA device; it's only good to control your pc with a standard remote control. I use it for VDR and now my pc is a full featured set top box connected to the television, capable to digitally record and replay satellite television, DVDs and every kind of digital content (mp3, divx). There are many softwares you can install to control this circuit; for Linux you can use Lirc and for Windows you can use either Winlirc, Girder, IR Assistant or uIRC
Production Ideas:
Infrared remote control transmitter is to use infrared to transfer information for the carrier, and launch cycle modulated by varying the serial code. The serial code is usually the boot code, user identification code, operation code composition. The infrared receiving decoded by a string of rectangular wave ranging cycle. Such as the diagram 1. Different types of remote control transmitter waveform width different. Ie, the period T1, T2 ... ... different. I do not know remote control transmitter in hand the case of the waveform cycle. Make a first cycle of infrared detection tools. According to the measured period to produce the infrared receiver control laws.
Production Method:
Infrared detection device fabrication cycle. When the infrared receiver is not sent to receive the infrared transmitter. The output of the output high (about 5V). When receiving the infrared, the output level low. AT89C2051 microcontroller to the external interrupt 1 is INT1; to enter the interrupt service interruption occurred: Start Timer 1 and MI-opening number. Equivalent to point A in Figure 1. C points after one period. The second microcontroller interrupt. Off Timer 1. Down cycle T1 (actually only a note of the value TH1. TL1 value can be discarded.) Then clear TH1, TL1, and then re-start the timer 1 count after the second cycle, the same interruption will cause microcontroller. Then write next cycle T2 '... First, this note of 4050 cycles (typically infrared codes is 4 bytes. The 32BIT. Proceeded by the boot code. Because of the received infrared data is not necessarily start from the boot code, to analyze a complete serial code, should be down as much as IR square wave cycles). After receiving, by pressing the touch switch to the write down of the cycle THl out in the digital display for analysis (each time the touch switch to display the next number of cycles).
device
manufacturer pin out 1=OUT 2=VCC (+5VDC) 3=GND 1=VOUT 2=GND 3=VCC (+5VDC) 1=GND 2=VCC (+5VDC) 3=OUT 1=OUT 2=GND 3=VCC (+5VDC)
notes 38 kHz
GP1U52X Sharp
IS1U60L
Sharp
TSOP17xx Vishay
30, 33, 36, 36.7, 38, 40, 56 kHz output is inverted (LOW when carrier present)
TSOP18xx Vishay
30, 33, 36, 36.7, 38, 40, 56 kHz output is inverted (LOW when carrier present)
Schematic diagram:
Components : name value R1 1k 15-22k use a 15k resistor series with a 10k potmeter to adjust frequency in the 32-40kHz range 15 @5VDC, 200 mA peak 35 @9VDC, 200 mA peak 50 @12VDC, 200 mA peak 1n 47n
R2
R3
C1 C2
An older IR receiver design of mine is available, but it is only for detecting, not decoding a modulated IR signal.
Circuit diagram:
Note :
Supply voltage (Vss) is the Voltage at which we wish to drive the motor. Generally we prefer 6V for dc motor and 6 to 12V for gear motor, depending upon the rating of the motor. Logical Supply Voltage will decide what value of input voltage should be considered as high or low .So if we set Logical Supply Voltage equals to +5V, then -0.3V to 1.5V will be considered as Input Low Voltage and 2.3 V to 5V will be considered as Input High Voltage. L293D has 2 Channels .One channel is used for one motor. Channel 1 - Pin 1 to 8 Channel 2 - Pin 9 to 16 Enable Pin is use to enable or to make a channel active .Enable pin is also called as Chip Inhibit Pin. All Input (Pin No. 2, 7,10and 15) of L293D IC is the output from microcontroller (ATmega8). Eg-We connected (Pin No. 2, 7, 10 and 15) of L293D IC to (Pin No. 14, 15,16and 17) of ATmega8 respectively in our robots, because on pin 14 and 15 of ATmega8 we can generate PWM. All Output (Pin No. 3, 6,11and 14) of L293D IC goes to the input of Right and Left motor through RMC (4 pin Connector).
One channel corresponds to one motor. Enable pin should be high for activate the corresponding channel. Input 1 corresponds to Output 1.
If Enable 1=High (1) Input1 =High (1), Output1=Vss Input1 =Low (0), Output1=0 If Enable 1=Low (0) Input1 =High (1), Output1=0 Input1 =Low (0), Output1=0 Means if Enable pin low, the output will be at 0 always. If its high output depend on input Similarly Input 2 corresponds to Output 2, Input 3 corresponds to Output 3 and Input 4 corresponds to Output 4.
Characteristics:
OUTPUT OUTPUT OUTPUT OUTPUT 1 --2 --3 --4 --Negative Terminal of Right Motor Positive Terminal of Right Motor Positive Terminal of Left Motor Negative Terminal of Left Motor