HARDWARE
author Michael Smith <smithm@netapps.com.au>
Mon Apr 05 12:49:10 2010 +1000 (2010-04-05)
changeset 31 4ecb9d4f1985
parent 1 2a0115fd9243
permissions -rw-r--r--
Elbow input works
smithm@0
     1
--------------------------------------------------------------------------
smithm@0
     2
Robot arm control
smithm@0
     3
smithm@0
     4
Copyright (C) 2010 Michael Smith
smithm@0
     5
smithm@0
     6
This is free software; you can redistribute it and/or modify it under the
smithm@0
     7
terms of the GNU General Public License as published by the Free Software
smithm@0
     8
Foundation; either version 3 of the License, or (at your option) any later
smithm@0
     9
version. See COPYRIGHT for details.
smithm@0
    10
--------------------------------------------------------------------------
smithm@0
    11
atmel atmeg8 28 pin
smithm@0
    12
smithm@0
    13
PIN		I/O		NAME		DESCRIPTION    
smithm@0
    14
1		IN		PC6			Reset          
smithm@1
    15
2				PD0			MOTOR1+
smithm@1
    16
3				PD1			MOTOR1-
smithm@0
    17
4		IN		PD2	INT0	
smithm@0
    18
5		IN		PD3 INT1    
smithm@1
    19
6		OUT		PD4			MOTOR2+
smithm@0
    20
7				VCC			+5V regulated
smithm@0
    21
8				GND			0V             
smithm@0
    22
9				PB6			XTAL		
smithm@0
    23
10				PB7			XTAL           
smithm@1
    24
11		OUT		PD5			MOTOR2-
smithm@1
    25
12		OUT		PD6			MOTOR3+
smithm@1
    26
13		OUT		PD7			MOTOR3-
smithm@1
    27
14		OUT		PB0			MOTOR4+
smithm@1
    28
15		OUT		PB1	        MOTOR4-
smithm@1
    29
16		OUT		PB2	        MOTOR5+
smithm@0
    30
17		OUT		PB3	MOSI    Button0
smithm@0
    31
18				PB4	MISO    Button1
smithm@0
    32
19				PB5	SCK     Button2
smithm@0
    33
20				AVCC		+5V isolated   
smithm@0
    34
21				AREF		+5V            
smithm@0
    35
22				GND			0V             
smithm@1
    36
23		OUT		PC0			MOTOR5-
smithm@1
    37
24		OUT		PC1			MOTOR6+
smithm@1
    38
25		OUT		PC2	        MOTOR6-
smithm@6
    39
26		OUT		PC3	        PUSH+
smithm@6
    40
27				PC4         PUSH-
smithm@1
    41
28				PC5	ADC5	Drive current