![]() Have fun! I hope you enjoyed this project! Downloads PCB One key USB right with optional LED and light pipe. Finally, select a key cap and place the key cap on the key switch. Once you’re happy with the operation of the keyboard, unplug it and assemble the case around the PCB. To change what the key does, modify the key codes sent by the software on lines 359 to 372 of the function APP_KeyboardTasks in the file app_device_keyboard.c. If it doesn’t, the most likely issue is solder bridges between the pins of the USB connector or PIC. When programming is complete, the red LED should flash quickly and the keyboard should begin working immediately. Finally program the micro while holding the programmer’s connector and a header in the holes of the programming of the header on the PCB. Connect the keyboard and programmer to USB ports on the PC. To program the micro, open the project in MPLAB X. Do not solder a connector to the programming header on the PCB. Lastly, solder the Cherry MX key switch to the board. After those two parts are soldered to the board, check the pins and traces for solder bridges very carefully then move on to soldering the rest of the surface mount components. ![]() ![]() When assembling the PCB, I recommend soldering the USB connector first then soldering the PIC16F1459 next. The parts and pieces required to build the single-key keyboard. To program the microcontroller, you need a PIC programmer such as a PICkit, ICD, or Real ICE. The one key USB right and one key USB top keyboards use the same 3D printed enclosure. To build the keyboard, pick one of three basic variations then select the the PCB, enclosure, parts, and software for your board from the downloads section below. These three LEDs really don’t add much to the project but having them to indicate the USB status is helpful when bringing up the board. This board has a provision for a 3MM through-hole LED under each key. Whether to expose the LED, keep the LED hidden, or use a light pipe to direct the LED light is up to you. There’s an LED on the top side of the key. There’s a hidden red LED on the right hand side of the key. Three variations of the small USB keyboards: single key with USB top, single key with USB right and optional LED and light pipe, and finally the three key version. Second, this increased the distance from the center of the USB receptacle to the bottom of the housing to 4.7mm which is greater than the 4.25mm required by the USB Micro-B max overmold dimension specification. ![]() First, I could use 0.5” screws to assemble everything which more than adequately reached the recessed nuts. Increasing the bottom height to 6.05mm and the overall enclosure height to 12.7mm solved both these issues. Also, the maximum USB plug overmold thickness is 8.5mm so for thick USB plugs the keyboard could be resting on the bottom of the USB plug versus resting on its own bottom. Unfortunately, my 7/16” screws were 0.020” short and barely reached the nuts. I planned on using 7/16″ screws to assemble the enclosure. Initially the bottom was 5mm high making the enclosure 11.65mm high overall. The second snag involved the the overall height of the enclosure. The arrow indicates the 1mm wall thickness between the cube face and nut recess. Dark blue is a face of the 6mm x 6mm cube around the nut recess. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |