
Fire Bird V ATMEGA2560 Hardware Manual
4. Pin Functionality
Fire Bird V ATMEGA2560 microcontroller adapter board has two microcontrollers.
ATMEGA2560 (master microcontroller) and ATMEGA8 (slave) microcontroller.
ATMEGA2560 communicates with ATMEGA8 using SPI bus.
ATMEGA2560 is interfaced to all the important modules for the robot while ATMEGA8
microcontroller is interfaced with non critical modules such as IR proximity sensors 6, 7, 8,
Robot current sensing (if ACS712 current sensor is installed), extended white line sensor
channels 4, 5, 6, 7 and pin on the servo sensor socket etc.
4.1 ATMEGA2560 (master) microcontroller pin configuration
Pin
No
Pin name
USED FOR
Status
1
(OC0B)PG5
Slave Select (SS) of the SPI expansion port on the main board
(refer to figure 3.5)
--
2
RXD0/PCINT8/PE0
UART 0 receive for XBee wireless module (if installed)
Default
3
TXD0/PE1
UART 0 transmit for XBee wireless module (if installed)
Default
4
XCK0/AIN0/PE2
GPIO* (Available on expansion slot of the microcontroller
socket)
5
OC3A/AIN1/PE3
PWM output for C2 motor drive
Output
6
OC3B/INT4/PE4
External Interrupt for the left motor’s position encoder
Input
7
OC3C/INT5/PE5
External Interrupt for the right motor’s position encoder
Input
8
T3/INT6/PE6
External Interrupt for the C2 motor’s position encoder
Input
9
CLK0/ICP3/INT7/ PE7
External Interrupt for Interrupt switch on the microcontroller
board, External Interrupt for the C1 motor’s position encoder,
Connection to TSOP1738 if pad is shorted, can also be used
as Boot loading switch ********
Input
10
VCC
5V
11
GND
Ground
12
RXD2/PH0
UART 2 receives for USB Communication.
For more details refer to section 3.19.7
Default
13
TXD2/PH1
UART 2 transmit for USB Communication.
For more details refer to section 3.19.7
Default
14
XCK2/PH2
IR proximity sensors 1 to 8 enable / disable.
Turns off these sensors when output is logic 1 *******
Output
15
OC4A / PH3
Sharp IR ranges sensor 1and 5 enable / disable.
Turns off these sensors when output is logic 1 *******
Output
16
OC4B / PH4
Connected to Rx pin of 1
st
Ultrasonic range sensor to trigger
the ultrasonic sensor if sensor is mounted. Also Available on
expansion slot of the microcontroller socket*********
--
17
OC4C / PH5
Available on expansion slot of the microcontroller socket
--
18
OC2B / PH6
Available on expansion slot of the microcontroller socket
--
19
SS/PCINT0/PB0
ISP (In System Programming), SPI Communication with
ATMEGA8 **, Connection to the SPI port on the main board.
Also available on expansion slot of the microcontroller socket
20
SCK/PCINT1/PB1
Output
21
MOSI/PCINT2/PB2
Output
22
MISO/PCINT3/PB3
Input
23
OC2A/PCINT4/PB4
Servo Pod GPIO
--
24
OC1A/PCINT5/PB5
PWM for Servo motor 1. ***
Output
25
OC1B/PCINT6/PB6
PWM for Servo motor 2. ***
Output
26
OC0A/OC1C/PCINT7/PB7
PWM for Servo motor 3. ***
Output
© NEX Robotics Pvt. Ltd. and ERTS Lab, CSE, IIT Bombay, INDIA 78