Arduino hall effect sensor with interrupts

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 22

  • @90FF1
    @90FF1 5 лет назад +3

    I enjoyed your clear voice, reasonable pace, and no annoying music. Good for slow learners like myself. :-) I came here via 'Instructables' while looking for a hall effect tachometer with LCD display. Thank you.

    • @TasteTheCode
      @TasteTheCode  5 лет назад

      You are welcomed! I'm glad you linked it!

  • @abdullahshahid7854
    @abdullahshahid7854 10 месяцев назад

    This was a great tutorial. I was wondering if you have used the 3144 for reading analog values. Sort of like a magnetometer.

    • @TasteTheCode
      @TasteTheCode  10 месяцев назад

      Thanks! No I haven't! I've only used it as a general on/off switch.

  • @machgt
    @machgt 4 года назад +1

    Nice explanation. I’m planning on a Hall effect interrupt for a select fire nerf blaster shot counter

    • @TasteTheCode
      @TasteTheCode  4 года назад

      Cool. That sounds like a fun project! Good luck with it!

  • @willtheaspie498
    @willtheaspie498 4 года назад

    Could a hall sensor mounted to next to a flywheel close a normally open pneumatic valve?

    • @TasteTheCode
      @TasteTheCode  4 года назад

      The hall effect sensor can provide the signal but something else must activate the pneumatic valve depending on how it is controlled.

  • @scottjeffery2125
    @scottjeffery2125 4 года назад

    Strangest comment I've ever left, but your hands look the same as mine and it felt really weird watching them move around 😅 interested video though, subscribed.

    • @TasteTheCode
      @TasteTheCode  4 года назад +1

      Hhahhahaahahah well that is for sure a strange comment 😅😅😅 but I guess I would have felt the same. Thanks!

  • @salamalsaif2667
    @salamalsaif2667 5 лет назад +1

    This is very helpful information. Thank you.

  • @anuradhak6243
    @anuradhak6243 3 года назад

    Nice explanation. Thank you. I am using the hall sensor output to read the rpm of 8 pole BLDC motor. I am trying the formula but not getting the relevant reading. May I know how the interrupt and counter function should be used for the same?

    • @TasteTheCode
      @TasteTheCode  3 года назад

      Sorry but I'm not familiar with how it should be done for motor control.

  • @mikeandrew443
    @mikeandrew443 4 года назад

    Nice video, thanks. Not being a electronics guy, I was wondering if you could tell me where to connect the capacitor. Cheers

    • @TasteTheCode
      @TasteTheCode  4 года назад

      I'm glad you like it. There is no capacitor required in the circuit. You only need the pull-up resistor across VCC and output, or pins 1 and 3. You can add an additional 100pF capacitor between VCC and GND but that is not required at all.

  • @TheThalorn
    @TheThalorn 5 лет назад

    Hello, I tried the code with CHANGE, but the diode wont turn off until I come close with other side of the magnet. Could you please help me?

    • @TasteTheCode
      @TasteTheCode  5 лет назад

      Sure, can you confirm that you have the same sensor?

    • @TheThalorn
      @TheThalorn 5 лет назад

      @@TasteTheCode Unfortunately I use TLE 4935 L (heres datasheet www.gme.cz/data/attachments/dsh.533-442.1.pdf )

    • @TasteTheCode
      @TasteTheCode  5 лет назад +1

      Well that explains it as what you have is a Switching Bipolar Sensor. One pole of the magnet turns it on and the other turns it off. You can see the behavior in the datasheet at page 5 on the graph. What is it that you are trying to build? Any specific project?

  • @sericonti
    @sericonti 5 лет назад

    Many thanks for sharing this. I learn a lot from wonderful people like you. I think this can be used to build a weather station that records wind direction and speed. For wind direction, I think I will be needing 8 hall affect sensors to detect changes in wind from N, NW, W, SW, S, SE, E and NE plus maybe another sensor to record wind speed. Would it be possible to connect all 9 hall sensors to arduino and use interrupts to process the incoming data?

    • @TasteTheCode
      @TasteTheCode  5 лет назад +1

      That is a really good idea. However, the Uno has only 2 external interrupts so you'll need have them connected to regular digital pins. Definitely doable 👌