![]() |
arduino IDEArduino
|
Sexmachine
"SEXMACHNE" is a implementation of the Classic Arcade LightGun for playing games on a Raspberry PI connected to a legacy arcade monitor, using a modified Advance Mame Emulator and an ESP32.
The classic arcade lightgun is still being manufactured by SUZOHAPP.
You can find more information about it here.
You can see it in action here:
The Concept
The concept behind this setup is the same used on most of the LightGun arcade games, such as Operation Wolf, Lethal Enforcers, Area 15 and others:
- When the gun trigger is pressed, the game paints a whole white frame;
- The CRT monitor starts painting it from the top left of the corner, to right bottom corner;
- The game starts counting;
- Inside the LightGun there's a double convex lens converging the light focus to phototransistor; and
- When the light hits the phototransistor, the position is calculated according to the registered counter.
However for a wider compatibility SEXMACHINE's setup is slightly different:
- The Sexmachine's Advance Mame monitors the gun trigger via GPIO;
- When the trigger is pressed, the emulator waits for a VSync, paints a white frame, then wait for VSync again.
- The ESP32 have Interrupts attached to the VSync and HSync video pulses, along with the optical sensor from the gun; and
- The ESP32 monitors every scanline and, in case of a hit, notifies the emulator via serial communication for it to translate the right gun shot position to the game.
For detailed instructions and documentation, please visit the Projet's Github page:
https://github.com/ninomegadriver/lightgun/tree/main/sexmachine
Sexmachine
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(1)
- Likes(2)

- Mitch AltmanFeb 09,20230 CommentsReply
-
Dennis Watterston Dec 19,2023
-
huifeng yao Sep 08,2023
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10

-
8design
-
7usability
-
8creativity
-
6content
More by Antonio Tornisiello
-
N64 to Jamma The N64Jamma emulates two gamepads mapped to a standard Jamma edge connector. Buttons are mapped to ...
-
Sexmachine "SEXMACHNE" is a implementation of the Classic Arcade LightGun for playing games on a Raspberry PI c...
-
Jamma Development Board Generic Jamma development board featuring:Slots for two microcontrollers or logic ICsThree DB9 slots...
-
PiPico Jamma A Jamma arcade board for Raspberry Pi 3/4Main features:Fully mapped Jamma buttons + kick buttons emu...
-
-
Commodore 64 1541-II 1581 Floppy Disk Drive C64 Power Supply Unit USB-C 5V 12V DIN connector 5.25
421 1 4 -
-
-
-
-
-
-
-
Modifying a Hotplate to a Reflow Solder Station
1272 1 6 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
721 0 1 -