Main > Lightguns
GUN4IR - The Ultimate 4 Points Lightgun System
<< < (24/227) > >>
kill_one:

--- Quote from: JayBee on January 13, 2020, 08:44:21 am ---Actually it's on the work right now, I've finally found a pretty good solution that works well in any situation.
I will post it soon, but here what you will need for a good setup:
- 8* SID1K10CM led or similar specs (they have an angle of only 30° but are very powerful)
- 4* 56ohms 1/4watts resistor
- 4* very small soldering boards or something similar
- 1* USB plug
- enough wire to connect each IR point to the next one

Basically the idea is that instead of getting a wide range angle led but having a pretty bad useful distance, I combine two led for each point, very slightly angled vertically to greatly improve angle.
If the LEDs are close enough from each other, the cam will see only one point, even from close distance without filter.
So each point consists in two LEDs and one resistor in series, which are then connected directly to the 5V USB power.
The total consumption of the whole 4 point system is around 200mA, so any USB power should work.

--- End quote ---

@JayBee thanks a lot, Great!
in the tutorial you will also put the diagram and components for the recoil circuit?
I will wait for it to start ;)

I forgot ... this card is ok for your project?

https://www.adafruit.com/product/3677
JayBee:

--- Quote from: Mysli0210 on January 13, 2020, 10:30:38 am ---JayBee if you could send me the sketch so I can change the pins to fit my gun as is, I'll test it thoroughly today  ;D

--- End quote ---
For different reasons I decided I won't share the sketch, just the firmware for the Atmega32u4 5V/16MHz (the ItsyBitsy boards miss some functionalities needed for this system to work flawlessly).

--- Quote from: kill_one on January 13, 2020, 11:30:44 am ---@JayBee thanks a lot, Great!
in the tutorial you will also put the diagram and components for the recoil circuit?
I will wait for it to start ;)

I forgot ... this card is ok for your project?

https://www.adafruit.com/product/3677

--- End quote ---
I will share the diagrams later when I finally find the time to do them.
Only the Atmega32u4 5V/16MHz work with my firmware, the other boards miss some functionalities.
kill_one:

--- Quote from: JayBee on January 13, 2020, 12:13:46 pm ---Only the Atmega32u4 5V/16MHz work with my firmware, the other boards miss some functionalities.

--- End quote ---

yes, of course, this board is: The ItsyBitsy 32u4 5V 16MHz and this specifications is the same?

ATmega32u4 onboad chip in QFN package
5V power and logic, 16MHz clock rate, 2KB RAM and 28K FLASH
USB bootloader with a nice LED indicator, AVR109 compatible (same as Flora, Feather 32u4, Leonardo, etc)
Micro-USB jack for power, USB uploading and debugging, you can put it in a box or tape it up and use any Micro USB cable for when you want to reprogram.
Can act as a USB HID Keyboard, Mouse, MIDI or plain USB 'CDC' serial device (default)
On-board 5.0V power regulator with 150mA output capability and ultra-low dropout. Up to 16V input, reverse-polarity protection, thermal and current-limit protection.
Low current 3.3V regulator output from chip, for small sensors
Power with either USB or external output (such as a battery) into VBAT pin - it'll automatically switch over
On-board red pin #13 LED
23 GPIO total - 6 analog in, 1x SPI port, 1x I2C port, 1x Hardware Serial port and 10 more GPIO, 4 of which have PWM
Can drive NeoPixels, connect to sensors, servos, etc.
Reset button for entering the bootloader or restarting the program.

thanks :)
Mysli0210:

--- Quote from: JayBee on January 13, 2020, 12:13:46 pm ---
--- Quote from: Mysli0210 on January 13, 2020, 10:30:38 am ---JayBee if you could send me the sketch so I can change the pins to fit my gun as is, I'll test it thoroughly today  ;D

--- End quote ---
For different reasons I decided I won't share the sketch, just the firmware for the Atmega32u4 5V/16MHz (the ItsyBitsy boards miss some functionalities needed for this system to work flawlessly).

--- End quote ---
Well, i was kind of waiting for you to share it with me, not the general public. As you told me you would earlier.
and I know about the itsy not being the same, I get that.
But I do have the atmega32u4 5v @16 MHz. And as we talked about I could help optimize the code and add functionality to it. Like having the option to add a nunchuck for the extra buttons. Even designed the pcb's for this exact purpose.

But I guess I'll have to rewire my entire gun due to this then  :banghead:
Mysli0210:

--- Quote from: kill_one on January 13, 2020, 12:35:31 pm ---
--- Quote from: JayBee on January 13, 2020, 12:13:46 pm ---Only the Atmega32u4 5V/16MHz work with my firmware, the other boards miss some functionalities.

--- End quote ---

yes, of course, this board is: The ItsyBitsy 32u4 5V 16MHz and this specifications is the same?

ATmega32u4 onboad chip in QFN package
5V power and logic, 16MHz clock rate, 2KB RAM and 28K FLASH
USB bootloader with a nice LED indicator, AVR109 compatible (same as Flora, Feather 32u4, Leonardo, etc)
Micro-USB jack for power, USB uploading and debugging, you can put it in a box or tape it up and use any Micro USB cable for when you want to reprogram.
Can act as a USB HID Keyboard, Mouse, MIDI or plain USB 'CDC' serial device (default)
On-board 5.0V power regulator with 150mA output capability and ultra-low dropout. Up to 16V input, reverse-polarity protection, thermal and current-limit protection.
Low current 3.3V regulator output from chip, for small sensors
Power with either USB or external output (such as a battery) into VBAT pin - it'll automatically switch over
On-board red pin #13 LED
23 GPIO total - 6 analog in, 1x SPI port, 1x I2C port, 1x Hardware Serial port and 10 more GPIO, 4 of which have PWM
Can drive NeoPixels, connect to sensors, servos, etc.
Reset button for entering the bootloader or restarting the program.

thanks :)

--- End quote ---

Well it's the same chip, so no magic difference there.
the only 2 things that might differ, but not matter is the bootloader might be different, though entirely not needed if you flash via an external programmer, as with any avr chip. And the physical location of the pins may differ on a different board.
But I reckon most people would get the pro micro clones as they're super cheap.
However i do believe that it would be entirely possible to use an stm32 at half the price , or even a esp32 when they release libraries to make it a Bluetooth hid joypad/mouse (keyboard is already possible)
Navigation
Message Index
Next page
Previous page

Go to full version