|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
Re: Program LIDAR for PWM Java
Can you link to a datasheet for the sensor?
|
|
#3
|
||||
|
||||
|
Re: Program LIDAR for PWM Java
|
|
#4
|
||||
|
||||
|
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. Last edited by eddie12390 : 20-01-2015 at 13:00. |
|
#5
|
||||||
|
||||||
|
Re: Program LIDAR for PWM Java
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|