View: 5218|Reply: 1

Count frequency on GPIO

[Copy link]

4

threads

11

posts

73

credits

Registered member

Rank: 2

credits
73
Published in 2017-2-21 19:27:41 | Show all floors |Read mode
Hi,
Is possible to count frequency for example I would like to connect a function generator (square wave, 5V) pulses to gpio. (in real world I have temp sensor and salinity sensor which gives frequency on output)
I need to measure frequency from 0 up to 20 kHz. (For now I have  done it on Arduino which is then connected over serial port to OrangePI) but in future I like to avoid Arduino and directly count pulses with orangepi.

Is there some example in C or python on how to measure frequency?

thank you
Peter


0

threads

1

posts

14

credits

Novice

Rank: 1

credits
14
Published in 2018-2-8 14:52:08 from mobile | Show all floors
Hi.. its awesome project, but first we mist know gpio which used to recieve external clock/frequency source like digital pin 5 on arduino(t0), may be anyone know about gpio which recieve external click to orange Pi timer
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list