Unknown: Creation of dynamic property Request::$request is deprecated in /home/bastelga/public_html/74/system/library/request.php on line 26Unknown: Creation of dynamic property mysqli::$report_mode is deprecated in /home/bastelga/public_html/74/system/library/db/mysqli.php on line 15Unknown: Creation of dynamic property Session\DB::$db is deprecated in /home/bastelga/public_html/74/system/library/session/db.php on line 8Unknown: Creation of dynamic property Proxy::$getTranslations is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bastelga/public_html/74/system/library/db/mysqli.php on line 53Unknown: Creation of dynamic property Proxy::$getLanguage is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getLanguages is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Cart\Customer::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 14Unknown: Creation of dynamic property Cart\Customer::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 15Unknown: Creation of dynamic property Cart\Customer::$request is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 16Unknown: Creation of dynamic property Cart\Customer::$session is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 17Unknown: Creation of dynamic property Proxy::$getCurrencyByCode is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getCurrencies is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Cart\Currency::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/currency.php on line 7Unknown: Creation of dynamic property Cart\Currency::$language is deprecated in /home/bastelga/public_html/74/system/library/cart/currency.php on line 8Unknown: Creation of dynamic property Cart\Tax::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/tax.php on line 7Unknown: Creation of dynamic property Cart\Tax::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/tax.php on line 8Unknown: Creation of dynamic property Cart\Weight::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/weight.php on line 7Unknown: Creation of dynamic property Cart\Weight::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/weight.php on line 8Unknown: Creation of dynamic property Cart\Length::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/length.php on line 7Unknown: Creation of dynamic property Cart\Length::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/length.php on line 8Unknown: Creation of dynamic property Cart\Cart::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 7Unknown: Creation of dynamic property Cart\Cart::$customer is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 8Unknown: Creation of dynamic property Cart\Cart::$session is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 9Unknown: Creation of dynamic property Cart\Cart::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 10Unknown: Creation of dynamic property Cart\Cart::$tax is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 11Unknown: Creation of dynamic property Cart\Cart::$weight is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 12 A01NYUB Capteur de distance à ultrasons étanche - Bastelgarage Boutique en ligne d'électronique

A01NYUB Capteur de distance à ultrasons étanche

La plupart des capteurs de distance à ultrasons ne sont pas étanches, ce qui peut poser problème si vous souhaitez utiliser le capteur à l'extérieur ou dans un environnement humide, par exemple dans un réservoir d'eau pour mesurer le niveau d'eau. DFRobot a développé un capteur de distance à ultrasons fiable avec un émetteur étanche pour cet usage. Ce capteur est idéal pour des applications extérieures comme les capteurs de recul, les alarmes de sécurité, les inspections industrielles, la surveillance du niveau de remplissage, la surveillance du niveau d'eau dans les réservoirs d'eau, etc. Ce capteur à ultrasons étanche A01NYUB offre une grande portée de surveillance de 0,28m à 7m. Le capteur dispose d'un émetteur et d'un récepteur fermés qui sont à la fois étanches et résistants à la poussière. L'unité de traitement du signal est intégrée dans le module capteur, ce qui vous permet de lire directement la valeur de la distance via l'interface série asynchrone. Avec un débit binaire de 9600 bits/s, le capteur peut communiquer avec le microcontrôleur, ce qui réduit considérablement le temps de développement pour l'utilisateur.


Documentation :


Caractéristiques techniques :

  • Type : A01NYUB
  • Interface de communication : UART
  • Temps de réponse : 100ms
  • Tension d'opération : DC 3.3 à 5.5V
  • Consommation de courant moyenne : <15mA
  • Plage de détection (objet plat) : 28-750cm
  • Résolution : 1mm
  • Angle d'échantillonnage : 55°
  • Température de fonctionnement : -25 à 80°C
  • Classe de protection : IP67
  • Longueur du câble : 320mm
  • Poids : 42g

Contenu de la livraison :

  • 1x Capteur de distance à ultrasons étanche A01NYUB
  • 1x câble adaptateur PH2.0-4P vers prise 2.5mm 4p


// Exemple avec un Wemos D1 (Alf 2020)
// Les connexions sont créées du côté logiciel.

#include 

#define mess_TX D1 // Entrez votre connexion pour le câble bleu
#define mess_RX D2 // Entrez votre connexion pour le câble vert

SoftwareSerial mySerial(mess_RX,mess_TX); // RX, TX
unsigned char data[4]={};
float distance;

void setup()
{
 Serial.begin(115200);
 mySerial.begin(9600); 
}

void loop()
{
    do{
     for(int i=0;i<4;i++)
     {
       data[i]=mySerial.read();
     }
  }while(mySerial.read()==0xff);

  mySerial.flush();

  if(data[0]==0xff)
    {
      int sum;
      sum=(data[0]+data[1]+data[2])&0x00FF;
      if(sum==data[3])
      {
        distance=(data[1]<<8)+data[2];
        if(distance>280)
          {
           Serial.print("distance=");
           Serial.print(distance/10);
           Serial.println("cm");
          }else 
              {
                Serial.println("Au-dessous de la limite inférieure");        
              }
      }else Serial.println("ERREUR");
     }
     delay(150);
}


Rédiger une critique

Remarque : le HTML n'est pas traduit !
    Mauvais           Bon

A01NYUB Capteur de distance à ultrasons étanche

  • Marque : DFRobot
  • Code produit : 421142
  • Disponibilité : En stock
  • CHF36.90

  • Hors taxe : CHF34.14

Balises : A01NYUB, Étanche, Ultrason, Capteur, Ultrasonique, HC-SR05, Module, Arduino, Capteur, Ultrason, Breakout, Distance, Capteur de distance, Niveau, Eau, Capteur de distance, JSN-SRO4T, JSN, SRO4T, DFRobot, SEN0313