IM A GENIUS !!!!!
Today i moved my sorry ass back into the makespace, and burned through another switch before finally doing it !
I figured out that the trick to it is using flux so your solder melts easy, then applying solder to the wire first
and then only applying flux on the pad and soldering - it took like two hours and i had to use one of those “helping hands” dr octopus thingys
but i was feeling like tony stark the entire time.
i failed once, then resoldered and tested with a multimeter, and everything beeped like it was supposed to when i poked it !
So basically i cut 3 female to male wires, and soldered just the female parts bare side on to the switch, and stuck the other side on to some GPIO pins on the ESP, and it worked ! … sometimes - my solder joint on one of the switch pads
(the one that triggers when you tilt the switch down) was bad, so i had ta resolder that, but then i was fine.
So i got back home after playing a round of cards against humanity (rlly cool btw) and then the fun really began.
First thing i did when i got home was flash my new and improved software ! i was extremely surprised when it actually worked ! it was just to test if the switch was working (display would say UP, DOWN, and PRESS when i used the button)
After that i got cracking, and implemented a 4-digit pin, and the UI for selecting API keys, since i had done everything else yesterday.
After 2 hours of trial and error i got it working !
you are able to scroll through numbers by tilting up and down
and you can select by pressing down, and it would move on to the next number
If ya select it wrong, then you get with this in all caps
if ya get it right, you get greeted by a lovely selection of all your stored credentials :
then the next part was the actual typing - this was the hardest part. you see, i had initially thought i can just simulate how a usb keyboard or one with a dongle types, but nooo
it can never be that easy can it ? well it can’t, cause the esp32 c3 supermini doesn’t have that capability - while it can type, it can only do that over bluetooth, which is rather annoying, but not make or break for the project.
So now the esp autoconnects to the laptop via bluetooth and can type in passwords without actually being connected to the laptop -
which opens up new possibilites (or old ones cause id thought of this b4 lmao. just ignore, it adds more drama and plot to the journal).
Ya see, now the device is basically entirely wireless, except that it needs a pwr source - and you know what a portable power source is ? a power bank - wait what ? no that would be way
too bulky - i mean a battery. Thats thoughts for later tho.
I lost the plot a bit. where was I ?
Oh yeah, the typing. Ok, so after finishing the bluetooth typing program even though my device thought it was typing, nothing showed up on my laptop. that wasn’t good.
So i had ta tweak my script a bunch to find out where the problem was, just to find out that the problem couldn’t be with my code. So it had to be with my laptop. So i had to do a LOT of research (and deepseek pestering)
to find the most obvious culprit : MacOS being paranoid. Ya see, macos needs some stupid bullshit security stuff that aint important at all. Since i was not a fan of that, i basically just asked opencode to “make code work, make code faster”.
So it optimized and fixed my code to be all cushy with macos again. then i clicked on one of the test api keys, and it worked ! but it didn’t enter the last letter ….
Ugh.
So i went back in the code, made a number 1 higher, and also made it press enter at the end, and it works !!!!!
I CANNOT BELIEVE IT !
IM done !
Ok, not quite.
I still have to decide if im adding a battery, and i gotta go back to the makespace, glue this shit together (so it doesnt rip off again when i move it) and then make a nice lil case
[Entry truncated]
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.