ajout capteur distance du sol

This commit is contained in:
dd060606
2025-05-24 15:56:33 +02:00
parent 074ccf7a57
commit 9167637101
4 changed files with 85 additions and 16 deletions

View File

@@ -6,8 +6,8 @@
{
"type": "board-esp32-devkit-c-v4",
"id": "esp",
"top": 180.74,
"left": -265.1,
"top": 171.14,
"left": -274.7,
"rotate": 90,
"attrs": {}
},
@@ -47,6 +47,28 @@
"top": 203.1,
"left": -71.3,
"attrs": {}
},
{
"type": "wokwi-text",
"id": "text1",
"top": 163.2,
"left": -19.2,
"attrs": { "text": "Obstacles" }
},
{
"type": "wokwi-hc-sr04",
"id": "ultrasonic2",
"top": 470.9,
"left": -357.9,
"rotate": 180,
"attrs": {}
},
{
"type": "wokwi-text",
"id": "text2",
"top": 508.8,
"left": -182.4,
"attrs": { "text": "Capteur de chutes" }
}
],
"connections": [
@@ -69,7 +91,9 @@
["esp:16", "drv1:DIR", "blue", ["v9.6", "h144"]],
["esp:4", "drv3:DIR", "blue", ["v19.2", "h-57.6", "v-201.6"]],
["ultrasonic1:TRIG", "esp:18", "violet", ["v76.8", "h-221.2"]],
["ultrasonic1:ECHO", "esp:5", "violet", ["v86.4", "h-240.8"]]
["ultrasonic1:ECHO", "esp:5", "violet", ["v86.4", "h-240.8"]],
["esp:15", "ultrasonic2:ECHO", "cyan", ["v0"]],
["esp:17", "ultrasonic2:TRIG", "cyan", ["v115.2", "h-38.4"]]
],
"dependencies": {}
}