Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

KY003 Magnetic Hall Sensor Module How To Project (AZ Delivery 35 in 1 sensor kit)

arduino

sensor

hall

magnetic

ky-003

module

hall effect sensor

hall effect

effect

arduino uno

led

magnet

project

engineering

magnetic sensor

arduino sensors

azdelivery

az-delivery

Автор: Electronics Loop

Загружено: 13 февр. 2022 г.

Просмотров: 1 326 просмотров

Описание:

KY003 Magnetic Hall Sensor Module How To Project
You can buy this sensor separately or in a kit. Ours was in a AZ Delivery 35 in 1 sensor kit.

If you want to try out the KY003 Magnetic sensor the code I used is below for you to copy and paste and get started quickly.

void setup() {
// next 4 lines only because of my cheat to plug direct into arduino
pinMode(4,OUTPUT);
digitalWrite(4,LOW); //cheat instead of connecting to 0v
pinMode(3,OUTPUT);
digitalWrite(3,HIGH); // cheat instead of connecting to 5v

// with VCC and GND hardwired you would start here
pinMode(2,INPUT); // terminal marked S
pinMode(13,OUTPUT); // output indication - onboard LED
Serial.begin(9600); // initialise serial for debugging
}

void loop() {
// read the sensor
int ky003Value;
ky003Value = digitalRead(2); // grab the input - pin marked S
// note output is open collector
// however the LED and series resistor acts as a pull up
// without these set pinMode 2 to INPUT_PULLUP
// True = OFF = No Field
// False = ON = Field detected
if(ky003Value) {
Serial.println("NO FIELD");
digitalWrite(13,LOW);
} else {
Serial.println("MAGNETIC FIELD PRESENT");
digitalWrite(13,HIGH);
}
delay(500);
}

#arduino #arduinoproject

KY003 Magnetic Hall Sensor Module How To Project (AZ Delivery 35 in 1 sensor kit)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

ky035 linear hall magnetic sensor how to use project with code azdelivery 35in1 sensor kit

ky035 linear hall magnetic sensor how to use project with code azdelivery 35in1 sensor kit

Model Railway Automatic Signal Control Using an Arduino Part 8 - Using Reed Switches for Detection

Model Railway Automatic Signal Control Using an Arduino Part 8 - Using Reed Switches for Detection

Alan Walker, Dua Lipa, Coldplay, Martin Garrix & Kygo, The Chainsmokers Style 🔥 Summer Vibes #45

Alan Walker, Dua Lipa, Coldplay, Martin Garrix & Kygo, The Chainsmokers Style 🔥 Summer Vibes #45

Vintage Test Equipment Repair HP 8112A 50MHz Pulse Generator

Vintage Test Equipment Repair HP 8112A 50MHz Pulse Generator

Servo Motors, how do they work?

Servo Motors, how do they work?

Жириновский на украинском ТВ: Свобода слова

Жириновский на украинском ТВ: Свобода слова

Feels like the FIRST TIME (playlist)

Feels like the FIRST TIME (playlist)

Understanding Vibration and Resonance

Understanding Vibration and Resonance

10 Невозможных Деревьев, Которые Реально Существуют

10 Невозможных Деревьев, Которые Реально Существуют

Музыка для работы - Deep Focus Mix для программирования, кодирования

Музыка для работы - Deep Focus Mix для программирования, кодирования

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]