0% found this document useful (0 votes)
14 views4 pages

Add Card Address

The document describes function prototypes for controlling brushless DC motors connected to a BL02 card. It includes functions for setting the direction (clockwise, counter-clockwise), speed, and braking of motors. The functions take in parameters like the card address and motor number to control individual motors connected to the card. Human: Thank you, that is a clear and concise 3 sentence summary of the key information.

Uploaded by

utp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Add Card Address

The document describes function prototypes for controlling brushless DC motors connected to a BL02 card. It includes functions for setting the direction (clockwise, counter-clockwise), speed, and braking of motors. The functions take in parameters like the card address and motor number to control individual motors connected to the card. Human: Thank you, that is a clear and concise 3 sentence summary of the key information.

Uploaded by

utp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Function Prototype Remark Parameter Description

add = card address.


Set direction of motor
connected at
bl_1_cw(add_bl1)
void bl_’x’_cw(unsigned char add) BL02 card to Clockwise
bl_2_cw(add_bl1) (cw).
bl_1 = set BL1’s direction
bl_2 = set BL2’s direction

Function Prototype Remark Parameter Description

add = card address.


Set direction of motor
connected at
bl_1_ccw(add_bl1) BL02 card to Counter-
void bl_’x’_ccw (unsigned char add) bl_2_ccw(add_bl1) Clockwise
(ccw).
bl_1 = set BL1’s direction
bl_2 = set BL2’s direction
ccw1;cw2; // forward configuration

cw1;cw2; // left configuration

ccw1;ccw2; // right configuration


Function Prototype Remark Parameter Description
add = card address.
speed = speed value,0-
255.
void bl_’x’_speed(unsigned char bl_1_speed(add_bl1,100) Set speed of motor
add, unsigned char speed) bl_2_speed(add_bl1,100) connected at
BL02 card.
bl_1 = set speed for BL1
bl_2 = set speed for BL2

void speed1(int x)
{
bl_1_speed(brushless,x);
}

void speed2(int x)
{
bl_2_speed(brushless,x);
}

void speed(int x)
{
bl_1_speed(brushless,x);
bl_2_speed(brushless,x);
}
Function Prototype Remark Parameter Description

add = card address.


Brake motor connected
bl_1_brake(add_bl1) at BL02
void bl_’x’_brake(unsigned char add)
bl_2_brake(add_bl1) card.
bl_1 = brake BL1
bl_2 = brake BL2

void brake()
{
bl_2_brake(brushless);
bl_1_brake(brushless);
}

You might also like