I m trying to control a feedback device with a PWM signal via Pico --- ULN2803 --- optocoupler/MOSFET board. PWM works if I just use the ULN 2803 with an LED (without the o/M board). With the optocoupler it's just on and off. If I replace the Pico with a KL25Z, PWM control works. The voltages on the input port of the optocoupler are about the same at 0,50,100% (Pico, KL25Z).
outputs: [
// DOF port #1
{
device: { type: "gpio", gp: 7, pwm: true }, // GPIO output on GP7
},
update: the PWM frequency seems to be different. KL25Z: 2 kHz, Pico: 20 kHz (but I am not an expert, just used a DS212). If it is the frequency. How to change the Pinscape Pico PWM freqency to 2 kHz?
Edited by zag, Today, 04:46 PM.



Top









are all trademarks of VPFORUMS.