How to use USB HID Devices as Arduino Inputs - Keyboards, Mice, Magstripe/Barcode readers, and more!

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ •

  • @DaveVW
    @DaveVW 5 місяців тому +1

    Awesome explanation, and why what library and includes to be used and why. Knowing why can empower us to do the right thing.

  • @Tech-Relief
    @Tech-Relief 5 місяців тому +1

    Just use one of the many ESP32-S3 boards and you won't need to add any additional hardware. They can act as a host natively, some even have two USB-C ports and they also support JTAG debugging. For this reason I seldomly use Arduino boards anymore.

  • @sanjaybhatikar
    @sanjaybhatikar 5 місяців тому

    Seriously cool, dude!

  • @lindsaymcphee2885
    @lindsaymcphee2885 5 місяців тому

    Different brands of barcode scanner may transmit the barcode symbology as prefix or suffix data which changes depending on the encoding of the barcode..
    A, E, F, FF are common for UPC and EAN symbologies Code128, QR etc will have their own prefix (just not off the top of my head on a Sunday night)
    Code39 usually has *at start and end.
    Some may also transmit a CRC checksum digit.

  • @jaycee1980
    @jaycee1980 5 місяців тому

    i've been doing the opposite recently - creating USB HID devices (specifically joysticks!) using Atmel AVR processors and V-USB :)

  • @KrazeeKraftZ
    @KrazeeKraftZ 5 місяців тому

    As always a great presentation with excellent explanations, im now thinking how to use this in an escape room scenario, the barcode scanner specifically to provide hints or clues. My pc mouse and keyboard are wireless with a bluetooth dongle, could a wireless barcode reader also be used without too much fuss ??

  • @Ernzt8
    @Ernzt8 5 місяців тому

    Great explanation, thanks. If you use the Arduino power plug, doesn't that provide external power for the USB device as well?

  • @TokkanFX
    @TokkanFX 5 місяців тому +4

    A Teensy 4 has USB HID built in for mice, keyboards, joystick, MIDI etc.

    • @hexidev
      @hexidev 5 місяців тому

      The newer esp32's have them also (the s3 for example)

  • @alranel
    @alranel 5 місяців тому

    Arduino GIGA R1 has builtin USB host functionality and two USB ports so you can connect USB directly without additional hardware :)

  • @GudinVladimir
    @GudinVladimir 5 місяців тому

    2:54 Nice little pet on the top left corner of the screen )

  • @段德老贼
    @段德老贼 2 місяці тому

    Have you considered developing without using graphics? Because I found that there seems to be very little information on the development of host driver, this problem bothers me very much

  • @Idontlikethisname-zy3zn
    @Idontlikethisname-zy3zn 2 місяці тому

    do you know how to connect usb camera to esp32 s3?

  • @Matt-d5z
    @Matt-d5z 5 місяців тому

    What is an 'instance' and what is a 'class'???