1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-15 13:45:06 -05:00
Arduino-USB-HID-RetroJoysti.../C64_1351_Mouse/README.md

51 lines
2.1 KiB
Markdown
Raw Normal View History

2017-06-01 10:09:41 -04:00
## USB -> 1351 (C64) mouse adapter
2017-06-01 10:09:08 -04:00
2017-06-01 10:21:59 -04:00
#### Pin 9 and 10 needed for TIMER1 - Move SS and INT of USB host shield library away
2017-06-01 10:00:10 -04:00
2017-05-30 12:31:59 -04:00
C:\Users\xxxxx\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0\UsbCore.h:
2017-06-01 10:00:10 -04:00
```
//typedef MAX3421e<P10, P9> MAX3421E;
2017-06-01 10:21:27 -04:00
//Arduino Pro Micro SS=A0(P18), INT=A1(P19):
2017-05-30 12:31:59 -04:00
typedef MAX3421e<P18, P19> MAX3421E;
2017-05-30 12:32:52 -04:00
```
2017-06-01 10:00:10 -04:00
#### Joystick port -> Arduino
2017-06-01 10:22:49 -04:00
- 9 (POTX) -> 10k resistor -> 9 (OC1A)
2017-06-01 10:22:12 -04:00
- 9 (POTX) -> Arduino Pro Micro: 4, Arduino Uno: 8 (ICP1)
2017-06-01 10:22:49 -04:00
- 5 (POTY) -> 10k resistor -> 10 (OC1B)
2017-06-01 10:23:20 -04:00
- 6 (FIRE, left mouse button) -> 5
- 1 (UP, right mouse button) -> 6
2017-06-01 10:00:10 -04:00
2017-06-01 10:02:56 -04:00
#### USB Host Shield (3.3V) -> Arduino
2017-06-01 10:03:50 -04:00
- SS -> A0 (Arduino Pro Micro) (check UsbCore.h) (3.3V!)
- INT -> A1 (Arduino Pro Micro) (check UsbCore.h) (3.3V!)
- MOSI -> 11 (Arduino Uno), 16 (Arduino Pro Micro) (3.3V!)
- MISO -> 12 (Arduino Uno), 14 (Arduino Pro Micro) (3.3V!)
- CLK -> 13 (Arduino Uno), 15 (Arduino Pro Micro) (3.3V!)
- RST -> RST (3.3V!)
2017-06-01 10:00:10 -04:00
- GND -> GND
- VCC -> 3.3V
- VBUS -> 5V (cut trace from VBUS-pad to resistor!)
2017-06-01 10:24:57 -04:00
!: MOSI, MISO and CLK pins are wrongly marked in USB Host Shield DuinoFun UHS mini v2 -module!
2017-06-01 10:00:10 -04:00
2017-06-01 10:03:22 -04:00
#### Links
- http://www.zimmers.net/anonftp/pub/cbm/documents/projects/interfaces/mouse/Mouse.html
- http://asdasd.rpg.fi/~svo/%5bm%5douse/
- https://ist.uwaterloo.ca/~schepers/MJK/pics/joyports.gif
2017-06-01 10:06:44 -04:00
- Trace cut from USB Host Shield mini: https://geekhack.org/index.php?topic=80421.0
2017-06-01 13:22:47 -04:00
- https://gammon.com.au/interrupts
- http://www.avrbeginners.net/architecture/timers/timers.html
2017-06-01 10:00:10 -04:00
2017-06-01 10:23:48 -04:00
### Hardware
2017-06-01 10:02:56 -04:00
I used Arduino Pro Micro and module which have AMS1117 3.3V regulator and 8 bidirectional voltage converters.
2017-06-01 10:09:41 -04:00
2017-06-01 10:20:07 -04:00
#### Arduino
2017-06-01 10:09:41 -04:00
![Arduino Pro Micro](https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/raw/master/Images/Arduino_ProMicro.jpg)
2017-06-01 10:20:07 -04:00
#### USB Host Shield
2017-06-01 10:09:41 -04:00
![USB Host Shield DuinoFun UHS mini v2](https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/raw/master/Images/USB_Host_Shield_DuinoFun_UHS_mini_v2.jpg)
2017-06-01 10:20:07 -04:00
#### Level converter with regulator
2017-06-01 10:09:41 -04:00
![Level converter with AMS1117](https://raw.githubusercontent.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/master/Images/Levelconverter_with_AMS1117.jpg)