3D printed MEDIA CONTROL volume knob - Arduino basics

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • blog.prusaprinters.org/3d-pri...
    Check the full article ;)
    Arduino IDE: www.arduino.cc/en/Main/Software
    Project source code: prusa3d.com/downloads/others/...
    Click encoder library: github.com/0xPIT/encoder
    How to create an infinitely rotatable and clickable dial that can play/pause your current song or skip to next one on double click without you ever leaving currently opened application!
    Cameos by:
    3DPrintingNerd - / @3dprintingnerd
    Tom's 3D - / thomassanladerer
    3DMN - / @3dmakernoob
    Estefanniegg - / estefanniegg
    Clare from E3D - e3d-online.com/blog/author/cl...
    Pooch - / repkord
    Music:
    Ocean - KV
    Skydive - Loxbeats
  • Věda a technologie

Komentáře • 204

  • @valdosh69
    @valdosh69 Před 5 lety +174

    1:16 that little macropad with mechanical switches looks cool!

    • @maga8631
      @maga8631 Před 5 lety +5

      www.thingiverse.com/thing:2822140 this is a simmilar version with 8 keys

    • @MattFowlerBTR
      @MattFowlerBTR Před 5 lety +6

      I made one for myself with a clone-arduino board, did the cad for myself from scratch in Fusion 360 (as I wanted 10-key in a 3-4-3 layout and sitting on the front edge of my desk), printed it on my (genuine) Prusa i3 mk2. Biggest expense was fancy "re-legendable" keycaps (the two-part type where you can put a printed label insert in) which are kinda un-necessary. The genuine Cherry MX Brown switches weren't stupidly expensive. It was my first ever arduino project, mostly using someone else's source code but with a few little changes, and I'm really pleased with it. The Arduino sends keys F13 - F22 (the standards for USB keyboards defines F1 to F24, it's just most keyboards stop at F12), I have F13,14,15 doing stuff with a simple AutoHotKey script (to open My Computer, my NAS box, my NextCloud cloud-sync folder) and the other ones I assign directly as hotkeys in software like OBS Studio and Discord.

    • @valdosh69
      @valdosh69 Před 5 lety +4

      @@MattFowlerBTR there's a special firmware for mechanical keyboards - it's called QMK firmware and it's really powerful. You can program macros and shortcuts very easily with it.

    • @nunosousa7698
      @nunosousa7698 Před 5 lety +2

      What switches/hardware was used there? would like to build one myself.

    • @valdosh69
      @valdosh69 Před 5 lety

      @@nunosousa7698 For macropad like this you need arduino pro micro, some cherry-mx styled switches (gateron, kailh, outemu), keycaps (you can 3d print them) and diodes to make matrix. But you can also make it without diodes and connect each switch to one arduino pin.

  • @yomboprime
    @yomboprime Před 5 lety +72

    Definitely I would like more videos mixing Arduino and 3d print :-)

  • @Eddy_AREA99
    @Eddy_AREA99 Před 5 lety +125

    I Also really would like to see the tutorial of the macropad (1:16)

  • @kurtlindner
    @kurtlindner Před 5 lety +10

    I love these little Arduino projects.

  • @JohnHall73
    @JohnHall73 Před 5 lety +7

    Yes we need more projects like this. Love it.

  • @thisiskeithb
    @thisiskeithb Před 5 lety +2

    These 3D printing/Arduino combo project videos are great!

  • @ARepublicIfYouCanKeepIt
    @ARepublicIfYouCanKeepIt Před 5 lety +1

    Yes, definitely more project tutorials! This one is a *great* example.

  • @dannyallyn223
    @dannyallyn223 Před 5 lety +3

    absolutely make more of this style video! The media controller at the end with 6 logo buttons should be the next one!!

  • @vinshin3320
    @vinshin3320 Před 5 lety +50

    The teleporting youtubers was hilarious!

  • @jontech9978
    @jontech9978 Před 5 lety +1

    It is always good to see usable stuff from a 3D printer.

  • @garthhowe297
    @garthhowe297 Před 5 lety +3

    Josef, I love the combination of 3D printing projects with the Arduinos!

  • @Entityism
    @Entityism Před 5 lety +2

    Yes, Yes and Yes! More like this, please! Thanks for doing this, will def be trying it out.

  • @C4mpblor
    @C4mpblor Před 5 lety +1

    Printing this right now! electronics on the way. Too cool. More please!

  • @MrAkalle
    @MrAkalle Před 5 lety +23

    I would love to see more Arduino Projects

  • @Johncoffee2002
    @Johncoffee2002 Před 5 lety +2

    Cool project. Would love to see more!!

  • @St.S.
    @St.S. Před 5 lety +9

    Awesome! Would like to see that taken one step further using a bluetooth shield and maybe a powerbank or connected to a phone for power.

  • @juptuber6824
    @juptuber6824 Před 3 lety

    I just ordered parts. This gonna be sooo useful for me

  • @TheJohncoffee1234
    @TheJohncoffee1234 Před 5 lety +4

    Nice project! Gonna print that later on :)

  • @ppSnow
    @ppSnow Před 3 lety +4

    If you not have a Arduino with HID (that can be a keyboard), you can send the encoder data to serial interface with println() and use a simple python script to listen the serial port and execute the keyboard commands(volume+, vol-, play, pause...) with help of pynput library
    Also, it may be easier to change behavior based on the current open window, since the keyboard commands is being sended on the host device

  • @Al3x1t0s
    @Al3x1t0s Před 5 lety +35

    Ohhhh I want the tutorial of the macropad (1:16)

  • @alancruickshank9286
    @alancruickshank9286 Před 5 lety +1

    Great idea please do more. I know I will have to watch this many times before I get it. Could you slow down, zoom in more, or both, thanks and keep them coming

  • @BMSWEB
    @BMSWEB Před 5 lety

    What a fantastic project! This is so good for STEM programs

  • @paulmellor2605
    @paulmellor2605 Před 5 lety +1

    A really great idea - a future project for me I think! 👍

  • @spikekent
    @spikekent Před 5 lety +1

    Love these projects, more please.

  • @mlggeek1812
    @mlggeek1812 Před 5 lety +1

    I would really like a lot more of these kind of tutorials with arduino :)

  • @2bpicpic
    @2bpicpic Před 5 lety +1

    Very good video , im gonna try this project :)

  • @android4cg
    @android4cg Před 5 lety +3

    Great Ideas! Would like to see more such Arduino projects. ;-)

  • @electronic7979
    @electronic7979 Před 5 lety +2

    Excellent project 👍 I like it

  • @seba2590
    @seba2590 Před 2 lety

    muchas gracia! mi primer proyecto Arduino, muy fácil e increíblemente funcional! me encanta!

  • @Eweiler50
    @Eweiler50 Před 5 lety +2

    Hey Prusa Team
    Nice Video!
    Wath do you think about a special keyboard with short cuts for for example fusion 360?
    Greetings Erik

  • @rgrf
    @rgrf Před 4 lety +1

    thank you. brilliant and so useful that there's now an emergency stop for the music! I'm looking for a remix of a 3D volume control model that exploits the existence of the red LED underneath and the LED that flashes as the knob turns. These lights feels a bit wasted but I'm stuck for a way to use this as a cool lighting effect.

  • @Dust599
    @Dust599 Před 5 lety +8

    himm magic reappearing filament that slowly fades back into existence after 3DMN takes it...

  • @AthanCondax
    @AthanCondax Před 5 lety +1

    Absolutely do more like these!

  • @munst1
    @munst1 Před 5 lety +4

    nice project, is it posibile to make with this also a 3d-Mous?

  • @jvleugels
    @jvleugels Před 5 lety +1

    Wow, even better than all the buttons is the fact that Prusa has invented teleportation!! Check the "stolen" spool of filament at 0:23

  • @JosePron19
    @JosePron19 Před 5 lety +1

    Cool tutorial!!

  • @vlcekmlcek3393
    @vlcekmlcek3393 Před 5 lety

    I have built this about two years ago. Designed in SketchUp, printed on MK2 and assembled with Digispark, which is cheaper than pro micro and also smaller.

  • @Markus__B
    @Markus__B Před 5 lety +6

    Asking for other Project Ideas, what about your own Version of a 3D Connexion SpaceMouse based on arduino and an analog Stick / 4 axis Controller?

    • @Prusa3D
      @Prusa3D  Před 5 lety +6

      Yep, it's mentioned at the end of the full article linked in the video description. There is an open-source reverse engineered driver for the SpaceMouse, so that would be cool to implement.

  • @baspluim5925
    @baspluim5925 Před 5 lety +2

    Stop giving me more awesome hobbies I don't have time for! :-)

  • @lensch27
    @lensch27 Před 5 lety +1

    Where can I get the files of the keycaps you used on the little cherry mx controller in 1:16?

  • @timothysvec8568
    @timothysvec8568 Před 5 lety +1

    Very nice. Thank you!

  • @UrpaDeFerro
    @UrpaDeFerro Před 4 lety

    Really great, man

  • @hippohoppa
    @hippohoppa Před 2 lety

    Thank you very much! In my market i don't have these arnuinos.. I have the "ARDUINO NANO 3.0 US
    "
    Will work the same?

  • @pertileluca
    @pertileluca Před 5 lety +1

    Very useful project

  • @antonwinter630
    @antonwinter630 Před 5 lety +1

    very cool project

  • @ambroscustom
    @ambroscustom Před 5 lety +1

    Fantastic project.......❤️❤️

  • @Stonehenge81
    @Stonehenge81 Před 5 lety +1

    Can you map the button to change scroll wheel functionality? For example, one click to set the wheel to change volume, and two clicks to set the wheel to seek through a video.

    • @syber-space
      @syber-space Před 5 lety +3

      You definitely could. Just split the loop based on the state the button is in, and have those two inputs swap states.

  • @RomanoPRODUCTION
    @RomanoPRODUCTION Před 5 lety +2

    The cool Josef we have is the Josef we deserve

  • @matrixfire
    @matrixfire Před 5 lety +3

    I love to see a guide to the macro keyboard

  • @Doubird28
    @Doubird28 Před 3 lety

    Is there anywhere to buy one of these knobs. I would just like to control the volume on my laptop. (i do not have external speakers). thanks

  • @rlhemenway
    @rlhemenway Před 5 lety

    Using an sd card reader attached to the arduino, and a small speaker, would it be possible to turn the media nob into a media player?

  • @YukonK9
    @YukonK9 Před 5 lety +1

    More Arduino Projects please!

  • @hiasausmwoid1247
    @hiasausmwoid1247 Před 5 lety

    i made one, its cool. how can i setup the windows logoff by click? dont get it work

  • @hironshy5337
    @hironshy5337 Před 5 lety +3

    Omg the one with the mecanical switches ô-ô . I want to do that .

  • @Morgoth_PT
    @Morgoth_PT Před rokem

    Does it work with the Arduino Nano Every?
    Thank you for the video.
    Please share more arduino projects.
    Greetings from Portugal

  • @JH_Tech49
    @JH_Tech49 Před 5 lety +1

    Nice ! I am trying to do the same but for controlling picoreplayer with Logitech Media server via WiFi. I didn't succeed for now 😅

  • @pauldevey8628
    @pauldevey8628 Před 5 lety +1

    Great project. How about taking this a bit further and have a rotary encoder with a numeric keypad in one. This allows you to use it for CAD and video editing etc. Keep the content coming.

  • @UncleJessy
    @UncleJessy Před 5 lety +6

    Hahaha awesome video!

  • @m.o.1698
    @m.o.1698 Před 4 lety

    Is there a guide how to build the media controler at 7:37 ?

  • @pierdolio
    @pierdolio Před 5 lety +3

    Can you do one showing how you teleport people?

  • @PhilLenz
    @PhilLenz Před 5 lety +1

    Thanks - Cool tutorial. IDEA - What about a control box with 8-10 buttons / knobs to help with the most common features of Fusion 360 (e.g. knob to zoom in/out/reset, buttons to change view TOP/FRONT/RIGHT, button "E" to extrude, etc.)?

  • @SoftmanCZ
    @SoftmanCZ Před 5 lety

    Is there a version for Raspberry Pi Zero W?

  • @JustinasJakubovskis
    @JustinasJakubovskis Před rokem

    Very cool and fast project, but on my Windows 11 OS volume increments is 4% by one rotary encoder click, is it possible somehow change to 1% ?

  • @apinakapinastorba
    @apinakapinastorba Před 4 lety

    Making a remote controller for recording software will be my take on this concept :)

  • @javiergaspardengraalmecija7746

    Joseph, I saw you on the Barcelona marker with David Cuartielles !!!! I hope someday I have money for the MK3, s

  • @MichealWeinfurtner
    @MichealWeinfurtner Před 5 lety +2

    More, yes, please more...

  • @StanciFuc
    @StanciFuc Před 2 lety

    Can you use something else than Atmega32u4 ? Like STM8S103F3P6 ?

  • @diginomad6016
    @diginomad6016 Před 4 lety

    What's the name of the sound played in the beginning of the video? Can any one say it?

  • @JeffriRanger
    @JeffriRanger Před 5 lety +1

    Very nice

  • @floriankaltenbock2343
    @floriankaltenbock2343 Před 2 lety

    Is it somehow possible to make a controll knob for a smartphone?

  • @mitsuotoyama1091
    @mitsuotoyama1091 Před 4 lety

    is it possible to do it with an arduino nano?

  • @holyloli69420
    @holyloli69420 Před 5 lety +3

    How big the knob & button will be?
    *Yes*

  • @alexfrenchmaker1903
    @alexfrenchmaker1903 Před 5 lety +1

    Just... thank you!

  • @Virtual_Bastard
    @Virtual_Bastard Před 2 lety

    would this work with a pi pico?

  • @Dajosco
    @Dajosco Před 5 lety +2

    Yes! more arduino o raspberry please!

  • @chloemcholoe3280
    @chloemcholoe3280 Před 5 lety

    I should see if I can manage this with a tiny STM32F030 that's like 0.3$ and is Soo tiny but the USB communication would suck since there's no Arduino

  • @SkyUnderscore
    @SkyUnderscore Před 4 lety

    What rotary encoder did you use?

  • @kenstephens2955
    @kenstephens2955 Před 5 lety +1

    Neat! Thanks !!

  • @consig1iere294
    @consig1iere294 Před 4 lety

    How do I use this with an Uno? The HID-Project library says that Uno and Mega can be used with HoodLoader 2. How do I do that?

    • @Prusa3D
      @Prusa3D  Před 4 lety +1

      The projects's wiki has pretty in-depth instructions:
      github.com/NicoHood/HoodLoader2/wiki/Hardware-Installation

  • @DiyintheGhetto
    @DiyintheGhetto Před 3 lety

    Hello i have a small problem. My arduino board is a 32bit not a avr. But it does to Hid device because i can do a keyboard on it. However one problem i ran into it is the Timerone. It only runs on avr and not 32bit. Do you think there might be a way to fix that problem?

    • @Prusa3D
      @Prusa3D  Před 3 lety

      The timerone library is used for the detection of the rotary encoder spinning. It's very likely you can replace it with a different library that will run fine on your board. I would try to search for the "name of your arduino board" + "rotary encoder example". If you find an example of a code that works on your board, you can copy/paste the parts that handle the encoder from this project to the media control one. -Mikolas

  • @aniiizane370
    @aniiizane370 Před rokem

    Great turorial! I follow the video and I it work! But a problem came up with the step each time I rotate. I have two types of rotary encoder to test, one of them goes 2 step each time I rotate the encoder once, and the other one goes 4 steps at once, may I ask is it because the code or my encoder? I just want it to go one step at a time🙂

    • @aniiizane370
      @aniiizane370 Před rokem

      nevermine~I just found out the solution in comment. But there seems to be another problem, when I rotate anticlockwise sometimes it would bounce a little, just ocassionaly, I don'k know if it's because of the code

    • @aniiizane370
      @aniiizane370 Před rokem

      To be more specific, when I rotate anticlockwise it will initiate a click when I just only on half a notch, when doing clockwise it needs to be a whole notch to initiate, so sometimes it would bounce when rotating anticlockwise

  • @asimcent
    @asimcent Před 2 lety

    sir please help i dont know what happening I uploaded same sketch as you shown same libariry and my arduino pro micro is showing in arduino ide softwair but when ever I upload it stuck on uploading and show some oringe lines stay showing uploading please help this is my second pro micro board

  • @BrianMarofsky
    @BrianMarofsky Před 4 lety +1

    The button click doesn't work. I see the light blink but nor pause or skip. I tried in VLC and Windows Media Player. Anyone get it to work? Is it only for certain apps?
    Volume works great.

    • @BrianMarofsky
      @BrianMarofsky Před 4 lety +1

      Seems like a reboot of the windows PC with the Arduino connected fixes it (sometimes). Now try and fix it all in the box and secure it. No one seems to show pics of that part.

  • @bajorc5129
    @bajorc5129 Před 4 lety

    Are you going to make a video about the macropad at 1:16 ? Otherwise this was a great video !

  • @danielkrah5129
    @danielkrah5129 Před 5 lety

    Whoa 0:30 prusa research can teleport filament spools :D

  • @JennyEverywhere
    @JennyEverywhere Před 3 lety

    Just what I was looking for. I don't have a Prusa though, I have an Ender 3. So I'll have to do some fiddling, maybe design my own box and knob. (Or figure out how to translate the code...still new at 3d printing!) The source for the Arduino is what I really wanted.
    Wish I'd seen this before ordering a Contour ShuttleXpress... oh, well.

    • @Prusa3D
      @Prusa3D  Před 3 lety +1

      All the included models can be sliced for your Ender 3 as well :)
      There is even a built-in profile for Ender 3 in PrusaSlicer now, so you can use that open the model file :)
      -Mikolas

  • @cochonez5289
    @cochonez5289 Před 3 lety

    works great, but i have to unplug and replug it after every reboot in order to function. has anyone a fix for this problem?

  • @lordofdoom6636
    @lordofdoom6636 Před rokem +1

    I get this eror
    In file included from E:\DOWNLOADS\oversized_volume_knob\oversized_volume_knob.ino:5:0:
    C:\Users\Daniel\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.
    #error HID Project can only be used with an USB MCU.
    ^~~~~
    how do i fix it?

  • @coreyroberts3342
    @coreyroberts3342 Před 5 lety

    Can you link to the personalities that are in the intro? I know some of them but not all and they always deserve credit for all the awesome work they do.
    Love this project by the way, great write up!

  • @richardalves6655
    @richardalves6655 Před 4 lety

    hello how to put bluetooth on it

  • @markmacherey4744
    @markmacherey4744 Před 5 lety +1

    Can you post the code that teleports youtubers...

  • @yougiely
    @yougiely Před 4 lety

    cannot do the same thing on digispark attiny85

  • @Evilslayer73
    @Evilslayer73 Před 2 lety

    does it work on raspberry pi?

  • @mariemeyer2885
    @mariemeyer2885 Před 5 lety +2

    Love it! Like to see more projects of this nature and circuitpython boards. Maybe circuit playground express or ESP 32s

  • @spoiled_kitten
    @spoiled_kitten Před 2 lety

    Any alternatives?

  • @xxxxzorroxxxx
    @xxxxzorroxxxx Před 5 lety +1

    Yes please more

  • @tymekd9584
    @tymekd9584 Před 4 lety

    What is name of this black filament?

    • @Prusa3D
      @Prusa3D  Před 4 lety

      Prusament Galaxy Black :)

  • @lukasvogl7679
    @lukasvogl7679 Před 5 lety

    A System were see the prusa printer an your Mobile like octoprint but only for prusa printer

  • @BartAfterDark
    @BartAfterDark Před 2 lety

    Would love this ported to the esp32 :)

  • @nubrex9815
    @nubrex9815 Před 5 lety

    Powerbank will be cool