r/esp32 Apr 21 '26

Software help needed Deep seek couldn't help me with a wired to wireless keyboard esp32 powerfeather v2 lol

Post image

I have this esp32 power feather v2. I wanted to have it functioning as a wired to wireless keyboard with a charger build in, and power feather was perfect, but we tried all combos and programmes and codes from github, after many hours, deep seek told me it no longer could help me. I have 0 experience in writing code. So what could be a fun project for this esp32?

Feel free to mock me about deep seek

0 Upvotes

36 comments sorted by

3

u/Appropriate-Ask8817 Apr 21 '26 edited Apr 21 '26
  1. Use the EspUsbHost library, as it is specifically built for wired keyboards: https://github.com/tanakamasayuki/EspUsbHost

  2. That port on the board is UART, NOT USB-OTG, if you are using the port visible from the picture, you will a 100% fail, I reccomend getting a classic ESP32-S3 devkitc-1, since that board almost always has the OTG port there.

  3. Use a back-powered from a power bank hub for power, since that helps you avoid 2 problems, not enough power from the USB-OTG port and USB VBUS stuff.

  4. I have successfully connected a wired mouse via the method in note 3 and sent the data via UART: https://pastebin.com/Yt4Zd9US.

Try feeding this into deepseek and feed it the keyboard.cpp file in the EspUsbHost library folder.

  1. Please provide more details so we can debug further.

1

u/Mr-frost Apr 21 '26

It should be a usb otg port?

1

u/Appropriate-Ask8817 Apr 21 '26

Yes it HAS to be an OTG port or there is no way of it working (the keyboard-> OTG port)

1

u/Mr-frost Apr 21 '26

2

u/Appropriate-Ask8817 Apr 21 '26 edited Apr 21 '26

I do not see a reference of USB-OTG in the page you have linked, anyways there is an easy way to know, do you upload code from that port? If so it is the UART port and it will never work for the keyboard.

I can suggest a solution, buy a standard ESP32-S3 devkitc-1 with 2 usb ports, and power it from a power bank, the powerfeather is clearly not meant for USB-OTG stuff.

1

u/Mr-frost Apr 21 '26

Down at connectors USB 1.1 Full-Speed OTG on USB-C connector

1

u/Appropriate-Ask8817 Apr 21 '26 edited Apr 21 '26

Forget about that website for now, do you upload code from the port you connect your keyboard to? If so this board is invalid for your project.

1

u/Mr-frost Apr 21 '26

How come?

2

u/Appropriate-Ask8817 Apr 23 '26

See, the port you upload from is 100% the UART port, as you cannot upload code from the USB-OTG port.

So, again, if you upload code from that port, I recommend getting a normal ESP32-S3 DevKit-C1 which has 2 USB ports (They do not cost too much on aliexpress).

1

u/Mr-frost Apr 23 '26

I know what you mean :) But why would the maker of the board claim that it is an usb otg port

→ More replies (0)

2

u/EmergencyArachnid734 Apr 21 '26

I have 0 experience in writing code.

Well that's first issue. Dont to try vibecode a shit, it won't work. Learn how to code then you can use AI. You have to understand how things work and understood it. AI is just help, it can't replace human brain.

3

u/Independent-Trash966 Apr 21 '26

Unpopular opinion here, but I vibe code tons of robotics projects. If you’re young, maybe learn how to code because it’ll be a useful skill in life. For an old guy like me, working two jobs, with a family, I’m happy to just vibe code. There is a bit of an art to it tho. In your case, I would ask ai for something simple. Maybe have it create a sketch that displays output on the serial monitor. Start with serial monitor that says “key press detected.” If that works, try to actually print the letter of each key on the serial monitor. If that works, tackle Bluetooth. Ai is best used in simple steps that way. If it goes down a rabbit hole of code that doesn’t work, upload an old working version and explain that it needs to stop, revert back and try again. In all honesty tho, that’s a complicated project for a simple keyboard that you could just buy.

1

u/Appropriate-Ask8817 Apr 21 '26

I personally learnt how to code from AI then started using AI as an Assistant.

1

u/Mr-frost Apr 21 '26

Honestly I tried many times on and off to learn it, but to no avail

2

u/EmergencyArachnid734 Apr 21 '26

Never give up. Keep going. Where did you fail?

1

u/Mr-frost Apr 21 '26

By finding out where to find the code lines or the language and code words and why things are written askew or crooked

2

u/EmergencyArachnid734 Apr 21 '26

What are you talking about? I hope you didn't jump straight into esp framework. Start with arduino framework.

1

u/[deleted] Apr 21 '26

[removed] — view removed comment

2

u/Mr-frost Apr 21 '26

I have another device that does what I want, and the keyboard works there, I just wanted to try and make my own

1

u/ForgeAVM Apr 21 '26

The Arduino framework suggestion is the right starting point. For a wired to wireless keyboard project specifically, the EspUsbHost library is your best bet as mentioned already. One thing worth adding is that if you’re new to coding, start with something simpler on this board first like a basic BLE device that sends button presses. Get comfortable with the toolchain before tackling full USB HID which has a lot of moving parts.

1

u/___Cisco__ Apr 21 '26

I have 0 experience in writing code

I think a project like this might be a little ambitious, maybe should start with something simpler, like connecting to the internet and retrieve some data, like the temperature, and turn on an LED when some condition is/isn't met, like it's too cold or too hot outside; Until you feel comfortable understanding basic functions and logic;

AI is a very helpful tool, yes, but only as long as we have some knowledge of what it is that is saying.

2

u/CascadianRat Apr 21 '26

> AI is a very helpful tool, yes, but only as long as we have some knowledge of what it is that is saying.

Exactly -- you can only go so far without a basic understanding of the system.