[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 202 KB, 1600x1195, WhatsApp Image 2018-03-10 at 14.42.15.jpg [View same] [iqdb] [saucenao] [google]
1347229 No.1347229 [Reply] [Original]

Made a hand wired keyboard with a ATMEGA32u4 (pro micro clone), tried flashing with QMK firmware using xLoader

It worked but at that point it was recognized as a keyboard so i couldnt modify the layout anymore so i ended up flashing the bootloader via ISP.

Now i when i flash the .hex file, it's still recognized as a keyboar but there's something wrong with it, no "driver" and every 2 sec it disconnects and riconnects.

(Pro micro power light always on full beam, and a red led, probably rx, flashing at really low light)

Someone has a solution?

>> No.1347299

>>1347229
A solution, yes. Fuck off.

>> No.1347300

>>1347299
Op was not a faggit for once. No u

>> No.1347315
File: 211 KB, 1200x675, city-of-the-future-hd-wallpaper.jpg [View same] [iqdb] [saucenao] [google]
1347315

>>1347229
How did you do this?

>> No.1347317

Does the PC still recognize the COM port?
> flashing the bootloader
You shouldn't have to do this.
https://www.sparkfun.com/products/12640
The reviews say the bootloader can be shit, maybe you got something wrong when flashing it.

>> No.1347321
File: 1.84 MB, 1000x5000, wiring2.jpg [View same] [iqdb] [saucenao] [google]
1347321

I did not have this problem and will unfortunately be of no help, sorry.

>> No.1347329

>>1347321
why is there a diode on every button?

>> No.1347338

>>1347329
If you think real hard about what would happen without them it should become apparent

>> No.1347340

>>1347329
Think what would happen if more than one button was pressed at a time.
Tho I'd be more towards using pull up and debounce circuits. But that my being an old analogfag.

>> No.1347345

>>1347338
>>1347340
Nothing bad would happen if you press more buttons if you are not retarded and know what you are doing. Sounds like you have no idea how to operate a matrix keyboard.

>> No.1347348

>>1347340
>>1347338
Also you sound like you have no idea how the pins of a microcotroller work or how to code it.
WTF

>> No.1347350
File: 30 KB, 550x446, wtf.jpg [View same] [iqdb] [saucenao] [google]
1347350

>>1347345
Not understanding ghosting and matrix switches.
Being this butthurt out of ignorance.

>> No.1347359

>>1347350
>https://deskthority.net/wiki/Rollover,_blocking_and_ghosting
That was so difficult to say that first you fucking retard, right?

>> No.1347400
File: 75 KB, 960x883, pancakes_house_pleases_me.jpg [View same] [iqdb] [saucenao] [google]
1347400

this whole thread is making me hungry

>> No.1347643
File: 106 KB, 960x587, 1434562399810.jpg [View same] [iqdb] [saucenao] [google]
1347643

>>1347400

>> No.1347679

>>1347315
it's actually quite simple, if you are interested in it try watching The Board channel on youtube.

You will discover sites like Keyboard layout editor, plate & case builder and keyboard firmware builder.
The real tricky part is to not dump all your money into the plate/case and also use a teensy instead of a pro micro to avoid problems like mine

>> No.1347682

>>1347317
It kinda does, because of the fact that in keeps disconnnecting and reconnecting as a keyboard with the right timing i'm able to flash the blink.hex with arduino IDE and then it works normally.

But as soon as i flash the keyboard.hex all the problems are back again

The board was recognized from the start as an Arduino Leonardo, when i flashed via ISP i used the Arduino ide bootloader for the Leonardo, is that what i did wrong?

>> No.1347685

>>1347321
Yeah you used a Teensy, which use the same atmel but has his own program and works fine.

If i can't get myself out of this driver-bootloader problems i'm going to buy a teensy.

Also what do you think of my decision for a single unit Space Key? Madness?

>> No.1347702
File: 64 KB, 3624x1208, loliboard.png [View same] [iqdb] [saucenao] [google]
1347702

>>1347685
I wish you luck.
Teensy was ezpz though - $20 or whatever might be worth it just to save you the time and headache.
>Madness?
If you always want to type it with the same thumb in the same place, then by all means~
Playing with layouts is fun - And (like anything I suppose..) have it perfectly tailored to you and what you want is just the best.
People think I'm crazy, but putting the numbers under the home row was one of the best things I ever tried.

>> No.1347738
File: 179 KB, 488x296, 1514344385477.png [View same] [iqdb] [saucenao] [google]
1347738

>>1347702
Wow that layout seems awful to type on

>> No.1347740

>>1347738
It's just normal Dvorak mostly.
You get used to the double shifting real quick and it makes everything real easy with minimal strain and no crazy reaching - Everything is right under my fingertips at all times, it's great.

>> No.1347799

>>1347643
KEK

>> No.1347800

>>1347321
>>1347229

post photos of the other side!

>> No.1347818

>>1347682
https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/troubleshooting-and-faq
>We ship the Pro Micro with a modified version of the Arduino Leonardo bootloader
>If you need the bootloader to run longer, resetting twice quickly will get the Pro Micro to enter bootloader mode for eight seconds.
>The most common source of Pro Micro “bricking” is uploading code to it with an incorrectly set board (e.g. programming a 16MHz/5V Pro Micro with the board set to 8MHz/3.3V). Also, make sure your sketch doesn’t mess with the ATmega32U4’s PLLCSR register, or any other register that sets up USB functionality on the ATmega32U4.
>How to Revive a “Bricked” Pro Micro
^this is what you should do instead of a new bootloader

Now that you used the Leonardo bootloader try to set it as Leonardo instead of Pro Micro in the Arduino IDE.

>> No.1347823

>>1347818
Well they say they only changed the way the reset button worked, also the pc always called it as Arduino Leonardo in the device manager even before my ISP flash.

Now talking about that, i bought two pro micro, and the other is seen as Arduino Leonardo ETH which i haven't investigated on yet.

On top of that i tried flashing the firmware on the second one too (which i neved did anything to and was sealed until a couple of hours ago) having the same results

>> No.1347824
File: 1.57 MB, 2592x1936, WP_20180312_13_57_59_Pro.jpg [View same] [iqdb] [saucenao] [google]
1347824

>>1347800
No keycaps yet, they will probably arrive during the week, i'm working right now on acrylic cover for the back

>> No.1347829
File: 1.28 MB, 2592x1936, WP_20180312_13_58_09_Pro.jpg [View same] [iqdb] [saucenao] [google]
1347829

the switches are Kailh Bos Heavy Yellow, linear switches with 70g springs, they feel real nice and i like the high actuation force (but that's something about personal taste)

I'm typing on a Fnatic Rush with Cherry Blue

>> No.1347834
File: 161 KB, 1600x1195, WhatsApp Image 2018-01-28 at 22.06.41.jpg [View same] [iqdb] [saucenao] [google]
1347834

To keep this thread and your interests alive while i'm still smashin my head on it. This is how the 3d printed frame looked on top of a normal full sized keyboard

>> No.1347836

>>1347823
>Well they say they only changed the way the reset button worked
If that was true then you wouldn't need to specifically setup the IDE for the micro pro. Their bootloader is different: https://github.com/sparkfun/Arduino_Boards

Do this:
Install the arduino drivers manually. Restart PC.
Try also the ETH bootloader.
Setup the IDE for the specific board.
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro

>> No.1347838

>>1347823
Try also uploading the firmware with xloader and arduino IDE if there's a difference.

>> No.1347853

get the pro micro bootloader hex from here:
https://github.com/sparkfun/Arduino_Boards/tree/master/sparkfun/avr/bootloaders/caterina

or if you want to keep using the leonardo bootloader then try also uninstalling the pro micro drivers (https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/installing-windows))

other thing you can do:
-uninstall all pro micro and arduino drivers
-connect the board to another USB port

>> No.1347862
File: 153 KB, 1000x1000, ESP8266OLED.jpg [View same] [iqdb] [saucenao] [google]
1347862

>>1347229
do all-in-one computer instead

>> No.1347864

>>1347862
troll /g/ you retarded cocksucker

>> No.1347942

>>1347740
>>1347738
70% of the letters in the english alphabet are on the home row; notice that the five most common vowels are on the left hand and the five most common consonants are on the right.
Dvorak is master race tbq, Colemak can suck a cock.

OP, I just bought a teensy on ebay for 10$, it costs more to get it shipped faster.

I'm building my first keyboard, an egodox when all the parts come in.

I want to build a custom keyboard for my step dad, he has one arm because of a chainsaw accident so I'm thinking about custom building him a left hand dvorak keyboard.

>> No.1348081
File: 1.48 MB, 204x324, assblasted.gif [View same] [iqdb] [saucenao] [google]
1348081

>>1347359
such butthurt.

>> No.1348083

>>1347643
I want one of these.
Plus am hungry now.

>> No.1348087
File: 1 KB, 1920x1080, deal-with-it.png [View same] [iqdb] [saucenao] [google]
1348087

>>1348081
more like.. buttblown

>> No.1348142
File: 107 KB, 620x620, digispark5.jpg.2560x2560_q85.jpg [View same] [iqdb] [saucenao] [google]
1348142

>>1347229
>it's still recognized as a keyboar but there's something wrong with it, no "driver" and every 2 sec it disconnects and riconnects.

I'm having the same problem with a digispark as a HID keyboard. I reainstalled the drivers but nothing happens.

Try going to device manager, view > show hidden devices, find your keyboard and manually install drivers. Maybe it'll work in your case. Btw, are you outside of the US? It might be a compatibility issue between Europoor and Murrican keyboards. I'm saying this because I'm in Europe.

>> No.1348151

>>1348142
I'll try to erase the uC using my USBasp and try installing the digispark drivers with signature verification off, since windblows doesn't likes it when I try to install my own. At least I know that I can upload the code it if the uC is blank.

I'm a retard and deleted my USBasp drivers in the process, so that's enough fun for today, I'm going to sleep.

>> No.1348171
File: 1.81 MB, 4000x3000, IMG_20180313_030020.jpg [View same] [iqdb] [saucenao] [google]
1348171

>>1348151
Well, I'm not sleeping tonight, so I uploaded a blank sketch and reinstalled drivers but nothing happened.
Apparently chinesium boards do not come with pin 5 (reset) enabled as an output, so that might be the problem, when I try to reprogram it, it resets? But how was it able to program it in the first place? I don't really know what's happening. At this point I'm not sure we have the same problem. I'm going to sleep, hopefully a wiser anon can help us out.
http://thetoivonen.blogspot.com.es/2015/12/fixing-pin-p5-or-6-on-digispark-clones.html

>> No.1348259

>>1347834
is that the fnatic logo on F12?

>> No.1348265
File: 26 KB, 361x689, gnegeng.png [View same] [iqdb] [saucenao] [google]
1348265

OP HERE
I checked the "show hidden devices" in the device manager windows and deleted every device genereted from either the "keyboard" or the "pro micro". Then reconnected everything and this is all it creates. Note that in the photo the pro micro has the blink.hex on it or it will be on the disconnect loop which start to cause me quite the heached with the windows sounds.

I can't burn the SparkFun bootloader for now, because i don't have an Uno here

>> No.1348269
File: 129 KB, 1600x1195, WhatsApp Image 2017-10-04 at 23.09.18.jpg [View same] [iqdb] [saucenao] [google]
1348269

>>1348259
yep, it's a Fnatic Rush Keyboard

>>1347942
Wow nice thing to say and to use, if you already dont know it use the "Keyboard layout editor" site, it really helps along with "Plate & case builder" and "Firmware builder". He could also use some pedals; i did these ones wiring an old joystick pcb to the switches and using UCR (universal control remapper, you need to have it open in the background to work) to determine which switch does what. My switches are actually too loud so i'm going to replace them with footswitch like the ones on guitar pedals, and control them with the second pro micro (if i get the first to work)

>> No.1348544

>>1348265
I'm >>1348171 I reuploaded the bootloader with my USBasp and avrdude and it worked flawlessly. That seems to be the solution, aparently it corrupted somehow after the first use, now it works everytiem.

>> No.1348928

OP again. Tried too many times too use the UNO as ISP and burn the sparkfun promicro bootloader on the board. Keep getting this error "avrdude: ser_open(): can't set com-state for "\\.\COM3"" I'm currently not good enough with arduino.
Going to stop here, before risking to brick the UNO. In case i manage to resolve before the thread disappear i'll post photo of the completed keyboard.But in any case i will post it in a new thread were i wanna ask some things about my next project.
Thanks everyone (even the trolls, it's not 4chan without trolls)

>> No.1348935

>>1348928
Are you sure your device is in COM3? You can try to blink and LED on your clone using the Arduino IDE with Arduino as ISP (not ArduinoISP) to see if you can upload stuff with it, then use avrdude to flash the bootloader.

I think you also need to put a 10uF capacitor between the reset pin and GND on the Arduino board to make it work.

>> No.1348939

>not just erasing your program with UV light

>> No.1348946

>>1348939
Real programmers use butterflies.

>> No.1349059

>>1348939
I laughed too hard at this..

>> No.1349116
File: 167 KB, 1600x1195, WhatsApp Image 2018-03-14 at 16.37.50.jpg [View same] [iqdb] [saucenao] [google]
1349116

>>1348935
Keycaps arrived! Got the Arduino as ISP thing right, now the board is seen as a SparkFun Pro Micro.

Flashed the .hex file downloaded from "QMK Firmware Builder" and the reboot loop continues ---------> teensy here i come!

>> No.1349939

>>1349116
what printer did you use for the enclosure?

>> No.1349940

>>1347299
tiny penis?

>>1347229
Awesome project OP. Do you have some sort of a guide for it? I was interested in the possibility of making keyboards for a while

>> No.1351764

>>1349939
Witbox 1, a friend of a friend, spent 40€

>>1349940
Not really, but if you here you will find everything you need:

- what to know about switches https://www.youtube.com/user/Chyrosran22

- a guide form channel https://www.youtube.com/channel/UCg98oJZNffR9nDLJNkorjqw

- site to tinker at the start http://www.keyboard-layout-editor.com/#/

- copy Raw Data here for case http://builder.swillkb.com/

- copy Raw Data here for firmware https://kbfirmware.com/ (or learn how do it with the QMK wiki)

>> No.1352026

OP, isn't that the most common ortholinear layout available? You probably could've bought a pcb.

>>1349940
There's a thread on >>>/g/mkg/ if you want anons to tell you cherry switches are shit. Aside from a few random posters, they don't do custom builds much anymore.

>> No.1352340

cherry costs too much for what they are


>>1352026
The teensy costed me 8.50€ + 200 diodes for 1€ and the wires of an old PC i had. 40%pcbs are sold at aroung 40€.
The point of this project was to have something personal that works good without breaking bank, but i have to admit that in total i spent almost 90€ because apparently plastic costs A LOT

>> No.1352795

Hey OP. I started a project like thus a while back. Currently I'm just reading up on electronics so I can make a sensible kicad file.
Any tips you got for me? I'm looking to use the same chip as you did, as per that one github page you probably also used.

>> No.1352810

>>1352795
Nothing you probably don't know already, the electronic side of keyboards like the one i did is pretty simple. The problems will only be about positiong of the components and the order you solder them in. About the promicro the only tip i can give you is to understand and learn about it and about the program you want to use to programm it before you start tinkering, to avoid problems about drivers and bootloader. And maybe buy the original, not a clone like i did, so in case of problems you can follow guides

>> No.1352850

>>1352810
The project is taking longer then I thought, only because the last time I did anything electronics related was in school 10 years ago. So it really feels like climbing a mountain. But hey, one step at a time and I'll get there.
I really wanted to include a USB hub and maybe a small DAC into the housing as well. Price wise I'd be looking at under 500€. But since this is a year long project I see it as a neat way to learn about electronics.
Programmable LED's is the hardest part, but atafruit has some really neat modules.

>> No.1353233

>>1352850
500... ok i wanna see that

>> No.1353358

>>1353233
Did some counting and that's what I'll be shooting for...
Custom printed PCB -90
Diodes- 5
Keycaps - 50
Plastic case - 35
Metal case -50
Microcontroller -35
USB C connector and splitter board - 30
LED's - 50
Anodized coating for metal case - 40
DAC - 35
And then another 100 as an overhead for when I inevitably fuck stuff up.

>> No.1353589

>>1347702
>he has a button on his keyboard specifically for "rubbing one out"

>> No.1353614

>>1353358
I actually printed a PCB that uses an EMF32, and the boards came out to be about $90 for 6-7 boards ( I ordered 5)

>> No.1353616

>>1353614
As a noob in electronics, could you help me by telling me what made you pick that MCU?

>> No.1353628

>>1353616
honestly I wanted something that wasn't arduino based lol. I designed a few keyboards based on the 32u4, and I always found myself defaulting to the arduino IDE, and I wanted to use something that I couldnt of.
I didnt want to use anything PIC, cause noob, and SI has a similar environment that is similar and doesnt seem to scary compared to the pic ide.
plus they are suuuuper low power, and I plan on making a BT version in the future.

>> No.1353629

>>1353628
also, the EMF32 is way overpowered for this. Id recommend not using it. Its more of an exercise to use this really.

>> No.1353666

>>1351764
Wow thanks for the resources. They really helped me!

>>1353628
Hmm thanks. Do you know of any way to virtually test a PCB and virtually program the MCU? I'm hoping to learn how to use it before I order anything. I tried google, but it didn't give me a satisfying answer

>> No.1353763

>>1353666
there is some simulation software, but I dont know too much about it, look into SPICE, I think there is the ability to "program" some micro controllers in the simulator.