scitari Posted July 23, 2023 Share Posted July 23, 2023 Here is a project to learn how to send binary data out through the Atari joystick port using the PIA chip. These bits can then be read by an Arduino microcontroller. Use an Arduino to Read Digital Output from an Atari 8-Bit Computer Joystick Port (1-2 hours) – Atari Projects 3 Quote Link to comment Share on other sites More sharing options...
E474 Posted July 23, 2023 Share Posted July 23, 2023 Nice project! You might want to consider buying the DB-9 connectors separately instead of cutting off the joystick cord, Mauser sell them for less than 40 eurocents each (over here), AliExpress is probably even cheaper. 1 Quote Link to comment Share on other sites More sharing options...
Mathy Posted July 23, 2023 Share Posted July 23, 2023 Hello guys IIRC @freetz did something similar. Sincerely Mathy 1 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted July 24, 2023 Share Posted July 24, 2023 I built my own Arduino joystick/joypad controller using the USB HAT, it's all I use on my 8 bits allows me to use several different USB types of controllers. I later upgraded the program to use a USB keyboard via Joystick port too, that's the nice thing about the Arduino it's still 5V and doesn't need a voltage convertor. 3 Quote Link to comment Share on other sites More sharing options...
+David_P Posted July 24, 2023 Share Posted July 24, 2023 Years ago I found online (somewhere!) a STICK(1) to STICK(1) interface; as I recall, the TRIG line was used to signal data waiting. 1 Quote Link to comment Share on other sites More sharing options...
+slx Posted July 25, 2023 Share Posted July 25, 2023 There are DB-9 to breadboard adapters. I bought some from an EBay seller called dorktronic after hearing about them on ANTIC and while he doesn‘t offer them currently, he might still sell them if you message him. 4 Quote Link to comment Share on other sites More sharing options...
dukes909 Posted August 21, 2023 Share Posted August 21, 2023 On 7/23/2023 at 4:26 PM, scitari said: Here is a project to learn how to send binary data out through the Atari joystick port using the PIA chip. These bits can then be read by an Arduino microcontroller. Use an Arduino to Read Digital Output from an Atari 8-Bit Computer Joystick Port (1-2 hours) – Atari Projects In your article you said "This project worked well on my Atari 800XL. However, I could not get it to work on two different Atari 800s. I am not sure why." While the joystick ports operate the same on the 800 & 800XL for game controllers, output is a little different. Also, on the 800 PORTA (joystick ports 1 & 2) operates a little differently than on PORTB(joystick ports 3 & 4). You might try the program over again on the 800 using PORTB (with joystick port 3) and I think you will see that it works! Instead of address 54018 use 54019 and instead of address 54016 use 54017. See this thread for a better explanation of the differences between PORTA & PORTB: You might also be interested in this old article that does some nifty tricks with the joystick ports: https://www.atariarchives.org/creativeatari/Interfacing_Your_Atari.php Cheers 2 1 Quote Link to comment Share on other sites More sharing options...
scitari Posted September 2, 2023 Author Share Posted September 2, 2023 On 8/21/2023 at 12:10 PM, dukes909 said: In your article you said "This project worked well on my Atari 800XL. However, I could not get it to work on two different Atari 800s. I am not sure why." While the joystick ports operate the same on the 800 & 800XL for game controllers, output is a little different. Also, on the 800 PORTA (joystick ports 1 & 2) operates a little differently than on PORTB(joystick ports 3 & 4). You might try the program over again on the 800 using PORTB (with joystick port 3) and I think you will see that it works! Instead of address 54018 use 54019 and instead of address 54016 use 54017. See this thread for a better explanation of the differences between PORTA & PORTB: You might also be interested in this old article that does some nifty tricks with the joystick ports: https://www.atariarchives.org/creativeatari/Interfacing_Your_Atari.php Cheers Many thanks! 1 Quote Link to comment Share on other sites More sharing options...
dukes909 Posted September 2, 2023 Share Posted September 2, 2023 2 hours ago, scitari said: Many thanks! Love your site, by the way! 1 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted September 2, 2023 Share Posted September 2, 2023 On 8/21/2023 at 8:10 PM, dukes909 said: You might also be interested in this old article that does some nifty tricks with the joystick ports: Just had a look at your site, you might want to add a diode across the relay coil in the diagram "Figure 4. 7407 Interface (1 gate)." back EMF from the relay coil when it de-energises can easily kill the output transistor in the 7407. Cathode to the +5V rail Anode to the gate output. 3 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.