+ Post New Thread
Results 1 to 19 of 19
  1. #1
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Programming of 8051 with LCD,Proximity switch and keybord

    Hello everyone....

    I am working on my project of making a digital length counter, where i have to interface LCD,keyboard and proximity switch....
    The input from the keyboard is to be displayed on the LCD & also given to the microcontroller...

    I want to know how should i do the programming in 8051,as one is the LCD interfacing program and the other is keyboard interfacing program.
    Merging of the programs is to be needed? or i have to just write the program as it is??

    I even don't know how to write the program to interface proximity switch....
    The proximity switch m using is of NPN type NO, voltage 5-40VDC,max load 200mA...

    Pls help me out with all my queries....

    Thankyou..

  2. #2
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    please tell me that in which language do u wnt to programming?



  3. #3
    Full Member level 6
    Points: 2,349, Level: 11

    Join Date
    Apr 2011
    Posts
    360
    Helped
    46 / 46
    Points
    2,349
    Level
    11

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    please post your Lcd and keypad code and your schematic.



    •   Alt6th February 2012, 07:48

      advertising

        
       

  4. #4
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    Quote Originally Posted by jignesh doshi View Post
    please tell me that in which language do u wnt to programming?
    Which language according to you is easy? Sorry but i have no idea about what to use... Does it depend on output?

    ---------- Post added at 16:47 ---------- Previous post was at 16:25 ----------

    sorry but schematic is not ready as on which pin the LCD,sensor and keypad is to be connected is not known to me.... and i have 16 x 2 LCD , keypad is 4 x 3...



  5. #5
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    actually have u knowledge of basic in programming in C or assembly?
    from this answer any1 can give his suggestion 2 u...
    and also tell me k have u interfaced LCD and Keypad before?



  6. #6
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    I have the knowledge of assembly more than c
    And no i have not interface LCD and keypad before



  7. #7
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    ok...
    so u can easily go to the assembly...
    and first of all u have to learn that hw to interface LCD and keypad with 8051,after u can think about proximity...
    so in interfacing of lcd and keypad if u want any help then i can....



  8. #8
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    I have the knowledge of programming in assembly more than that in c
    And no i have not interface LCD and keypad before



  9. #9
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    i have changed my last post...so please check it....



    •   Alt6th February 2012, 11:28

      advertising

        
       

  10. #10
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    I have the knowledge of programming in assembly more than that in c
    And no i have not interface LCD and keypad before



  11. #11
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    so first of all u must have to knowledge of LCD and Keypad interfacing...so try these two and in these if u required any help then i m here...



  12. #12
    Advanced Member level 3
    Points: 7,036, Level: 19
    milind.a.kulkarni's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore
    Posts
    923
    Helped
    208 / 208
    Points
    7,036
    Level
    19
    Blog Entries
    1

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    In my view Nidhitrivedi,

    If you know the assembly better to learn embeeded C ....As C is very commonly used language on embeeded platform.....also once u learn C coding for processors ....It more or less same for almost all the devices....in case of assembly one need to study the insturction set if the device is changed....also lot of material for LCD and counter code is avalible on net in C

    refer this links -

    LCD and KEYPAD interfacing using 8051 c language..

    Good Luck
    Hope the post will be helpful to you....
    "Sharing is the best way of Learning"



  13. #13
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    M sorry i just saw that...

    I have gone through Mazidi and learnt about interfacing LCD and Keypad... actually my main project is about digital length counter where i have to take the required length input from the customer, now this input must be displayed on the LCD and also it should be given in the microcontroller for future calculation...

    The future calculations are based on the proximity switch(it gives the output in form of pulses). so i want to make such a program that counts the no.of pulses required for the customers required length and then stops the machine as the required length is achieved.

    ---------- Post added at 17:10 ---------- Previous post was at 17:06 ----------

    Hey thankyou so much... I will surely refer that....



  14. #14
    Member level 3
    Points: 796, Level: 6

    Join Date
    Aug 2011
    Posts
    58
    Helped
    2 / 2
    Points
    796
    Level
    6

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    ohk...but to display the length u have to connect LCD with MC so i told to interface that and get full knowledge that hw to interface LCD with MC...so u cn execute ur project easily...

    so have u knowledge of LCD interfacing?



  15. #15
    Advanced Member level 3
    Points: 7,036, Level: 19
    milind.a.kulkarni's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore
    Posts
    923
    Helped
    208 / 208
    Points
    7,036
    Level
    19
    Blog Entries
    1

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    This will be helpful to you....I think....I dose not understand your requirement / Calculation correctly-

    [HELP] c code to count frequency pulses and display on LCD [8051/52] : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes

    Good Luck
    Hope the post will be helpful to you....
    "Sharing is the best way of Learning"



  16. #16
    Advanced Member level 1
    Points: 2,012, Level: 10
    dselec's Avatar
    Join Date
    Jan 2012
    Posts
    451
    Helped
    48 / 48
    Points
    2,012
    Level
    10

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    Best way is to use interrupt for detecting the prox.. and then internal timer will count the next interrupt from prox..



  17. #17
    Junior Member level 2
    Points: 175, Level: 2

    Join Date
    Feb 2012
    Posts
    20
    Helped
    0 / 0
    Points
    175
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    Quote Originally Posted by milind.a.kulkarni View Post
    This will be helpful to you....I think....I dose not understand your requirement / Calculation correctly-

    [HELP] c code to count frequency pulses and display on LCD [8051/52] : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes

    Good Luck
    Actually i m working on a project for a cord manufacturing company and hence for their purpose of use i want to develope a microcontroller based project in which the required length input from the customer is taken and that input must be displayed on the LCD and also it should be given in the microcontroller for future calculation...

    The future calculations are based on the proximity switch(it gives the output in form of pulses). so i want to make such a program that counts the no.of pulses required for the customers required length and then stops the machine as the required length is achieved.



  18. #18
    Full Member level 6
    Points: 2,349, Level: 11

    Join Date
    Apr 2011
    Posts
    360
    Helped
    46 / 46
    Points
    2,349
    Level
    11

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    which the required length input from the customer is taken and that input must be displayed on the LCD and also it should be given in the microcontroller for future calculation...
    Frequency Counter using AT89C2051 and LCD (Assembly) : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes
    2x16 LCD And 4x4 Keypad Interfacing With 8051 in Assembly Language | bOtskOOl
    Assembly Language program for LCD code ~ Micro-Controller 8051: data acquisition and control system

    refer to any above link it may help you


    1 members found this post helpful.

  19. #19
    Banned
    Points: 157, Level: 2

    Join Date
    Feb 2012
    Posts
    1
    Helped
    0 / 0
    Points
    157
    Level
    2

    Re: Programming of 8051 with LCD,Proximity switch and keybord

    Estimates of how many people will not
    diablo 3 gold



+ Post New Thread
Please login