Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 19528

Re: 3 Pin ultrasonic sensor in galileo

$
0
0

Hi Cadeq,

 

Can you share some of your code and circuit diagram?
There is a specific way to use the ping sensors for Galileo and Edison.

You will need 2 digital pins, one for out put and another for input.

 

The reason pulseIn() is returning 0 is likely because it is timing out.

If you just use the code for regular arduino's it will not work because the Galileo/Edison is not fast enough in switching a pin from output to input.

This results with pulseIn() missing the pulse output of the ultrasonic sensors.

 

Thanks,

Dino Tinitigan


Viewing all articles
Browse latest Browse all 19528

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>