Post Aq65b2CY2OlcJ5DpmC by foone@digipres.club
(DIR) More posts by foone@digipres.club
(DIR) Post #Aq652Za3wUoBhAmwEq by foone@digipres.club
2025-01-15T05:56:19Z
0 likes, 1 repeats
My latest #BadKeyboard: The MCKeyb! I built a keyboard in modded Minecraft, then hooked it up through a webserver and a wireless microcontroller, so it appears as a USB keyboard on a different computer. I then used it to post "Hello World!" to bluesky, from minecraft.Video here:https://bsky.app/profile/foone.bsky.social/post/3lfr32fijy22j
(DIR) Post #Aq6581QromHpWX5Mpc by Doridian@furry.engineer
2025-01-15T05:57:14Z
0 likes, 0 repeats
@foone Ah, ComputerCraft my beloved :3
(DIR) Post #Aq65JxXs5zaIwY3PUG by foone@digipres.club
2025-01-15T05:59:32Z
0 likes, 0 repeats
Technical details:So the minecraft side is relatively simple. It's 30 ComputerCraft computers running identical code that simply monitors the back of the computer for a redstone signal. When it sees one, it makes an HTTP call to localhost:3000/<COMPUTER ID>. Computer IDs are simply the order in which I placed them down, and are effectively random.
(DIR) Post #Aq65R7xPmZplGLQ4wa by foone@digipres.club
2025-01-15T06:00:49Z
0 likes, 0 repeats
that local webserver is a small Flask application:It manages shift key state (since the keys don't know about each other, the "A" key can't know if it should send "a" or "A") by toggling an internal shift value when the shift key is pressed. It translates the scankeys to ASCII values, and UDP's them to the microcontroller.
(DIR) Post #Aq65TwjHz3W5JD9liq by Doridian@furry.engineer
2025-01-15T06:01:08Z
0 likes, 0 repeats
@foone ...I just realized you could use a turtle to implement a scanning keyboard. Multiple and you could sort of have a (really slow) key matrix :3
(DIR) Post #Aq65b2CY2OlcJ5DpmC by foone@digipres.club
2025-01-15T06:02:36Z
0 likes, 0 repeats
The microcontroller is a Raspberry Pi Pico W, running a simple arduino sketch that connects to the wifi and listens for UDP packets. When it gets one, it presses that key to the attached computer.I ran minecraft on my main laptop (windows 10), and opened firefox to bluesky on my linux laptop, with the Pi-Cow plugged in via USB. It worked quite well, other than having to synchronize OBS across both computers to record this video.
(DIR) Post #Aq65hKm9tKz1eSsmQa by foone@digipres.club
2025-01-15T06:03:45Z
0 likes, 0 repeats
this heavily minimalist keyboard can't type numbers or special characters other than space and !, but it can be trivially expanded: Simply place down another computer with a button on it in Minecraft, copy the code onto it (I did this using ComputerCraft floppy disks, because I'm Me), and then modify the Flask app to turn that new computer-id "scancode" into the proper ASCII value.
(DIR) Post #Aq65ne4n2tDDFTbgFk by mjgardner@social.sdf.org
2025-01-15T06:04:48Z
0 likes, 0 repeats
@foone This isn’t the network federation we want, but it’s the network federation we deserve
(DIR) Post #Aq66HSBPpQYr3Av49A by foone@digipres.club
2025-01-15T06:10:14Z
0 likes, 0 repeats
The modpack is ATM9:To The Sky with Alphabet Blocks by DragonSlayr15001 added:https://modrinth.com/mod/alphabet-blocks
(DIR) Post #Aq676pL7UbnLdaxHxg by foone@digipres.club
2025-01-15T06:19:32Z
0 likes, 0 repeats
also this is the only keyboard I've built (so far) which has had filming paused due to llama. (I'm in creative mode on peaceful, I didn't realize that left the wandering traders turned on)
(DIR) Post #Aq67Fm78r1NwExgSjA by jesterchen@social.tchncs.de
2025-01-15T06:20:58Z
0 likes, 0 repeats
@foone Now my desire to show this cool project to my kid (and then having to rebuild it) and my desire to have a free weekend are no longer at odds.I think I can order a pico now. 😁Thanks for sharing and inspiration!
(DIR) Post #Aq68LiECJdj3sZNZUu by foone@digipres.club
2025-01-15T06:33:19Z
0 likes, 0 repeats
@tertle950 "what do you call it?""Computers!"
(DIR) Post #Aq6EujGt1n4WyXiXgW by MystiqueOfTheWildlands@mastodon.social
2025-01-15T07:46:54Z
0 likes, 0 repeats
@foone Cool. Blocky. Colored.
(DIR) Post #Aq6VD7V3HgN6b88Ovo by resol@mastodon.social
2025-01-15T10:49:31Z
0 likes, 0 repeats
@foone now type the Bee Movie script with it.I'm just kidding, I know how insanely tedious that will be. But still, great project.
(DIR) Post #Aq7YRCMEVvTijrNG9Q by Berto@woof.tech
2025-01-15T23:00:19Z
0 likes, 0 repeats
@foone I don't know why it's only now that I thought to figure out how to pronounce this keyboard's string of letters,but now I'm thinking,"Qwhere't'you YOP?Ass duff FUGH jekyll;Zux civ bunum,."