Cov txheej txheem:

Hall Sensor Tutorial: 5 Kauj Ruam
Hall Sensor Tutorial: 5 Kauj Ruam

Video: Hall Sensor Tutorial: 5 Kauj Ruam

Video: Hall Sensor Tutorial: 5 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Hall Sensor Qhia
Hall Sensor Qhia

Nqe lus piav qhia:

Hall effect sensor yog nrov heev hauv kev tshawb pom thaj chaw sib nqus. Qhov ntsuas qhov ntsuas no los nrog cov txheej txheem yooj yim los pab koj pib. Cias hwj chim nws nrog 5VDC thiab cov cuab yeej hauv tsev yuav npaj los tshuaj xyuas cov hlau nplaum. Muaj ob qhov tso tawm, digital thiab analog. Tau tshaj feem ntau ntawm microcontroller xws li Arduino/Genuino UNO, Mega, CT-UNO, CT-ARM, Raspberry Pi, thiab ntau dua.

Nta:

  • Lub hwj chim tawm tswv yim: 5VDC
  • Raws li Allegro 3144 Hall Effect Sensor.
  • Ob qhov taw qhia LED, ib qho rau lub zog thiab lwm qhov rau cov zis digital.
  • Kev sib cuam tshuam yooj yim: VCC, GND, DO, AO
  • Loj: 2.7cm x 1.4cm

Kauj Ruam 1: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Rau qhov kev qhia no, cov khoom xav tau los ua txoj haujlwm no yog:

  1. Arduino Ib
  2. USB Cable Hom A rau B.
  3. Poj niam rau txiv neej jumper hlau
  4. Txiv neej rau txiv neej jumper hlau
  5. LED
  6. Hlau nplaum
  7. Resistor (220 hli)

Kauj Ruam 2: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Daim duab saum toj no qhia txog kev sib txuas yooj yim ntawm Hall Effect Sensor thiab Arduino Uno:

  1. Vc> 5V
  2. GND> GND
  3. D0> D2
  4. A0> A0

Kev sib txuas ntawm LED thiab Arduino Uno:

LED> D8

Tom qab ua tiav kev sib txuas, txuas Arduino Uno rau lub hwj chim muab nrog USB cable.

Kauj Ruam 3: Ntxig rau Source Code

  1. Rub cov ntawv xeem thiab qhib nws los ntawm kev siv Arduino software lossis IDE.
  2. Nco ntsoov tias koj tau xaiv lub rooj tsav xwm raug thiab qhov chaw nres nkoj sib xws (Hauv qhov kev qhia no, Arduino Uno tau siv).
  3. Tom qab ntawd, xa cov ntawv xeem mus rau hauv koj Arduino Uno.

Kauj Ruam 4: Cov txiaj ntsig

Cov txiaj ntsig
Cov txiaj ntsig

Thaum cov hlau nplaum los ze rau qhov ntsuas ntawm chav ntsuas qhov ntsuas qhov ntsuas, LED yuav ci ci.

Pom zoo: