Interface Mouse and Keyboard with STM32 || USB HOST HID || CUBEIDE || HAL

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ค. 2020
  • Purchase the Products shown in this video from :: controllerstech.store
    ________________________________________________________________________________________
    When this code was tested with Bluetooth Mouse and Keyboard, it wasn't working properly. This maybe because they need 5V and the STM32 USB VBUS is capable of providing 3.3V only. I am not sure about this though.
    Anyway, the Wired ones worked perfectly. So cheers !!!
    To download the code, goto controllerstech.com/stm32-usb...
    Check out more VIDEO on USB with STM32 • STM32 USB
    ________________________________________________________________________________________
    ****** SUPPORT US BY DONATING*****
    paypal.me/controllertech
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controllerstechdiscuss
    Follow me on Instagram / controllerstech
    For more info, visit www.controllerstech.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 47

  • @eXtremeElectronics
    @eXtremeElectronics ปีที่แล้ว +1

    Thank you for sharing valuable information!

  • @technics6215
    @technics6215 7 หลายเดือนก่อน

    Oh dear, it is so simple... Thank you!

  • @KostsovKonstantin
    @KostsovKonstantin 3 ปีที่แล้ว

    Thank you for the video.

  • @haythemjelassi4766
    @haythemjelassi4766 2 ปีที่แล้ว +4

    Could you please make a tutorial how to interface usb joystick with stm32?

  • @uguraltunbilek
    @uguraltunbilek ปีที่แล้ว

    thanks for this beatifuly tutorial .

  • @DraveS21
    @DraveS21 3 ปีที่แล้ว

    What i should do if i want to make gamepad?

  • @Broman3100
    @Broman3100 3 ปีที่แล้ว

    Great vid, quick question: can you use usb HID on every stm with usb or you need specific peripherals for that?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +2

      Yeah we need USB HID peripheral for that..

    • @Broman3100
      @Broman3100 3 ปีที่แล้ว

      Noob question, an mcu can have USB but not USB HID?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +2

      Depends on the mcu. Like f103C8 have usb but only the device mode, not the host.. So this particular tutorial won't work.

    • @Broman3100
      @Broman3100 3 ปีที่แล้ว

      @@ControllersTech I see, thanks for the answers

    • @a1nelson
      @a1nelson 3 ปีที่แล้ว +2

      I’m not 100% sure on this, but I think the black pill boards have an STM32F4, which most likely has a host controller. They are just a touch more expensive than the blue pills, but not too bad. Edit: I just checked the data sheets for the black pill F401 and F411 variants. Both support host mode. I didn’t look long, but appears that they are available for under 5 USD from the typical Chinese sources and about double that from vendors in the US. Depending on your application, that’s really a bargain.

  • @safiakhan2034
    @safiakhan2034 4 หลายเดือนก่อน

    can you please send me the connection diagram for mouse. I connected my stm32f407 board with the mouse with OTG cable and the other side to computer with a usb cable but i do not see anything in my serial monitor

  • @user-px4tj9cp9u
    @user-px4tj9cp9u 3 ปีที่แล้ว

    How do I make this project in SPL? More lessons on SPL/LL..

  • @mahdiforughi2789
    @mahdiforughi2789 ปีที่แล้ว

    Thanks for your great tutorials. one question, how can I use other languages on my keyboard?

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      I guess it only supports the ascii characters. So no other languages for now

  • @ilkeraykut7064
    @ilkeraykut7064 2 ปีที่แล้ว

    Thanks for the tutorial.Could you make a tutorial about custom HID device like gamepad?

    • @kadirbirci4939
      @kadirbirci4939 10 หลายเดือนก่อน

      Did you find any information about interfacing gamepad?

  • @usrrsr
    @usrrsr 3 ปีที่แล้ว

    Worked after changing usb fs speed to 1.5mb instead of 12mb

  • @ajdarseidzade688
    @ajdarseidzade688 3 ปีที่แล้ว +2

    Excellent. Thank you!

  • @blackcathardware6238
    @blackcathardware6238 3 ปีที่แล้ว

    Are Mouse and Keyboard working at the same time if you connect your eval-board to a USB-Hub and Mouse and Keybord to it?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +1

      Maybe you should try and report if they do 🙂

  • @GoracyKanal
    @GoracyKanal 3 ปีที่แล้ว

    This is a great channel, but why are you using a speech synthesizer?

  • @nikhilkp9579
    @nikhilkp9579 7 หลายเดือนก่อน

    Hello, As you disabled the debug pins. After flashing for the first time, how did you re connect the board to the pc? I'm facing No stm32 target found error after flashing this code. Please respond asap.

    • @ControllersTech
      @ControllersTech  7 หลายเดือนก่อน

      Erase entire memory using the stm32 cube programmer. Then it will work.

  • @ltva8781
    @ltva8781 11 หลายเดือนก่อน +1

    I did everything from this tutorial on NUCLEO-H743ZI2 board. LD8 is bright but it seems like the kryboard does not receive any power since when I try to press numlock or capslock buttons the LEDs on keyboard do not light up and I receive no messages on MCU side. What I am doing wrong?

    • @EdwinFairchild
      @EdwinFairchild 2 หลายเดือนก่อน

      your keyboard may be wanting more power than the board can supply. also check the user manual of the H7 board to see what regulators you may need to enable.

    • @ltva8781
      @ltva8781 2 หลายเดือนก่อน

      @@EdwinFairchild I tried plugging in USB flashlight that consumes 200 mA and it lights up properly, so there shouldn't be a power issue...

  • @Jokalor
    @Jokalor ปีที่แล้ว

    how to do on windows 10?

  • @Rtek-zv5lr
    @Rtek-zv5lr ปีที่แล้ว

    Sorry, but this video isn't about Keyboard and Mouse, it's about Keyboard OR Mouse. Need HUB to be Keyboard and Mouse, right? I'm looking for HUB code, can you tell me where I can find some current repository please? Thanks.

  • @deadall127
    @deadall127 3 ปีที่แล้ว +1

    do you plan on making a similar video where the stm32 is the device and not the host? stm official tutorials are so bad, impossible to understand things like keyboard reports, media keys, mouse, usb polling rate etc

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +3

      Hmm i will but later. I don't have the board with USB OTG yet. So once i get that, I'll start making them

    • @jorchick
      @jorchick 3 ปีที่แล้ว

      @@ControllersTech I also waiting tutorial about keyboard emulation :)

    • @a1nelson
      @a1nelson 3 ปีที่แล้ว +1

      Controllers Tech Sounds great. I’d be happy to send you another dev board. Do you have a Patreon, Amazon wish list or something like that? I really enjoy your channel - it has been super helpful to me - and I would be pleased to help support it.

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +2

      I appreciate that... I'll get it myself though. Some lockdown restrictions are here at my place. Once this will be over, I'll order one..

    • @deadall127
      @deadall127 3 ปีที่แล้ว

      @@ControllersTech awesome, I'm looking forward seing that :D

  • @jhankhanajoshi2052
    @jhankhanajoshi2052 3 ปีที่แล้ว

    still I am confused about silly thing. which one is power pin and which one works as data. pls guide me

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      What do you mean ?

    • @jhankhanajoshi2052
      @jhankhanajoshi2052 3 ปีที่แล้ว

      @@ControllersTech
      Pin near ethernet is OTG USB which passes the data and pin at opposite side st link for power supply. So, to pass on data I have to use OTG cable between OTG USB pin and keyboard.
      Did I understand correct?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      Well that depends on what board you have. Check it's datasheet or the product description guide.
      Mostly "user" is written on the user USB.

    • @jhankhanajoshi2052
      @jhankhanajoshi2052 3 ปีที่แล้ว

      @@ControllersTech ok Thank you

  • @jhankhanajoshi2052
    @jhankhanajoshi2052 3 ปีที่แล้ว +1

    I am working with STM32F429 bord. I have checked everything but code is not working.
    Please guide me regarding this.

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      Contact on discord or telegram

    • @anthonygallien5976
      @anthonygallien5976 2 ปีที่แล้ว

      Same for me, did you find an answer ?

    • @jhankhanajoshi2052
      @jhankhanajoshi2052 2 ปีที่แล้ว

      @@anthonygallien5976
      If it's only about mouse then probably you have to check with another one. Some of the mouse does not contain this HID ....
      Above was the problem with my mouse

  • @unomasenelmar
    @unomasenelmar 3 ปีที่แล้ว

    maravilla