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

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 51

  • @haythemjelassi4766
    @haythemjelassi4766 2 роки тому +4

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

  • @eXtremeElectronics
    @eXtremeElectronics 2 роки тому +1

    Thank you for sharing valuable information!

  • @technics6215
    @technics6215 Рік тому

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

  • @朱俊峰-u8n
    @朱俊峰-u8n Місяць тому

    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😊

  • @safiakhan2034
    @safiakhan2034 10 місяців тому

    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

  • @adolfjap
    @adolfjap 2 місяці тому

    I have a question,If press multiple keys simultaneously what will happen?

  • @ltva8781
    @ltva8781 Рік тому +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 7 місяців тому

      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 7 місяців тому

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

  • @usrrsr
    @usrrsr 4 роки тому

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

  • @nikhilkp9579
    @nikhilkp9579 Рік тому

    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  Рік тому

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

  • @adolfjap
    @adolfjap 2 місяці тому

    If press alt+tab what will happen ?

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

    What about connecting gamepad?

  • @uguraltunbilek
    @uguraltunbilek 2 роки тому

    thanks for this beatifuly tutorial .

  • @ilkeraykut7064
    @ilkeraykut7064 2 роки тому

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

    • @kadirbirci4939
      @kadirbirci4939 Рік тому

      Did you find any information about interfacing gamepad?

  • @KostsovKonstantin
    @KostsovKonstantin 3 роки тому

    Thank you for the video.

  • @mahdiforughi2789
    @mahdiforughi2789 2 роки тому

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

    • @ControllersTech
      @ControllersTech  2 роки тому

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

  • @НиколайКрасиков-ы8й

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

  • @deadall127
    @deadall127 4 роки тому +2

    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  4 роки тому +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 4 роки тому

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

    • @a1nelson
      @a1nelson 4 роки тому +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  4 роки тому +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 4 роки тому

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

  • @ajdarseidzade688
    @ajdarseidzade688 3 роки тому +2

    Excellent. Thank you!

  • @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.

  • @DraveS21
    @DraveS21 3 роки тому

    What i should do if i want to make gamepad?

  • @Jokalor
    @Jokalor Рік тому

    how to do on windows 10?

  • @blackcathardware6238
    @blackcathardware6238 4 роки тому

    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  4 роки тому +1

      Maybe you should try and report if they do 🙂

  • @Broman3100
    @Broman3100 4 роки тому

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

    • @ControllersTech
      @ControllersTech  4 роки тому +2

      Yeah we need USB HID peripheral for that..

    • @Broman3100
      @Broman3100 4 роки тому

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

    • @ControllersTech
      @ControllersTech  4 роки тому +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 4 роки тому

      @@ControllersTech I see, thanks for the answers

    • @a1nelson
      @a1nelson 4 роки тому +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.

  • @GoracyKanal
    @GoracyKanal 4 роки тому

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

  • @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

  • @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

  • @unomasenelmar
    @unomasenelmar 4 роки тому

    maravilla