hi,
what is the correct method to do a low frequency generator (1hz .. 500khz) on raspberry pi ?
thanks
I don't understand.matrix1233 wrote:hi,
but how can i know the frequency generated ?
pigs hp 18 3000 500000 # GPIO18, 3000Hz, 500000/1000000 dutycycle (50%)matrix1233 wrote:hi,
for example on the gpio 18 i wanna to generate a frequency = 3 khz .. can you give me an example to do that
thanks
see this link.matrix1233 wrote:hi,
for example on the gpio 18 i wanna to generate a frequency = 3 khz .. can you give me an example to do that
thanks
Code: Select all
## Import the necessary header modules
import RPi.GPIO as GPIO
## Setup the GPIO for PWM on pin12 {GPIO18}
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.OUT)
p = GPIO.PWM(12, 300)
p.start
At anything over a megahertz you are going to have to program your own solution.matrix1233 wrote:hi
am trying to do a personalised frequency generator where i can program all possibility of signal output