Main > Lightguns |
GUN4IR - The Ultimate 4 Points Lightgun System |
<< < (26/227) > >> |
PL1:
--- Quote from: JayBee on January 13, 2020, 09:03:07 pm ---The main reasons I choose the Atmega32u4 is that it's dirt cheap, has more than enough power and pins for this use, and has way more resources available than any other models. --- End quote --- It certainly is a great little processor. ;D --- Quote from: JayBee on January 13, 2020, 09:03:07 pm ---Now the reason why I decided to not share the code; --- End quote --- Your code, your choice. Thanks for sharing the compiled firmware. :cheers: --- Quote from: JayBee on January 13, 2020, 09:03:07 pm ---But if you guys want I can still make other firmwares compatible with different device or pinout. --- End quote --- Just wanted to check that: 1.) You had considered which ports your firmware used so the maximum number of 32u4 boards are compatible. Mysli0210 mentioned above that it should work with the limited number of ports available on a Pro Micro, but I'm not able to positively confirm which ports/pins correspond to "A6" thru "A10" in the OP. 2.) You clarified the documentation so anyone using your firmware knows exactly which wire connects to which pin. For example, according to the OP, "B button" connects to "A6". Which pin on a Leonardo, Micro, or Pro Micro would that be? None of the pins on those boards are labeled "A6". :dizzy: Scott |
JayBee:
The pins are pretty much the ones written on the basic Atmega32u4 board, but you can find the corresponding pin numbers in the image attached ;) Also, I considered using the analog inputs to increase the number of buttons, but it's not really needed, make it more complex, and most importantly if you use both rumble and recoil function, there is no more space to add another circuit inside most gun shells :lol |
PL1:
That image is the Rosetta Stone for your OP. :applaud: - Shows which "pin numbers" go to which pin. (some don't match the marks on the PCB) - Shows that you're using a Pro Micro. (the specific Arduino you are using is not mentioned in the OP) Please consider adding that image to the OP so it isn't overlooked here on page 4. Scott |
Mysli0210:
--- Quote from: JayBee on January 13, 2020, 09:03:07 pm ---You mean mirrored with my sketch? Or just as is? Did you test with samco's test sketch? The DF Robot cams have a big tilts issue, they aren't correctly oriented. But if you tell me how the axises are reversed I can make another firmware without the df robot inversion. --- End quote --- I did try with his sketch way back when I built the gun. Well both x and y axes, are inverse. Up is down, left is right. that would be great if you could! As I plan to bring my arcade to the hackerspace today ;D |
JayBee:
--- Quote from: PL1 on January 13, 2020, 11:43:54 pm ---That image is the Rosetta Stone for your OP. :applaud: - Shows which "pin numbers" go to which pin. (some don't match the marks on the PCB) - Shows that you're using a Pro Micro. (the specific Arduino you are using is not mentioned in the OP) Please consider adding that image to the OP so it isn't overlooked here on page 4. Scott --- End quote --- Yeah I should have joined it. The model is actually written in the needed hardware list, "Atmega32u4 5V/16MHz". This is indeed the pro micro, but there are different variations of it. Most clone of this specific one, no matter the name, will have the same pinout and specs. Edit: ah I see, some specific boards have a different pinout. Well I guess it's better to stick to the most common model. |
Navigation |
Message Index |
Next page |
Previous page |