
I have one problem with my flowcodechart done in Flowcode v4.
My flowchart has 4 major functions.
It controls a servo, A HC SR04, 2 dc motors and 2 internal PWMS to adjust the motors so that is can turn and keep a straight line.
My problem is that when i use the PWMS to control the dc motors, my servos movement becomes highly irregular.
I am useing a H-bridge to deliver the power to the dc motors and my microchip is an ATmega32.
Conections:
Motor1: D4 and D6
Motor2: D5 and D3
Servo: B3
HC SR04: B7 trig and B6 Echo
I've attached the program to the post
Michael Steffensen