Hall Effect Angle Sensors (Arduino, Allegro A1334 and SPI) - The Basics (1/3)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ค. 2024
  • Hall Effect rotary position sensor, neodymium magnet, MCU and Lego® (!?!) …
    ↓↓↓ Complete description, time index and links below ↓↓↓
    I’ve already done a video about Hall Effect switches (link below). But hall elements can be used for so much more: For example measuring the angle, respectively, rotation of a magnetic field and thus the rotary position of a magnet.
    This first part starts with me talking about the principles of Hall Effect angle sensors. Then we have fun with a test jig build from Lego®, an Allegro A1334 and a neodymium magnet. There will be a second part covering the circuit and code.
    00:00 Intro - an Arduino, an Allegro A1334 and a magnet
    02:23 Diametric magnetization - an unusual neodymium magnet
    03:56 Circular hall element arrays - measuring a magnetic field’s direction
    07:21 Perpendicular hall elements - a simpler way to measure angles
    09:03 Test jig - made from old Lego® bricks
    11:16 1st test - rotating magnet with a 2.5mm air gap to the chip
    12:35 2nd test -ABS, glass fiber, copper and aluminum in the air gap
    16:26 3rd test - widening the air gap to 6mm
    17:37 4th test - magnet 5mm off-axis, air gap back to 2.5mm
    19:33 5th test - ferrous metal in the air gap
    19:47 On-axis vs off-axis - an advanced topic
    23:12 Wrap-up - next up circuit and code, bye
    Tutorials • Tutorials
    Hall Effect Switches (e.g. RPM Measurement with AH3582 and Arduino) • Hall Effect Switches (...
    #halleffect #angle #rotary #sensor #arduino #microcontroller #tutorials #tutorial #how-to #robertssmorgasbord
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    MCU's and Lego what a great Sunday morning ! very cool stuff I look forward to next week to see the software....cheers.

    • @robertssmorgasbord
      @robertssmorgasbord  2 ปีที่แล้ว

      I have to admin, that before I started with MCU programming, I fooled around a little with the Lego Mindstorms RCX 1.0 controller (got it cheap from eBay). But I got frustrated fast by the graphical programming language ;-)

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

    Helpful video

  • @joshuab2450
    @joshuab2450 2 ปีที่แล้ว

    Thank you 🙏

  • @dallasdominguez2224
    @dallasdominguez2224 2 ปีที่แล้ว

    Great video. Very informative. Needed a sensor for a project we're doing that can measure angular position. I think this might be what we're looking for.

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

      Thanks for the praise :-) And good luck with your project! Since these A1335s are obsolete you can get them comparably cheap (DigiKey still has over a thousand in stock).

  • @normiekl4532
    @normiekl4532 2 ปีที่แล้ว

    I need a similar sensor type, but in my case, the start will always be in a different angle, and i need it to know the position even when offline. Similar to absolute encoders, any suggestions?

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

      Well, that A1334 does give you an absolute angle between 0° and 360°. So it is an absolute (magnetic) encoder. But what do you mean by "need to know the position even when offline"? The A1334 measures the angle of the magnetic field. So when it's powered up it doesn't need no zeroing etc., it immediately delivers the (absolute) angle of the magnet(ic field).

    • @normiekl4532
      @normiekl4532 2 ปีที่แล้ว

      @@robertssmorgasbord thanks for the info , i totally understand that i need absolute encoder for that not an incremental encoder .thanks

    • @robertssmorgasbord
      @robertssmorgasbord  2 ปีที่แล้ว

      @@normiekl4532 You're welcome! I just wasn't sure from your first comment what you needed/wanted. So I felt compelled to point out that the A1334 is suitable 😉

  • @dennispuelscher9732
    @dennispuelscher9732 หลายเดือนก่อน

    Hello, thank you very much for the good video. I use the Infineon TLV493D-A1B6_3DMagnetic sensor. What is your approach to off-axis correction ?

    • @robertssmorgasbord
      @robertssmorgasbord  หลายเดือนก่อน

      To be honest, I've switched to the A1335 (first video here: th-cam.com/video/b_1zqg0UZw0/w-d-xo.htmlsi=NmtvX_GhS9B3JnpM ). I'm using the internal correction table/mechanism of the A1335 nowadays ( th-cam.com/video/E37hL-k9jiY/w-d-xo.htmlsi=29HiJuzEU3BNqFS4 ).

  • @bradseager9893
    @bradseager9893 2 ปีที่แล้ว

    Hey rob great video! Can you please put a link to where you bought the a1334 modules? I cant find them on ebay

    • @robertssmorgasbord
      @robertssmorgasbord  2 ปีที่แล้ว

      Thanks! And I'm sorry, but I didn't buy any A1334 modules. I bought naked chips (from digikey.com) and soldered them onto breakout boards (together with the necessary decoupling capacitors and the flat flex cable attached). As far as I know no A1334 modules are available (besides some $100 evaluation boards from Allegro).

    • @ud4458
      @ud4458 ปีที่แล้ว

      @@robertssmorgasbord would there be a suitable alternative chip to use? I am a beginner.

    • @robertssmorgasbord
      @robertssmorgasbord  ปีที่แล้ว

      @@ud4458 I started using the A1335 (in production) some 5 month ago ( th-cam.com/video/b_1zqg0UZw0/w-d-xo.html ). Meanwhile I've written a quite capable A1335 library. Just search for all the A1335 videos on my channel. Though, it's not exactly a chip for beginners. You do have to solder it yourself onto a breakout board.

  • @ender3421
    @ender3421 ปีที่แล้ว

    where did you buy the hall effect sensor

    • @robertssmorgasbord
      @robertssmorgasbord  ปีที่แล้ว

      At Digikey.com - but the A1334 is obsolete and meanwhile out of stock. See my videos about the A1335 for an active and available part. Here's the first one: th-cam.com/video/b_1zqg0UZw0/w-d-xo.html
      There are a lot more "The Details" videos. Just Search my channel for A1335.

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

    @René-Jean Mercier: Hi René-Jean, you comment got removed by TH-cam (guess they currently remove most comments with external links), but I save it :-)
    "Hi Robert. I thought it might interrest you : https forum kicad info/t/code-to-write-sine-cosine-curves-for-angle-sensor/31824/12. Regards, RJM" [:// and . removed by me]
    Anyway, thanks for the link! Very interesting! Regards, Robert

    • @rene-jeanmercier6517
      @rene-jeanmercier6517 2 ปีที่แล้ว

      Thank you Robert. Regards, RJM

    • @robertssmorgasbord
      @robertssmorgasbord  2 ปีที่แล้ว

      @@rene-jeanmercier6517 You're welcome René-Jean! Couldn't let your comment go to waste, could I now ;-)