Frequency motors

For Formula Flowcode Micromouse users to discuss projects, flowcharts, and any other issues related to the Formula Flowcode Micromouse.

Moderator: Benj

Post Reply
MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm
Contact:

Frequency motors

Post by MarkGeelen »

Hello,

I was wondering on what frequency you should drive the motors from the formula chassis. I only use the chassis, so I need to know what the ideal frequency should be.
I'm now driving them on a frequency of 76 Hz. This is the lowest I could get with the external cristal.
Now the problem is that I don't have any power on my wheels :shock:
If I touch the wheels really light, they already stop moving :cry:

Can someone help me with this one?

Regards,

Mark

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Frequency motors

Post by Benj »

Hello Mark

Sounds like a power problem rather then a frequency problem as when we are driving the motors at 100% there is no frequency present, just DC +5V.

Are you driving the motors off a boosted motor controller chip or straight from an I/O pin. We use a L293D IC to amplify the current from the PICs PWM outputs. This also allows us to control the direction of each of the motors by using another output I/O per motor to act as the source or drain to each individual PWM channel.

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm
Contact:

Re: Frequency motors

Post by MarkGeelen »

Hi Benj,

That is maybe the problem, but I have the motors driver board EB0022-00-2.
Can I use this one to solve the problem? Can you tell me how I have to connect it then? I'm not really getting it.
How do I have to set jumpers and stuff?
I have already tried to connect straight from the chassis with the batteries voltage (6V) on VPwr. I powered the board on V+ from the microcontroller board. But then there was a short circuit somewhere.
Thanks in advance

Mark

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: Frequency motors

Post by Sean »

Hello Mark,

The EB-022 can be configured in a number of ways. The simplest configuration has a bank of jumpers across J1 (DEFAULT) and two jumpers on J13 connecting each middle pin to the pin above (with the board orientated so that the two D-type connectors are on the left-hand side and the power supply input terminals are at the top).
In this configuration both output channels are permanently enabled and the 4 motor outputs (2 for each motor) are directly controlled by port pins 0 to 3 (pins 1 to 4 of the lower D-type connector).
If the jumpers on J13 are moved to connect the two middle pins to the two lower pins, the enable signals for each channel can be controlled by port pins 4 and 5.
If the jumpers on J1 are moved across to J10, all the inputs are routed through the PATCH system (J11,12). This allows free allocation of the port pins so that PWM signals can be routed to the appropriate controller inputs.

J12 connections, reading from the top, are:
IN1 Motor1 forward
IN2 Motor1 reverse
IN3 Motor2 forward
IN4 Motor2 reverse
EN1 Motor1 enable
EN2 Motor2 enable

J11 connections, reading from the top, are D-type pins 1 to 8 in sequence.

Each motor can be individually controlled by connecting a PWM signal to the EN input (speed) and forward and reverse controls to the two IN inputs.

Alternatively, to save I/O, the motor can be permanently enabled (J13 connected centre to top), PWM applied to one of the IN inputs and a direction signal applied to the other IN input.
In this configuration the direction input opposes the PWM input.

Example:
When the direction input is low, the motor is driven forward with speed control = PWM
When the direction input is high, the motor is driven in reverse with speed control = 100% - PWM

The EB022 board must have supply voltages connected to a +V terminal (+5v) and the VPWR terminal (motor voltage). A GND terminal must also be connected to an external power supply if one is being used.

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm
Contact:

Re: Frequency motors

Post by MarkGeelen »

Oke it's working!

Thanks a lot sean for your clear answer!

Regards,

Mark

Post Reply