Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Program LIDAR for PWM Java (http://www.chiefdelphi.com/forums/showthread.php?t=133173)

Merfoo 19-01-2015 16:59

Program LIDAR for PWM Java
 
We are trying to use the LIDAR sensor via PWM. How would we program this using Java? Right now we are trying to time the pulse length of the DigitalInput (would be PulseIn in Arduino), how would we accomplish this?

eddie12390 19-01-2015 17:10

Re: Program LIDAR for PWM Java
 
Can you link to a datasheet for the sensor?

Merfoo 19-01-2015 17:17

Re: Program LIDAR for PWM Java
 
Quote:

Originally Posted by eddie12390 (Post 1430654)
Can you link to a datasheet for the sensor?

http://pulsedlight3d.net/assets.pl3d...ing-Manual.pdf

less in depth:
http://pulsedlight3d.net/assets.pl3d...Data-Sheet.pdf

eddie12390 20-01-2015 12:34

Re: Program LIDAR for PWM Java
 
Just so you know, there's an example code written by a ChiefDelphi user in Java (although it uses I2C).

https://gist.github.com/tech2077/c4ba2d344bdfcddd48d2

I wasn't able to find the equivalent function to pulseIn.

Joe Ross 21-01-2015 11:53

Re: Program LIDAR for PWM Java
 
Quote:

Originally Posted by Merfoo (Post 1430646)
We are trying to use the LIDAR sensor via PWM. How would we program this using Java? Right now we are trying to time the pulse length of the DigitalInput (would be PulseIn in Arduino), how would we accomplish this?

The Semi-Period mode of the counter class should do this. http://wpilib.screenstepslive.com/s/...ulses-and-more


All times are GMT -5. The time now is 09:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi