Main.ArduinoMotorShieldR3 History

Hide minor edits - Show changes to output

April 01, 2014, at 05:06 PM by Arturo -
May 22, 2013, at 10:17 AM by Alberto Cicchi -
Changed lines 18-19 from:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the motor current absorption of each motor, among other features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
to:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/web/en/catalog/sense_power/FM142/CL851/SC1790/SS1555/PF63147 | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the motor current absorption of each motor, among other features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
May 13, 2013, at 12:05 PM by Alberto Cicchi -
Changed lines 58-59 from:
You can use each channel separately to drive two DC motors or combine them to drive one unipolar stepper motor.
to:
You can use each channel separately to drive two DC motors or combine them to drive one bipolar stepper motor.
November 23, 2012, at 06:02 PM by Roberto Guido - added comments box on bottom
Changed lines 92-94 from:
The maximum length and width of the Motor Shield PCB are 2.7 and 2.1 inches respectively. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.
to:
The maximum length and width of the Motor Shield PCB are 2.7 and 2.1 inches respectively. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.

(:div id='commentsbox':)
June 01, 2012, at 03:50 PM by Federico -
Changed line 10 from:
(:cell:) [[http://store.arduino.cc/ww | Attach:buttonStore.jpg ]]
to:
(:cell:) [[http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_5&products_id=204 | Attach:buttonStore.jpg ]]
February 22, 2012, at 04:42 PM by Federico -
Changed lines 18-19 from:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the current absorption of each motor, among other features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
to:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the motor current absorption of each motor, among other features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
Changed lines 39-40 from:
The Arduino Motor Shield must be powered only by an external power supply. Because the L298 IC mounted on the shield has two separate power units, one for the logic and one for the motor supply driver.The current draw for the motor supply is often than the USB can give.
to:
The Arduino Motor Shield must be powered only by an external power supply. Because the L298 IC mounted on the shield has two separate power connections, one for the logic and one for the motor supply driver. The required motor current often exceeds the maximum USB current rating.
Changed line 57 from:
This shield have two separate channels, called A and B, that each use 4 of the Arduino pins to drive or sense the motor. In total there are 8 pins in use on this shield.
to:
This shield has two separate channels, called A and B, that each use 4 of the Arduino pins to drive or sense the motor. In total there are 8 pins in use on this shield.
Changed lines 71-73 from:
If you don't need the Brake and in the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield.

to:
If you don't need the Brake and the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield.

Changed lines 87-89 from:
'''Brushed DC motor'''. You can drive two Brushed DC motors by connecting the two wires of each one in the (+) and (-) screw terminals for each channel A and B. In this way you can control its direction by setting HIGH or LOW the '''DIR A''' and '''DIR B''' pins, you can control the speed by varying the '''PWM A''' and '''PWM B''' duty cycle values. There are also the '''Brake A''' and '''Brake B''' pins that if setted in HIGH state they brakes the DC motor faster than when you power off the motor. You can know the current going through the DC motor by reading the '''SNS0''' and '''SNS1''' pins. On each channel will be a voltage proportional to the measured current, which can be read as a normal analog input, through the functions analogRead() on the analog input A0 and A1. For your convenience it is calibrated to be 3.3V when the channel is delivering its maximum possible current, that is 2A.

to:
'''Brushed DC motor'''. You can drive two Brushed DC motors by connecting the two wires of each one in the (+) and (-) screw terminals for each channel A and B. In this way you can control its direction by setting HIGH or LOW the '''DIR A''' and '''DIR B''' pins, you can control the speed by varying the '''PWM A''' and '''PWM B''' duty cycle values. The '''Brake A''' and '''Brake B''' pins, if set HIGH, will effectively brake the DC motors rather than let them slow down by cutting the power. You can measure the current going through the DC motor by reading the '''SNS0''' and '''SNS1''' pins. On each channel will be a voltage proportional to the measured current, which can be read as a normal analog input, through the function analogRead() on the analog input A0 and A1. For your convenience it is calibrated to be 3.3V when the channel is delivering its maximum possible current, that is 2A.

November 25, 2011, at 05:23 PM by Federico -
Changed line 5 from:
(:cell:)[[Attach:MotorShield_R3_Back.jpg | Attach:MotorShield_R3_Back_450px.jpg]]
to:
(:cell:)[[Attach:MotorShield_R3_Back.jpg | Attach:MotorShield_R3_Back_450px.jpg ]]
Changed lines 32-36 from:
EAGLE files: [[Attach:arduino_MotorShield_Rev3.zip | arduino_MotorShield_Rev3-reference-design.zip]]

Schematic: [[Attach:arduino_MotorShield_Rev3-schematic.pdf | arduino_MotorShield_Rev3-schematic.pdf]]

to:
EAGLE files: [[Attach:arduino_MotorShield_Rev3.zip | arduino_MotorShield_Rev3-reference-design.zip ]]

Schematic: [[Attach:arduino_MotorShield_Rev3-schematic.pdf | arduino_MotorShield_Rev3-schematic.pdf ]]

November 24, 2011, at 07:56 PM by Federico -
Changed lines 18-19 from:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the current absorption of each motor, amongst other extra features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
to:
The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the current absorption of each motor, among other features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.
Changed line 25 from:
||Max current ||2A for channel or 4A max (with external power supply)
to:
||Max current ||2A per channel or 4A max (with external power supply)
Changed lines 39-40 from:
The Arduino Motor Shield must be powered only with an external power supply. The reason for that is because the L298 IC mounted on the shield has two separated power units, one for the logic part and one for the driver part that provide the power to the motor and often the request is more than the USB can give.
to:
The Arduino Motor Shield must be powered only by an external power supply. Because the L298 IC mounted on the shield has two separate power units, one for the logic and one for the motor supply driver.The current draw for the motor supply is often than the USB can give.
Changed lines 43-44 from:
To avoid possibile damages to the board on which is mounted we recomend to use an external power supply that provide a voltage between 7 and 12V. If your motor require a power supply higher than 9V we also recommend to separate the power lines of the shield and the Arduino board on which is mounted. This is possible cutting the ''"Vin Connect"'' jumper placed on the back side of the shield. The absolute limit for the Vin is 18V.
to:
To avoid possible damage to the Arduino board on which the shield is mounted, we reccomend using an external power supply that provides a voltage between 7 and 12V. If your motor require more than 9V we recommend that you separate the power lines of the shield and the Arduino board on which the shield is mounted. This is possible by cutting the ''"Vin Connect"'' jumper placed on the back side of the shield. The absolute limit for the Vin at the screw terminals is 18V.
Changed lines 47-48 from:
*'''Vin''' on the screw terminal block, is the input voltage to the motor connected to the shield. An external power supply connected to this pin also provide power to the Arduino board on which is mounted. Cutting the ''"Vin Connect"'' jumper this become a dedicate power line for the motor.
to:
*'''Vin''' on the screw terminal block, is the input voltage to the motor connected to the shield. An external power supply connected to this pin also provide power to the Arduino board on which is mounted. By cutting the ''"Vin Connect"'' jumper you make this a dedicated power line for the motor.
Changed lines 52-54 from:
The shield can supply 2 amperes for each channel, for a total of 4 amperes maximum.

to:
The shield can supply 2 amperes per channel, for a total of 4 amperes maximum.

Changed lines 57-61 from:
This shield have two separated channels, called A and B, that each use 4 of the Arduino pins to drive or sense the motor. In total there are 8 pins in use on this shield.
You can use each channel separately to drive two DC motors or combine them to drive one bipolar stepper motor.

The pin involved in the shield usage, divided by channel are shown in the table:
to:
This shield have two separate channels, called A and B, that each use 4 of the Arduino pins to drive or sense the motor. In total there are 8 pins in use on this shield.
You can use each channel separately to drive two DC motors or combine them to drive one unipolar stepper motor.

The shield's pins, divided by channel are shown in the table below:

||style="margin-left:0px;"
Changed lines 64-77 from:
||'''Function''' || '''pin Ch. A''' || '''pin Ch. B''' ||
||''Direction'' || D12 || D13 ||
||''PWM'' || D3 || D11 ||
||''Brake'' || D9 || D8 ||
||''Current Sensing''|| A0 || A1 ||


If your are not interested in the Brake and in the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield to restore the originary pin function.


The addictional sockets on the shield are described as follow:

*'''Screw terminal block''' where to connect the motors and their power supply.
to:
||'''Function''' || '''pins per Ch. A''' || '''pins per Ch. B''' ||
||''Direction'' || D12 || D13 ||
||''PWM'' || D3 || D11 ||
||''Brake'' || D9 || D8 ||
||''Current Sensing''|| A0 || A1 ||


If you don't need the Brake and in the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield.


The additional sockets on the shield are described as follow:

*'''Screw terminal''' to connect the motors and their power supply.
Changed lines 85-89 from:
to:
!!!Motors connections

'''Brushed DC motor'''. You can drive two Brushed DC motors by connecting the two wires of each one in the (+) and (-) screw terminals for each channel A and B. In this way you can control its direction by setting HIGH or LOW the '''DIR A''' and '''DIR B''' pins, you can control the speed by varying the '''PWM A''' and '''PWM B''' duty cycle values. There are also the '''Brake A''' and '''Brake B''' pins that if setted in HIGH state they brakes the DC motor faster than when you power off the motor. You can know the current going through the DC motor by reading the '''SNS0''' and '''SNS1''' pins. On each channel will be a voltage proportional to the measured current, which can be read as a normal analog input, through the functions analogRead() on the analog input A0 and A1. For your convenience it is calibrated to be 3.3V when the channel is delivering its maximum possible current, that is 2A.

November 21, 2011, at 05:49 PM by Federico -
Changed lines 39-42 from:
The Arduino Motor Shield must be powered only with an external power supply. The reason for that is because the L298 IC mounted on the shield have two separated power units, one for the logic part and one for the driver part that provide the power to the motor and ofen the request is more than the USB can give.

External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.
to:
The Arduino Motor Shield must be powered only with an external power supply. The reason for that is because the L298 IC mounted on the shield has two separated power units, one for the logic part and one for the driver part that provide the power to the motor and often the request is more than the USB can give.

External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the Arduino's board power jack on which the motor shield is mounted or by connecting the wires that lead the power supply to the Vin and GND screw terminals, taking care to respect the polarities.
Changed lines 47-51 from:
*'''Vin''' on the blue screw socket, is the input voltage to the motor connected to the shield. An external power supply connected to this pin also provide power to the Arduino board on which is mounted. Cutting the ''"Vin Connect"'' jumper this become a dedicate power line for the motor.

*'''GND''' Ground on the blue screw socket.

to:
*'''Vin''' on the screw terminal block, is the input voltage to the motor connected to the shield. An external power supply connected to this pin also provide power to the Arduino board on which is mounted. Cutting the ''"Vin Connect"'' jumper this become a dedicate power line for the motor.

*'''GND''' Ground on the screw terminal block.

Changed line 62 from:
||border=0 align=center width=50%
to:
||border=0 width=50%
Changed lines 75-76 from:
*'''Blue Screw socket''' where to connect the motors and their power supply.
to:
*'''Screw terminal block''' where to connect the motors and their power supply.
Changed lines 79-80 from:
*'''2 TinkerKit connectors''' for two Aanlog Outputs (in orange), connected to PWM outputs on pins D5 and D6.
to:
*'''2 TinkerKit connectors''' for two Aanlog Outputs (in orange in the middle), connected to PWM outputs on pins D5 and D6.
November 21, 2011, at 05:02 PM by Federico -
Changed lines 3-6 from:
Attach:MotorShield_R3_Front_450px.jpg\\
''Arduino Motor Shield R3 front

to:
(:table border=0 align=centre:)
(:cell:)[[Attach:MotorShield_R3_Front.jpg.jpg | Attach:MotorShield_R3_Front_450px.jpg ]]
(:cell:)[[Attach:MotorShield_R3_Back.jpg | Attach:MotorShield_R3_Back_450px.jpg]]
(:cellnr:)''Arduino Motor Shield R3 Front''
(:cell:)''Arduino Motor Shield R3 Back''

(:table border = 0 :)
(:cell:) [[http://store.arduino.cc/ww | Attach:buttonStore.jpg ]]
(:cell:)[[http://arduino.cc/en/Main/Buy | Attach:buttonDistributors.jpg ]]
(:tableend:)

Changed lines 39-40 from:

to:
The Arduino Motor Shield must be powered only with an external power supply. The reason for that is because the L298 IC mounted on the shield have two separated power units, one for the logic part and one for the driver part that provide the power to the motor and ofen the request is more than the USB can give.

External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.

To avoid possibile damages to the board on which is mounted we recomend to use an external power supply that provide a voltage between 7 and 12V. If your motor require a power supply higher than 9V we also recommend to separate the power lines of the shield and the Arduino board on which is mounted. This is possible cutting the ''"Vin Connect"'' jumper placed on the back side of the shield. The absolute limit for the Vin is 18V.

The power pins are as follows:

*'''Vin''' on the blue screw socket, is the input voltage to the motor connected to the shield. An external power supply connected to this pin also provide power to the Arduino board on which is mounted. Cutting the ''"Vin Connect"'' jumper this become a dedicate power line for the motor.

*'''GND''' Ground on the blue screw socket.


The shield can supply 2 amperes for each channel, for a total of 4 amperes maximum.

Changed lines 57-58 from:

to:
This shield have two separated channels, called A and B, that each use 4 of the Arduino pins to drive or sense the motor. In total there are 8 pins in use on this shield.
You can use each channel separately to drive two DC motors or combine them to drive one bipolar stepper motor.

The pin involved in the shield usage, divided by channel are shown in the table:

||border=0 align=center width=50%
||'''Function''' || '''pin Ch. A''' || '''pin Ch. B''' ||
||''Direction'' || D12 || D13 ||
||''PWM'' || D3 || D11 ||
||''Brake'' || D9 || D8 ||
||''Current Sensing''|| A0 || A1 ||


If your are not interested in the Brake and in the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield to restore the originary pin function.


The addictional sockets on the shield are described as follow:

*'''Blue Screw socket''' where to connect the motors and their power supply.

*'''2 TinkerKit connectors''' for two Analog Inputs (in white), connected to A2 and A3.

*'''2 TinkerKit connectors''' for two Aanlog Outputs (in orange), connected to PWM outputs on pins D5 and D6.

*'''2 TinkerKit connectors''' for the TWI interface (in white with 4 pins), one for input and the other one for output.


Changed line 87 from:
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches respectively. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.
to:
The maximum length and width of the Motor Shield PCB are 2.7 and 2.1 inches respectively. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.
November 07, 2011, at 07:06 PM by Federico -
Added lines 1-39:
!!Arduino Motor Shield

Attach:MotorShield_R3_Front_450px.jpg\\
''Arduino Motor Shield R3 front


!!!Overview


The Arduino Motor Shield is based on the L298 ([[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf | datasheet]]), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently. You can also measure the current absorption of each motor, amongst other extra features. The shield is TinkerKit compatible, which means you can quickly create projects by plugging TinkerKit modules to the board.

!!!Summary

||border=0
||Operating Voltage ||5V to 12V
||Motor controller ||L298P, Drives 2 DC motors or 1 stepper motor
||Max current ||2A for channel or 4A max (with external power supply)
||Current sensing ||1.65V/A
||Free running stop and brake function ||


!!!Schematic & Reference Design

EAGLE files: [[Attach:arduino_MotorShield_Rev3.zip | arduino_MotorShield_Rev3-reference-design.zip]]

Schematic: [[Attach:arduino_MotorShield_Rev3-schematic.pdf | arduino_MotorShield_Rev3-schematic.pdf]]


!!!Power



!!!Input and Output



!!!Physical Characteristics

The maximum length and width of the Uno PCB are 2.7 and 2.1 inches respectively. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.

Share