»óÇ°Ä«Å×°í¸® > ¼¾¼­ > Gravity ŸÀÔ¼¾¼­

Gravity µðÁöÅРȦ¼¾¼­ / Gravity: Digital Hall Sensor [SEN0185]
ÆǸŰ¡°Ý : 8,800¿ø (ºÎ°¡¼¼ Æ÷ÇÔ)
»óÇ°ÄÚµå : [3526]ZAS-DFR-PTW-SEN0185
¹è¼ÛÀÏ : ´çÀϹ߼Û
Á¦Á¶»ç : DFRobot
ºê·£µå : DFRobot [ºê·£µå¸ô ¹Ù·Î°¡±â]
³²Àº¼ö·® : 8°³
±¸¸Å¼ö·® :
°³
ÃÑ ±Ý¾× :
Ãß°¡&´ë·®±¸¸Å ¿äû 053-588-4080

  • »óÇ°»ó¼¼
  • °ü·Ã»óÇ°
  • ¹è¼Û/±³È¯/¹ÝÇ° ¾È³»
  • »óÇ°¸®ºä

¾ÆµÎÀ̳뿡 ¿¬°áÇÒ ¼ö Àִ Ȧ¼¾¼­·Î ÄÉÀ̺íÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.


´ÙÀ½°ú °°ÀÌ ¾ÆµÎÀ̳ë¿Í ¿¬°áÇÑ ÈÄ¿¡, ¼Ò½ºÄڵ带 ÀÔ·ÂÇÏ¸é µË´Ï´Ù.


 


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
  }
}



Ư¡ (Features) :

  • µ¿ÀÛÀü¾Ð: 3.3V ~ 5V

  • µðÁöÅÐ ÀÎÅÍÆäÀ̽º

 


ÀÀ¿ë ¿¹Á¦ (Application Examples) :




¸ÞÄ«¸®¿öÁî






°ßÀû¿äû
±¸¸Å´ëÇà
Äü/¹æ¹®¼ö·É
ÈĺҰáÁ¦
±â¼ú¹®ÀÇ