Hello!
I'm coding DC motor controller using RPIO PWM library. There are two problems I have.
First: When my code runs this line:
Code: Select all
PWM.add_channel_pulse(0,17,0,PwmValue)
PWM works fine, but in terminal it echoes this:
Code: Select all
add_channel_pulse: channel=0, gpio=17, start=0, width=700
Is it possible to remove this echo in terminal? It messes up with other output.
Second question - more tough. I have code that slowly ramps PWM. Simple example code:
Code: Select all
PwmCount=100
while (PwmCount<1700):
PWM.add_channel_pulse(0,17,0,PwmCount)
time.sleep(0.05)
PwmCount+=10
It works BUT sometimes PWM does not slowly ramp up, it starts to ramp, then for cycle (maybe few cycles) it's on like 100%, continues to ramp and it may fail few more times until code stops increasing its value and PWM becomes stable. Does anyone have similar problem and is there any workaround on this? I do not own DSO, so at the moment I can not provide more detailed report on this.
Thanks!