SlideShare a Scribd company logo
Digital magnetic sensor SKU: DFR0033
Digital magnetic sensor SKU: DFR0033
From Robot Wiki
Contents
1 Introduction
2 Specification
3 Connection Diagram
4 Sample Code
Introduction
what's the best way to detect the magnet? Use anther magnet. But it's not sensitive enough. You have to feel it by
youself.Right.This magnetic sensor knows whether there is a magnetic object nearby or not. And it correctly tells you through
ditigal output.See below picture for a quick demo!
Specification
Supply Voltage: 3.3V to 5V
Indicator LED on board
Interface: Digital
Size:22x30mm
Connection Diagram
Sample Code
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int ledPin = 13; // choose the pin for the LED
int inputPin = 2; // choose the input pin
int val = 0; // variable for reading the pin status
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare pushbutton as input
}
void loop(){
val = digitalRead(inputPin); // read input value
if (val == HIGH) { // check if the input is HIGH
digitalWrite(ledPin, LOW); // turn LED OFF
} else {
digitalWrite(ledPin, HIGH); // turn LED ON
}
}
Go Shopping Digital magnetic sensor SKU: DFR0033 (http://www.dfrobot.com/index.php?route=product/product&filter_name=dfr0033&product_id=233#.UiBMaRunpfQ)
Retrieved from "https://www.dfrobot.com/wiki/index.php?title=Digital_magnetic_sensor_SKU:_DFR0033&oldid=7167"
Categories: Product Manual DFR Series Sensors
This page was last modified on 9 September 2013, at 06:32.
This page has been accessed 3,553 times.

More Related Content

Viewers also liked

Награды в интерфейсах
Награды в интерфейсахНаграды в интерфейсах
Награды в интерфейсах
Promodo
 
Accessibility First
Accessibility FirstAccessibility First
Accessibility First
Ramses Cabello
 
20 Survival Tips For Virgin Founders
20 Survival Tips For Virgin Founders20 Survival Tips For Virgin Founders
20 Survival Tips For Virgin Founders
Vitaly Golomb
 
Talking to kids Nannypalooza 2015
Talking to kids Nannypalooza 2015Talking to kids Nannypalooza 2015
Talking to kids Nannypalooza 2015
William Sharp
 
Beyond Ad-hoc Automation: Leveraging Structured Platforms
Beyond Ad-hoc Automation: Leveraging Structured PlatformsBeyond Ad-hoc Automation: Leveraging Structured Platforms
Beyond Ad-hoc Automation: Leveraging Structured Platforms
bridgetkromhout
 
A beleza da mulher woman beauty
A beleza da mulher   woman beautyA beleza da mulher   woman beauty
A beleza da mulher woman beauty
Nelita Lisboeta
 
ISBN - Jenn Lim (Rancho Palos Verdes, CA)
ISBN - Jenn Lim (Rancho Palos Verdes, CA)ISBN - Jenn Lim (Rancho Palos Verdes, CA)
ISBN - Jenn Lim (Rancho Palos Verdes, CA)
Delivering Happiness
 
June 1st NYU Tandon Online Graduate Engineering School Information Webinar
June 1st NYU Tandon Online Graduate Engineering School Information WebinarJune 1st NYU Tandon Online Graduate Engineering School Information Webinar
June 1st NYU Tandon Online Graduate Engineering School Information Webinar
NYU Tandon Online
 
Report on Blog User in Indonesia 2013
Report on Blog User in Indonesia 2013Report on Blog User in Indonesia 2013
Report on Blog User in Indonesia 2013
MACROMILL SOUTH EAST ASIA, INC.
 
Workshop if technology
Workshop if technologyWorkshop if technology
Workshop if technology
Martijn Bloksma
 
Earth & Sky Photo Contest 2016: Winners
 Earth & Sky Photo Contest 2016: Winners Earth & Sky Photo Contest 2016: Winners
Earth & Sky Photo Contest 2016: Winners
maditabalnco
 
The disruptive-power-of-virtual-currency
The disruptive-power-of-virtual-currencyThe disruptive-power-of-virtual-currency
The disruptive-power-of-virtual-currency
Aranca
 

Viewers also liked (13)

Награды в интерфейсах
Награды в интерфейсахНаграды в интерфейсах
Награды в интерфейсах
 
Accessibility First
Accessibility FirstAccessibility First
Accessibility First
 
20 Survival Tips For Virgin Founders
20 Survival Tips For Virgin Founders20 Survival Tips For Virgin Founders
20 Survival Tips For Virgin Founders
 
World Economic Forum on Africa 2006
World Economic Forum on Africa 2006World Economic Forum on Africa 2006
World Economic Forum on Africa 2006
 
Talking to kids Nannypalooza 2015
Talking to kids Nannypalooza 2015Talking to kids Nannypalooza 2015
Talking to kids Nannypalooza 2015
 
Beyond Ad-hoc Automation: Leveraging Structured Platforms
Beyond Ad-hoc Automation: Leveraging Structured PlatformsBeyond Ad-hoc Automation: Leveraging Structured Platforms
Beyond Ad-hoc Automation: Leveraging Structured Platforms
 
A beleza da mulher woman beauty
A beleza da mulher   woman beautyA beleza da mulher   woman beauty
A beleza da mulher woman beauty
 
ISBN - Jenn Lim (Rancho Palos Verdes, CA)
ISBN - Jenn Lim (Rancho Palos Verdes, CA)ISBN - Jenn Lim (Rancho Palos Verdes, CA)
ISBN - Jenn Lim (Rancho Palos Verdes, CA)
 
June 1st NYU Tandon Online Graduate Engineering School Information Webinar
June 1st NYU Tandon Online Graduate Engineering School Information WebinarJune 1st NYU Tandon Online Graduate Engineering School Information Webinar
June 1st NYU Tandon Online Graduate Engineering School Information Webinar
 
Report on Blog User in Indonesia 2013
Report on Blog User in Indonesia 2013Report on Blog User in Indonesia 2013
Report on Blog User in Indonesia 2013
 
Workshop if technology
Workshop if technologyWorkshop if technology
Workshop if technology
 
Earth & Sky Photo Contest 2016: Winners
 Earth & Sky Photo Contest 2016: Winners Earth & Sky Photo Contest 2016: Winners
Earth & Sky Photo Contest 2016: Winners
 
The disruptive-power-of-virtual-currency
The disruptive-power-of-virtual-currencyThe disruptive-power-of-virtual-currency
The disruptive-power-of-virtual-currency
 

Similar to Digital magnetic sensor sku dfr0033 robot wiki

Arduino
ArduinoArduino
PRE PROJECT.pptx
PRE PROJECT.pptxPRE PROJECT.pptx
PRE PROJECT.pptx
AUComputers1
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
RaJYadav196733
 
Multi-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for ArduinoMulti-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for Arduino
Wanita Long
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
Felipe Belarmino
 
Fingerprint Attendance System - the hand-held device for classroom attendance
Fingerprint Attendance System - the hand-held device for classroom attendanceFingerprint Attendance System - the hand-held device for classroom attendance
Fingerprint Attendance System - the hand-held device for classroom attendance
mohamedbasheerkp
 
Microcontroller based electronic oad controller.pptx
Microcontroller based electronic oad controller.pptxMicrocontroller based electronic oad controller.pptx
Microcontroller based electronic oad controller.pptx
BhadrappaRHiriyur1
 
Smart Blind stick by using arduino uno and sensor
 Smart Blind stick  by using arduino  uno  and sensor Smart Blind stick  by using arduino  uno  and sensor
Smart Blind stick by using arduino uno and sensor
Mizoram University( A Central University)
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Automatic room light controller with visible counter
Automatic room light controller with visible counterAutomatic room light controller with visible counter
Automatic room light controller with visible counter
Mafaz Ahmed
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
MansiKumari26
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorials
Anshu Pandey
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2DIPAN GHOSH
 
Arduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light SwitchArduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light Switch
Ratzman III
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
SuperGirlArshiyah
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Jikrul Sayeed
 
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...政德 劉
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
Annamaria Lisotti
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
RAGHUVARMA09
 

Similar to Digital magnetic sensor sku dfr0033 robot wiki (20)

Arduino
ArduinoArduino
Arduino
 
PRE PROJECT.pptx
PRE PROJECT.pptxPRE PROJECT.pptx
PRE PROJECT.pptx
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
 
Multi-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for ArduinoMulti-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for Arduino
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
 
Fingerprint Attendance System - the hand-held device for classroom attendance
Fingerprint Attendance System - the hand-held device for classroom attendanceFingerprint Attendance System - the hand-held device for classroom attendance
Fingerprint Attendance System - the hand-held device for classroom attendance
 
Microcontroller based electronic oad controller.pptx
Microcontroller based electronic oad controller.pptxMicrocontroller based electronic oad controller.pptx
Microcontroller based electronic oad controller.pptx
 
Smart Blind stick by using arduino uno and sensor
 Smart Blind stick  by using arduino  uno  and sensor Smart Blind stick  by using arduino  uno  and sensor
Smart Blind stick by using arduino uno and sensor
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Automatic room light controller with visible counter
Automatic room light controller with visible counterAutomatic room light controller with visible counter
Automatic room light controller with visible counter
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorials
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
 
Arduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light SwitchArduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light Switch
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
 
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...
A Wireless Application of The Rain, Humidity and Temperature Sensors Based on...
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 

Recently uploaded

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 

Recently uploaded (20)

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 

Digital magnetic sensor sku dfr0033 robot wiki

  • 1. Digital magnetic sensor SKU: DFR0033 Digital magnetic sensor SKU: DFR0033 From Robot Wiki Contents 1 Introduction 2 Specification 3 Connection Diagram 4 Sample Code Introduction what's the best way to detect the magnet? Use anther magnet. But it's not sensitive enough. You have to feel it by youself.Right.This magnetic sensor knows whether there is a magnetic object nearby or not. And it correctly tells you through ditigal output.See below picture for a quick demo! Specification Supply Voltage: 3.3V to 5V Indicator LED on board Interface: Digital Size:22x30mm Connection Diagram Sample Code ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 int ledPin = 13; // choose the pin for the LED int inputPin = 2; // choose the input pin int val = 0; // variable for reading the pin status void setup() { pinMode(ledPin, OUTPUT); // declare LED as output pinMode(inputPin, INPUT); // declare pushbutton as input } void loop(){ val = digitalRead(inputPin); // read input value if (val == HIGH) { // check if the input is HIGH digitalWrite(ledPin, LOW); // turn LED OFF } else { digitalWrite(ledPin, HIGH); // turn LED ON } } Go Shopping Digital magnetic sensor SKU: DFR0033 (http://www.dfrobot.com/index.php?route=product/product&filter_name=dfr0033&product_id=233#.UiBMaRunpfQ)
  • 2. Retrieved from "https://www.dfrobot.com/wiki/index.php?title=Digital_magnetic_sensor_SKU:_DFR0033&oldid=7167" Categories: Product Manual DFR Series Sensors This page was last modified on 9 September 2013, at 06:32. This page has been accessed 3,553 times.