This is the first time I text on this forum , so ... Hi :)
Well , I made a 5dof robotic arm controlled by arduino and I am adding some sensors. I can't find a working code for the Ultrasonic sensor hcsr-04 . I found a couples of examples ( very simple and short codes) but they did not work. Can somebody help me ? I just need an example that shows how to print the distance of a generic obstacole and how to use the upper bar of the service .
This is one of the codes I tried to use (my sensor version has separate trigger and echo pins) :
python = Runtime.start("python","Python")
sr04 = Runtime.start("sr04", "UltrasonicSensor")
sr04.attach("COM3", 7, 8)