DC Motor Control using IR data communication

Flowchart for Reception:

Flowchart for Reception
Flowchart for Reception

Flowchart for Interrupt:

Flowchart for Interrupt
Flowchart for Interrupt

Source code:

Transmission program:
ORG 0000H
JMP MAIN
ORG 0003H
JMP INCR
ORG 0013H
JMP DECR
ORG 0023H
JNB TI,REC
CLR TI
MOV P0,A
ACALL DAT
ACALL DELAY
RETI
REC: CLR RI
RETI

ORG 0040H
MAIN: MOV A,#38H
ACALL COMM
ACALL DELAY
MOV A,#0EH
ACALL COMM
ACALL DELAY
MOV A,#01H
ACALL COMM
ACALL DELAY
MOV A,#06H
ACALL COMM
ACALL DELAY
MOV A,#80H
ACALL COMM
ACALL DELAY
MOV IE,#97H
MOV SCON,#50H
MOV TMOD,#2DH
MOV TH1,#0E8H
MOV R0,#30H
SETB TR1
SETB TCON.0         ; EDGE TRIGGERING
SETB TCON.2
SETB TR0

SPEED: MOV R6,TL0
CALL SEC
CALL SEC
CALL SEC
MOV A,TL0
SUBB A,R6
ACALL CONV
MOV A,#0C0H
ACALL COMM
ACALL DELAY
MOV A,R2
ACALL DAT
ACALL DELAY
MOV A,R1
ACALL DAT
ACALL DELAY
MOV A,R7
ACALL DAT
ACALL DELAY
JMP SPEED

COMM: MOV P0,A
CLR P2.7
SETB P2.5
CLR P2.5
RET

DAT: MOV P0,A
SETB P2.7
SETB P2.5
CLR P2.5
RET

DELAY: MOV R3,#50
HERE2: MOV R4,#255
HERE: DJNZ R4,HERE
DJNZ R3,HERE2
RET

;************************** INCREASE SPEED

INCR: INC R0
CJNE R0,#35H ,NEXT           ; TO CHECK IF MAX SPEED CROSSED
DEC R0
RETI

NEXT: MOV A,#80H
ACALL COMM
ACALL DELAY
ACALL SEND
RETI

;*************************   DECREASE SPEED

DECR: CJNE R0,#31H, NEXT2         ; TO CHECK IF MIN SPEED CROSSED
RETI

NEXT2: DEC R0
MOV A,#80H
ACALL COMM
ACALL DELAY
ACALL SEND
RETI

SEND: MOV A,R0
MOV SBUF,A
RET

SEC: MOV R3,#25
H3: MOV R4,#200
H2: MOV R5,#200
H1: DJNZ R5,H1
DJNZ R4,H2
DJNZ R3,H3
RET

CONV: MOV B,#10
DIV AB
MOV R7,B
MOV B,#10
DIV AB
ORL A,#30H
MOV R2,A
MOV A,B
ORL A,#30H
MOV R1,A
MOV A,R7
ORL A,#30H
MOV R7,A
RET
END

Editorial Team
Editorial Team

We are a group of young techies trying to provide the best study material for all Electronic and Computer science students. We are publishing Microcontroller projects, Basic Electronics, Digital Electronics, Computer projects and also c/c++, java programs.

40 thoughts on “DC Motor Control using IR data communication

  1. how do i construct it for the submission of my project please tell me its very important plz help me out

  2. Respected Sir,
    I have seen all your projects. Every one is superb. But i need circuit for this DC MOTOR CONTROL USING IR RAYS. Kindly plz help me sir……….

  3. sir i m interested in your project , can u plz provide me the circuit diagram of this project and also the PCB layout .
    needed urgently as i want to make my project .
    thanks in advance ..

  4. Hello sir I like how your project is laid out and i would love to put it together. My i have the circuit diagram and parts list. Thank you for your help

  5. hello sir.i am really interested in reading about this project further. i would like to know it’s working with a circuit diagram. i would be glad if you could help me with the circuit diagram.

    thankyou.

  6. i m interested in your project , can u plz provide me the circuit diagram of this project and also the PCB layout .
    needed urgently as i want to make my final project .
    thanks for your help

  7. Sir, can i please have the circuit diagram and the pcb layout for this project.
    I need it for my final year project and would be grateful if i can get this along with any
    documentation that might be of help.
    Thanks

  8. hello. coincidentallyy this is the very same project that me and my partner have been alloted in our syllabus. we have to make a stepper motor work using an infrared remote conteol device. i would be very grateful if u cud mail me the relevant circuit diagrams and also the approximate cost of building the project (components, wires, solder iron etc.)
    hope u do the needful at the earliest possible.
    thanks
    rahul kumbhat

  9. Sir plz give me the synopsis of microcontroller based multi storey car parking system with the help of IR sensors

  10. can u send the circuit diaram of WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING IR COMMUNICATION

  11. sir i need circuit diagram for direction control of dc motor using IR Remote and micro controller plz help me sir i have project

  12. Drupal is one of these effective software packages that helps
    people and businesses publish content on their websites. Good providers instead hire highly trained specialists
    from their own country to ensure you receive
    the specialized care you deserve. Elements such as text, graphics,
    images, font sizes and colors are used in designing and producing pages
    for a web site.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in