hall effect


Closed Thread
Results 1 to 4 of 4

Thread: hall effect

  1. #1
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166

    Default hall effect

    im building a robot that uses 71RPM max motors, and i want to be able to measure the revolutions so that i know how far it goes. what is the best way to do this? pulsin or count. and how do they get wired? can i just put the signal line from the sensor straight into the pin on the PIC?

    the hall effect sensors im using are:

    http://rocky.digikey.com/WebLib/Opte...20OHS3120U.pdf

    and im using a PIC18F6585

    the robot is just for fun and its going to be used indoors to map my house, (somewhat like a micromouse would).





    the pic shows the base of it, which is 3" x 3" x 1". both motors and the battery back fit inside, while the PCB sits ontop and is about 3" x 3". The motors in it were just put in for test fitting. i am going to use some of the solarbotics 298:1 gear motors.

    Danny
    Last edited by dragons_fire; - 10th April 2007 at 14:19.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Use COUNT.
    COUNT=counts the number of pulses on a pin.
    PULSIN=measures pulse width on a pin.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    "how do they get wired? can i just put the signal line from the sensor straight into the pin on the PIC?"

    Depends on the voltage you use to drive it. Wiring is in the data sheet you provided. Check output voltage , if 5 then good. Straight to the PIC.

    If higher then maybe a LM741 to get what you want. Or a voltage divider.
    If lower the use the on chip comparator. I think the 18F6585 has this.(have not used it and did not look it up).
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    2 replies in 17minutes.. thats amazing... thanks for the help guys.. i have tried to do pulsin using it straight into hte PIC before, adn had some problems.. i guess i just need to practice my programming more!!!

    Heres another couple pics of it:







Similar Threads

  1. Hall Effect flow meter with 16F876
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2010, 20:42
  2. Replacing Hall Effect throttle with PIC
    By idtat in forum General
    Replies: 4
    Last Post: - 22nd October 2009, 21:55
  3. Hall effect reading
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th November 2008, 15:49
  4. Reading a linear hall sensor
    By peu in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd October 2006, 22:31
  5. Hall sensor tach
    By zipphreak in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th March 2006, 14:25

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts