#407

  Переглядів 138,393

Andreas Spiess

Andreas Spiess

2 роки тому

Up till now, emulating a keyboard or a mouse was only possible with an Arduino Micro or a USB host shield. With the new Arduino support for the ESP32-S2 I will show you how it can be done with our darling. In addition, we will add Wi-Fi to create remote logging to Excel or other PC software. If you have evil thoughts, you can also use it as a wireless “rubber ducky” to hack other PCs or play a trick with your colleagues. As a bonus, we will deepen our knowledge of how USB works.
I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others. No Docker, No Microsoft Teams, Zoom
Links:
FeatherS2: amzn.to/3BV6uWJ
TinyS2: amzn.to/3BQ96Fm
ESP32-S2: s.click.aliexpress.com/e/_AURGxd or amzn.to/3ETmQkz
Arduino Pro Micro Clone: s.click.aliexpress.com/e/_AlnIr5 or amzn.to/3CSm1rU
Github: github.com/SensorsIot/ESP32-S2
The links above usually are affiliate links that support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
Discord: / discord
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases to buy new stuff for the channel
My Amazon.com shop: www.amazon.com/shop/andreassp...
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For Amazon.de: amzn.to/2r0ZCYI
For Amazon UK: amzn.to/2mxBaJf
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to email me. This communication channel is reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases
#no#midroll#ads

КОМЕНТАРІ: 384
@louiscelenza8017
@louiscelenza8017 2 роки тому
Regarding the CONFUSING pin numbers: It's better not get frustrated, just stay calm and continue. By FAR, this is one of the #1 lessons I have learned from you Andreas Spiess. Thank you.
@AndreasSpiess
@AndreasSpiess 2 роки тому
:-)) Thank you!
@MatejRajcan
@MatejRajcan 2 роки тому
I must thank you, so so much! Ironically, your thumbnail is showing a keyboard i was waiting from Logitech for a few years already! What an irony... now i can sit in a first row and keep lights off :)
@AndreasSpiess
@AndreasSpiess 2 роки тому
Very good! Illuminated keyboards are coo!
@IamTheHolypumpkin
@IamTheHolypumpkin 2 роки тому
Comes right around the perfect time, I want to make a Kerbal-Space-Program Keyboard as an Xmas present for my brother. It's like your reading my mind :D
@vl4dl3n
@vl4dl3n 2 роки тому
Whole Keyboard o_O
@AndreasSpiess
@AndreasSpiess 2 роки тому
Cool gift. You are a good brother!
@smokeysky
@smokeysky 3 місяці тому
LoL... was trying to get all the information together to make something like this... here it is, all in one video! Much love.
@AndreasSpiess
@AndreasSpiess 3 місяці тому
Glad it was helpful!
@Taran72
@Taran72 2 роки тому
As always, the video was very interesting! I follow your channel to stay updated with the latest technologies and to find inspiration for future projects. Great work! Thank you. :)
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome! I am also interested in those topics. This is why I still like to create those videos.
@mrnevermind
@mrnevermind 6 місяців тому
Sir I have recently found love in electronic trying to build a custom keyboard. Your video cleared up so many questions thank you
@AndreasSpiess
@AndreasSpiess 6 місяців тому
You are welcome!
@wm6h
@wm6h 2 роки тому
Thank you Andreas. I’ve used that JTAG block in the ESP32-C3 @ 3:53. Allows JTAG debugging in VSCode, using the USB data mode-without a JTAG probe. Uses a risc-v debug standard. Used the ESP32-C3 dev module hardware.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for the information. So far I only debugged the original ESP32 using PIO and it worked ok, too.
@MrPizzapeter
@MrPizzapeter 2 роки тому
General remark: Das USKA Seminar Antennensimulation vom 13.11.2021 hat mir gezeigt, wie schwierig es ist derartige Themen darzustellen. Umso mehr bin ich begeistert von der Qualität Deiner Videos, simply outstanding, out of this world.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Danke und: Ja. Einfache Videos sind nicht einfach in der Herstellung und brauchen Zeit. Wenn dich Antennen interessieren empfehle ich mein VNA Video. Oder das SDR Grundlagenvideo sei auch gut sagen die Zuschauer;-)
@mikegofton1
@mikegofton1 2 роки тому
Thanks Andreas for your explanation of the HID requirement for Keyboard emulation.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@wei48221
@wei48221 2 роки тому
Awesome as always. Thank you for the effort.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome. It took a long time till the software support for this chip was available (for the Arduino IDE)
@nmidu
@nmidu Рік тому
I love u andreas! You are the rockstar of the microcontroller. This video help me a lot. Big hug from argentina amigo!
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for your kind words!
@GilgaFrank
@GilgaFrank 2 роки тому
Another great useful video. Thanks Andreas for diving deep into the ESP32 and saving us so much head scratching.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome! This is the goal of this channel ;-)
@bastiannenke9613
@bastiannenke9613 2 роки тому
11:49 so, it could be theoretically possible to make something that downloads a file (maybe from the Synology?) and make it available for example to a 3d Printer without network capability? Sound like another thing for the Endless list of projects.
@bastiannenke9613
@bastiannenke9613 2 роки тому
@@ruakij6452 Octoprint is currently not supporting SLA (resin) Printers unfortunately. Nanodlp might work, would have to look into that. But a usb dongle that can connect to a NAS and let it automatically download from a certain directory could be neat for other stuff too.
@Haldi4803
@Haldi4803 2 роки тому
Or even Cooler, the Other way around! Plug the USB Stick into the PC/Machine/Device and put your files on it. always connected to the WiFi AP/Hotspot. And make them available to other computers/servers. Because this "Sandisk WiFi USB Stick" or all other stupid USB Disk with WiFi cannot use USB mode and WiFi at the same time.
@TheDThought
@TheDThought 2 роки тому
This might be possible in theory, but the throughput of the USB OTG interface is limited to USB1.1-FS - that's 12MBit/sec. (USB2 is 480MBit/s) Using it as mass storage might be limited by that...
@SuperBootyBay
@SuperBootyBay 2 роки тому
@@bastiannenke9613 I'd imagine octoprint would support a laser based SLA though? Since you can still convert standard G-code with the correct firmware. (Here's hoping because my janky DIY SLA needs some luck)
@bastiannenke9613
@bastiannenke9613 2 роки тому
@@SuperBootyBay my resin printer doesn't use g code, I't has a picture for every layer. Which is as far as I currently know not supported.
@deviteam5515
@deviteam5515 2 роки тому
So great as always ! Thank you for everything, I do learn lot of things from you ! Thank you so much !
@AndreasSpiess
@AndreasSpiess 2 роки тому
Happy to hear that! You are welcome.
@foznook
@foznook 2 роки тому
gorgeous job was done here! thank you!!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@avejst
@avejst 2 роки тому
Great update video as always Thanks for sharing your experiences with all of us :-)
@AndreasSpiess
@AndreasSpiess 2 роки тому
My pleasure!
@viniciusnoyoutube
@viniciusnoyoutube 2 роки тому
A basic ESP32 can be a HID through Bluetooth. Even better than use a USB cable and you can use it on a phone or tablet.
@RicardoRibeiro-dorcari
@RicardoRibeiro-dorcari 2 роки тому
Try that on your run-of-the-mill pc, it won't have Bluetooth, so this is valid as well. I just wished this had Bluetooth as well to be the best of both worlds.
@viniciusnoyoutube
@viniciusnoyoutube 2 роки тому
@@RicardoRibeiro-dorcari USB dongle.
@RicardoRibeiro-dorcari
@RicardoRibeiro-dorcari 2 роки тому
@@viniciusnoyoutube sure, but why do it if you can connect with usb and get power at the same time. There are use cases for everything so both approaches have their merit.
@viniciusnoyoutube
@viniciusnoyoutube 2 роки тому
​@@RicardoRibeiro-dorcari Who says otherwise?
@adlerweb
@adlerweb 2 роки тому
@@viniciusnoyoutube ...if they work. I've got a sh*tton of different USB BT Dongles and none of them works with all devices.
@errrick
@errrick 2 роки тому
Andreas ! love your videos, been a fan for years now. I would just like to point out, maybe for clarification in the beginning of the video, that you are specifically talking about USB keyboards - since you can still make ESP32 based Bluetooth keyboards without issue and people may get confused !
@AndreasSpiess
@AndreasSpiess 2 роки тому
I thought this was clear in the title ;-) But pay attention: The -S2 does not offer Bluetooth.
@errrick
@errrick 2 роки тому
@@AndreasSpiess I had no idea! thanks for the clarification.
@seanchallenge
@seanchallenge 2 роки тому
Excellent job 👏thank you Andreas always interesting technology to learn and discover. Suggestion any Pi Pico projects with USB HID. Cw or Wspr beacons thanks again
@AndreasSpiess
@AndreasSpiess 2 роки тому
So far I do not see that the Pico has got a lot of traction in the Maker community... But it for sure could be used for that purpose. I do not see where USB would be of benefit for beacons :-(
@AntonioDellaRovere
@AntonioDellaRovere 2 роки тому
It's been a long time since I tinkered with USB, but I think you can have both HID and CDC configured. They will then both enumerate and show up as 2 USB devices..
@AndreasSpiess
@AndreasSpiess 2 роки тому
I think you ae right.
@adrianscarlett
@adrianscarlett 2 роки тому
I bought a pile of attiny85 chips some years back as they support v-usb, great for adding a few external switches to a PC via USB and really cheap
@AndreasSpiess
@AndreasSpiess 2 роки тому
Good idea. I love the ATTiny85! But it has a very limited number of pins. If you use 2 for USB you do not have a lot left to connect switches etc...
@wdoe3187
@wdoe3187 2 роки тому
@@AndreasSpiess Just a note that v-usb works with any Atmel MCU. It is just software emulated USB. It only does the slower USB 1.1, but that is what keyboards and mice use, so perfect. In some ways, it is superior to hardware, because it is inexpensive, and you have complete software control over everything. Also, it doesn't consume a serial port, leaving the serial port free for other things.
@philr4665
@philr4665 2 роки тому
Balanced audio cables (typically XLR) used a similar EMI reduction technique. Very simple but very clever.
@talideon
@talideon 2 роки тому
They can do, but differential signalling (what USB does) isn't the same thing as balanced signalling. The former has a single signal transmitted down two conductors, with one being of opposite polarity, whereas balanced signalling has two conductors with _equal impedance_ to ground, one of which carries the signal, and the other being possibly 0V. You can use both together, but they're different. With balanced signalling, you subtract the noise line from the signal line to get a clean unbalanced system, which is possible as they're of the same impedance, whereas with differential signalling, you invert one of the signals and average them. Differential signalling helps eliminate things like crosstalk, whereas balanced signalling is more about noise reduction though the elimination of common-mode interference.
@AndreasSpiess
@AndreasSpiess 2 роки тому
@Keith: Thank you for your deep insight!
@zyghom
@zyghom 2 роки тому
Super nice Andreas - as usual. I prefer S2 over S for all my sensors (however S2 bare is a bit longer than S bare - I don't use dev boards at all - too big for real application). Also S2 has lower power consumption both while working and while sleeping. Since I don't use BT I am not missing anything. And I love Arduino version 2 (although still beta) ;-)
@AndreasSpiess
@AndreasSpiess 2 роки тому
I use version 2 of the IDE from time-to-time to check it out. It still takes a long time for startup which I do not like for my small projects...
@zyghom
@zyghom 2 роки тому
@@AndreasSpiess you are right, but once it's started, everything after is a pleasure ;-) Especially that the serial monitor is built in ;-)
@hydrogilbicacid
@hydrogilbicacid 9 місяців тому
😊
@rklauco
@rklauco 2 роки тому
OBS controller with wifi ui to create new combinations of keyboard shortcuts! Idea is born :)
@AndreasSpiess
@AndreasSpiess 2 роки тому
Good idea. So far I only did some experimenting with OBS (because I do not do live streams)...
@RaphaelBrandaoS
@RaphaelBrandaoS 2 роки тому
Wow, the ESP chips are so versitile! There are much more capabilities than I have time to play with them
@AndreasSpiess
@AndreasSpiess 2 роки тому
Agreed. Still good to know if we need it...
@jamess1787
@jamess1787 2 роки тому
Once upon a time I wired an Ethernet extension by splicing into the USB cable of a low res webcam (0.8 or 1.2MP, don't recall). It worked great, was able to watch the webcam from 50' away and catch thieves picking their nose while going through/messing up/stealing from my workstation. USB 1.1 != USB 2.0
@AndreasSpiess
@AndreasSpiess 2 роки тому
I did not check the limit of USB1.1. It seems it was more robust (maybe because it was slower than USB2.0)
@NikolaiVarankine
@NikolaiVarankine 2 роки тому
Thanks, Andreas! I think a very needed application of USB keyboard for ESP32-S2 is a convenient way to supply user/pass pairs to the MCU (for Wi-Fi, etc.), instead of hard coding them in C/C++ files. For home project it's good, but for industrial it isn't. Passswords can change on a regular basis. A board, that holds a chip, can have a service pins to attach a standard USB-A connector. That, in turn, connects to USB keyboard. A LCD screen for key echo is optional.
@AndreasSpiess
@AndreasSpiess 2 роки тому
In my lab I use a password manager for the purpose of filling in different passwords. So I would not need an external device. But you are right, in other environments where such managers are not allowed it would be handy. You could create a database with the different passwords and call this database before you enter the credentials automatically...
@PhG1961
@PhG1961 2 роки тому
Evil thoughts... not really, but playing a few tricks on colleagues... defenately. Great video and USB overview.
@enzanto
@enzanto 2 роки тому
Post e message on screen. With notepad or terminal. "this is a ransomeware put your hands in the air where I can see them"
@AndreasSpiess
@AndreasSpiess 2 роки тому
I see both of you have a lot of ideas :-)
@PhG1961
@PhG1961 2 роки тому
@@AndreasSpiess Indeed, lot's of ideas, but so little time (and money)...
@eduardograterol6829
@eduardograterol6829 2 роки тому
Greatings Andreas from Venezuela. I will try later when i get my new esp32 in a few days.almost christmas for me. Byeee
@AndreasSpiess
@AndreasSpiess 2 роки тому
Enjoy!
@itzboyz3405
@itzboyz3405 9 місяців тому
hey andreas i have ordered a esp32 S2 solo devkitC-01 development board . i want to ask that will this work as a hid keyboard like arduino pro micro plzz answer
@AndreasSpiess
@AndreasSpiess 8 місяців тому
It should work.
@kjyhh
@kjyhh 2 роки тому
Good to know! Wonderful USB noice cancelation explaining!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you!
@stmohir
@stmohir 2 роки тому
Thank you, would be great if you could show how to work with the TTGO version as well, how to use the screen and the dip switches. Thanks again
@AndreasSpiess
@AndreasSpiess 2 роки тому
This is probably too specific. If you look at the diagram you see that they use the ST7789 display (there is a library available) and one dip switch is to change the USB connector to between the USB-to-Serial chip and the ESP (GPIO19/20). The second dip switch is for the XTAL pins. I do not understand the purpose and did not find documentation :-(
@stmohir
@stmohir 2 роки тому
@@AndreasSpiess Thank you for your reply, in the product description, it says ST77789. But I tried with ST7789 and did not manage yet. Will keep trying :)
@bbogdanmircea
@bbogdanmircea 2 роки тому
Can the Joystick library be adapted to work on the ESP S2? I have my Sim Racing Pedals running on a Arduino Micro, would be great to make a Wireless Button Box or Shifter Too.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I assume it could be done. But I never tried.
@yekutielbenheshel354
@yekutielbenheshel354 2 роки тому
Excellent video. Thanks Andreas.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@scharkalvin
@scharkalvin 2 роки тому
The same 'differential' two wire signalling is also used in RS432 and RS485 serial connections.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. This is a widely used principle.
@paulojadergodoi7422
@paulojadergodoi7422 2 роки тому
Excelente. Congrats !!!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you!
@tinygriffy
@tinygriffy 2 роки тому
Puh, you must have been stuck in editing quite a while 🙈 Thanks Andreas :)
@AndreasSpiess
@AndreasSpiess 2 роки тому
All my videos take a long time for editing ;-)
@EmmanuelLieurain
@EmmanuelLieurain 2 роки тому
Very interesting, thanks!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it! As you saw I also learned a few things in this video ;-)
@innomkr
@innomkr 2 роки тому
Thanks for the great video!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it!
@MPElectronique
@MPElectronique 2 роки тому
Hello! A question, why do you need to add another usb connector for windows keyboard function? Thanks. Marc.
@AndreasSpiess
@AndreasSpiess 2 роки тому
As I tried to show in the video, the native USB function is not connected to the USB connector.
@dexter323i
@dexter323i 2 роки тому
Thank you Andreas, this is the topic I am also after! It is good to know they have added these libraries to Arduino. Before this, only ESP-IDF had it, and it is a terrible mess for me who has got used to Arduino framework. The next step would be USB OTG. Use the ESP32S2 to READ USB devices. (Mouse, keyboard, PS controller, etc.) Is it possible? I have read the ESP also has this functionality, but cannot find any example code of it. :(
@AndreasSpiess
@AndreasSpiess 2 роки тому
Then you need the real "host" library. But I do not know if it exists (was ported) for the -S2
@techplanethk
@techplanethk 2 роки тому
Thanks for the video!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You're welcome!
@Ownedyou
@Ownedyou 2 роки тому
Great video as always! Any plans to play around with C3's coded phy long range mode? Almost LoRa range, convenient BLE functionality and very reasonable power seems almost too good to be true...
@AndreasSpiess
@AndreasSpiess 2 роки тому
I already did a video about the Long Range mode of the ESP32. It is not comparable with LoRa at all.
@bobyrev
@bobyrev 2 роки тому
Thanks! It was really interesting
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked the video!
@DoctorWhom
@DoctorWhom 2 роки тому
6:34 good use of the word crap :D
@AndreasSpiess
@AndreasSpiess 2 роки тому
:-)
@CarstenSchultzDe
@CarstenSchultzDe 2 роки тому
My idea is to build a keyboard converter between Mac and Windows which send C to my Windows when I use the Mac shortcut.
@DoctorWhom
@DoctorWhom 2 роки тому
is STGR the key on the bottom left? I now want a STGR keycap for my keyboard. :D For other people: is what german keyboard says for
@CarstenSchultzDe
@CarstenSchultzDe 2 роки тому
@@DoctorWhom yes I mean this key. As a Mac user I often press COMMAND key which is Windows or ALT GR key for Windows when using remote desktop.
@jessiegashler427
@jessiegashler427 2 роки тому
Love your work sir
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad to hear that!
@paulmooij
@paulmooij 2 роки тому
Thank you 🙏 always enjoy your video’s Give me some ideas to add some work from home automation( switch on / off mic for video call + windows blinds ect ) …
@AndreasSpiess
@AndreasSpiess 2 роки тому
Sounds great! If you have a lot of video calls.
@ficeto
@ficeto 2 роки тому
You can also try "USB Firmware MSC on Boot", which will add a new MSC drive which gives you access to the running firmware bin and allow you to upload a new firmware (requires partitions with OTA)
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for the info!
@techcraftsguru
@techcraftsguru Рік тому
Very nicely explained. I have a question can we interface USB barcode scanner directly with ESP32 ?
@AndreasSpiess
@AndreasSpiess Рік тому
You get barcode readers which emulate a keyboard. They should be ok. Maybe you fond also readers with serial connection. That would be easier.
@atamico
@atamico 2 роки тому
In this particular case, it looks like it's possible to connect a webcam via USB, right? I plan to put an endoscopic USB camera on the ESP32-S2 and turn it into a local IP camera (local webserver cam - Livestream). it is possible?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Espressif's home page says: "With its native USB interface, ESP32-S2 can connect to a camera that supports USB Full-Speed ​​mode"
@atamico
@atamico 2 роки тому
@@AndreasSpiess Thank you very much, very good to know that this is possible. I just need to find now how to do the whole process.
@MakersMashup
@MakersMashup 2 роки тому
2:23 I'm surprised you didn't mention the Teensy. It's supported this in the 4.1 board. The code implementation could use some better examples. I just picked up a Feather S2 to do the same thing. I'll have to give this one a go too.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right, the Teensy's and many other STM32 boards offer native USB. A big Teensy is probably an overkill for most of those projects...
@MakersMashup
@MakersMashup 2 роки тому
@@AndreasSpiess Agreed. Teensy is overkill for a lot of small IOT projects plus it lacks the wifi. Like you I was pretty excited to see the host mode on the device. As more of these are produced the cost will go down and I'm really looking forward to the S2 when its in the sub $10 range like the ESP32's.
@mikejaras
@mikejaras 2 роки тому
I experimented with building a bluetooth keyboard emulator with a ESP32 Huzza32. I want to have two rotary knobs connected wireless and I got it somewhat working but not without problems. Do you think the -S2 version of ESP32 also affects the BLE routines for building a keyboard emulator?
@zyghom
@zyghom 2 роки тому
S2 = no BT I think
@AndreasSpiess
@AndreasSpiess 2 роки тому
Zygfryd Homonto is right: The -S2 has no Bluetooth.
@TecSanento
@TecSanento 2 роки тому
Couldn you create a Pair/set of wireless usb extensions ? The ESPNOW function creates a Mesh network, and a Master Keyboard Plugged into USB Host of one device transfers keystrokes simultaniously to all connected clients, or the opposite way round, create a wireless USB Hub, where multiple Wirless Devices as Connected to a Host PC, now able to access them wherever they are (inside your network).... or you could create a wireless barcode Scanner, one device enters the data into your pc, one ESP Cam scans the qr code ;) ?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Good ideas if you have a use case for them. I do not own a lot of PCs ;-)
@electronic7979
@electronic7979 2 роки тому
Excellent video 👏
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you very much!
@michaegi4717
@michaegi4717 2 роки тому
Thank you for this video. It's so sad that the Teensy-Boards don't come with wifi. I really like the keaboard and joystick capablilities of Teensy-boards.
@AndreasSpiess
@AndreasSpiess 2 роки тому
This is why we all love the ESPs: They have Wi-Fi. It took other manufacturers a long time to understand and follow. This is why Espressif became so big... But the Teensies have their areas where they are good.
@Steve-pm1zy
@Steve-pm1zy 10 місяців тому
Hello Andreas, you're video was great! I just have one question. Can the esp32-s2 emulate the mouse clicks wirelessly over wifi?
@AndreasSpiess
@AndreasSpiess 10 місяців тому
If you want to connect a mouse to the ESP32 it has to support host mode. Which seems not to be the case for the Arduino IDE.
@robertwhite3694
@robertwhite3694 Рік тому
I have a project using a USB barcode scanner through a USB host shield board to an ESP32 Devkit board. it reads the information as a keyboard and compares a scanned code against a desired code. but it is too slow for some of the more modern scanners and I need to find a way to read through the dedicated USB is there an example as I cannot find any.
@AndreasSpiess
@AndreasSpiess Рік тому
First I would ask myself: Where is the bottleneck and where do I lose the time...
@Danixu86
@Danixu86 2 роки тому
With ATTiny85 is also possible, even there are Attiny85 modules with the USB connector to be programmed as external keyboards to automate tasks. Thanks for the video, maybe I'll buy an ESP32-S2 to test it. Can be useful to create bluetooth dongles to connect PS3/4 gamepads for example, without the use of external softwares that sometimes fails.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Unfortunately, The -S2 does not offer BLE :-( The ATTINY85 is a cool chip. However it has not many pins left in this scenario...
@ericblenner-hassett3945
@ericblenner-hassett3945 2 роки тому
Interesting and I agree with the comment around 6 minuit mark, altho it can be hard to stay calm when the ' official ' PDF uses a 4th numbering system ( the actual pins on chip )!
@AndreasSpiess
@AndreasSpiess 2 роки тому
The pin numbering usually has to be different because of technical reasons. This is acceptable. The rest is a pain in the ...
@MatsK007
@MatsK007 2 роки тому
The Arduino family has two boards that can emulate USB, Arduino Leonardo and Arduino Micro and both is using the MCU ATmega32U4. So its the ATmega32U4 that is the enabler for USB host functionality.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. The Leonardo is more-or-less the same as the Pro Micro. Just bigger (and more expensive). The Due, BTW, also supported native USB.
@MatsK007
@MatsK007 2 роки тому
@@AndreasSpiess Ok, I haven't played around with that one, but then we can add the ATtiny (ex Digispark) family as well ;-) And I must say THX for all your inspiring Videos.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I would put the ATTINY in a different category because it uses bitbanging and has no native USB...
@MatsK007
@MatsK007 2 роки тому
@@AndreasSpiess Agree
@Ilikeridin
@Ilikeridin 2 роки тому
I’ve got a Wemos D1 S2 but having issues. I can upload code via Arduino IDE but when trying to use ESPhome flasher, it is not recognised. Tried various drivers but nothing. I was going to try an FTDI module but it doesn’t appear that the Tx and Rx pins are broken out. Any ideas?
@AndreasSpiess
@AndreasSpiess 2 роки тому
If it works with the Arduino IDE the problem is with the ESPhome flasher. So you have to ask there for help. I do not know enough in this domain.
@Ilikeridin
@Ilikeridin 2 роки тому
@@AndreasSpiess Hi. Appreciate the reply, thanks for your time.
@Scrogan
@Scrogan 2 роки тому
Well, the STM32F103 (or better) has been around for quite a while on the bluepill dev-board and has native USB hardware. Also I think some Uno boards have a 16U2 or similar native USB MCU on them for programming that you can reprogram yourself via the ICSP header. Either way what I care about is cost. I’ll look into the ESP32-S2 if they’re cheaper than a (legit) STM32. If you’re really looking for something cheap then the CH55x series MCUs provide native USB for a low cost, but they’re 8-bit not 32-but, and I haven’t seen any good tool chains for them yet.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I agree that many STMs also have USB. And you can reprogram the 16U2. But it is a pain in the ... Most projects I saw used the Pro Picro. This is why I mentioned it.
@edwardcdg
@edwardcdg 2 роки тому
Good stuff!!!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thanks!
@fahnleindieselschweif5022
@fahnleindieselschweif5022 2 роки тому
The Leonardo is able to emulate a HID.
@chahilpatel2993
@chahilpatel2993 2 роки тому
Leonardo is same as atmega32 or Arduino Micro
@Mr.Leeroy
@Mr.Leeroy 2 роки тому
and it has native USB peripheral
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right.
@Pozzyfunk
@Pozzyfunk 2 роки тому
Thank you Andrea, I was enthusiastic for the emulating keyboard function and therefore I developped my own application however the emulation doesn't work during notebook boot (e.g. to modify BIOS setting). Other USB external keyboards work as expected. Any idea?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I do not have enough USB know-how :-(
@emmanuelr6698
@emmanuelr6698 2 роки тому
Hello Andreas, this is very interesting, as usual. I'm a bit confused about 2 points : First, how do you connect the D+/D- pins on a PC ? Do you split a USB cable ? Other question : Why shouldn't you use the VCC/5V/3.3V pins ? Cheers
@StreuPfeffer
@StreuPfeffer 2 роки тому
at (6:24) he shows a MicroUSB Breakout connected to the pins and then its just a normal USB cable you plug in. The Host (PC) provides 5V to power the Peripheral so plugging it into 3V3 would kill the ESP as its just running on 3V3 (which it has a regulator on board. And depending on where the "normal" USB connector is connected to it may have a different potential which might kill your USB port in the PC, just the USB function in the ESP or the whole ESP.
@emmanuelr6698
@emmanuelr6698 2 роки тому
@@StreuPfeffer thank you, very clear.
@DoctorWhom
@DoctorWhom 2 роки тому
@@emmanuelr6698 Don't forget the GND (it is shown in the video briefly, but you need 3 wires for the USB: D- D+ GND)
@jedidiahpaterson4906
@jedidiahpaterson4906 2 роки тому
@@StreuPfeffer Hi, quick question: It is that you don't plug into the 3.3V and 5V to supply power (because the by passes on board voltage regulator ) to the board but you can get 3.3V and 5V out of the board that way, correct?
@AndreasSpiess
@AndreasSpiess 2 роки тому
@StreuPfeffer: Thank you for answering the question. @jedidiah paterson: Most boards have a 3.3 volt regulator and a pin to use 3.3 volts for other components like sensors.
@drewwalker101
@drewwalker101 2 роки тому
I have learned a lot from your videos, sitting in the first row, and I finally have a question. Since I can not seem to get Arduino IDE working on my machine, which of the many IDE’s will allow me to run this code?
@mgancarzjr
@mgancarzjr 2 роки тому
ESP-IDF is the native compilation and flashing toolchain for Espressif's chips and the boards which host them. However, you will not simply be able to copy over the code.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Many people use PlatformIO or Visual Micro. You find videos on both on this channel. AFAIK both depend on a working Arduino IDE on the same machine.
@yoganand1004
@yoganand1004 2 роки тому
My google skills failed me and I couldn't find any information on why certain esp chips (esp32, esp32c3, etc) do not support circuitpython. it's because those chips don't support the advanced usb modes such as hid/storage. Thank you!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You have to ask Adafruit. I do not know :-(
@jutgensw
@jutgensw 2 роки тому
As usual an excellent video. Thank you. When using the ESP3D lib to communicate with a 3D printer via WiFi using a standard ESP32 it is necessary to hack the printer motherboard to get access to the serial port on the other side of the USB chip. Will it be possible to connect it directly to the USB port if you use the ESP32 S2 ?? (Mabe a project for you to do ?)
@AndreasSpiess
@AndreasSpiess 2 роки тому
It might be possible. I would ask the project because I assume it would be interesting for all users. Maybe they even tried and it did not work?
@greggreno
@greggreno 2 роки тому
Great info - thanks. Any idea how I could emulate a USB Midi device with the ESP32-S2? I don't see MIDI devices mentioned in the arduino-esp32/libraries/USB library.
@DoctorWhom
@DoctorWhom 2 роки тому
Give CircuitPython a quick look, see if they support MIDI on their ESP32-S2 port. Their docs that MIDI is disabled by default on the ESP32-S2 build as there is limit of device endpoints. At the very least you can see what they are doing in their code to talk USB MIDI
@greggreno
@greggreno 2 роки тому
@@DoctorWhom will do - thanks.
@AndreasSpiess
@AndreasSpiess 2 роки тому
The Arduino IDE also supports Midi. So it should work with the ESP32. But I am no musician :-(
@jessiegashler427
@jessiegashler427 Рік тому
I am a bit confused on the connections using JTAG. Can I connect the D+ and D- pins of the JTAG(GPIO 19 and 20) directly to the D- and D+ pins of a usb plug and plug it directly into my pc?(I realize I need to connect GND as well) It was always my understanding that the esp32 was not 5v tolerant, so I'm concerned about burning up my module.
@AndreasSpiess
@AndreasSpiess Рік тому
I am not sure why you mention JTAG. The USB pins are 19/20 on the -S2. I would check which one is which on your board and if they are numbered right. Usually you get a diagram of the board you use. AFAIK the USB data pins are 3.3V. So no problem with the ESP.
@jessiegashler427
@jessiegashler427 Рік тому
@@AndreasSpiess I found out that I was misunderstanding some key points regarding the usb pins on the S2(thus me bringing up jtag unnecessarily). Thank you for clarifying the operating voltage for the usb data pins though. I was always under the assumption that they operated on 5v and that incorrect assumption lead to a lot of serious confusion about how to use the usb pins on the s2. Now that I understand all of this, I have two more questions. I'm trying to get my s2 to function as an HID, and i've uploaded programming into my s2 to do this. So from here, if I connect the s2 to the usb port on my pc via pins 19&20, assuming my programming is correct, my pc should detect the s2 as an HID, correct? And also, do I connect the s2 pin that is labeled D+ to the D+ pin of the usb port? Or do I flip them as is done with UART(D+ to D- and vice versa)?
@AndreasSpiess
@AndreasSpiess Рік тому
@@jessiegashler427 I usually try it one way. If it does not work, I try the other way around. If both do not work, there is another problem ;-)
@jessiegashler427
@jessiegashler427 Рік тому
@@AndreasSpiess the downside to trying something new is that I always always ALWAYS run into some quirk or miss some important detail about how to do it that makes the first attempt take so much longer than it should, but the upside to trying something new is that after the first attempt I never forget the quirk or important detail again. Thank you for all your responses sir. I think I finally got it figured out.
@edsmallenburg6776
@edsmallenburg6776 2 роки тому
Great video again! Any idea how to simulate a "wake-up" by the keyboard, so I can wake-up my Windows box remote?
@Colarocker
@Colarocker 2 роки тому
For me, hitting a key like spacebar works for a wakeup, so it should be possible to send the needed key (possible differences for Different Mainboards)
@AndreasSpiess
@AndreasSpiess 2 роки тому
You can search for wake on LAN or WOL. You just send a magic byte and the PC starts
@Haldi4803
@Haldi4803 2 роки тому
If you selected the "Power On by Keyboard" option in BIOS then Waking up with Spacebar should work!
@edsmallenburg6776
@edsmallenburg6776 2 роки тому
@@Haldi4803 thanks, I will try that. But there should be a possibility to set the power (on) action in the device manager for a HID keyboard. But for The EPS32-S simulated keyboard the power control tab is not available there.
@Momfasa
@Momfasa 2 роки тому
Very nice video! Thank you. I have some Espressif ESP32-S2 WROOM at home, will they work for this? I think you are using the WROVER ESP32-S2
@zyghom
@zyghom 2 роки тому
no difference - on Arduino you choose "ESP32 S2 Dev Module"
@Momfasa
@Momfasa 2 роки тому
@@zyghom Thank you very much!
@EvenTheDogAgrees
@EvenTheDogAgrees 2 роки тому
A good idea for us office workers who're now working from home due to COVID: a "mouse jiggler". Got an Arduino Leonardo/Micro compatible board with a small form factor, basically a stamp with a USB connector built into the PCB that slots into any free USB port, to move my mouse one pixel diagonally and back every minute. This way, my PC doesn't log me out every time I take a toilet break. And yes, before anyone comments: I know this is against security best practices. But I live alone and my doors are always locked, even when I'm home, so it's not like anyone can get physical access to the laptop while I'm briefly away from my keyboard. At night, when I step away from the machine for longer, or when I leave the house, it gets logged out.
@AndreasSpiess
@AndreasSpiess 2 роки тому
A good idea if your PC policy is so strict.
@teixeirarg
@teixeirarg 2 роки тому
You can install a small executable in the pc (I made one in Delphi ) that simulates a mouse that move...and thats all, you don't need a hardware for this!
@EvenTheDogAgrees
@EvenTheDogAgrees 2 роки тому
@@teixeirarg That's great on your own PC where you have full admin rights. But if you have full admin rights, you don't need it as you can just disable the automated screen lock.
@xyli7073
@xyli7073 2 роки тому
I want to use the WiFi + USB OTG+MQTT function of esp32-s2 to wake up the dormant computer, but I find that although the computer can continue to power esp32-s2 through USB after dormancy, the mqtt works normally, but the analog keyboard will be disconnected at this time. I don't know who has good suggestions.
@AndreasSpiess
@AndreasSpiess 2 роки тому
If you cannot wake the computer via keyboard you can try wake on lan (if you use Ethernet cable)
@robertbridges4927
@robertbridges4927 2 роки тому
Teensy 4.1 has had this capability since it was introduced. It has two USB ports, one is used for programming connected to the PC and the other as a USB host. Many people have been using it to simulate mice and keyboards. By the way it is also equipped with hardware ethernet and it runs at 600mHz. Have you used the one you received many months ago? You said you were going to experiment with it.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. I had it once in a video. It is a beast! I would call it an overkill for such a simple application.
@robertbridges4927
@robertbridges4927 2 роки тому
@@AndreasSpiess I agree, but what have you done with it? Is it sat in a drawer all ignored or worse still gone to landfill?
@jean-marcparatte5564
@jean-marcparatte5564 2 роки тому
Sometimes it could be very difficult to send text to EXCEL, because some hidden softwares get instant focus and correctly restore quickly focus, but sent characters are lost of EXCEL and addressed to some hidden programs.
@AndreasSpiess
@AndreasSpiess 2 роки тому
True. It is not an ideal solution. More a "quick and dirty" one.
@mussab5630
@mussab5630 Рік тому
Is this USB capability supported on the ESP32 S3 boards also?
@AndreasSpiess
@AndreasSpiess Рік тому
Yes, it should. But I never tried.
@chuxxsss
@chuxxsss 2 роки тому
I have 4 of them hanging around. By the way, busy day tinkering with solar and earth stake as well.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I saw on UKposts that you are busy ;-)
@Talaxianer
@Talaxianer 2 роки тому
The next project idea is to build an ESP password saver, that types in the required password when connected with PC
@clydealcott3379
@clydealcott3379 2 роки тому
Get an Attiny85 usb board
@AndreasSpiess
@AndreasSpiess 2 роки тому
That would be possible. However, a password manager is probably an easier possibility for that. Using an ATTINY would mean that you always use the same passwords ;-) Change means re-programming, I assume.
@jeffkosowsky67
@jeffkosowsky67 Рік тому
Very cool. Can this methodology be used to create a remote USB over WiFi capability like with VirtualHere? Said another way, can I plug a remote USB device into the esp32-S2 board and then have the USB device show up (via WiFi) on a remotely located PC? My use cases are that my oscilloscope (Siglent 1104e) and function generator (FY 6900) each have USB connections that allow them to be controlled and monitored via USB connections. But I would like to control them remotely via USB over WiFi. Currently, I do that using a Pi-zero with VirtualHere server and a VirtualHere client on the PC but it seems like it would be "cleaner" if I could do that using an esp32-S2. Is that possible? If so it would be hugely cool
@AndreasSpiess
@AndreasSpiess Рік тому
I am not very familiar with USB. So I cannot answer your question. but I found an Espressif project. Search for "ESP USB Bridge"
@jeffkosowsky67
@jeffkosowsky67 Рік тому
@@AndreasSpiess Thanks Andreas! I will check it out - love your channel btw
@rarenu
@rarenu 2 роки тому
One more great subject to learn from your video. Thank you.
@AndreasSpiess
@AndreasSpiess 2 роки тому
My pleasure!
@ivanz9324
@ivanz9324 2 роки тому
Hi. Thanks for your videos. As always, they are interesting and useful. Do you know, is it possible to connect WIFI mini-keyboard directly to ESP32 for input text ? Is it possible to make only with USB receiver adapter from this keyboard, or also possible to do it without USB at all? (I need to connect USB keyboard or wifi keyboard to TTGO module for input text messages, for further transferring it to another node via Lora. Now can transfer/receive arrays of data, including variables from sensors, but still cant add there a printed text messages). Do you have such projects, please?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I do not know which interface these WiFi keyboards use. Maybe it is proprietary? I only know Bluetooth keyboards
@ivanz9324
@ivanz9324 2 роки тому
@@AndreasSpiess right, I meant standard wireless kb with standard 2.4 ghz adapter. Apparently its bluetooth...
@lalithkumar9807
@lalithkumar9807 Рік тому
When I try to implement usb example code ( esp32s2 as a serial device) using the esp-idf, when I flash the code and connect USB of esp32s2 to pc, pc is showing an error "failed to get device descriptors". The same issue occured when device was connected to multiple PCs and same code dumped on multiple esp32s2 boards. Iam using esp32s2-FH4. Is there a way to make esp32s2's USB work and what is causing the errror?
@AndreasSpiess
@AndreasSpiess Рік тому
I do not use the IDF, only the Arduino IDE :-(
@Bianchi77
@Bianchi77 2 роки тому
Cool video, keep it up, thank you :)
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thanks, will do!
@Luke-san
@Luke-san 2 роки тому
'Make sure you have ver2.0.0' , here is me staring at ver1.0.6. Never mind going crazy at keyboard stuff :-)
@AndreasSpiess
@AndreasSpiess 2 роки тому
Check if you have the newest string in the preferences tab. Maybe they changed it. I do not remember.
@Luke-san
@Luke-san 2 роки тому
@@AndreasSpiess I have been upgrading the Arduino software from my fathers pc. The installation of that software was way before 2013 because I still see my fathers projects. I may need to do a full install from scratch. My father passed away in 2015 btw. Time is moving fast, to fast, it seems. To bad he can't contribute to the community anymore.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Sorry to hear that you lost your father early. Yes, you need to be on the newest version of the IDE. A new install should not be a big issue if you do not messed with the core...
@AlexKite68
@AlexKite68 Рік тому
Thank you Andreas, Your videos as always are very useful. I have lots of traditional ESP32 chips (without USB support) - Please can you propose the easiest hardware solution to make them read data from USB devices like USB-GPS dongle? I tried to connect them via USB-to-UART converter, but for some reason it didn't work.
@AlexKite68
@AlexKite68 Рік тому
I suppose the trick is that USB-to-UART converter supposes that HOST is on USB side, and DEVICE is on UART side, but in case with USB-GPS dongle we have DEVICE on USB side, and probably this confuses to converter chip? How we can transmit/decode data properly from DEVICE on USB side to HOST (ESP32) on UART side?
@AndreasSpiess
@AndreasSpiess Рік тому
You should find USB host adapters for Arduinos on Aliexpress. They should work also with the ESP32.
@AlexKite68
@AlexKite68 Рік тому
@AndreasSpiess Thank you, Andreas!
@sirhotpain
@sirhotpain Рік тому
Great video, as always! Have you been able to get some real world data regarding energy consumption of the ES32-S2 with wifi during light sleep? As ESP-NOW uses the wifi library and hardware, I assume using it should also be possible during light sleep. But would be great to have confirmation. :)
@AndreasSpiess
@AndreasSpiess Рік тому
Same answer as before :-(
@sirhotpain
@sirhotpain Рік тому
@@AndreasSpiess Sorry for double posting. I discovered this video after my previous comment and thought it'd fit better here, so more people can find it if they are interested in the same topic. :) BTW: after watching all of your board comparison videos, I'd encourage you to try more olimex boards. They have lots of ESP32 variants. Many have battery chargers, use extremely little energy in deep sleep (e.g. 20µA for the ESP32-S2 variants) and most are also sold as an EA version with an external antenna. Including the one you already tested. So you could update the google docs list with a new board, without even having to buy and test a new device. ;)
@Vindolin
@Vindolin 2 роки тому
The only problem is that the emulated keyboard device stops working after the host awakes from sleep mode. I found out when trying to use an ESP32 S2 to login into my Win10 box when it gets a message over MQTT. Also there's no Power Management tab in the device settings where one could enable "Allow this device to wake the computer"
@AndreasSpiess
@AndreasSpiess 2 роки тому
I never tried it in this configuration. I assume you need a lot of USB know-how to debug this one...
@winkieness
@winkieness 2 роки тому
wow! is it possible to make the esp32-s2 as a wireless usb host? I have a HID USB device(BP monitor) and would like to get the data wirelessly. will this be possible?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I am not sure if a Host library exists. And the -S2 has no Bluetooth.
@paryzfilip
@paryzfilip 2 роки тому
Okay, so there is a chance that we'll be able to port QMK to the ESP and finally have easy Bluetooth keyboards? 😁❤️
@AndreasSpiess
@AndreasSpiess 2 роки тому
This should be possible.
@myst_m4rt3n53
@myst_m4rt3n53 7 місяців тому
But can the esp32 s2 also be registered as joystick, like the pro micro?
@myst_m4rt3n53
@myst_m4rt3n53 7 місяців тому
because Im not gettings it to work, that I get my ESP32 registered as joystick on windows.(as USB-Gamecontroller)
@AndreasSpiess
@AndreasSpiess 7 місяців тому
Yes, it should be possible with the right library/example
@BatNenko-NJS
@BatNenko-NJS Рік тому
hello this is a good video. what is comand for enter key, is not KEY_ENTER?
@AndreasSpiess
@AndreasSpiess Рік тому
You find a link to the test program I used.
@qcnck2776
@qcnck2776 2 роки тому
Andreas, I notice you are not using PlatformIO much? Do you find it less convenient?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I use it for my projects. Usually not for the channel because not everybody knows it.
@qcnck2776
@qcnck2776 2 роки тому
@@AndreasSpiess Thanks!
@smartassist9700
@smartassist9700 2 роки тому
SIR ANDREA! Hello. super nice video! Thanks for heads up on this new ESP32. WHO IS SHIPPING THEM? Also Raspberry Pi has NEW W2 (memory mounted on top of processor and ends in (AU) - gold. Can you try R Pi new cam on ESP32? Also, for longer video recording with motion sensor, is there 2 LIOn battery holder and power regulator to keep correct power feed level? (I need 2x 1080L-Ion batteries for security cams where no power source. 2 batteries for LONG TIME POWER.) PLEASE ADVISE. MOST HUMBLED. ALTON
@AndreasSpiess
@AndreasSpiess 2 роки тому
1. You find the links to the ESP32-S2 in the description 2. Yes, there is a new Raspberry zero out 3. I will not do video on the ESP32 because it does not have the needed resources for a better camera than the one on hte ESPcam 4. I did quite a few videos on powering of ESPs. Maybe you watch them first. A new one will air this Sundayy, BTW.
@ertopex
@ertopex 2 роки тому
Me: I understand how this works. Andreas: Errr. Not quite so.. let me explain.
@AndreasSpiess
@AndreasSpiess 2 роки тому
:-)
@user-oy4rm9kr4t
@user-oy4rm9kr4t 2 роки тому
ESP32 S3 is out, please review it. I am very interested with its ADC, I hope it's reliable enough. Now I am using ADS1115 with ESP32.
@AndreasSpiess
@AndreasSpiess 2 роки тому
AFAIK it is not yet supported by the Arduino IDE.
@DavidGlaude
@DavidGlaude 2 роки тому
@@AndreasSpiess But there is work being done in CircuitPython and MicroPython for the S3. Not sure MP use TinyUSB, but CP always do, your last comment in the video might confuse MP and CP, but maybe you are right. Kit board for the S3 also provide two USB, one for the console and one for the native. So no need to add a connector. So maybe you want to visit the S3.
@klassichd10
@klassichd10 2 роки тому
The next most useful functionalities for a USB host would be the integration of drivers for USB serial converter such aus FTDI CP2102, CH340. Example: Adapt Zigbee Sticks, ZWave Sticks etc. These Sticks use USB to be connected to a Raspi or a real computer. But if your computer with the home automation system is in the basement and not at the place of best RF reception? Then you need a bridge between these USB devices and your computer via LAN/Wifi. You can use a Raspi for that. But maybe the ESP32 could do the trick also?
@EvileDik
@EvileDik 2 роки тому
Zwave forms a mesh network so reception is not much of a problem as long as the Zwave stick can communicate with at least one client, this will repeat signals to other clients in range.
@AndreasSpiess
@AndreasSpiess 2 роки тому
So far I did not see such a project. But technically, it should be possible. But it probably needs some knowledge about the Zigbee or other stacks. The mesh functionality can help to overcome bad connections, too.
@klassichd10
@klassichd10 2 роки тому
@@AndreasSpiess sorry, I was not clear enough. These Sticks typically include a FTD or CP2102 or CH340 as an USB interface. So what is needed is a Driver for these Chips and a bridge to LAN Wifi. I solved this issue by a HW modification and an additional piece of HW. Works well, but if the ESP32 has USB host, a direct SW integration would be nice.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Aha. You are right. But did you see a host implementation for the ESP32?
@KiraSlith
@KiraSlith Рік тому
Here's a seemingly mundane idea, an ESP32-S2 based Smart Keyboard, possibly QMK compatible? They're so powerful and cheap it seems like a no-brainer to use as the core of a mechanical keyboard you can add additional features to. Something similar to the old Logitech G series but open FOSSware?
@AndreasSpiess
@AndreasSpiess Рік тому
I am not in keyboards, so I do not know if such a project already exists.
@KiraSlith
@KiraSlith Рік тому
@@AndreasSpiess I only found one in my digging, "Sanctuary", not on the S2, and they didn't take full advantage of it's capabilities. In theory it shouldn't be too hard on the hardware-side, it's just a big 70-button input matrix, but it's the software that's a hitching point.
@KiraSlith
@KiraSlith 11 місяців тому
Update for those who find this post: A newer keyboard software project has taken over support for the ESP32-S2. KMK, it's basically QMK in Circuit Python. A little harder to figure out going in blind, but it works all the same.
🤖Я в шоке! ChatGPT пишет Arduino проекты
28:24
AlexGyver
Переглядів 737 тис.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 173 тис.
Lipstick 💄 crazy lifehack 😘 #lifehacks #beauty #makeup #hack
00:20
МЮСЛІ UA ft. Misha Scorpion - ЗА ТЕРИКОНАМИ
04:15
Студия Квартал 95 Online
Переглядів 227 тис.
SATISFYING BALLON CRAFT  🎈| POP A CRYSTAL 😲 #shorts
00:27
One More
Переглядів 30 млн
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 138 тис.
456 Hassle-Free ESP32 USB (ESP32-C3, ESP32-S2, ESP32-S3)
12:57
Andreas Spiess
Переглядів 111 тис.
ESP USB: Espressif’s Wireless Communication Solution
6:01
Espressif Systems
Переглядів 94 тис.
USB-C Tutorial for Everybody (Connector, Cable, PD, Data Transfer, Devices)
26:08
How to Run Linux on an ESP32
18:53
element14 presents
Переглядів 138 тис.
Cheap USB Host Microcontroller [CH559, ESP32, HID]
5:40
bitluni
Переглядів 213 тис.
Обманет ли МЕНЯ консультант в 2024?
19:19
Харчевников
Переглядів 390 тис.
ИГРОВОЙ КОНСОЛЬ от LENOVO за 65000 рублей.
26:49
Ремонтяш
Переглядів 295 тис.
😳iPhone 15 Pro Max Vs Старая Nokia #shorts
0:19
YOLODROID
Переглядів 290 тис.
¡ Soldando Con Transistor STR y Desoldando LEDs Hack !
0:12
EcoRob Tech
Переглядів 2,5 млн