A macro F() é a túa amiga...

#arduino
#atmega32u4

Bad USB — сильнее чем кажется на первый взгляд

Сегодня разберемся с довольно старым но очень даже актуальным методом инфицирования системы, рассмотрим нестандартные приемы Bad USB о которых почему-то мало пишут но и тайной они не являются (такие как: ALT-коды, запуск от имени администратора, обход Windows Defender и зачистка следов).

https://habr.com/ru/articles/903510/

#badusb #физические_уязвимости #arduino #atmega32u4 #uac_bypass #windows_defender

Bad USB — сильнее чем кажется на первый взгляд

Сегодня разберемся с довольно старым но очень даже актуальным методом инфицирования системы, рассмотрим нестандартные приемы Bad USB о которых почему-то мало пишут но и тайной они не являются (такие...

Хабр

My recent build of a #chorded #keyboard, a clone of Chordite. Work-in-progress firmware in #rust and (still some) C at: https://github.com/akavel/chordite-rust

Planned next steps:
- practicing actually typing on it... (the hardest one);
- tweaking and "improving" the layout and functionalities (a neverending story?) - interested in anyone who might somehow help make some sensible one given the constraints of the device;
- hopefully adding mouse functionality based on a gyroscope module (some "MPU6050" board is on its way) - will it work fine enough?
- maybe one day wireless through BLE?

Once I have the mouse functionality built and added, my main goal is to try and be using it with #XReal One glasses I bought recently.

Thanks @rahix for avr-hal; thanks @PaulStoffregen for #teensy; thanks John W. McKown for creating #Chordite, thanks @rustembedded for helping make Rust on embedded possible; thanks my amazing friend for soldering it for me, and thanks many others for many other things.

#theWorkshop #chordedkeyboard #atmega32u4 #avr

GitHub - akavel/chordite-rust

Contribute to akavel/chordite-rust development by creating an account on GitHub.

GitHub
Floorboard Is A Keyboard For Your Feet

Whether you have full use of your hands or not, a foot-operated keyboard is a great addition to any setup. Of course, it has to be a lot more robust than your average finger-operated keyboard, so b…

Hackaday
PlatformIO: How to use RobotDyn Arduino Leonardo Ethernet W5500

Through my journey to find the best Arduino compatible Ethernet Shield, I found a very nice and promising Arduino Board with a built-in ethernet.

Technopolis.tv
#maker This is quite an old project which I finished in 2015.
A "complete #Arduino" in an #automotive ('Bosch-style') relay case with a USB connector (for use as kinda "micro-#PLC" in cars).
It is based on #ATMEGA32U4 and is even somewhat modular, you can combine different base-boards (the bottom one) with different MCU-boards (the top one).
The base board is responsible for the physical I/O level and for power supply and protection.
There's even an optional ('headless') #MSD #Bootloader for it.

Threeboard: Short on Keys, Long on Documentation

As peripherals go, few are hacked on more than keyboards. The layouts, the shapes, the sizes, materials, and even the question of what a keyboard is are all on the table for tinkering. In that vein, [TaylorConor] released his simplified keyboard called the threeboard on GitHub, having only three keys and replicating a full keyboard.

We've covered keyboards built with chording in mind, wrapped around coffee cups, and keyboards with joysticks for added speed. So why cover this one? What makes it different? The execution is superb and is a great example to look at next time you're making a project you want to show off. The keyboard is just three mechanical switches, two 8-bit binary displays (16 LEDs total), three status LEDs, and three LEDs showing the current layer (four layers). The detailed user's manual explains it all. There is a reliable Atmega32U4 microcontroller and two EEPROM chips at its heart.

Where this project shows off is the testing. It has unit tests, simulated integration tests, and simulated property tests. Since all the code is in C++, unit testing is relatively straightforward. The integration and property tests are via a simulator. Rather than recompiling the code with some new flags, he uses the simavr AVR simulator, which means it simulates the same binary file that gets flashed onto the microcontroller. This approach means the design is tested and debugged via GDB. It's an incredible technique we'd love to see more of in hobby projects. Marketing speak might call this a "digital twin" but the idea is that you have a virtual version that's easier to work on and has a tighter iteration loop while being as close as possible to the physical version.

[TaylorConor's] goal was to create a from-scratch microcontroller project with easy-to-read code, fantastic documentation, and best practices. We think he nailed it. So feel free to run the simulator or jump right into building one for yourself. All the hardware is under a CERN-OHL-P license, and the firmware is under GPLv3.

#microcontrollers #peripheralshacks #atmega32u4 #keyboard #simavr #simulator

Threeboard: Short On Keys, Long On Documentation

As peripherals go, few are hacked on more than keyboards. The layouts, the shapes, the sizes, materials, and even the question of what a keyboard is are all on the table for tinkering. In that vein…

Hackaday

Play Doom or GTA V With Your Own Custom Controller and Xbox Emulator

[Arnov] is bringing his own custom-made controller to the party and it is sure to impress. The design appears to have been inspired by the Xbox controller layout. Two joysticks for fine control of game characters, 4 face buttons, and two shoulder buttons. He opted for all through-hole components to make the assembly easier. No messing with tiny surface mount components here. We really appreciate the detail given to the silkscreen and the homage paid to a staple of retro gaming.

We were pretty impressed with how smoothly the controller translated to the game. He mentioned that was a huge improvement over his previous design. His original design had buttons instead of joysticks, but switching to joysticks gave him much better in-game control. That could also have a lot to do with the Xbox controller emulator running the background, but still.

Given that gift-giving season is upon us, you could really impress the video game enthusiast in your life with this as a custom gift. You could even run Retro games like Doom if you hook it up to a RetroPie. That ought to get a few people's attention.

#games #handheldshacks #atmega32u4 #doom #pacman #videogame #xbox

Play Doom Or GTA V With Your Own Custom Controller And Xbox Emulator

[Arnov] is bringing his own custom-made controller to the party and it is sure to impress. The design appears to have been inspired by the Xbox controller layout. Two joysticks for fine control of …

Hackaday

Can’t Spill Coffee On Your Keyboard If It’s Already Inside

No matter where you live in the world or what beverage you enjoy, it's too easy to spill it on the keyboard. Obviously, the solution is to combine the two. That's exactly what Google Japan did this past April Fool's Day when they released the Gboard -- a cylindrical keyboard wrapped around a removable cup. But is it still a joke once you've open-sourced it and made a build guide, more or less?

Here's where it gets weird: each kanji on the keyboard represents a different kind of fish, and they're laid out in Japanese phonetic order. You're not stuck with the fish, though -- one of the 60 keys switches between fish input and regular Hiragana (the basic Japanese phonetic alphabet). Underneath all those fish are low-profile Kailh chocs hooked up to an ATMega32u4. We only wish it were wireless.

We love that they open-sourced this keyboard, and it even makes sense in a way. In order to produce a good April Fool's video, you actually have to make the fake product. The better it is (i.e. weird but plausible), the more people will like it and probably want one. So if you're going to go to all that trouble, why not set it free on GitHub? Note that the second line of the readme is "this is not an officially-supported Google product", which we suppose goes without saying.

Be sure to check out the short video after the break. If you don't understand Japanese, you'll want to turn on the closed captions.

You know, now that Raspberry Pi have made their answer to the Arduino, it's about time that Apple made their answer to the Raspberry Pi.

Via r/ErgoMechKeyboards

#lifehacks #peripheralshacks #atmega32u4 #kailhchocs #keyboard #mechanicalkeyboard

Can’t Spill Coffee On Your Keyboard If It’s Already Inside

No matter where you live in the world or what beverage you enjoy, it’s too easy to spill it on the keyboard. Obviously, the solution is to combine the two. That’s exactly what Google Ja…

Hackaday

Custom Num Pad Does Double Duty as Macro Pad

Why buy a num pad or a macropad when you can build something new and beautiful, open source that bad boy, and be a hero to the community? We think that should be all the justification you ever need to build instead of buy, even if you think your thing is Just Another Keypad [JAnK] as [Clewsy] claims.

At first glance, JAnK appears to be a standard number pad with four macro keys across the top. But when you roll your own 'board, all the keys are programmable. [Clewsy] took advantage of this by adding a second layer that's accessible with (what else?) the Num Lock key. This switches JAnK over to 21-key macro pad mode.

[Clewsy] rolled their own PCB for this and used the venerable ATMega32u4 because of its HID and USB host capabilities. Every key is backlit, and these LEDs are driven by an MP3202 LED driver and PWM from the AVR. [Clewsy] was able to build a prototype by sawing the num pad off of a stainless steel key switch plate from another build, but eventually ordered JAnK its own custom, laser-cut, stainless steel plate. The lovely enclosure is made of spotted gum wood and an acrylic base.

Putting it all together proved to be a bit problematic. [Clewsy] soldered up the minimum viable components for testing and discovered that the ATMega's VCC and GND pins were both shorted. This killed the AVR programmer, but not the chip itself, and [Clewsy] happened to have a spare. To add insult to injury, the Num Lock light didn't work, but [Clewsy] was able to simply reverse the LED instead of ordering a new pile of boards. Check out the detailed write-up with code and tons of pictures over on [Clewsy]'s personal site.

One of the awesome things about this build is that [Clewsy] was able to re-use the code from macr0, which began life as a proof of concept for scanning key matrices, and retired to become a music and media controller.

#arduinohacks #microcontrollers #peripheralshacks #atmega32u4 #avr #macrokeyboard #macrokeypad #numpad #usbc

Custom Num Pad Does Double Duty As Macro Pad

Why buy a num pad or a macropad when you can build something new and beautiful, open source that bad boy, and be a hero to the community? We think that should be all the justification you ever need…

Hackaday