File VIII (Lampiran)
File VIII (Lampiran)
File VIII (Lampiran)
Overview
The Arduino Mega 2560 is a microcontroller board based on the ATmega2560 (datasheet).
It has 54 digital input/output pins (of which 14 can be used as PWM outputs), 16 analog
inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a
power jack, an ICSP header, and a reset button. It contains everything needed to support
the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-
to-DC adapter or battery to get started. The Mega is compatible with most shields designed
for the Arduino Duemilanove or Diecimila.
Summary
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 14 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
Power
The Arduino Mega can be powered via the USB connection or with an external power supply.
The power source is selected automatically.
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.
The board can operate on an external supply of 6 to 20 volts. If supplied with less than
7V, however, the 5V pin may supply less than five volts and the board may be unstable.
If using more than 12V, the voltage regulator may overheat and damage the board. The
recommended range is 7 to 12 volts.
The Mega2560 differs from all preceding boards in that it does not use the FTDI USB-to-
serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial
converter.
The power pins are as follows:
● VIN. The input voltage to the Arduino board when it's using an external power source
(as opposed to 5 volts from the USB connection or other regulated power source). You
can supply voltage through this pin, or, if supplying voltage via the power jack, access
it through this pin.
● 5V. The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board regulator,
or be supplied by USB or another regulated 5V supply.
● 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is
50 mA.
● GND. Ground pins.
Memory
The ATmega2560 has 256 KB of flash memory for storing code (of which 8 KB is used for
the bootloader), 8 KB of SRAM and 4 KB of EEPROM (which can be read and written with the
EEPROM library).
● Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX)
and 16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit
(TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the
ATmega8U2 USB-to-TTL Serial chip.
● External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5),
19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). These pins can be
configured to trigger an interrupt on a low value, a rising or falling edge, or a change
in value. See the attachInterrupt() function for details.
● PWM: 0 to 13. Provide 8-bit PWM output with the analogWrite() function.
● SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI
communication using the SPI library. The SPI pins are also broken out on the ICSP
header, which is physically compatible with the Uno, Duemilanove and Diecimila.
● LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH
value, the LED is on, when the pin is LOW, it's off.
● I2C: 20 (SDA) and 21 (SCL). Support I2C (TWI) communication using the Wire
library (documentation on the Wiring website). Note that these pins are not in the
same location as the I2C pins on the Duemilanove or Diecimila.
The Mega2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024
different values). By default they measure from ground to 5 volts, though is it possible to
change the upper end of their range using the AREF pin and analogReference() function.
● AREF. Reference voltage for the analog inputs. Used with analogReference().
● Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board.
Communication
The Arduino Mega2560 has a number of facilities for communicating with a computer,
another Arduino, or other microcontrollers. The ATmega2560 provides four hardware UARTs
for TTL (5V) serial communication. An ATmega8U2 on the board channels one of these
over USB and provides a virtual com port to software on the computer (Windows machines
will need a .inf file, but OSX and Linux machines will recognize the board as a COM port
automatically. The Arduino software includes a serial monitor which allows simple textual
data to be sent to and from the board. The RX and TX LEDs on the board will flash when
data is being transmitted via the ATmega8U2 chip and USB connection to the computer (but
not for serial communication on pins 0 and 1).
A SoftwareSerial library allows for serial communication on any of the Mega2560's digital
pins.
The ATmega2560 also supports I2C (TWI) and SPI communication. The Arduino software
includes a Wire library to simplify use of the I2C bus; see the documentation on the Wiring
website for details. For SPI communication, use the SPI library.
Programming
The Arduino Mega can be programmed with the Arduino software (download). For details,
see the reference and tutorials.
The ATmega2560 on the Arduino Mega comes preburned with a bootloader that allows
you to upload new code to it without the use of an external hardware programmer. It
communicates using the original STK500 protocol (reference, C header files).
You can also bypass the bootloader and program the microcontroller through the ICSP (In-
Circuit Serial Programming) header; see these instructions for details.
The Mega2560 is designed to be compatible with most shields designed for the Uno,
Diecimila or Duemilanove. Digital pins 0 to 13 (and the adjacent AREF and GND pins),
analog inputs 0 to 5, the power header, and ICSP header are all in equivalent locations.
Further the main UART (serial port) is located on the same pins (0 and 1), as are external
interrupts 0 and 1 (pins 2 and 3 respectively). SPI is available through the ICSP header on
both the Mega2560 and Duemilanove / Diecimila. Please note that I2C is not located on the
same pins on the Mega (20 and 21) as the Duemilanove / Diecimila (analog inputs 4 and 5).
A LPHANUMERIC L
LPHANUMERIC CD DISPL
LCD ISPLAAY (16 X 2)
Order Code
LED008 16 x 2 Alphanumeric Display
FRM010 Serial LCD Firmware (optional)
Contents
1 x 16x2 Alphanumeric Display
1 x data booklet
Introduction
Alphanumeric displays are used in a wide range of applications, including palmtop
computers, word processors, photocopiers, point of sale terminals, medical
instruments, cellular phones, etc. The 16 x 2 intelligent alphanumeric dot matrix
display is capable of displaying 224 different characters and symbols. A full list of
the characters and symbols is printed on pages 7/8 (note these symbols can vary
between brand of LCD used). This booklet provides all the technical specifications
for connecting the unit, which requires a single power supply (+5V).
Further Information
Available as an optional extra is the Serial LCD Firmware, which allows serial
control of the display. This option provides much easier connection and use of the
LCD module. The firmware enables microcontrollers (and microcontroller based
systems such as the PICAXE) to visually output user instructions or readings onto
an LCD module. All LCD commands are transmitted serially via a single
microcontroller pin. The firmware can also be connected to the serial
port of a computer.
serout 7,T2400,(“Hello”)
Electrical Characteristics
Timing Characteristics
Timing Chart
Instructions
Features Description
! ULTRA BRIGHTNESS.
The Super Bright Red source color devices are made with
! BOTH DIFFUSED AND WATER CLEAR LENS ARE
AVAILABLE. Gallium Aluminum Arsenide Red Light Emitting Diode.
! OUTSTANDING MATERIAL EFFICIENCY. The Super Bright Green source color devices are made
! RELIABLE AND RUGGED.
with Gallium Phosphide Green Light Emitting Diode.
! IC COMPATIBLE/LOW CURRENT CAPABILITY.
Package Dimensions
Notes:
1. All dimensions are in millimeters (inches).
2. Tolerance is ±0.25(0.01") unless otherwise noted.
3. Lead spacing is measured where the lead emerge package.
4. Specifications are subject to change without notice.
Note:
1. θ1/2 is the angle from optical centerline where the luminous intensity is 1/2 the optical centerline value.
P ar am e t e r S u p er B r i g h t R ed Su p er B r ig h t Gr een Un it s
DC Forward Current 30 25 mA
Reverse Voltage 5 5 V
Notes:
1. 1/10 Duty Cycle, 0.1ms Pulse Width.
2. 4mm below package base.
www.Jameco.com ✦ 1-800-831-4242
The content and copyrights of the attached
material are the property of its owner.
RF-370CA
Typical Applications Audio and Visual Equipment : CD Player / DVD Player / VCR
Jameco Part Number 238473
OUTPUT: APPROX 0.6W~2.0W Precious metal-brush motors
UNIT: MILLIMETERS
ø1.2 HOLE
DIRECTION OF ROTATION
3.9
43.0 REF.
0.3 2.0
10.5 30.8
25° 2° R
1.7 1.7 EF.
RED MARK
(+)
ø24.4
ø6.45
18.3
ø6.45
ø2.0
17.
(–)
0
h
h
50 1.0 5,000
50 0.50 2,000
N
6
N 1.0
Is
25 0.5 2,500
25 0.25 1,000 .32
Is 0
I
Ts
18
.3
I Ts
8.8
2
10 [mN·m] 20
EFFICIENCY [%]
5 [mN·m] 10
EFFICIENCY [%]
SPEED [r/min]
CURRENT [A]
SPEED [r/min]
CURRENT [A]
Headquarters 430 Matsuhidai, Matsudo-shi, Chiba-ken, 270-2280 Japan Tel:81-47-384-9523 Fax:81-47-385-2026 (Sales Dept.)
L293D
® L293DD
ORDERING NUMBERS:
DESCRIPTION
The Device is a monolithic integrated high volt- L293DD L293D
age, high current four channel driver designed to
accept standard DTL or TTL logic levels and drive
inductive loads (such as relays solenoides, DC
and stepping motors) and switching power tran-
sistors.
To simplify use as two bridges each pair of chan-
nels is equipped with an enable input. A separate The L293D is assembled in a 16 lead plastic
supply input is provided for the logic, allowing op- packaage which has 4 center pins connected to-
eration at a lower voltage and internal clamp di- gether and used for heatsinking
odes are included. The L293DD is assembled in a 20 lead surface
This device is suitable for use in switching appli- mount which has 8 center pins connected to-
cations at frequencies up to 5 kHz. gether and used for heatsinking.
BLOCK DIAGRAM
SO(12+4+4) Powerdip(12+2+2)
THERMAL DATA
Symbol Decription DIP SO Unit
Rth j-pins Thermal Resistance Junction-pins max. – 14 °C/W
Rth j-amb Thermal Resistance junction-ambient max. 80 50 (*) °C/W
Rth j-case Thermal Resistance Junction-case max. 14 –
(*) With 6sq. cm on board heatsink.
2/7
L293D - L293DD
3/7
L293D - L293DD
Figure 2: Junction to ambient thermal resistance vs. area on board heatsink (SO12+4+4 package)
4/7
L293D - L293DD
mm inch
DIM. OUTLINE AND
MIN. TYP. MAX. MIN. TYP. MAX. MECHANICAL DATA
a1 0.51 0.020
b 0.50 0.020
D 20.0 0.787
E 8.80 0.346
e 2.54 0.100
e3 17.78 0.700
F 7.10 0.280
I 5.10 0.201
L 3.30 0.130
Powerdip 16
Z 1.27 0.050
5/7
L293D - L293DD
mm inch
DIM. OUTLINE AND
MECHANICAL DATA
MIN. TYP. MAX. MIN. TYP. MAX.
e 1.27 0.050
L
h x 45˚
B e K A1 C
H
20 11
1 0
1
SO20MEC
6/7
L293D - L293DD
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is
granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specification mentioned in this publication are
subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products
are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics
© 2003 STMicroelectronics – Printed in Italy – All Rights Reserved
STMicroelectronics GROUP OF COMPANIES
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco -
Singapore - Spain - Sweden - Switzerland - United Kingdom - United States.
http://www.st.com
7/7
MG996R High Torque
Metal Gear Dual Ball Bearing Servo
This High-Torque MG996R Digital Servo features metal gearing resulting in extra high 10kg
stalling torque in a tiny package. The MG996R is essentially an upgraded version of the
famous MG995 servo, and features upgraded shock-proofing and a redesigned PCB and IC
control system that make it much more accurate than its predecessor. The gearing and motor
have also been upgraded to improve dead bandwith and centering. The unit comes complete
with 30cm wire and 3 pin 'S' type female header connector that fits most receivers, including
Futaba, JR, GWS, Cirrus, Blue Bird, Blue Arrow, Corona, Berg, Spektrum and Hitec.
This high-torque standard servo can rotate approximately 120 degrees (60 in each direction).
You can use any servo code, hardware or library to control these servos, so it's great for
beginners who want to make stuff move without building a motor controller with feedback &
gear box, especially since it will fit in small places. The MG996R Metal Gear Servo also
comes with a selection of arms and hardware to get you set up nice and fast!
Specifications
• Weight: 55 g
• Dimension: 40.7 x 19.7 x 42.9 mm approx.
• Stall torque: 9.4 kgf·cm (4.8 V ), 11 kgf·cm (6 V)
• Operating speed: 0.17 s/60º (4.8 V), 0.14 s/60º (6 V)
• Operating voltage: 4.8 V a 7.2 V
• Running Current 500 mA – 900 mA (6V)
• Stall Current 2.5 A (6V)
• Dead band width: 5 µs
• Stable and shock proof double ball bearing design
• Temperature range: 0 ºC – 55 ºC
Technical Data Sheet
3mm Silicon PIN Photodiode T-1
PD204-6C/L3
Features
․Fast response time
․High photo sensitivity
․Small junction capacitance
․Pb free
Descriptions
PD204-6C/L3 is a high speed and high sensitive PIN
photodiode in a standard 3Φplastic package. Due to its
water clear epoxy the device is sensitive to visible
and infrared radiation.
Applications
․Automatic door sensor
․Camera
․Game machine
․High speed photo detector
Ee=5mW/cm2
Open-Circuit Voltage VOC --- 0.44 --- V
λp=940nm
Ee=1mW/cm2
Short- Circuit Current ISC --- 10 --- μA
λp=940nm
Ee=1mW/cm2
Reverse Light Current IL λp=940nm --- 10 --- μA
VR=5V
Ee=0mW/cm2
Reverse Dark Current ID --- --- 10 nA
VR=10V
Ee=0mW/cm2
Reverse Breakdown Voltage BVR 32 170 --- V
IR=100μA
Ee=0mW/cm2
Total Capacitance Ct VR=5V --- 10 --- pF
f=1MHz
Rise Time tr VR=10V --- 10 ---
nS
RL=100Ω
Fall Time tf --- 10 ---
200 1.0
O
Ta=25 C
150 0.8
0.6
100
0.4
50
0.2
0 0
-25 0 25 50 75 85 100 100 300 500 700 900 1100 1300
1000 20
15
100
10
10
5
VR=5V
VR=10V
1 0
20 40 60 80 100 0.5 1.0 1.5 3.0
2
-1
20 10
-2
10 10
-3
0 10 1 2 3 4 5
0.1 1 10 100 10 10 10 10 10
Notes
1. Above specification may be changed without notice. EVERLIGHT will reserve authority on
material change for above specification.
2. When using this product, please observe the absolute maximum ratings and the instructions
for using outlined in these specification sheets. EVERLIGHT assumes no responsibility for
any damage resulting from use of the product which does not comply with the absolute
maximum ratings and the instructions included in these specification sheets.
3. These specification sheets include materials protected under copyright of EVERLIGHT
corporation. Please don’t reproduce or cause anyone to reproduce them without EVERLIGHT’s
consent.
Authorized Distributor
Everlight:
EL-PD204-6C/L3