Open latest posts
motion simulator DIY community 

Mjoy16 USB AVR Joystick

Simulatoren Peripherie wie z.b. Tachos, Displays, Lenkräder etc. - Simulator peripherals like gauges, displays, wheels etc.
on 03.05.2009, 19:52

Re: Mjoy16 USB AVR Joystick

Postby Frakk on 03.05.2009, 19:52

Senator, if we're using the original layout we dont need the supply pins. I just thought it would be a nice feature for additional things like switches with leds or additional parts on a dashboard.

George, the variable pot besides the analog inputs is for the analog reference voltage adjustment. In the original design Vcc or 5V is the only reference which limits the inputs. With this adjustment you can turn a 270deg pot into 90deg or whatever you need, without loosing resolution.
User avatar
Frakk
X-SIMER
 
Posts: 1148
Joined: 15.04.2009, 19:57
Local time: 24.05.2013, 03:48
Obtained thanks: 201


on 03.05.2009, 21:02
Re: Mjoy16 USB AVR Joystick

Postby Senetor on 03.05.2009, 21:02

Frakk,
the MJoy16 gets it's power from the USB port on the computer, and can only supply between 100 to 500 milliamps, depending on the port, so it is not a good idea to power LED's and extra switches from it. You are better to supply your extra devices from another power source that can handle the extra load.

Regards Senetor.
Senetor
X-SIMER
 
Posts: 90
Joined: 23.10.2008, 18:37
Location:Australia Australia
Local time: 24.05.2013, 18:48
Obtained thanks: 34


on 04.05.2009, 20:00
Re: Mjoy16 USB AVR Joystick

Postby Frakk on 04.05.2009, 20:00

500mA is still enough for a lot of applications. I agree that a lot of ppl wont really need it and an external supply is a better choice. Time and testing in simulators will tell if it is really needed or not. Others please add your opinion too.
User avatar
Frakk
X-SIMER
 
Posts: 1148
Joined: 15.04.2009, 19:57
Local time: 24.05.2013, 03:48
Obtained thanks: 201


on 09.05.2009, 00:35
Re: Mjoy16 USB AVR Joystick

Postby Senetor on 09.05.2009, 00:35

All in One, measures 143mm x 86mm.



Regards Senetor.
Senetor
X-SIMER
 
Posts: 90
Joined: 23.10.2008, 18:37
Location:Australia Australia
Local time: 24.05.2013, 18:48
Obtained thanks: 34
The following user would like to thank Senetor for this post
tronicgr


on 10.05.2009, 09:06
Re: Mjoy16 USB AVR Joystick

Postby Frakk on 10.05.2009, 09:06

Looking good! Now its time to build and test it! I will be getting the parts soon to hook it up on a protoboard, hopefully I can make the board too.
User avatar
Frakk
X-SIMER
 
Posts: 1148
Joined: 15.04.2009, 19:57
Local time: 24.05.2013, 03:48
Obtained thanks: 201


on 14.05.2009, 13:55
Re: Mjoy16 USB AVR Joystick

Postby GeorgeBoles on 14.05.2009, 13:55

Hello Chaps,

I have not quite got my head around the "diodes and matrix" thing. I am just trusting everyone's advice.

I have been busy designing my version of the project. I am going to have to use mainly hard-wiring of the switches in my old CH Joystick and throttle (otherwise there will be too many wires between the joystick and the throttle), but I will have the option of a smaller matrix for later additions.

My question:

On the matrix diagram it appears that the diodes only go on the "columns", with the anode of the

diode facing the column and cathode facing the switch. In other words the diode comes on the postive

side of the switch, like this:

Column --- (+Diode-) ------- Switch ------ Row (As in Mindaugas' original diagram)


Does it matter if I put the diode on the "negative" side of the switch does it, as long as the diodes

are still "anode to Column" and "Cathode to Row"? Or like this:

Column --- Switch------- (+Diode-) ------ Row


Would this option work, or would I get "phantom" button presses coming up?

All advice greatfully appreciated,

Regards,
George
User avatar
GeorgeBoles
full member
 
Posts: 63
Joined: 27.04.2009, 11:39
Local time: 24.05.2013, 18:48
Obtained thanks: 1 time


on 14.05.2009, 16:05
Re: Mjoy16 USB AVR Joystick

Postby Frakk on 14.05.2009, 16:05

Hi George

The position of the diodes doesn't matter, only the polarity. The matrix key system is basically a scanning operation. The IC progressively outputs a voltage (high) on the columns, and scans on the row's for any high input. If a voltage input is detected, it records the column that the output was high on, and the row that the input came in at that particular moment. These two numbers define the exact switch that was pressed and this data will be sent to the pc. The diodes will prevent any reversed voltage and current, and also introduce a .7V forward drop to block any noise and interference under this voltage.
User avatar
Frakk
X-SIMER
 
Posts: 1148
Joined: 15.04.2009, 19:57
Local time: 24.05.2013, 03:48
Obtained thanks: 201


on 14.05.2009, 16:35
Re: Mjoy16 USB AVR Joystick

Postby Senetor on 14.05.2009, 16:35

Here's a couple of diagrams,



Regards Senetor.
Senetor
X-SIMER
 
Posts: 90
Joined: 23.10.2008, 18:37
Location:Australia Australia
Local time: 24.05.2013, 18:48
Obtained thanks: 34
The following user would like to thank Senetor for this post
tronicgr


on 15.05.2009, 21:57
Re: Mjoy16 USB AVR Joystick

Postby Senetor on 15.05.2009, 21:57

All in One MJoy16-16

Updated 11-6-2009

Here are the files.
MJoy16-16 All in One Project.pdf
(450.51 KiB) Downloaded 1174 times

MJoy16-16 All in One Project PCB.pdf
(53.77 KiB) Downloaded 922 times

Rows and Columns.pdf
(172.05 KiB) Downloaded 800 times

MJoy16-16 All in One.rar
(56.66 KiB) Downloaded 701 times

MJoy16-C1 Users Manual.part1.rar
(200 KiB) Downloaded 681 times

MJoy16-C1 Users Manual.part2.rar
(98.02 KiB) Downloaded 610 times

Programming MJoy16.pdf
(196.42 KiB) Downloaded 1112 times

MJoy16-16 Hex v1.3.zip
(7.5 KiB) Downloaded 693 times


Regards Senetor.
Last edited by Senetor on 10.06.2009, 16:05, edited 1 time in total.
Senetor
X-SIMER
 
Posts: 90
Joined: 23.10.2008, 18:37
Location:Australia Australia
Local time: 24.05.2013, 18:48
Obtained thanks: 34


on 16.05.2009, 02:44
A PCB design to put MJoy in CH ProThrottle

Postby GeorgeBoles on 16.05.2009, 02:44

Hi Folks,

This is my project as attached. The board sits within my CH Pro Throttle base. The top 15 pin Dsub takes information from my CH F-16 Fighterstick, the lower one takes information from my rudder pedals and up to 25 other buttons (none of which I have) and the other connectors take the information from the Throttle itself. I think the wiring is correct, but if anyone would like to check it I would appreciate it. (I have yet to join the Ground wire to the USB pins. I also have to put in jumpers to cope with Centre, Mode, and and On/Off button - the last one so that I do not have to connect/disconnect the USB port to work the initialize and re-centre functions.)

I am going to have little flying jumpers (made from ribbon cable) for many of the connections from the 15 pin Dsub connections, especially if I stay with a single sided board.

As for the diodes, you are saying that they are just to help eliminate little spikes as buttons are pressed and released? That would make sense, because otherwise I could see no "logical" reason that we should need them. (Edit: see later posts. The diodes and some "hidden" 10k resistors are very important)

Regards,
George.
Attachments
Last edited by GeorgeBoles on 27.11.2009, 03:46, edited 4 times in total.
User avatar
GeorgeBoles
full member
 
Posts: 63
Joined: 27.04.2009, 11:39
Local time: 24.05.2013, 18:48
Obtained thanks: 1 time



PreviousNext

Similar topics

Return to DIY peripherals


Add this Thread to:
Add this page to Mr. Wong Add this page to Del.icio.us Add this page to Webnews Add this page to Icio Add this page to Oneview Add this page to Linkarena Add this page to Newskick Add this page to Folkd Add this page to Yigg Add this page to Digg Add this page to Reddit Add this page to Simpy Add this page to StumbleUpon Add this page to Slashdot Add this page to Netscape Add this page to Furl Add this page to Yahoo Add this page to Spurl Add this page to Google Add this page to Blinklist Add this page to Blogmarks Add this page to Diigo Add this page to Technorati Add this page to Newsvine Add this page to Blinkbits Add this page to Ma.Gnolia Add this page to Smarking Add this page to Netvouz

Who is online

Users browsing this forum: No registered users and 0 guests

cron