Durata de livrare: 1 - 3 zile lucratoare
const int sensorPin = 1; long voltage, cm; int sum=0; int average=10; void setup() { Serial.begin(9600); } void loop() { for(int i = 0; i < average ; i++) { voltage = analogRead(sensorPin)/2; sum += voltage; delay(10); } cm = (sum/average) * 2.54; Serial.print("Distanta: "); Serial.print(cm); Serial.println("cm"); sum = 0; delay(500); }
Specificatii:
42 kHz Ultrasunete
Tensiunea de alimentare : 2.5V-5V
Rezolutie de 1 mm
Distanta 5m
Zona moarta la 30 de cm de senzor
Analog,TTL,PWM
Linkuri:
Suport clienti Email tehnic si cereri de oferta B2B: contact@robofun.ro
+40 373 813 088 info@robofun.ro