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

Need PIC16F84A Cool Project

Discussion in 'Microcontrollers' started by Agent 009, May 22, 2005.

?

On who do your most project ideas depend on?

  1. Self

    0 vote(s)
    0.0%
  2. Friend

    0 vote(s)
    0.0%
  3. Teacher - School

    0 vote(s)
    0.0%
  4. Online Search (Somebody else's idea revisited)

    0 vote(s)
    0.0%
  1. Agent 009

    Agent 009 New Member

    Joined:
    May 28, 2003
    Messages:
    522
    Likes:
    0
    Location:
    Lebanon
    Anybody knows how 2 operate an LCD screen from the PIC16F84A?
    Not a big one, of course, but a 'calculator' sized one...
     
  2. Agent 009

    Agent 009 New Member

    Joined:
    May 28, 2003
    Messages:
    522
    Likes:
    0
    Location:
    Lebanon
    I think there should be an algorithm for sin/cos functions, cause lookup tables r inaccurate and take up much memory space, no?
     
  3. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    You cod find an libary to do it(some compilers allready have them built in).

    As for the LCD you can use an small char. LCD in 4 bit mode so it dosent take up much pins (since you dont have much I/O on this PIC)

    agen you can get libarys to do it (allmost all high level compilers have such libarys built in)

    the sound travels at about 340 m/s so if it takes 1s to get it back the object is 170 m

    distance = time / 2 * 340

    distance is in meters and time is in seconds

    The air temperature and humidity can afect the speed of sound so if you meshure big distances this can afect the result.But you have it only for max of 10 m wich isent going to be afected.

    You may want to add or substarct someting from the time if you are geting delays in your code that make the result unacurete.

    Sice your using an PIC this caculaton cod esaly be exsexuted in it fast
     
  4. dave

    Dave New Member

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


     
  5. Jay.slovak

    Jay.slovak Active Member

    Joined:
    Jan 11, 2005
    Messages:
    1,726
    Likes:
    5

    For Mathematical functions, please visit http://www.piclist.com/techref/microchip/math/index.htm.
    PICLIST is a great site, with many interesting projects and other things.
     
  6. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    sily me!
    Its fatser to do: distance = time * 170
     
  7. Agent 009

    Agent 009 New Member

    Joined:
    May 28, 2003
    Messages:
    522
    Likes:
    0
    Location:
    Lebanon
    Hehe, yeah, just factor out the 2 :wink: . But I thought of this, it could work... 10x Guys!!! I'll try 2 get my components and hope they work :roll: ...
     
  8. Agent 009

    Agent 009 New Member

    Joined:
    May 28, 2003
    Messages:
    522
    Likes:
    0
    Location:
    Lebanon
    Still have any idea? POST IT!!!
    I really don't mind :wink: :lol:
     
  9. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    What about a robot?
    :D
     
  10. Jay.slovak

    Jay.slovak Active Member

    Joined:
    Jan 11, 2005
    Messages:
    1,726
    Likes:
    5
    LOL Anthony, looking for more Robot FANs ? :lol:
     
  11. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    He is a fan of robots but it doesn't hurt making more people get into the field of robotics.


    :D
     
  12. bonxer

    bonxer New Member

    Joined:
    Jul 16, 2004
    Messages:
    244
    Likes:
    0
    Location:
    Ashburn, VA
    Re: reply

    It does if they are evil robots. :eek:
     
  13. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    :twisted:
    That would be even better
     
  14. Jay.slovak

    Jay.slovak Active Member

    Joined:
    Jan 11, 2005
    Messages:
    1,726
    Likes:
    5
    Re: reply

    I really like your Sig, it's the exact opposite of mine... MegaLOL :lol:
     
  15. williB

    williB New Member

    Joined:
    Aug 30, 2004
    Messages:
    2,217
    Likes:
    3
    Location:
    New Jersey
    Re: reply

    i like his sig too
     
  16. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    My sig?
     
  17. williB

    williB New Member

    Joined:
    Aug 30, 2004
    Messages:
    2,217
    Likes:
    3
    Location:
    New Jersey
    Re: reply

    no young obi wan , i was talking about bonxer's sig
     
  18. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    Ok
    :cry: :cry: :cry:
     
  19. williB

    williB New Member

    Joined:
    Aug 30, 2004
    Messages:
    2,217
    Likes:
    3
    Location:
    New Jersey
    but your sig and your avitar are very nice :D
     
  20. Jay.slovak

    Jay.slovak Active Member

    Joined:
    Jan 11, 2005
    Messages:
    1,726
    Likes:
    5
    Are you just trying to "save the situation" ?
     
  21. Roboticinfo

    Roboticinfo New Member

    Joined:
    Jan 15, 2005
    Messages:
    1,037
    Likes:
    0
    Location:
    USA, California
    reply

    :D

    It was a joke I was just playing around.

    lol
     

Share This Page