* Function Overview:
*****************************************************************************
* Open-source development board hardware and software information and related projects hardware and software information on official website
* Development board official website: www.lckfb.com
* Technical support resident forum, any technical problems are welcome at any time to exchange learning
* LCSC Forum: club.szlcsc.com
* Follow our Bilibili account: [立创开发板], stay toned to our latest news!
* We focus on cultivating Chinese engineers rather than profiting from board sales.
******************************************************************************/
const int ultrasonicPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(ultrasonicPin);
float distance = sensorValue*3;
Serial.print("V, Distance: ");
Serial.println(distance);
delay(1000); //
}
Ich wundere mich halt, weil der auch noch den Pin Range hat, der nach diesem Code aber unverkabelt bleibt. Gibts eine elegantere Art für den US-016? Außerdem ist der Wert seeeeehr ungenau.
Ok, das kann ich nachvollziehen.
Allerdings würde ich dann Teile verwenden, die hier empfohlen werden, oder wo ich auch komplette Informationen inkl. lesbarem Datenblatt bekomme.
Ich kenne das Teil selbst nicht und würde es auch nicht verwenden.
Die sollen vor allem für kleine Vihikel gedacht sein und da wohl auch vollkommen ausreichen..... kann ich zwar so nicht bestätigen, aber nunja, ist ja ansichtssache