simon.ganne
Posts: 7
Joined: Sun Sep 30, 2018 8:12 pm

timing the input high time

Sun Jun 23, 2019 10:56 am

hello everyone, I'm trying te recieve signals from a rc transmitter via the reciever to my raspberry pi. to do that i need to measure the on-time of the signal the reciever sends to my raspberry. those signals can vary from 1000 microseconds to 2000 microseconds. does anyone know how I can time how long the pin on which the reciever is connected has been on?
ps English is not my native language so excuse me if I made any mistakes :D

petzval
Posts: 9
Joined: Sat Aug 10, 2013 12:15 pm

Re: timing the input high time

Sun Jun 23, 2019 12:18 pm

This should help for accurate microsecond-level timing. Look at the first post, and the Jan 23, 2019 post for the latest version.

https://www.raspberrypi.org/forums/view ... 29&t=52393

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11864
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: timing the input high time

Sun Jun 23, 2019 1:42 pm


Andyroo
Posts: 3383
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: timing the input high time

Sun Jun 23, 2019 2:18 pm

mahjongg wrote:
Sun Jun 23, 2019 1:42 pm
user joan posted in the deleted duplicate thread:
Apologies if I flagged them the wrong way around :oops:
Need Pi spray - these things are breeding in my house...

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11864
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: timing the input high time

Sun Jun 23, 2019 5:32 pm

both copies were flagged, that often happens.

Return to “Advanced users”