Mjoy AVR USB Joystick
Mjoy AVR USB Joystick
Mjoy AVR USB Joystick
Top layer
MJoy
by Mindaugas Milasauskas
mindaug@mindaugas.com http://www.mindaugas.com/ 2004
PD0 S1 PD1 S2 PB2 S3 PD3 S4 PD4 S5 D7 D8 D9 S12 S13 S14 D14 D15 D16 S19 S20 S21 D21 D22 D23 S22 S23 S24 D28 D6 S11 D13 S18 D20 LEFT D27 D5 S10 D12 S17 D19 DOWN D26 D4 S9 D11 S16 D18 RIGHT D25 D3 S8 D10 S15 D17 UP D24 Hatswitch Buttons
VCC C1 10uF GND J1 VBUS DD+ GND 1 2 3 4 R2 4.7k GND GND D1 3.3V GND D2 3.3V R3 82 R1 2.2k
D3-D30 1N4148
PB3 11 pin buttons connector R4 82 11 pin buttons socket PB2 PB3 PB4 PB5 Q1 C2 12MHz 15pF 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 GND C3 15pF GND PD0 PD1 PD3 PD4 PD5 PD6 PD7 JP1 1 2 3 4 5 ISP connector JP2 1 2 3 4 5 ISP socket R5 R6 R7 R8 330 330 330 330 PB4 PB3 PB5 ATmega8-16PI 14 15 16 17 18 19 9 10 2 3 4 5 6 11 12 13 PB0 (ICP) PB1 (OC1A) PB2 (SS/OC1B) PB3 (MOSI/OC2) PB4 (MISO) PB5 (SCK) PB6 (XTAL1/TOSC1) PB7 (XTAL2/TOSC2) PD0 (RXD) PD1 (TXD) PD2 (INT0) PD3 (INT1) PD4 (XCK/T0) PD5 (T1) PD6 (AIN0) PD7 (AIN1) PC0 (ADC0) PC1 (ADC1) PC2 (ADC2) PC3 (ADC3) PC4 (ADC4/SDA) PC5 (ADC5/SCL) PC6 (RESET) VCC AVCC AREF GND GND U1
PB4
PB5 AVCC
PD7
Pots sockets
JP3 1 2 3
Pots connectors
JP9 1 2 3 JP10 1 2 3 JP11 1 2 3 JP12 1 2 3 JP13 1 2 3 JP14 1 2 3 Dial R14 10...20K Slider R13 10...20K Throttle R12 10...20K Rudder R11 10...20K Y R10 10...20K X R9 10...20K
USB Connector
GND
GND
JP4 1 2 3
GND
J2
JP5 1 2 3
C5 0.1uF
JP6 1 2 3
GND
GND
GND
May be any 3.3V zener diode. May be any low power silicon diode.
10k is recommended but potentiometer of any greater value up to 100k may be used. Polar capacitor.
Or some similar value. Can use a simple wire instead if inductor is not available. May be omitted if USB cable is soldered directly into PCB. Or some other pair with more than 5 pins. Or some other pair with more than 3 pins. If buttons are connected to PCB through socket any 11 or more pin socket/connector pair may be used.