Reviewer For 3rd ICT10 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Microcontroller Basics:

• The ATmega328P is commonly used in Arduino Uno boards, providing sufficient flash memory,
EEPROM, and I/O pins for most projects.

ATmega328P Specifications:

• The ATmega328P features 32 KB of flash memory, allowing for storing program code.
• The ATmega328P has 2 KB of EEPROM, used for storing non-volatile data.
• The ATmega328P has 14 digital I/O pins, which can be configured as either inputs or outputs.

Arduino Board Pins:

• Pin 0 (RX) on the Arduino board is used for receiving TTL serial data.
• The 3V3 pin provides a regulated 3.3 volts supply on the Arduino Diecimila board.
• The Reset pin is used to reset the microcontroller on the Arduino board.

Functionality:

• PWM pins are used for pulse-width modulation, allowing for varying the average power
delivered to a circuit.
• The LED connected to digital pin 13 often indicates the power status of the board.

Motor Control with Shields:

• PWM control ensures smooth operation of servos without jitter by precisely controlling the
pulse width.
• The Adafruit motor shield can control up to 2 stepper motors simultaneously.
• What library must be installed before using the Motor shield?
• The Adafruit Motor library must be installed to utilize the motor shield's functionality.

Additional Considerations:

• The setSpeed() function provides a linear response in motor speed control.


• Dynamic braking involves dissipating the motor's kinetic energy by shorting its terminals,
which can be implemented using the Adafruit Motor Shield's features.

External Communication:

• Pin 2 on the Arduino board can be used to trigger an interrupt on a low value or a rising/falling
edge, allowing for event-driven programming.

Flash Memory:

• The ATmega168 microcontroller has 16 KB of flash memory, providing storage for program
code.

Power and Current:

• Each pin on an Arduino board can typically supply a maximum current of 40 mA, although this
may vary depending on the specific board model.

Analog Inputs:
• The AREF (Analog REFerence) pin on the Arduino board provides reference voltage for the
analog inputs, allowing for accurate analog-to-digital conversion.

External Interrupts:

• The ATmega328P microcontroller supports 2 external interrupts, which can be triggered by


external events.

Serial Peripheral Interface (SPI) Communication:

• Pin 10 (SS) on the Arduino board is commonly used for SPI communication, along with pins 11
(MOSI), 12 (MISO), and 13 (SCK).

Motor Shield Features:

• Terminal block connectors are used for easy wiring of the Adafruit motor shield, providing a
secure and convenient way to connect external components.

Library Installation:

• The first step to install the AF_Motor Arduino library is to open the Arduino library manager,
where you can search for and install the required library.

Motor Control Functions:

• The run() function is used to set the run mode of the motor in the Adafruit Motor Shield library,
allowing for control of motor direction and speed.

DC Motor Control:

• PWM (Pulse-Width Modulation) is used in DC motor control to vary the average voltage
applied to the motor, thereby controlling its speed.

Dynamic Braking:

• Dynamic braking involves dissipating the motor's kinetic energy by shorting its terminals,
creating a braking effect. This can be implemented using features of the Adafruit Motor Shield
library.

Motor Response:

• The setSpeed() function provides a linear response in motor speed control, where the speed
change is directly proportional to the input.

Motor Connections:

• Ports 1, 2, 3, and 4 are available for connecting motors to the Adafruit motor shield, allowing
for control of multiple motors simultaneously.

Shield Expansion and Compatibility:


• To extend the functionality beyond the specified limits, such as controlling more than 4 DC
motors or stacking shields for additional stepper motor control, you would need to customize
the library code and hardware configuration according to your requirements.
• The Adafruit motor shield is tested compatible with Arduino Mega, Diecimila, and Duemilanove
models, ensuring seamless integration and compatibility with these boards.

Motor Control Modes:

• The RELEASE mode in motor control stops the motor, allowing it to coast to a stop without
applying any further power.

Voltage Range and Current Handling:

• The recommended voltage range for the shield's motor controllers typically falls between 4.5V
to 25V, ensuring compatibility with a wide range of motors and power sources.
• The L293D chipset, commonly used in motor shields, typically provides a maximum current of
0.6A per bridge, allowing for sufficient current for driving small to medium-sized motors.

Terminal Blocks and Connectors:

• Terminal block connectors are used for easy wiring of the Adafruit motor shield, providing a
secure and convenient way to connect external components such as motors and power
sources.

Reset and Stepper Motor Limit:

• The Arduino reset button is used to reset the Arduino board, restarting the execution of the
program from the beginning.
• The Adafruit motor shield can control up to 2 stepper motors simultaneously, providing
versatility in motor control applications.

Library Requirements and Functionality:

• Before using the Motor shield, the Adafruit Motor library must be installed in the Arduino IDE
to provide the necessary functions for motor control.
• The AF_Motor Arduino library provides functions and utilities to communicate with the Motor
shield, allowing for easy control and management of connected motors.

Summary for Motor Shield Setup and DC Motors:

• The first step to install the AF_Motor Arduino library is to open the Arduino library manager,
where you can search for and install the required library.
• The shield can drive up to 2 DC motors bi-directionally, allowing for control over both speed
and direction.

You might also like