Code Monkey home page Code Monkey logo

pathfindercast / genesistoxbox360dual Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arpruss/genesistousbdual

1.0 0.0 0.0 28.76 MB

Read Sega Genesis (Mega Drive) controllers with a STM32F103C8T6 "blue pill".

License: MIT License

C++ 27.65% C 64.83% Assembly 1.32% Makefile 0.41% Processing 0.08% Java 2.42% CSS 0.05% Python 0.78% Awk 0.01% GDB 0.02% NASL 0.07% Shell 0.23% Batchfile 0.05% M4 0.06% Roff 0.84% HTML 1.17%
arduino sega-genesis sega-mega-drive

genesistoxbox360dual's Introduction

SegaController

Read Sega Genesis (Mega Drive) controllers with a STM32F103C8T6 "blue pill".

Installation

Download GenesisToUSBDual.zip which has the source code, arduino hardware drivers, Windows drivers, and firmware programing software.

Download and install the Arduino IDE. Installing from windows app store has limitations that will not work in this scenario.

Setup Arduino Environment

  1. Open the Arduino IDE
  2. Open "File > Preferences"
  3. Add https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/main/package_stmicroelectronics_index.json to Additional Boards Manager URLs
  4. Open "Tools > Board > Board Manager"
  5. Install STM32 MCU based boards
  6. Open "Tools > Board > Board Manager"
  7. Install Arduino SAM boards (Cortex-M3)

Driver Installation

  1. Unzip the GenesisToUSBDual.zip
  2. From the Install folder copy Arduino_STM32 to your Arduino hardware folder, typically at C:\Program Files (x86)\Arduino\hardware or <user>\Documents\arduino\hardware
  3. From Arduino_STM32\drivers\win folder run the install_drivers.bat file. This will take a while to run and accept all of the prompts.

Install STLink Drivers the Bootloader (optional)

If Windows does not detect the ST-Link usb device, you will need to download and install the drivers. Run the SetupSTM32CubeProgrammer_win64.exe after registering and downloading.

Usage

The controller pins are as follows, looking face on to the (female) DB9 plug:

5 4 3 2 1
 9 8 7 6

STM32 Wiring Diagram

  1. Connect controller pin 5 to +5VCC
  2. Connect controller pin 8 to GND
  3. Connect pins 1,2,3,4,6,9 to a digital I/O
  4. Connect pin 7 to the digital I/O pin 8 on your Arduino

Attribution

Modified and Published under MIT license Copyright (c) 2017 Jon Thysell For details on how SegaController reads the controller's state, see How To Read Sega Controllers.

genesistoxbox360dual's People

Contributors

arpruss avatar pathfindercast avatar

Stargazers

claire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.