Main > Lightguns |
GUN4IR - The Ultimate 4 Points Lightgun System |
<< < (12/227) > >> |
Mysli0210:
--- Quote from: JayBee on November 01, 2019, 02:38:30 am ---Wait, you're telling me the Wiimote sensor can also be used with serial (SDA&SCL), and keeps track of the IR Points? I though it was only the DFRobot cam that had some extra components on their PCB for that :lol It's interesting for me too since I do have some broken wiimote motherboards around, I could use them to do some extra stuff. I also wonder how much it would cost to do a custom PCB for the wiimote sensor? --- End quote --- Thats exactly what I'm telling you 8-) The only needed components to get the wiimote camera to talk to the arduino is as follows: A 3.3V regulator for the I2c pullup aswell as the Power. A 20 to 25 MHz crystal oscillator (resonator wont do) for the camera clock 2 2.7k resistors A 30 or 33k resistor to pull the camera #reset pin high 2 10nF capacitors for the crystal, which might not even be necessary a 100uF capacitor for the 3.3v regulator And a 4 pin connector if you dont fancy wires soldered directly to the pcb. When my pcb design is confirmed to be correctly made i will order a bunch as you can get 5 50x50mm pcb's for 5$ In china however, they're smaller than that so by panelizing them i might be able to fit 3 or 4 boards within those 50x50mm. So i will sell the ones i dont need for almost nothing if you're interested. Also from judging the spec Sheet of the robot cam https://www.robotshop.com/en/ir-tracking-camera.html And what people have found the wiimote camera to be, its pretty darn close. http://www.robotreviews.com/chat/viewtopic.php?t=8255 keep in mind that some of them measure viewing angle from center to edge, whilst others do it from edge to edge. |
JayBee:
--- Quote from: Howard_Casto on November 01, 2019, 02:05:05 pm ---You didn't miss anything. You know where they have been porting a bunch of wii u stuff over to the switch? The wii u supports wiimotes just like the wii did. Thus far they haven't ported anything that requires a wiimote ir sensor, but you know Nintendo.... they cram as many sensors in as possible just in case. --- End quote --- Yeah but the architecture of the switch, along with all the hardware, including controllers, is massively different. I've been working on one of the first big N "ports" of the switch for while, and the dev team had to pretty much rewrite all the engine to make it run on it. I might be wrong on that, but I was pretty sure the IR sensor was just a proximity IR cam along with an IR diode (the same way as the Microsoft Kinect, you can even find a toolkit online to test the cam), and it's on the bottom of the controller, so using it with a sensor bar wouldn't make much sense to me. --- Quote from: Mysli0210 on November 01, 2019, 05:24:40 pm ---Thats exactly what I'm telling you 8-) The only needed components to get the wiimote camera to talk to the arduino is as follows: A 3.3V regulator for the I2c pullup aswell as the Power. A 20 to 25 MHz crystal oscillator (resonator wont do) for the camera clock 2 2.7k resistors A 30 or 33k resistor to pull the camera #reset pin high 2 10nF capacitors for the crystal, which might not even be necessary a 100uF capacitor for the 3.3v regulator And a 4 pin connector if you dont fancy wires soldered directly to the pcb. When my pcb design is confirmed to be correctly made i will order a bunch as you can get 5 50x50mm pcb's for 5$ In china however, they're smaller than that so by panelizing them i might be able to fit 3 or 4 boards within those 50x50mm. So i will sell the ones i dont need for almost nothing if you're interested. Also from judging the spec Sheet of the robot cam https://www.robotshop.com/en/ir-tracking-camera.html And what people have found the wiimote camera to be, its pretty darn close. http://www.robotreviews.com/chat/viewtopic.php?t=8255 keep in mind that some of them measure viewing angle from center to edge, whilst others do it from edge to edge. --- End quote --- That's really cool dude! Would you have a kind of schematics for that? Would love to test it :D But you still have to analyse the signal, or it is sending you raw coordinates? The thing with the DFRobot cam is that it's pretty much sending you the coordinates of the 4 detected IR point through serial, and it follows those points as long as they stay on range. So for the sketches, it reduces greatly the arduino load and the sketch size, and in result reduces the latency. For the sensor specs, on DFRobot website they basically link to the wii sensor wiki page, so I wouldn't be surprise if they are using the actual Wiimote sensor in it :lol Just in case, would you happen to know a bit about the Playstation 2 USB protocol? Since the sketch is quite stable now, I'm trying to add support to that :P |
Zebra:
If the DF robot can really is the exact same part as found in a Wii remote then I wonder why Nintendo chose to only use one sensor bar with just one point of reference. The DF Robot cam states it can track 4. I guess the obvious answer is that they didn't intend to design it to be a light gun. |
Mysli0210:
--- Quote from: JayBee on November 02, 2019, 02:37:56 pm --- That's really cool dude! Would you have a kind of schematics for that? Would love to test it :D But you still have to analyse the signal, or it is sending you raw coordinates? The thing with the DFRobot cam is that it's pretty much sending you the coordinates of the 4 detected IR point through serial, and it follows those points as long as they stay on range. So for the sketches, it reduces greatly the arduino load and the sketch size, and in result reduces the latency. For the sensor specs, on DFRobot website they basically link to the wii sensor wiki page, so I wouldn't be surprise if they are using the actual Wiimote sensor in it :lol Just in case, would you happen to know a bit about the Playstation 2 USB protocol? Since the sketch is quite stable now, I'm trying to add support to that :P --- End quote --- :banghead: hit reset after writing a long reply... But I did make a schematic which I will provide when I get back from my gf in a couple of days. As for the camera it talks the same language as the robot camera. I know cause I used your 2 point sketch, with minor changes as I couldn't get axis reverse to work properly, so I changed the for loop to have #ifdef instead of if statements, which should run faster and compile smaller. I also changed a couple of the constant integers into #define. But that doesn't interfere with the dfrobot library protocol. As for the camera being the same didn't really surprise me during research. The camera is apparently either developed and maybe made by a company called pixart, but it seems to be a pretty secretive company. About the ps2 usb protocol I haven't got any clue.. But the documentation of the Linux ps2 devkit might be of use.? |
Zebra:
Is the PS2 USB protocol the sort of thing you can get from the EMS Topgun 3 drivers with it being another IR gun that works on the PS2 as a Guncon 2? Also, the guy that wrote the Wingun drivers is a member here. Perhaps he has some insight into how the Guncon 2 hardware works. One other place to look is the file labeled USB gun on PS2 guncon 2 game discs. I don't understand the code but my assumption is that this is the guncon 2 drivers that the PS2 uses. |
Navigation |
Message Index |
Next page |
Previous page |