Log in

View Full Version : Java DIO Programming


alexpell00
10-02-2016, 12:55
Hello,

In Java how do I get raw digital input from and ultrasonic sensor? I know there is an ultra sonic object, but I am using a specialized sensor with only one input.

nickbrickmaster
10-02-2016, 13:00
You can use a DigitalInput object to access a DIO port.

seg9585
10-02-2016, 14:37
Hello,

In Java how do I get raw digital input from and ultrasonic sensor? I know there is an ultra sonic object, but I am using a specialized sensor with only one input.

Do you know what the output protocol is of your sensor? Is it PWM? If so you should consider wiring up a low pass filter and then feeding it into an analog input instead.

mmaunu
10-02-2016, 17:28
Listing the part number might help others help you.