English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware > Hardware mods

 
 
Thread Tools
Old 11 February 2019, 21:01   #61
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Just discovered your project. It's a really nice one !

One question indeed : theoretically, up to how much joystick button can your device handle (that can be used at the end by the Amiga) ?
I have seen that you speak about 4 buttons. So, is 4 the maximum ? More ?
malko is offline  
Old 11 February 2019, 23:32   #62
majinga
Registered User
 
majinga's Avatar
 
Join Date: Aug 2018
Location: Italy
Posts: 52
The first 4 buttons are mapped as Fire1, Fire2, UP and DOWN. And they can also be remapped.
The others buttons are mapped as Fire1, Fire2, but some of them can be unused.

Is complicated, because, for example, in some PSX clones, the right analog stick act as buttons when the analog is disabled.

The first 4 buttons are generally more than enough for play.
majinga is offline  
Old 12 February 2019, 16:10   #63
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by malko View Post
Just discovered your project. It's a really nice one !

One question indeed : theoretically, up to how much joystick button can your device handle (that can be used at the end by the Amiga) ?
I have seen that you speak about 4 buttons. So, is 4 the maximum ? More ?
Quote:
Originally Posted by majinga View Post
The first 4 buttons are mapped as Fire1, Fire2, UP and DOWN. And they can also be remapped.
The others buttons are mapped as Fire1, Fire2, but some of them can be unused.

Is complicated, because, for example, in some PSX clones, the right analog stick act as buttons when the analog is disabled.

The first 4 buttons are generally more than enough for play.

Generally speaking, I could map all 12 buttons we commonly find in modern pads, but I really do not see how can it could be of any use with Amiga games, as Majinga properly noted.



Besides, if you like to know more about the project, have a look at the github (https://github.com/EmberHeavyIndustries/HID2AMI), where I added a quick user guide section as well.
sampedenawa is offline  
Old 12 February 2019, 18:06   #64
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Quote:
Originally Posted by sampedenawa View Post
Generally speaking, I could map all 12 buttons we commonly find in modern pads, but I really do not see how can it could be of any use with Amiga games, as Majinga properly noted.

Besides, if you like to know more about the project, have a look at the github (https://github.com/EmberHeavyIndustries/HID2AMI), where I added a quick user guide section as well.
Thank you for your answers . Both of you.

I didn't know that the Amiga Joystick port was able to understand and make use of the 12 button of a joystick/pad.
OT- It makes me wonder why, thus, such implementation was not made for "fighting (SF, MK, etc.)" games conversion back in time.
malko is offline  
Old 12 February 2019, 18:30   #65
majinga
Registered User
 
majinga's Avatar
 
Join Date: Aug 2018
Location: Italy
Posts: 52
Quote:
Originally Posted by malko View Post
I didn't know that the Amiga Joystick port was able to understand and make use of the 12 button of a joystick/pad.

It didn't. The joy port only allow 3 inputs, Fire1, Fire2, and a third input.

The adaptor can map multiple buttons to do the same action. So you will have more than one button as Fire1 etc.
majinga is offline  
Old 17 February 2019, 16:16   #66
solidcore
Registered User
 
Join Date: Sep 2017
Location: birmingham, uk
Posts: 548
Cd32 however mapped more buttons with a clk dat line ! That’s an interesting one .
solidcore is offline  
Old 18 February 2019, 20:08   #67
danko
Registered User
 
danko's Avatar
 
Join Date: Oct 2009
Location: Italy
Age: 45
Posts: 196
Works with PSClassic usb controller?
danko is offline  
Old 19 February 2019, 09:50   #68
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by danko View Post
Works with PSClassic usb controller?

As a general rule: if the peripheral is HID protocol compliant then it works.


Unfortunately, whilst 99.99% of mice (excluding MS Intellimouse series) are HID compliant, speaking of game/joypads is another story.


A quick answer could be: "probably yes", but it must be tested to confirm (just for your curiosity: yesterday an user tested the C64 mini joystick and found it fully working ....)


The compatibility list is growing, whilst users test their peripherals and share results with me; but there are literally thousand of differente devices to test !
sampedenawa is offline  
Old 20 February 2019, 11:48   #69
nexus
Registered User
 
Join Date: Aug 2017
Location: USA
Posts: 728
still waiting on these
nexus is offline  
Old 20 February 2019, 16:11   #70
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by nexus View Post
still waiting on these

Replied on PM.
I'm out of uP at the moment, but you're top on list as soon as they arrive.


Sorry about that, but I did not expect such a large interest in my board !
sampedenawa is offline  
Old 20 February 2019, 18:00   #71
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
Take it easy on sampedenawa. I've been in the same situation, hobby project blows up and suddenly everyone wants one. It's hard work, especially when you are doing it as a hobby and not exactly getting rich.

Nice work sampedenawa, and thanks.
zero is offline  
Old 20 February 2019, 22:11   #72
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
Quote:
Originally Posted by zero View Post
Nice work sampedenawa, and thanks.

Definately want to second that. I was unfortunate in that I managed to pick two mice that it didn't work with because they were not fully HID complient making me initially think I had screwed up the DIY soldering. Turns out I was just extremely unlucky but one of them now works in a subsequent update so realistically the project (and Sampedenawa) cannot be faulted.


MartinW is offline  
Old 20 February 2019, 23:13   #73
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by zero View Post
Take it easy on sampedenawa. I've been in the same situation, hobby project blows up and suddenly everyone wants one. It's hard work, especially when you are doing it as a hobby and not exactly getting rich.

Nice work sampedenawa, and thanks.
Quote:
Originally Posted by MartinW View Post
Definately want to second that. I was unfortunate in that I managed to pick two mice that it didn't work with because they were not fully HID complient making me initially think I had screwed up the DIY soldering. Turns out I was just extremely unlucky but one of them now works in a subsequent update so realistically the project (and Sampedenawa) cannot be faulted.



Thank you both for your appreciation !


Martin, I just sent you minutes ago a further updated version, coming from the dump you sent me. Let me know if it fixes your other mouse, so you can have both of them working now.


For the curious ones: "problem" with recent Logitech mice is that they declare themselves as multiple interface devices, the first one is a keyboard (!), then a Mouse. Mousewheel events and midle button events are encoded as couple of keystrokes (!!), and so on....
sampedenawa is offline  
Old 21 February 2019, 00:12   #74
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
Quote:
Originally Posted by sampedenawa View Post
For the curious ones: "problem" with recent Logitech mice is that they declare themselves as multiple interface devices, the first one is a keyboard (!), then a Mouse. Mousewheel events and midle button events are encoded as couple of keystrokes (!!), and so on....

OK, this isn't a big surprise to me now I think of it. I did not appreciate until fairly recently that the wireless receivers that Logitech ship will often work with a whole series of their devices, even though there is nothing with the device you buy to say that so it does not surprise me that it reports as a keyboard as well - sorry!



Thinking about it, I have another logitech "Keyboard and Mouse" pair somewhere that both use a single dongle. It's different again however. I don't know where it is and I'm not really interested in getting that one working although of course I can if you really want to add yet another device to the list?


Maybe I'll try and find it. It might even just work when the other one does.
MartinW is offline  
Old 22 February 2019, 15:58   #75
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
For those interested: I just released fw 1.8.0 with some fancy upgrades, among the others:


- Support for Dual Shock 4 PS4 original controllers; BEWARE !! Be absolutely sure to FULLY charge the DS4 internal battery BEFORE connecting it to you Amiga, or the recharge current will flow through Amiga's joyport !
- Support for 3rd party PS3 and PS4 compatible controllers;
- Improved support for Logitech Wireless and gaming mice (still a bit buggy on some models, thou)


Detailed compatibility list is on github.

Last edited by sampedenawa; 22 February 2019 at 17:11.
sampedenawa is offline  
Old 25 February 2019, 10:22   #76
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
Oh, that made me think... The joystick port is only rated for 50mA, where as USB is 500mA. My solution was to have a second USB port on the device that lets you connect a battery (the kind used to charge your phone).

How did you solve this? Just support USB devices up to 50mA?
zero is offline  
Old 25 February 2019, 12:38   #77
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by zero View Post
Oh, that made me think... The joystick port is only rated for 50mA, where as USB is 500mA. My solution was to have a second USB port on the device that lets you connect a battery (the kind used to charge your phone).

How did you solve this? Just support USB devices up to 50mA?



In reality, current limiting resistors on joy/mouse port of A500/600/1200 are 1/2 Watt, and in A4000 there is no such a resistor (pin 7 is tied directly to +5V), so the "nominal" current limit is 100mA.



As a pragmatic rule of thumb, tested with several hours of debugging, there isn't any issue if connecting devices up to rough 120mA (not continuous).


This includes all joypads I have tested (average 70-80mA) and mice (100-110 mA not continuous).


If one wanted to connect higher power-demanding peripherals, it is unavoidable to think to some external supply, like you are suggesting.


My opinion is that it is out of the scope of the adapter: there is no point in connecting a "6-axis 24-buttons double-sterero-earthquake-rumble" pad in order to play 2-buttons 8-directions games.
sampedenawa is offline  
Old 25 February 2019, 12:53   #78
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
Quote:
Originally Posted by sampedenawa View Post
In reality, current limiting resistors on joy/mouse port of A500/600/1200 are 1/2 Watt, and in A4000 there is no such a resistor (pin 7 is tied directly to +5V), so the "nominal" current limit is 100mA.

As a pragmatic rule of thumb, tested with several hours of debugging, there isn't any issue if connecting devices up to rough 120mA (not continuous).

This includes all joypads I have tested (average 70-80mA) and mice (100-110 mA not continuous).
Thanks, some very useful research there. I was thinking of just using a Schottkey diode so that you could use either direct or external power, but was worried about potentially high loads on the A4k 5V lin.

Actually kinda crazy that they didn't limit it on the more expensive machine. Imagine corrupting your HDD because of a fault with your mouse!
zero is offline  
Old 25 February 2019, 13:38   #79
sampedenawa
Registered User
 
Join Date: Sep 2017
Location: IT
Posts: 176
Quote:
Originally Posted by zero View Post
Thanks, some very useful research there. I was thinking of just using a Schottkey diode so that you could use either direct or external power, but was worried about potentially high loads on the A4k 5V lin.

Actually kinda crazy that they didn't limit it on the more expensive machine. Imagine corrupting your HDD because of a fault with your mouse!



On A4000 they actually only put a fuse, shared between the two db9 ports.


So, they in some way protected it.
sampedenawa is offline  
Old 26 February 2019, 10:22   #80
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
Quote:
Originally Posted by sampedenawa View Post
On A4000 they actually only put a fuse, shared between the two db9 ports.
Hmm, looks like a non-resettable polyfuse. Not ideal!
zero is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New USB HID Keyboard adapter for the classic Amiga spidi News 49 06 May 2021 08:51
New USB HID mouse / USB Joystick / Gamepad USB adapter for the classic Amiga spidi News 191 21 February 2021 19:18
Amiga USB Mouse Converter Homer79 Hardware mods 0 07 April 2018 22:13
Mapping HID-compliant game controller Gamma Goblin support.Hardware 2 10 January 2003 03:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:25.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.15877 seconds with 16 queries