H bridge error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
rzeszurzeszu
Posts: 22
http://meble-kuchenne.info.pl
Joined: Fri Aug 27, 2021 1:34 pm
Been thanked: 2 times

H bridge error

Post by rzeszurzeszu »

Hi,
I got message like below.
Attachments
output4.PNG
output4.PNG (13.22 KiB) Viewed 2148 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: H bridge error

Post by BenR »

Hello,

What AVR device are you trying to use the H-Bridge component with?

I think at the moment only PIC devices are supported by the component but I can look at supporting AVR if there are devices with hardware H-Bridges.

rzeszurzeszu
Posts: 22
Joined: Fri Aug 27, 2021 1:34 pm
Been thanked: 2 times

Re: H bridge error

Post by rzeszurzeszu »

Hi,
I use arduino uno r3.

BR,
rzeszurzeszu

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: H bridge error

Post by BenR »

Hello,

Ok that device does not feature a hardware H-bridge peripheral and so the best way to create a H-Bridge is to use a PWM output and an additional digital output pin.

The digital output pin can be used to set the direction of the motor and the PWM can set the speed of the motor.

Let me know if you would like an example outting together to demonstrate this.

rzeszurzeszu
Posts: 22
Joined: Fri Aug 27, 2021 1:34 pm
Been thanked: 2 times

Re: H bridge error

Post by rzeszurzeszu »

Hello,
thank you for help, I will try to do it myself but I use timer0 for another process(interrupt).
BR,

Post Reply