Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 7 of 104 1 2 5 6 7 8 9 103 104
#4027949 - 10/27/14 06:51 PM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,758
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,758
Internet
WoW! Nice news. thumbsup

Sokol1

Inline advert (2nd and 3rd post)

#4027968 - 10/27/14 08:17 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk




RGB LED strip "ws2811", each LED have individual digital address to set any color.
3 wire connection power/ground and digital control.

#4028164 - 10/28/14 08:56 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk

Last edited by mega_mozg_13; 10/28/14 08:56 AM.
#4033546 - 11/08/14 04:54 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
Mega_mozg, I signed up for this forum with the sole purpose of thanking you for your hard work on the mmjoy platform. I also wanted to ask you about your hall sensor and magnet arrangement. What is your usable range with the sensor/magnet orientation you use (how many steps?). I have a similar arrangement and can only get about 3000 steps

#4034028 - 11/10/14 07:08 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Hi, Euphoria.
Quote:
I have a similar arrangement and can only get about 3000 steps

What type of hall sensor you use?
By my think, 3000 steps it is very good achievement.

#4034175 - 11/10/14 05:08 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
I purchased allegro a1324 sensors from Mouser, and my magnets are removed from tiny motors used in micro helicopter toys. They are about 5mm diameter and 15mm long, and are polarized diametrically. The hall sensor is placed at one end of the magnet with it's top facing it. I am just trying to figure out a way to get the extra ~1000 steps to get closer to full range of the MCP3208. I want to thank you again for your work. I am a stay-at-home dad and have plenty of time to tinker with projects like this.

#4034480 - 11/11/14 05:26 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Euphoria, I understand now.
I have test many times positions hall and magnet, and best is:

with one magnet cube(or ring);


with two flat magnets;

rotate over central pin, and minimum as possible distance between hall and magnet.







Last edited by mega_mozg_13; 11/11/14 05:37 AM.
#4034722 - 11/11/14 06:47 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
Thank you for the information, mega_mozg. Your findings are the same as my own experiments with magnet and sensor orientation. I have another question regarding rotary encoders. I have configured my encoders in mmjoy (three encoders on my throttle) and when I view the outputs thru the program "DIView", I can see the button presses registering for all three encoders. My issue is that when I turn my encoders in a game, sometimes the button presses do not register within the game. It takes sometimes 3 or 4 clicks before one button press is detected. Again, this is only while in game environment, whereas DIView sees every single click as a button press. Can you shed any light on this?

Last edited by Euphoria; 11/11/14 06:50 PM.
#4034933 - 11/12/14 04:26 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Euphoria, try to set debounce interval to minimum.

#4034951 - 11/12/14 06:07 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
Mega_mozg,

Thank you for the reply. I have set my debounce to 1ms and still the same issue. I have done some research today that leads me to believe the issue is because of the short pulse width of the rotary encoders. Looking at the data from DIview, most of the pulses from any of my encoders last less than 20ms, more around 10-15ms. The pulses that do make it thru as a button press in game are over 40ms. I wonder if there is a way to adjust rotary encoder pulse width in the code? I will look into it some more, just wanted to share my findings with you.

#4035144 - 11/12/14 07:38 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Sep 2014
Posts: 32
SolderMonkey Offline
Junior Member
SolderMonkey  Offline
Junior Member

Joined: Sep 2014
Posts: 32
Ari-freakin-zona
Mega_Mozg - First - thanks for putting together such an incredible set of code. I've got a working Thrustmaster FCS and WCS now - for $38 total. I'm 1990s cool again, thanks to your software.

Question though - I have never been able to get the firmware loader in Joyloader to work. I've tried literally dozens of times. I have ended up flashing using the USBASP method. Would you be willing to post a YouTube Video or a walkthrough for those of us lacking the competence to make that part work?

Many thanks for all of your work!


#4035334 - 11/13/14 06:20 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
SolderMonkey,
yes it is very very big trouble to load firmware at first time... Im searching idea to fix this.
please make more photos "Thrustmaster FCS" =)

#4035759 - 11/14/14 05:49 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Sep 2014
Posts: 32
SolderMonkey Offline
Junior Member
SolderMonkey  Offline
Junior Member

Joined: Sep 2014
Posts: 32
Ari-freakin-zona
Ok, photos. I don't have "before" shots, so some steps are missing.

I started with a $10 Thrustmaster FCS mark 1 off ebay. I think it was a Macintosh model, it had a PS2 passthrough connector on the end of it. model was KP3MACFCS.


Taking the bottom off, I removed the original circuit board. There are two ribbon cables that connect the stick to the board. I desoldered them, but I'm sure there is enough leftover to cut them at the board. There was also a 5 pin connector that would have run out to the PS2 connector and the computer, it just pulled off the board.

Remember, you're looking at the bottom of the stick. You can see the two original ribbon cables - one for the stick, one for the pots. The stick has 9 conductors and comes out of the bottom of the stick support tube in the center. The pots get 4 conductors and come in from the bottom left in this view. To connect to the PC, I just hacked a usb phone cord in two and spliced it in to the original keyboard cable, so I could keep the original stress relief. The splice is ugly, but it works.



Board views. I added one diode on the common ground and soldered the original cables straight in. The pots are just too easy, wired exactly like the common samples images earlier in this thread.






This is what the stick buttons and hat switch looked like on mine - colors all fed into the green common wire.

This is how I hooked to the pro micro.


Once again, three cheers for Mega_Mozg!

#4036363 - 11/15/14 07:08 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
SolderMonkey, good work!!!

I save "promicro_labels.pdf" at "MMJoy/downloads" it helps with pins/ports for promicro...

#4037064 - 11/17/14 03:55 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2011
Posts: 658
Bluedeath Offline
BS 62 "Pegasus" CAG
Bluedeath  Offline
BS 62 "Pegasus" CAG
Member

Joined: Jan 2011
Posts: 658
i bought this on ebay
New Pro Micro ATmega32U4 5V 16MHz Replace ATmega328 Ardu.
what kind of programmer should i use?

Thanks in advance


"When you plan revenge best dig two graves" Confucius
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety" Benjamin Franklin
#4037108 - 11/17/14 05:19 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,758
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,758
Internet
The last firmware (Atemega32U4) is http://SimHQ.com/forum/ubbthreads.php/topics/4028164/Re:_MMJoy_-_Build_your_own_USB#Post4028164

You can load the firmware with USB cable (a bit tricky) or use USBASP cable (V 2.0).

https://code.google.com/p/mmjoy/wiki/UpdateFirmware_eng

#4037425 - 11/18/14 05:30 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
guys, you are killing me by USBASP...

use bootloader, it easy!!!

0) connect leonardo to USB, windows ask for drivers. Use it from subfolder 'JoySetup' -> 'drivers'.
1) open "device manager" -> "LPT/COM ports". somevere will be "Arduino leonardo COMxx". warning "COMxx"!!!
2) click "reset"+"gnd" pins twice, "Arduino leonardo COMxx" - remove and windows ask for new device and drivers.
3) on "device manager" -> "LPT/COM ports". will be NEW "Arduino leonardo bootloader COMyy". warning "COMyy"!!!
!!!remember bootloader mode active only 8 sec, after leonardo automaticly reset to "Arduino leonardo"!!!
so for update firmware you need a active state "Arduino leonardo bootloader COMyy".
4) start JoySetup, manual select: chip "atmega32u4", file firmware "Firmware_lufa_[MMJOY2.ATMEGA32U4].hex", boot type "Arduino", and COM port. where "COMyy" - bootloader port number "YY".
5) again goto bootloader mode "click "reset"+"gnd" twice".
6) when field port are green it is ready to update just click "upload firmware".

Last edited by mega_mozg_13; 11/18/14 05:34 AM.
#4037440 - 11/18/14 07:10 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2011
Posts: 658
Bluedeath Offline
BS 62 "Pegasus" CAG
Bluedeath  Offline
BS 62 "Pegasus" CAG
Member

Joined: Jan 2011
Posts: 658
Thanks to both of you.


"When you plan revenge best dig two graves" Confucius
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety" Benjamin Franklin
#4037451 - 11/18/14 08:05 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2011
Posts: 658
Bluedeath Offline
BS 62 "Pegasus" CAG
Bluedeath  Offline
BS 62 "Pegasus" CAG
Member

Joined: Jan 2011
Posts: 658
Can the MMjoy2 work with FCC3 FSSB or other force modsof the cougar?


"When you plan revenge best dig two graves" Confucius
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety" Benjamin Franklin
#4037453 - 11/18/14 08:30 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Bluedeath, no force feedback.

Page 7 of 104 1 2 5 6 7 8 9 103 104

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Mount and Blade II Bannerlord
by Rick_Rawlings. 03/30/20 09:27 PM
11 th day on lockdown
by carrick58. 03/30/20 12:26 AM
Drug combo working. Covid. Dr Zelenko NYC hospital.
by TerribleTwo. 03/29/20 12:27 PM
HILARIOUS videos found on YouTube.
by NoFlyBoy. 03/28/20 09:59 PM
Stuka!
by RedToo. 03/28/20 04:56 PM
social distancing
by KraziKanuK. 03/27/20 07:30 PM
How to correctly wash your hands properly.
by NoFlyBoy. 03/25/20 12:58 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0