From X-SIM DIY motion simulator community - international wiki
Contents |
Introduction:
MJoy16 board is the main board which has USB interface as well as analogue and digital interfaces to other peripheral devices. It can handle potenciometers (10k up to 100k) or hall sensors.
Main features:
Analog imputs:
4x10bit
2x8bit
Digital imputs:
24 buttons
4-way HAT
MJoy schematic:
Printed circuit boards:
Bottom layer:
Top layer:
You can replace it by wire links.Top silk layer:
Part list:
| Component | Value | Quantity | Designator | Remarks |
|---|---|---|---|---|
| Microcontroler | ATMEGA8-16PI | 1 | U1 | |
| Crystal oscilator | 12 MHz | 1 | Q1 | |
| Zener diode | 1N4733 | 2 | D1,D2 | May be any 3,3V zener diode. |
| Diode | 1N4148 | 28 | D3-D30 | May be any low power silicon diode. |
| Resistor | 2K2 Ohm | 1 | R1 | |
| Resistor | 4K7 Ohm | 1 | R2 | |
| Resistor | 82 Ohm | 2 | R3,R4 | |
| Resistor | 330 Ohm | 4 | R5-R8 | |
| Potenciometr | 10k | 6 | R9-R14 | 10k is recommended but potenciometer of any greater value up to 100k may be used |
| Capacitor | 10pF | 1 | C1 | Polar capacitor |
| Capacitor | 15pF | 2 | C2,C3 | |
| Capacitor | 0,1uF | 3 | C4-C6 | |
| Inductor | 10uH | 1 | L1 | Or some similar value. Can use a simple wire instead if inductor isn't avalibe. |
| Socket | USB type B | 1 | J1 | May be ommitted if USB cabe is soldered directly into PCB. |
| Connector | DB-25 male | 1 | J2 | |
| Socket+Connector | 5-pin | 1 | JP1,JP2 | Or some other pair with more than 5 pins. |
| Socket+Connector | 3-pin | 6 | JP3-JP8 | Or some other pair with more than 3 pins. |
| Socket+Connector | 11-pin | 1 | - | If buttons are connected to PCB trought socket any 11 or more pin socket/connector pair may be used. |
| Button | Pushbutton | 24 | S1-S24 | |
| Hatswitch | Hatswitch | 1 | UP-DOWN-RIGHT-LEFT |
Programming:
Software for programing: PonyProg
Programming Procedure
1. Connect the controller to USB port on your computer. This is needed to provide +5V power supply. Connect the ISP cable to PC printer port . Connect ISP conector to controller.
!!! IMPORTANT !!! There is error in diagram of ISP programing adapter. You must swap pin 10 with pin 7 on printer port.
2. Start PonyProg program. On first start it proposes to make calibration to adjust itself to your PC speed. Let it do it. Alternatively use Setup->Calibration from menu.
3. Make setup of programmer interface using Setup->Interface Setup... Make settings according to picture below.
4. Select ATMega8 chip as the device you want to programm from menu Device->ATMega8 as shown on the picture.
5. Open mjoy.hex file using menu File->Open Program (FLASH) File...
6. Program the chip using Command->Write Program (FLASH) menu.
7. Program the chip configuration bits using Command->Security and Configuration bits... Set flags as shown below and hit Write to program them.
8. Close PonyProg, disconnect the programmer and replug your new megajoystick to USB port.
COM ISP Adapter
If you dont have printer port you can use adapter to serial port.
Diagram
PCB
Layout
Firmwares
Version 1.2
Features:
4x10 bit
2x8 bit
Autocalibration
Version 1.1
Features:
2x10 bit
3x8 bit
Without autocalibration (usable for automobile pedals)
Calibration software
For version 1.2 you must use DIView.zip
For version 1.1 you can use DIView.zip or DXTweak
DXTweak has limitation of 5 axis so can be use only with firmware version 1.1 . It is possible that there is new version which can handle 6 axis.
References:
Original concept by Mindaugas Milasauskas
PBCs by TronicGr











