Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

Poll

02/19 I will add RGB led support soon, I need for that to use 3 arduino PWM pins, which are currently being used by Pedal, Start & Right. I will do 2 firmwares, one with 11 buttons, and one with 8 button+led. How should they behave?

Leave the button pins as it is now, and disable the pedal, start and dpad right buttons when the RGB led is active
0 (0%)
Swap the pedal and start pins with some of the DPad ones, and disable only the DPAD when the RGB led is active
0 (0%)
Other (post a message to tell me what you think).
0 (0%)

Total Members Voted: 0

  

Author Topic: JayBee DIY 4 IR Led Lightgun System (no calibration needed)  (Read 25739 times)

3 Members and 1 Guest are viewing this topic.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #400 on: Yesterday at 02:34:01 pm »
I have this problem flashing new firmware:

Flash Normal or Test firmware (N: Normal/T: Test)?n

Stato del dispositivo COM6:
---------------------------
    Baud:                 1200
    Paritą:               None
    Bit di dati:          8
    Bit di stop:          1
    Timeout:              OFF
    XON/XOFF:             OFF
    Sincronizzazione CTS: OFF
    Sincronizzazione DSR: OFF
    Sensibilitą DSR:      OFF
    Circuito DTR:         OFF
    Circuito RTS:         ON


In attesa da 0 secondi. Per uscire, premere CTRL+C...

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "\\.\COM4": Impossibile trovare il file specificato.

avrdude done.  Thank you.

with 1.75 flasher renaming file hex:


Flash Normal or Test firmware (N: Normal/T: Test)?n

Stato del dispositivo COM6:
---------------------------
    Baud:                 1200
    Paritą:               None
    Bit di dati:          8
    Bit di stop:          1
    Timeout:              OFF
    XON/XOFF:             OFF
    Sincronizzazione CTS: OFF
    Sincronizzazione DSR: OFF
    Sensibilitą DSR:      OFF
    Circuito DTR:         OFF
    Circuito RTS:         ON


In attesa da 0 secondi. Per uscire, premere CTRL+C...

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: ser_drain(): read error: Operazione di I/O terminata a causa dell'uscita dal thread oppure della richiesta di un'applicazione.

avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 0.00savrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: Il dispositivo non riconosce il comando.

avrdude: butterfly_recv(): programmer is not responding
Reading | ################################################## | 100% 0.18s

avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)

Reading |                                                    | 0% 0.00savrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: Il dispositivo non riconosce il comando.

avrdude: butterfly_recv(): programmer is not responding
Reading | ################################################## | 100% 0.10s

avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)

Reading |                                                    | 0% 0.00savrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: Il dispositivo non riconosce il comando.

avrdude: butterfly_recv(): programmer is not responding
Reading | ################################################## | 100% 1.14s

avrdude: Device signature = 0xffffff (probably .avr8x_mega)
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: Il dispositivo non riconosce il comando.

avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: Il dispositivo non riconosce il comando.

avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader

avrdude done.  Thank you.


Helpmeeeeee please... :D

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #401 on: Yesterday at 02:46:39 pm »
Kill_one, the timeout has changed to 6 seconds, and it looks like it's a problem with your setup.
Change the timeout to 3 seconds in the bat file.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #402 on: Yesterday at 03:00:57 pm »
The rumble motor i'm using functions like a solenoid, when it rumbles it moves three gears which in turn pull the gun shell back to simulate the recoil.
Since i am only using rumble, then i should use the solenoid pin instead of the rumble pin, right?
Otherwise it won't work when shooting on screen?
I'd test this myself but i'm still waiting for the parts to arrive, so i'd like to make sure i'm doing this right.
Btw, the transistor isn't available at the moment, i can get the mosfet instead, do you think that would be an issue?
« Last Edit: Yesterday at 03:06:29 pm by Foxhole »

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #403 on: Yesterday at 04:10:30 pm »
Kill_one, the timeout has changed to 6 seconds, and it looks like it's a problem with your setup.
Change the timeout to 3 seconds in the bat file.

It gave me error even with the version 1.75 set to 3s, I solved it using the flasher 1.70 on the second attempt ...I have no idea why :)


kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #404 on: Yesterday at 04:24:09 pm »
The rumble motor i'm using functions like a solenoid, when it rumbles it moves three gears which in turn pull the gun shell back to simulate the recoil.
Since i am only using rumble, then i should use the solenoid pin instead of the rumble pin, right?
Otherwise it won't work when shooting on screen?
I'd test this myself but i'm still waiting for the parts to arrive, so i'd like to make sure i'm doing this right.
Btw, the transistor isn't available at the moment, i can get the mosfet instead, do you think that would be an issue?
@Foxhole
I too have one like this but I gave it up for reasons of space ... it is because the engine must be powered by 9v being guncon2 compatible for ps2, instead which lightgun do you have?
Were you able to insert the IR camera into the barrel?

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #405 on: Yesterday at 04:48:22 pm »
This is a ems topgun2, the motor works with 5V 100ma.
As for the barrel, i will have to do some drilling to make it fit.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #406 on: Yesterday at 07:50:47 pm »
Kill_one, the timeout has changed to 6 seconds, and it looks like it's a problem with your setup.
Change the timeout to 3 seconds in the bat file.

It gave me error even with the version 1.75 set to 3s, I solved it using the flasher 1.70 on the second attempt ...I have no idea why :)
Foxhole is right, your board doesn't seem to like the 6 seconds timing.
Mine is quite tolerant and works with both 3 and 6 seconds, but it seems like it's a bit random.
I will modify my code to do a test at 3, and if nothing found, another one at 6.

@Foxhole no problems to connect to the solenoid pin, it works the same as the rumble pin only the timings are different (but can be modified to fit your setup).
You can of course use the mosfet for the motor too, but it's a bit overkill xD


Envoyé de mon Pixel 3 en utilisant Tapatalk


kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #407 on: Today at 05:47:44 am »
but to use the burst (autofire) holding the trigger in the games you have to use only mamehooker?

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #408 on: Today at 07:23:48 am »
but to use the burst (autofire) holding the trigger in the games you have to use only mamehooker?
You don't need mamehooker, fullauto mode is activated when holding the trigger more than 450ms.

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #409 on: Today at 07:26:39 am »
You don't need mamehooker, fullauto mode is activated when holding the trigger more than 450ms.

So maybe it depends on the type of game? Because I had tried with Time Crisis but when I kept the trigger pressed only the solenoid was activated and in the game it didn't fire

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #410 on: Today at 07:29:43 am »
Time crisis doesn't have burst shots.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #411 on: Today at 07:30:50 am »
I think he means that the solenoid doesn't react to the game itself. for that he will need mamehooker.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #412 on: Today at 07:41:50 am »
So maybe it depends on the type of game? Because I had tried with Time Crisis but when I kept the trigger pressed only the solenoid was activated and in the game it didn't fire
Ah I see what you meant.
So by default the feedback is coming from the gun itself, and it won't care about what is happening in game.
You indeed need to use mamehooker to make the recoil react only when the game tells it to.
And it will depends of the game, some games originally don't have any feedback commands.
I haven't got time yet to prepare all the files for mamehooker yet, but I already got the one for Time Crisis, I can upload it once you got mamehooker setup and running.

Time crisis doesn't have burst shots.
Yes you're right. Good thing tho is that mamehooker works great with it, it makes it react exactly like the real arcade machine  ;D
« Last Edit: Today at 07:45:34 am by JayBee »

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #413 on: Today at 07:48:47 am »
By the way guys, are you interested in a auto reload function?
I saw some guns often have like a 6 shots autoreload, would that be something you would be using?

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 213
  • Last login:Today at 10:44:02 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #414 on: Today at 07:51:30 am »
Personally, I'm more of a purist, if it wasn't in the game then i don't use it, but i think this deserves a poll, in case there are more people interested.

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #415 on: Today at 07:57:58 am »
Personally, I'm more of a purist, if it wasn't in the game then i don't use it, but i think this deserves a poll, in case there are more people interested.
Agreed. Will add it to my list of polls for the upcoming features :lol

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #416 on: Today at 09:12:15 am »
By the way guys, are you interested in a auto reload function?
I saw some guns often have like a 6 shots autoreload, would that be something you would be using?


Automatic recharge as an option that can be activated and deactivated like the other functions would not be bad to have it ...: D

kill_one

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 101
  • Last login:Today at 10:43:49 am
  • I want to build my own arcade controls!
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #417 on: Today at 09:15:24 am »
I haven't got time yet to prepare all the files for mamehooker yet, but I already got the one for Time Crisis, I can upload it once you got mamehooker setup and running.
so does it take a configuration file for each game? tonight try to configure it following the guide of the official website, if you start posting the files for Time crisis or the games you have already ready it wouldn't be bad :)
thanks a lot!!!

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #418 on: Today at 09:39:14 am »
so does it take a configuration file for each game? tonight try to configure it following the guide of the official website, if you start posting the files for Time crisis or the games you have already ready it wouldn't be bad :)
thanks a lot!!!
I have only 2 ini files fully setup so far, the 2 I have been testing mamehooker with; Time Crisis and Terminator 2 8)
Time crisis uses the solenoid recoil when firing.
Terminator 2 is using a constant fullauto mode with variable speed, which doesn't play well with the solenoid (and might burn it pretty fast).
So it uses the rumble motor instead, which works great.

I attached the files to this post, put both ini files in the ini\MAME subfolder of mamehooker (but check if it's working with mame first)
Don't forget to make your arduino port COM1 for gun1 and COM2 for gun2 (in the device manager), or else it won't work.

Note that it's an unfinished experimental feature, it works good as it is but might change in a future update.
I will provide new files when needed.
« Last Edit: Today at 09:45:11 am by JayBee »

JayBee

  • Trade Count: (0)
  • Full Member
  • ***
  • Online Online
  • Posts: 201
  • Last login:Today at 10:33:14 am
  • If I can't buy it, I build it.
    • Github
Re: JayBee DIY 4 IR Led Lightgun System (no calibration needed)
« Reply #419 on: Today at 10:19:02 am »
I added a poll about the upcoming RGB led support if you are interested  ;)