#Outputs pulsing on data exchange

1 messages · Page 1 of 1 (latest)

sturdy tinsel
#

Hey guys,
just setting up some LED backlighting controlled via potis, so only analog in -> variable -> pwm out.
I've managed to read the analog inputs in Mobiflight, write them to a variable and output them on a pwm enabled pin. they do control the led intensity. however the pwm outputs pulse high and low whenever the arduino is recieving data from the mobiflight software ( it seems like the pwm values are reset ever cycle or something).

If I adjust the config exacution speed in the settings the pulsing frequency increases. This behaviour is noticeable on all pwm outputs I've measured. what am I doing wrong?

molten badger
#

Is your potentiometer putting out erratic readings? Activate Mobiflight logging mode and check the readings from your potentiometer. You should normally see readings only when moving the potentiometer knob and the readings should increase or decrease smoothly as you move. No jerkiness should be seen.

#

If you see a lot of spurious readings try either cleaning the potentiometer with contact cleaner or replacing it.

sturdy tinsel
#

appreciate the quick response....

I wasn't seeing any erratic readings. after hours of trying to figure it out i gave up, closed the software and then decided to give it another try... issue has magically disappeared and everything is working as it should...

Thank you for your effort tho!🤝