Search found 9 matches

by DBMGTIL
Sun Nov 07, 2021 1:35 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

Finally it works! Thanks for your good advice,If I have any problem in the future I know where to find you.
by DBMGTIL
Thu Oct 28, 2021 2:43 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

As a test I wrote a program that allows me to write the value of the potentiometer on the LCD. In the simulation of FC itself this works perfectly, but when I download this to my Brainbox AVR. The output remains high (255)independent of the position of the potentiometer.
by DBMGTIL
Sun Oct 24, 2021 6:07 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

I have downloaded all the new updates, but the motor still runs at maximum speed regardless of the position of the potentiometer. What could the problem be?
by DBMGTIL
Wed Oct 20, 2021 4:59 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

I've checked all connections several times. The jumpers are also set correctly. My engine runs effectively but always at maximum speed. I have also adjusted the prescaler to 8 and 64, but that does not solve the problem. I contacted the manufacturer of the hardware and he says it is due to an update...
by DBMGTIL
Sat Oct 16, 2021 8:09 am
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

This also makes no difference. I use the Brainbox AVR from Bart Huyskens. He is aware of the problem and I have asked him to list the most important things you need from the hardware in function of this problem. Just wait for his answer.
by DBMGTIL
Thu Oct 14, 2021 7:47 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

I have set the timer setting to timer1, but this also does not solve the problem.
by DBMGTIL
Thu Oct 14, 2021 7:41 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

Benj wrote:
Fri Oct 01, 2021 4:20 pm
Hello,

Your loop is maybe too tight and hence you are almost constantly writing to the PWM registers, maybe try adding a delay inside the loop to give the PWM chance to run.

I added a delay and this doesn't solve the problem either.
by DBMGTIL
Thu Oct 14, 2021 7:40 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

Re: PWM Control for elektrical motor with potentiometer.

Hi I'm not that familiar with the chip you are using however it appears to be simulating OK. Do you have access to a scope to check what's actually happening on the pin? How are you interfacing the uC to the motor? Sorry I can't offer further insight. Regards I've hooked up my potentiometer to a sc...
by DBMGTIL
Wed Sep 29, 2021 1:07 pm
Forum: General Programming
Topic: PWM Control for elektrical motor with potentiometer.
Replies: 18
Views: 20030

PWM Control for elektrical motor with potentiometer.

I want to control the speed of the motor with a potentiometer, but the motor always runs at maximum speed, regardless of the position of the slider in the potentiometer. Attached you will find the program I wrote. Can you help me?