AgTalk Home
AgTalk Home
Search Forums | Classifieds | Skins | Language
You are logged in as a guest. ( logon | register )

DIY auto boom height control
View previous thread :: View next thread
   Forums List -> Precision TalkMessage format
 
WildBuckwheat
Posted 6/13/2019 20:33 (#7557579 - in reply to #7557385)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
A PWM input sends the distance out in a pulse. The distance measured by the sensor is represented by the length of the pulse. From the sensor manual:

Pin 2- Pulse Width Output: This pin outputs a pulse width representation of the distance with a scale factor of 1uS per
mm. The pulse width output is sent with a value within 0.5% of the serial output.

You would connect this to a digital input pin and measure how long the signal stays high for. You would not use a capacitor or an analog input pin. Example, the pulse stays high for 1000 microseconds (1 milliseconds) when the sensor distance is 1000 millimeters (1 meter).

Edited by WildBuckwheat 6/13/2019 20:35
Top of the page Bottom of the page


Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete cookies)