1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

gsm controlled robot car

Discussion in 'Robotics & Mechatronics' started by osamarizwan, May 31, 2012.

?

89s52 working same as 89c52??

  1. yes

    0 vote(s)
    0.0%
  2. no

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. osamarizwan

    osamarizwan New Member

    Joined:
    May 31, 2012
    Messages:
    1
    Likes:
    0
    hi guys i am working on a project"gsm controlled robot car" on at89s52 and here is the program

    org 0010h
    mov p1,#0000h ;Make P1 as i/p port
    mov p2,#0000h
    L1: mov a,p1
    cjne a,#0b0h,L2 ;DTMF o/p=2
    mov p2,#08ah ; M1 & M2 both forward
    ljmp L1
    L2: cjne a,#0e0h,L3 ;DTMF o/p=8
    mov p2,#85h ;M1 & M2 both reverse
    ljmp L1
    L3: cjne a,#50h,L4 ;DTMF o/p=5
    mov p2,#80h ;M1 & M2 both off
    ljmp L1
    L4: cjne a,#0d0h,L5 ;DTMF o/p=4
    mov p2,#86h ;M1 --reverse, M2--forward
    ljmp L1
    L5: cjne a,#90h,L1 ;DTMF o/p=6
    mov p2,#89h ;M1 --forward, M2--resverse
    ljmp L1
    end

    but i dont know why is it not working .it is working on protues but i think my mt8870 dtmf decoder is not working can any one help me in this
    here is the diagram
    View attachment 64651
     
  2. mib348

    mib348 New Member

    Joined:
    Nov 19, 2012
    Messages:
    1
    Likes:
    0
    hi can i have complete data of your project............i also want to try this project...........And i m also looking for my final project.
    thanx in advance
     
  3. meowth08

    meowth08 Member

    Joined:
    Aug 18, 2011
    Messages:
    241
    Likes:
    7
    Location:
    Philippines
    Code (text):

          org 0010h
          mov p1,#0000h               ;Make P1 as i/p port
          mov p2,#0000h

    L1:  mov a,p1
          cjne a,#0b0h,L2              ;DTMF o/p=2
          mov p2,#08ah                 ; M1 & M2 both forward
          ljmp L1  

    L2:  cjne a,#0e0h,L3              ;DTMF o/p=8
          mov p2,#85h                  ;M1 & M2 both reverse
          ljmp L1
    L3: cjne a,#50h,L4                ;DTMF o/p=5
          mov p2,#80h                  ;M1 & M2 both off
          ljmp L1

    L4:  cjne a,#0d0h,L5             ;DTMF o/p=4
          mov p2,#86h                 ;M1 --reverse, M2--forward
          ljmp L1

    L5:  cjne a,#90h,L1              ;DTMF o/p=6
          mov p2,#89h                 ;M1 --forward, M2--resverse
          ljmp L1
          end
     
    Hi,
    Use the "#" posting your codes. This will be helpful in maintaining spacing.
     
    Last edited: Nov 20, 2012
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. BioniC187

    BioniC187 Member

    Joined:
    Aug 9, 2011
    Messages:
    281
    Likes:
    10

    This was posted sometime ago. I wonder if he had any luck figuring out why it was not working
     

Share This Page