RPi 34.0 - Hall Effect Tachometer (4K)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • A raspberry pi micro-computer tachometer using a Hall Effect Sensor / Switch. The program uses interrupts to check for a change in the magnetic field around the sensor.
    MATERIALS:
    - Part number: Hall Effect Sensor KY003, Sense-1776 (Gravitech). Pins:
    1) Ground
    2) VCC (I use 3 volts to be compatible with the RPi)
    3) Sense
    - LED
    - Raspberry Pi
    - Jumper wires
    WARNINGS: With electricity there is always the risk of burns, fire, shock, electrocution, etc. If you miswire your RPi you will ruin it and its
    accessories. Information is offered "as is", you are solely responsible for its use. If you do not know, learn first or do not do it.

ความคิดเห็น • 20

  • @robinrai2776
    @robinrai2776 2 ปีที่แล้ว +2

    Just wanted to thank you for this video, it's very well made and explained!

    • @tsbrownie
      @tsbrownie  2 ปีที่แล้ว +1

      You're welcome.

  • @RCdiy
    @RCdiy 3 ปีที่แล้ว +1

    I’m looking at using a Hall effect sensor to detect water meter pulses. Then use homebridge to trigger HomeKit sensor states. This video is very useful. Thank you.
    I also watched your flow sensor video. Both very helpful.

  • @sudiptachatterjee5862
    @sudiptachatterjee5862 ปีที่แล้ว +2

    I am trying this on Raspberry Pi 4. The program is executed nicely but the RPM is not showing.
    Can you help me, sir?

  • @cobalt01snet
    @cobalt01snet 6 หลายเดือนก่อน +1

    tsbrownie
    , do you have this in vb code, I use a raspberry pi in homeseer and it is VB driven for the scrips, I just need the script to give the answer to the system, thank you, Tj

    • @tsbrownie
      @tsbrownie  6 หลายเดือนก่อน +1

      No, I don't have VB.

  • @mattholderman3614
    @mattholderman3614 2 ปีที่แล้ว +1

    how powerful of a magnet did you use? More importantly, does it matter?

    • @tsbrownie
      @tsbrownie  2 ปีที่แล้ว +1

      The stronger the magnet, the farther away it will activate the device. The magnet I used was a small one out of an old CD rom drive.

    • @tobisaibot6842
      @tobisaibot6842 2 ปีที่แล้ว +1

      @@tsbrownie How did you mount the magnet on the shaft?

    • @tsbrownie
      @tsbrownie  2 ปีที่แล้ว +2

      @tobi saibot The shaft is steel. The magnet sticks to it. It works as long as it is not spinning too fast.

  • @owenhill22
    @owenhill22 2 ปีที่แล้ว +2

    Thank you for showing us this. Do you have the code available to download?

    • @pranashmaharaj
      @pranashmaharaj 2 ปีที่แล้ว +1

      Nope,I just copied the screen.still can’t seem to get it to work

  • @alerey4363
    @alerey4363 2 ปีที่แล้ว +1

    Can you get away with a python code for real time rpm sensing? I'm obviously not talking about controlling any critical mission motor, but for instance, imagine I'm building a rotating base for showing objects in order to record a video about it and due to lighting and camera shutter speed I need to set a precise rotating speed (even if it's a low speed like 10 rpm), can we get away with python running in Linux to make the set up speed steady over time? Thanks , great video

    • @tsbrownie
      @tsbrownie  2 ปีที่แล้ว +2

      I did a video on it, but it's a simple experiment to connect an output to an input and switch them on and off an known number of times and see if the inputs = outputs. You can try it with both polling and interrupts. BUT, the RPi and Arduinos are both seriously impacted by the other code that is running, so the test has to be done when the rest of your code is active. A simple output (print) can slow things down a LOT. Some examples of where slowness has caused me problems: this tachometer (speed limited), ultrasonic sensor, water meter, rotary switch. If occasional (and even frequent) loss of a data point will cause a big problem, then these may not be the best devices. There are a wide array of programmable controllers that might work better. I have not experimented with them yet, but I've seen what others have done.

  • @umairbijapure7584
    @umairbijapure7584 2 ปีที่แล้ว +1

    Sir, can it be able count of other moving objects other than that DC motor??

    • @tsbrownie
      @tsbrownie  2 ปีที่แล้ว +1

      As long as the object is not moving too fast for the processor to count.

  • @vincentjoseph4139
    @vincentjoseph4139 3 ปีที่แล้ว

    Can you please provide circuit diagram ?

    • @tsbrownie
      @tsbrownie  3 ปีที่แล้ว +1

      It's at the end of the video.

    • @vincentjoseph4139
      @vincentjoseph4139 3 ปีที่แล้ว +1

      @@tsbrownie thank you🥰🥰🥰