XIM Community

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Pistol451

Pages: [1] 2
Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 12:27 PM - 10/26/21 »
Oh wow Pistol451 that looks indeed awesome, great job! :)

Cheers @Od1n!

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 09:16 AM - 10/26/21 »
New developments :)

I started having some trouble with my analogue stick - when pushing forward in game, it would start to not work, or even start moving backwards! Tried squirting contact cleaner in there, no improvement. Figured I would have to replace the analogue stick, went as far as ordering replacements - until TuFFrabit pointed out that it sounded like a bad connection. Sure enough, when I was investigating fitting a new stick, I notice that disturbing the wiring caused one of my ground wires to detach from the pin it was soldered to. It clearly hadn't been a good connection, so may have been intermittently failing, which could have caused issues with the reading from the stick potentiometer if the common ground was glitching about. Resoldered the connection, and on reassembly all was well! So, if your stick starts misbehaving, check your wiring!

Also, I decided it was time to replace the rubbish thumb key. Low profile mechanical switches are best for this, but I was struggling to find Red ones in the UK for a sensible price. Aliexpress to the rescue again... there I found a set of six Kailh Chocolate low profile mechanical switches, which included Red and Yellow versions as well as four others, and also came with keycaps. That was pretty useful as I'd get to compare the Red and Yellow versions, as well as having keycaps for modding. Also, low profile keycaps are also had to find - so I picked up some Kailh ones from Aliexpress while I was about it. Ordered a 1.5u and 2.5u keycap as I wasn't sure which would suit best, and the price was negligible compared to the postage!

I didn't want to cut away the key PCB, as I always prefer to be able to restore things to default (usually 'cos I mess something up lol), so I was hoping there would be enough clearance for the switch to fit. Luckily there was, with the way I did it. I wanted to remove the bare minimum of plastic, so essentially I just widened the opening enough for the width of the switch, and cut away a bit at the back:

The switch will "see-saw" a bit as it's unsupported at the back, so I when gluing it in place I put some hot glue under the back of it to stop that happening.

Next it's time to wire it up. I'd read previous posts about just using two of the wires from the main PCB, which sounded ideal as I hate soldering to pads - I'm always petrified I'll screw up the traces. If I could just solder directly to the point on the back of the PCB where the wires attached, that would save me a lot of work! However I misread the instructions, and couldn't get the signal for a keypress to register... turns out I was using the wrong points  ::)

I was soldering to the red wire, and wondering why connecting to the other points did nothing but make the device wig out in a way that didn't make me want to continue. So I bit the bullet, and soldered to the pads using very fine wire, which fortunately went much easier than I expected! Just checked, and I think it's the two wires furthest from the red wire that I should have tried - so for anyone else trying this mod, try that first lol. Applied some hot glue to strengthen the connections:

Don't forget to pass the wires through the hole before you solder to the switch! I left my wires nice and long, as once the switch is glued in, you won't easily remove it if you need to remove the guts in future, so longer wires means less strain on the connections while you're moving the PCB about.

Applied glue from above at the back for support, and from below to fix it in place and provide strain relief and insulation from the PCB:

PCB in place (so for future reference, try soldering to the two leftmost points, furthest from the red wire, which would be a lot easier than soldering to the pads!) showing the length of wire I left:

The device reassembled, with 1.5u width keycap in place!

I think it looks pretty awesome! In use, it is so much better than the crappy unresponsive rubber dome key, I haven't dropped a single input since I did the mod. The only thing I might change in future, is to re-use the original keycap, by gluing the pegs from one of my spares from the switch sampler to the underside of it; the original keycap is moulded to ergonomically align with your thumb. The one I have on now is slightly angled, and feels good, but could be better with the original keycap.

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 07:32 AM - 08/16/21 »
Well, I did it! And it all worked!

I ordered my PCBs and 3D printed parts from PCBWay, for two reasons: 1) they were cheap and 2) they were one of the only PCB fab houses I found that also offered a 3D printing service. Figured if you're going to source cheap parts from China, might as well just pay one lot of postage. I found PCBWay to be very good - they let you know if there are any problems with your data files, and are generally pretty quick at re-evaluating resubmitted files. On a couple of occasions when reviews of designs appeared to be stalled, a quick email to them got a response quickly to get things moving again.

I wanted to get everything as cheap as possible, because I wasn't entirely certain my amendments to W11cE's parts would work, and didn't want to throw money away - so I opted for the cheapest 3D printing method they offered, which was resin printing using UTR3100 white resin. I wanted to go for white anyway; one thing I always really liked about the N52te was the uniform lighting you got from the PCB-mounted SMD LEDs. With the new PCB and mechanical switches, the LEDS are now above the PCB, and I was worried that the light dispersion wouldn't be as uniform; going for white would reflect more light, I figured, so keep it more like the un-modded appearance. When I received the parts, I was impressed by the quality - they were totally smooth, tough enough for the purpose, and dimensionally accurate! So if you don't mind the white look, I'd definitely recommend the UTR3100 manufacturing process.

I was a little concerned that the switch hotswap sockets would be a very tight fit in the PCB holes, because when I managed to modify the holes in Eagle, the standard drill sizes available included 1.4mm and 2.0mm. The LED sockets are 1.38mm diameter so I was sure they'd be OK, but the switch sockets are 2mm dia, so I thought they might stick in a 2mm hole; however, they went in just fine!

I inserted all the sockets then taped them in place, to solder from the back side:

Soldering the switch sockets was OK, in most cases I got a nice flow around the base of the socket. But the LED ones were harder; because they're so small I guess, the solder didn't flow as nicely and most ended up quite blobby. But it worked!

(Yes, I did clean up the flux residue with IPA afterwards!)

At this point I realised I'd made a mistake with the 3D printed bottom plate - although I'd made many attempts at modifying the design to remove all the <0.1mm thickness parts, I had completely forgotten that the holes for the switch and LED contacts would need to be bigger to accommodate my hotswap sockets! Bit of a facepalm moment there. Easily solved by reaming the holes out with a small drill bit, and a bit of filing to countersink them a bit to allow for the solder. I have NOT been back to the 3D model to correct this - if I did, I would use a cone-shaped hole to allow for the solder around the base of the sockets. I do not plan to go back to the design myself any time soon as I don't have the time, but if someone else needs help with it I'll help out then. Or, just do what I did and drill & file it :p

Next I soldered the diodes and resistors into place. This was easy enough, but a note on the resistors: hotswap LEDs are all very well, but different colour LEDs require different resistors. I had two types of LED in mind: plain blue, to match the original style; and slow-cycling RGB LEDS, because RGB wooo. I basically chose my resistors (100ohm 1/8W) based on the blue LEDs' forward voltage, which also happened to be compatible with the forward voltage range of the RGB LEDs. So, just be careful choosing your resistors if you want to change LED colours!

Next step was fitting! Here's a shot of the inside of my device, because it shows the tiny USB hub I use to only have one cable coming out of the controller (well, the underside of it, at least). Also an excess of wire from the USB hub to the Teensy; it ended up like this because when I did the analogue joystick mod, I only took the dpad-module off, rather than disassemble the whole unit, and needed excess wire to be able to solder it all up and get it back together. Looking back, it would have been much better to fully disassemble, and by doing so I could've used much less wire. Not planning on changing this now, as I'm a great believer in "if it ain't broke, don't fix it".

Here's the inside with the keypad inserted; I managed to desolder the entire ribbon cable from the original keypad, once I'd resoldered it to the new PCB (and tested everything!) I applied hot glue to strengthen the connections and insulate any bits of bare wire.

This is what it looks like from above:

Throughout the process, I had been testing it using an old laptop; once I had reassembled the case, I plugged it into the gaming PC, and was pretty gutted when it started constantly connecting and disconnecting :( I imagined I must have damaged a connection or something during reassembly. However I re-tried it on the laptop before ripping it apart again, and it worked perfectly... so for some reason or another, a Windows problem had arisen and must be at fault. Before I got too technical on trying to resolve it, I tried the old trick of plugging it into a different USB port - and that worked perfectly, phew!

Once assembled, the keys feel amazing compared to the old rubber membrane efforts. And the lighting effect is just as good as the original, which I had been worried wouldn't be the case with switch-mounted LEDs! My choice of LEDs certainly wouldn't be to everyone's taste - I had a good idea that the colour-cycling LEDs wouldn't stay in sync for long, and I was right about that. When you first power on they all start off red, then green, and so on... but quite quickly they start to go out of sync, and you end up with technicolour unicorn vomit on your keypad lol. I actually kind of like it though, heh. So I might keep it, rather than return it to blue. Nice to have the option though!

In use, it's fantastic. A massive improvement. The only thing I might change, is that I think I preferred the feel of the original keycaps. I may in future convert the original keycaps to Cherry MX fittings by taking the pegs from donor keycaps, like Diesector did. Or, I may just see if I adjust to the difference.

I'm still not quite there; one thing I've learned is that you're never done with a mod lol! Apart from the keycaps, I'd like to mod the thumb button too. It's just not responsive enough; many times I don't press it firmly enough and it doesn't register the keypress. I have a low-profile mechanical switch to fit in its place - but that's for another day!

If you want to do the same, here are the parts you will need:

Hot-swap switch and LED sockets from AliExpress (if you want both types, be sure to pick the "colour" as "led add switch")

PCB from wherever (if you do use PCBWay, I have a referral link) EDIT: actually, I forgot - if youíre in the UK, I have four spare PCBs (the minimum order quantity was five), drop me a message on here if you want one.

Modded bottom plate - note this needs further tweaking for the hotswap connectors, I haven't had time to modify it yet.

Top plate

Archive.org snapshot of the first page of this thread with pics intact

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 11:12 AM - 08/07/21 »
Parts have arrived, everything seems to fit - next step is assembly!

Tutorials / Re: Hycarus gaming keypad : HELP
« on: 01:04 PM - 07/28/21 »

On the plus side: hacky hacky mod time!

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 07:25 AM - 07/22/21 »
Well, progress!

I decided I wanted to make the switches and LEDs in my device hot-swappable; I currently have a batch of cheap Gateron yellows, which are allegedly somewhere near a Cherry MX Red switch. But if I don't like them, I'd like the ability to try something else without too much hassle. I also wanted to be able to change the LED colours on a whim. So, I looked into hot swap sockets. Seems the main ones favoured by mechanical keyboard afficionados are MillMax or Holtite; however, getting hold of them in the UK is not cheap. And the LED sized ones are just not available.

So, I hit Aliexpress, and found exactly what I wanted! They look like copies of the MillMax type, and come in just the right quantity to do an N52te. But, I was pretty sure they wouldn't fit the holes in W11cE's PCB. Took me long enough to figure out how to confirm how large the holes were, but when I eventually did, they were indeed too small. So, I tried to enlarge them. There continued my epic struggles with Eagle. But, I got there in the end! So, I now have a PCB designed to accept the Aliexpress hotswap sockets.

I also eventually managed to get the bottom part of the 3D printed assembly to pass the manufacturability test! It looks like a slice of swiss cheese now, but the fab house reckon they can print it so we'll just have to see how it turns out. All parts are now ordered, so once I have them I'll let you know how it goes!

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 08:36 AM - 06/18/21 »
Here are the gerber files for the PCB, bear in mind I haven't got them printed yet, only that the PCB fab house have accepted them. Should be fine, but I'll confirm once I have PCBs in hand.


Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 01:57 PM - 06/15/21 »
Itís ok, I managed to get a version of Eagle installed and have generated gerber files; the PCB fab house accepted them, when I get the boards Iíll let you know if they worked ok!

Also ordering the 3D printed parts; the upper frame is fine, but the lower part I donít think is going to turn out that great as I had to make all the cutouts into through holes to eliminate all the <0.8mm bits they reckoned they couldnít print. I think itís gonna be rather flimsy. Just getting them printed cheaply in resin for now, once Iíve got them, if I think it needs tweaking I might get them reprinted in polyamide.

I think the lower part needs to be thicker but without parts in hand I donít know if that can work, so need the cheap prototypes before I commit to a more expensive print.

Tutorials / Re: Tut: Modded N52te, 2016 Edition
« on: 03:38 AM - 06/14/21 »
Does anyone have the gerber files for the PCB? I've got the .brd file from the OSHPark link, but need gerbers to get it made elsewhere.

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 10:24 AM - 03/16/21 »
I meant to post an image of my rat's nest of wiring - don't have nightmares folks...

There's a program button in there, below right of the encoder wheel - necessary for reprogramming in XInput mode, without having to open the thing up to press the button on the Teensy itself every time you want to change the code! I'm quietly pleased with the location, with the palmrest in place it is completely hidden and inaccessible, so can't be pressed accidentally.

For the Mark II, I've had a go at deciphering the N50's standard key matrix, but I'm still confused by it. It doesn't look as though it's organised into rows and columns to me, unless I'm missing something! I can always just copy the wiring as it is, but I wanted to add diodes to prevent ghosting, and I'm not sure where to put them if it's not a standard layout. Some trial and error before final assembly may be required...

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 07:46 AM - 03/15/21 »
Just an update - I got XInput working, analogue control with mouse aim is fantastic! The keyboard mode on the thumbstick was good, but this is much smoother. It does mean I'm limited in terms of keys, but to be honest I'm used to using an Xbox controller anyway, so I don't think it'll be a big issue to me (I actually prefer the way some things work with controller buttons in any case).

For the Mark II, I've decided to use a tiny USB hub inside the body of the pad rather than have two cables; I'll have to be a lot more efficient with my wiring this time, as I'll have the original PCB, the Teensy LC, and the USB hub PCB all to fit in there!! There should be less wires to the Teensy this time around though, so hopefully I can squeeze it all in.

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 07:25 AM - 03/04/21 »
Haven't posted an update for a while as I've been a bit busy, but this is now basically complete, so thought I'd better put some words down!

First off, the keycap adapters were a failure. My friend's 3D printer just didn't have the precision to print something that small. Bit disappointing, but I realised that rather than try to find a few keycaps for a sensible price, I could just buy an entire set of cheap ones  ::) so I did that!

I got the LEDs wired up; haven't got any photos of that, which to be frank is something of a mercy as it's a right bodge job  :-[ still, it works, which is the main thing!! I have them connected up to the Teensy's Vin pin, so they're getting the full 5V straight from the USB input; I used 120 ohm 1/8 W resistors to protect them (only fried one when I somehow managed to connect a resistor leg without the actual resistor!). The drawback of doing it this way is that the LEDs are always on whenever the pad is plugged in - even when the PC's not on. So I have to unplug it after use, unless I want a rainbow nightlight all the time  ;D

The encoder works, thanks to the code I got from this page: https://www.best-microcontroller-projects.com/rotary-encoder.html

Tuff taught me how to change the serial number of the Teensy in name.c to get it recognized by Windows again, the info is here: https://medium.com/@j0hnm4r5/changing-teensy-serial-name-and-port-name-2ca76552d26d (it's only the SERIAL_NUMBER bit you have to update).

I also had some major issues with my keypad. I was sure I'd wired it up correctly, but it just wouldn't work. @TuFFrabit to the rescue again, he gave me some code that scanned the matrix and the output showed that I'd managed to wire the rows as columns, and columns as rows!!  :-[ So once that was factored in to the keymap array, it all worked! I would NEVER have gotten to the bottom of that without TuFF's help, I can't overstate how important his assistance has been in getting this mod built, so if you read this TuFFrabit, thanks again man!  ;D

I keep forgetting to take pics of the bloomin' thing, for now this is the best I have - so, ladeez and gennelmun, I give you... the Nostromo N50+!

First impressions in use are that this whole keypad thing is AMAZING. I use this as a controller for Fortnite; aiming with the mouse is spectacular, I get what all the fuss is about regarding KBM being the best way to play. I have some way to go yet - there are still plenty of things I can pull off better on a controller - but I can tell it's mainly just re-training my tired old man's brain  :P With movement under my thumb, I'll get the hang of the rest in time.

There are a few things I'd do differently next time - and yes, there's going to be a next time... I managed to pick up another N50, this one fully working!

For starters, I discovered late that games like Fortnite only support Xinput controllers; and by default, the Teensy joystick implementation is DirectInput. So, it doesn't work as an analog stick in Fortnite. It does work in digital mode, so I still have 8-way movement under my thumb, and that's good enough for now. You can program the TeensyLC to be an Xinput device; but, it emulates an Xbox 360 controller in that mode, and cannot also be a keyboard. That means you're limited to the number of buttons a 360 pad has - 10 (plus the guide button, but that's not much use in a game). For the N50, that's not a massive disadvantage - it doesn't have all that many more buttons than that anyway (my N50+ has 16 available). But it would be a major compromise for anything else, like the N52's or the Razer keypads.

So, my plan is to get the Xinput code working with this one, and then to dual-mod the next one. I'll install an analog stick, and an encoder, and the Teensy will handle that in Xinput mode; but the N50's own PCB will remain in place to handle  everything else. That will have the advantage that I can use the Belkin software to map all the buttons, and have the full range of KBM functionality but with analog movement!

I have also found that the 24-detent encoder I fitted to the Mark I device is a little too... skittish I guess you could say. I currently have it set up to cycle through my inventory slots, but I've found it's way too easy to skip too far - if you just want the next slot, all too often you scroll two detents by mistake, as they're so close together. I could fix this in code, either by requiring two detents before it sends a keypress, or introducing a timing function so it will only send a keypress every so many milliseconds. Either would work, but I think they would feel a bit kludgy. So for Mark II I'm going to try a 12-detent encoder, hopefully having to turn the wheel a bit more between detents will help avoid over-scrolling.

I'm also undecided as to whether I'm going to replace the keypad with keyswitches. I'd like to, it's just quite a bit of work, with all the cutting required, and lots of soldering. Plus I'd have to decipher the matrix, and connect it to the N50 PCB, and I'd be worried I'd mess something up... I could use TuFFrabit's matrix scanning code to help, if I temporarily connect the N50's points to the Teensy I guess. And If I do it, I can add diodes to prevent ghosting (the N50 suffers from this out the box). Plus, I did get some cheap Gateron keyswitches already... I'm probably going to do it, aren't I  ::)

Assuming I do fit keyswitches, I might not add LEDs. That was definitely the hardest soldering job, and I didn't do it well. But then again... I have been looking at RGB LEDs... I must be a glutton for punishment  ???

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 08:47 AM - 02/17/21 »
Bit more progress since the last post. I've now wired up my keyboard rows and columns!

Haven't wired them up to the teensy just yet, and the LEDs are giving me some cause for concern - there's not a lot of space left, so wiring them all up is going to be tricky. I've left that for another day for now!

Another issue I found was that the keyswitch in the top right of the pic clashes slightly with the curved section of the base; not by a lot, but enough to put pressure on it if you try to close the case up tight. There are tiny bumps on each corner of the keyswitches, so I cut that off, and filed it down a tiny bit; that was enough to alleviate the pressure.

When wiring up the keyboard matrix, solid core wire really helps! You can form a little loop in the wire and pop it over the pins, makes soldering them a doddle. Same goes for the diode legs. I had forgotten how hard it is to solder more than two things together, if you're working with stranded wire, twist them together prior to soldering. I used this method to daisy chain as many ground connections together as possible to save on excess wiring.

I've also dry-fitted the encoder wheel, not soldered it yet but with a few modifications it's a good fit, and saves so much space inside!

To make it fit, I had to dremel a small recess in the wheel, and file a bit off the end of the encoder shaft, and a little off the shoulder:

Also needed to shorten the vertical plate on the base that it sits on by a bit. Take this easy, a bit at a time, as you can always take more off but you can't put it back on if you go too far!!

I also decided that the N50 just doesn't have enough keys, so I added a few long shaft tactile switches near the joystick module for some extra buttons:

I think they're a bit too long, but I haven't shortened them yet as I want to see what they're like in use (again, easy to shorten, impossible to lengthen). There's also another button and a status LED in front of the scroll wheel but I haven't wired those up or photographed them yet.

Still a way to go yet, I need to finish connecting everything up and test it all works before I hot glue all the components in place. I think I've figured out the encoder wheel code, so getting that wired up will be a big step forward!

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 08:28 AM - 02/09/21 »
Progress! I've installed the Cherry keyswitches.

There's a bit of fettling still to do before I can wire everything up: one of the switches isn't quite straight, and a couple are too tight which is squeezing the body of the switch enough to make them stick a bit. It's going to be a bit tight in there with all the wiring for the keyboard matrix and the LEDs; hopefully my soldering won't be too messy  :-\

Keycaps wise, I had planned on re-using the original ones, to keep it looking as stock as possible; I then thought it would be easier just to use some cheap Cherry-compatible ones to save time and effort, however I was shocked at the price of keycaps! So decided to press on with recycling the existing ones. I was inspired by this mod which inserted the posts off salvaged keycaps into the original ones from an N52: https://www.youtube.com/watch?v=YGwiPFXg_e4 Since I don't have any salvaged keycaps, but I do know someone with a 3D printer, I designed some adapters to fit into the N50's keycaps once I'd cut their posts off level with the bottom of the key.

Have to wait until I get a test one printed to see if it works OK.

I did also come up against an issue with the Teensy, which I thought might be worth documenting here, since it wasn't something I had come across in my research beforehand. I had to invert my X and Y axes in the code (thanks for the assistance @tuffrabit!), and after I reflashed the Teensy, it stopped showing up as a controller in joy.cpl!!

Turns out, this is a known issue with Windows - due to some crummy way it manages HID interfaces, it will sometimes just mess up and assign the wrong drivers or something to a previously working Teensy! It can be fixed either by deleting the registry entries associated with the device, or changing the serial number of the Teensy in the sketch. Either way, Windows will then detect it as a new device again and it will work once more. This discussion topic details the method - also confirmed by tuffrabit via email! https://forum.pjrc.com/threads/23566-Teensyduino-USB-Joystick-no-data-driver-problem-workaround

I haven't done that yet, as the PC I'm using to program the Teensy isn't actually the one I need it to work with, so as long as I can continue to flash it there's no real issue for now. Connecting it up to another PC shows it is still working just fine!

Tutorials / Re: Belkin N50 analogue & keyswitch mod
« on: 05:29 AM - 02/05/21 »
All that aim assist rings do is make the analog stick harder to move and create unpredictable input. I sold them as "stick drift removers" because they are terrible at their stated purpose. I recommend not using one in your project.

I was thinking of the rubber boot type, cutting them up and just using the upper section, so it hopefully wouldn't affect the stick too much; but I don't think I'll bother, unless I find there is a problem.

Pages: [1] 2