Parallax 4方向チルトセンサ

Parallax商品コード:RB-Plx-237
メーカー #: 28036

価格  :
販売価格 ¥1,788

税込

送料はチェックアウト時に計算されます

在庫  :

近日再入荷予定 入荷予定日の照会

この商品の入荷をお知らせします

支払いとセキュリティ

American Express Apple Pay Google Pay JCB Mastercard PayPal Shop Pay Visa

お客様の決済情報は安全に処理されます。当社はお客様のクレジットカード情報を保存せず、クレジットカード情報にアクセスすることもできません。

概要

  • ブレッドボードに適した0.1 "ピン間隔の小型6ピンDIPパッケージ
  • どのマイクロコントローラとも容易に通信
  • 4つのセンサ状態に対して2ピンのハイ/ロー出力
  • 電源要件:3 - 5.5 VDC
  • 動作温度範囲:32 - 122°F(0 - 50°C)
  • 寸法:0.42'' x 0.32'' x 0.49''

PDFファイル

Customer Reviews

Based on 1 review
100%
(1)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
J
Jean-Loup
Works very well

Here's a little program for Arduino Uno: // 2x16 Lcd Display #include "LiquidCrystal.h" // add the LCD library Liquid Crystal lcd (9,8,13,12,11,10); // link 4 bits of data // variables used for tilt detection int portout1 = 2; // the pin OUT1 of the cirest connected to the analog port A2 int portout2 = 3; // the OUT2 pin is connected to the A3 analog port int lectout1; int lectout2; int out1; int out2; void setup () { // Display    lcd.begin (16.2); // use a 16 columns and 2 lines screen    lcd.clear ();    lcd.home (); // line 1, column 0    lcd.write ("INITIALIZATION");    delay (1500); // serial link   Serial.begin (9600);                } void loop () // Loop {  out1 = 0;  out2 = 0;  // ****************************************** Sequence playback analog ports  lectout1 = analogRead (portout1); // read A2 port status  lectout2 = analogRead (portout2); // reading the status of the A3 port  // ****************************************** Sequence conversion analog state to state binary  if (lectout1> 500)    {      out1 = 1;    }  if (lectout2> 500)    {      out2 = 1;    }  // ****************************************** LCD orientation display sequence  if (out1 == 1)     {       if (out2 == 1)         {           lcd.clear ();           lcd.home (); // column 0, line 1           lcd.write ("HORIZONTAL OR");           lcd.setCursor (0, 1); // column 0, line 2           lcd.write ("PENCHE -> RIGHT");         }       else         {           lcd.clear ();           lcd.home (); // column 0, line 1           lcd.write ("DESCEND");           lcd.setCursor (0, 1); // column 0, line 2           lcd.write ("");         }     }   else       {       if (out2 == 1)         {           lcd.clear ();           lcd.home (); // column 0, line 1           lcd.write ("MONTE");           lcd.setCursor (0, 1); // column 0, line 2           lcd.write ("");         }       else         {           lcd.clear ();           lcd.home (); // column 0, line 1           lcd.write ("PENCHE -> LEFT");           lcd.setCursor (0, 1); // column 0, line 2           lcd.write ("");         }     }   delay (200); }

送料の見積り

こちらもあなたにおすすめ