This has become my favourite RUclips channel. Every video is just gold. I'm going to treasure them even more with the new rate, but I totally understand slowing down. It is insane how much effort is invested here. Thanks for your work Andreas, enjoy the free time.
Adreas, have nice "holidays" in the coming two months. I am sure you will gather new ideas to surprise us, like you do every week. Many thanks for the way you always teach and inspire us!
Thank you for your nice words! Yes, I want to get a little more from summer. And I have to do more biking because I was set back because of my accident...
1 video every 2 weeks? Sunday is my favorite youtube day to look forward too. On the bright side, now I have more time to study for my ham license. I guess, every bad thing has a good thing :)
As always, a very inspiring video. I have recently made an ESP32 based 20 key keypad to control my OBS stream. It was your ESP32 videos that pointed me into the right direction. Also, I appreciate your jog wheel project because I am wanting to add a jog wheel to the CNC controller I'd like to build. Thanks so much!
@@codigoBinario01 I used cherry keyboard switches for my build. I have a laser cutter and engraver which helped to make the key placement exact, but a 3D printer couild do the same. I only had to purchase the diodes, the keys, and the ESP32. It's a pretty easy soldering job. the software is dead simple to adapt to your needs. I used Brian Lough's RUclips videos on making a keypad to guide me and adapted his software with just a few changes. My first major electronic project. His is dead simple and can use one of those flat blister 12 figure flat plastic keypads. The other route is to get a bluetooth USB number keypad. Then you can make it more easily wireless which is very handy to step away from streaming computer. You can also reprogram that keypad too. Right now I am trying to figure out how to use LiFePo batteries with this and get a rechanging circuit built in to mine.
I think I would add some debounce/ detect state change code to your USB microscope script instead of the delay so that it can only trigger when transitioning from low to high and not when held high. Great video, appreciated as always!
Great video as always. I just used a Joystick library on an Micro Pro to connect a Clutch Pedal that I am using in my Sim Racing, the pedal is also self made by using a potentiometer. The fact that you can connect almost any device either as a keyboard or a mouse or a joystick blew my mind at that moment.
@@killymxi Remove the disks, cut away the part of the case that gets in the way, reassemble. Then connect the motor to a sensitive comparator circuit to use it as an encoder.
Well after looking at your website it seems that RUclips comments are the best way to reach you. I merely want to thank you so much for all the great content you have been putting out here on your channel. Though I have been messing with computers since the early 1980's, I have always only been comfortable with software. Of course I can build computers from parts, etc. But having never had a proper electronics education, I have always had some trepidation when it came to discreet electronic components and other things that involved soldering irons, blue smoke, and (seeming) black magic. But recently I have discovered the world of NodeMCU devices and decided that I should buy a soldering iron because maybe it was time to play in the hardware hacking world. Shortly after learning how to make a fun LED-strip project with a NodeMCU, logic level converter, and buck-converter, I came upon your channel here on RUclips. I find all your videos extremely informative and fun to watch,. And they give me inspiration for future project ideas. I really especially appreciate your videos on antennas, as I have found them fascinating. I have watched many of your videos now and enjoy them very much (including the summaries at the end, by the way -- I don't skip the endings). I just want you to know that you are appreciated. So thank, you, Andreas, for all your hard work, and your fantastic presentation.
Thank you for your nice words. We are never too old to learn something new. And these days, hardware is so cheap that nearly everybody can become a "Maker". And in combination with software and Wireless, the whole thing becomes really "fun".
@@AndreasSpiess Also, USB bit-bang technique will only work on PCs with operating system. (E.g. does not work on your camera, and does not work inside PC BIOS.)
I would recommend you to use USB HID Touch device emulation instead of mouse (if it is possible in the driver you use), as it operates on absolute positions instead of relative movements. Also note, that HID keyboard will still just send "key IDs", this it is effected by the active keyboard layout of your operating system.
Wow! This is another video that I will save for future reference. I'm also greatful for the additional information shared in the comments. I will check out the other boards with alternative solutions as well.
What if I want to create a HID device that does not "mimic" an existing mouse or keyboard? I want an analog input added to my computer, but I need it to be a unique device. Would I have to create some kind of custom drivers to make that possible?
Not that I have any certainty of that model, but it is sometimes possible to remove or bend the latches that stop the encoder from moving freely on #3. Then you might want to add more weight hidden in the wheel so it has more inertia. Great video!
Again a very enriching video, it's not only quanitity it's also quality. Thanks !! I hope you will find another few hundreds interesting topics, maybe you will build a fusion reactor in your garage ?
@@AndreasSpiess Be aware of the fake chips (most of them right now) on bluepills. They have no serial boot loader installed, then you have to upload the software via stlink (at least one time for uploading maple bootloader. After this, you can upload via USB. And be aware of stlink clones. Some of them has incorrect pin markings. If it does not work, check the correct pinout directly in the board.
Well deserved holidays, thank you. My two cents: - digispark is really good at this, also - at least Android smartphones understand USB HID, not only Bluetooth ones - a cool combo is using a proximity/gesture sensor instead of buttons/jogs with the MCU ...hope I'll be able to submit a pull request
Again nice Sunday morning entertainment ! So for the next coming weeks only one video every two weeks... I guess you're going on a holiday... enjoy it ! Btw, a very nice microscope camera ! Crisp clear picture ! Link ?
Amazing! You keep coming up with completely new projects. In this case the overlap with what I’m working on was great. I really appreciate you sharing this with us and coming up with fresh ideas for sensors and microcontrollers. Thank you!
At 2:28 you say you can't take back control of your device if something goes wrong, but can't you add an external circuit that allows data flow one way?
I like command line/data piping more useful and robust compared to HID. e.g. commands can be sent to microscope directly. Or logging data by printing into a csv or tsv file.
Thank you Andreas , have a nice summer too ! English auto generated subtitles do not work in current video . I get dutch .. auto generated instead ! There was no problem last Sunday .
I used a Teensy 3.2 to automate some repetitive mouse move once. Was a fun little project with a touch lcd so I could set the number of times it would run the loop. Was one of my first “useful” projects
..first time ive listened to one of your vids with my new headphones.. your voice makes them vibrate in the low end range! LOL interesting project Andreas, i seen it a while back in a defcon talk
I've been looking for a potentiometer-type free-wheeling rotary encoder for a long time. While you can remove the detent spring from regular rotary encoders, they're still a little stiff. The only thing I can find is the mouse wheel sensor type, which would require a bit of mechanical work, probably a 3D printer.
@@AndreasSpiess I don't either. The data sheet had very little information aside from physical sizes. I did see it has Detents, so would have to be modded. Also, Mouser marked it as Obsolete, so probably not being made any more. I'll go with an optical interrupter encoder - easy to steal out of an old or cheap mouse.
For project number 4, how can i make a button stay ON if I press the button, and OFF when i release it? Its because when I try to hold the button to stay on, it only send 1 command at a time. (Its for a push to talk project).
@@AndreasSpiess i dont know how to make an input of a keypad stays on, so i decided to just use simple push buttons. So far so good, ill expand it more in the future. Heres the code: #include BleKeyboard bleKeyboard("BLE Macro Keyboard", "NATHLUKE"); const int button1 = 17; const int button2 = 16; int buttonstate1 = 0; int buttonstate2 = 0; void setup() { Serial.begin(9600); bleKeyboard.begin(); pinMode(17, INPUT_PULLUP); pinMode(16, INPUT_PULLUP); } void macrokeyhere (uint8_t key){bleKeyboard.press(key); } void loop (){ buttonstate1 = digitalRead(button1); buttonstate2 = digitalRead(button2); if (buttonstate1 == LOW){macrokeyhere(KEY_LEFT_ALT); Serial.println("Button1 is Pressed");} if (buttonstate2 == LOW){macrokeyhere(KEY_LEFT_CTRL);Serial.println("Button2 is Pressed");} else {bleKeyboard.releaseAll();} }
You can have alot of fun with Arduino (like) boards as HID. I use the Teensy boards for this purpose. The support of this board is really good. I build a custom "joystick" for flight simulations, including a rotary encoder for the set of the radio frequency in the sim.
Just thinking about the jog wheel - what about using a simple rotary encoder in combination with a mechanical gear with a ratio of 1:100 (or similar). Cheap rotary encoder come with 20 or 24 impulses per full rotation ...
Good idea. That is maybe what is inside my jog wheel ;-) Maybe I have to open it once.
4 года назад
Index of projects for quick reference: 3:44 Project #1 (Microscope camera controlled by buttons) 6:03 Project #2 (Data logging) 6:54 Project #3 (Keyboard emulation with a wheel) 10:23 Project #4 (Smartphone automation using a button) 11:30 Project #5 (Rubber Ducky)
With the help of a Rotary encoder and an e-ink display, I am working on a wireless HID device similar to Microsoft Surface Dial. My second project will be to make a wireless button for my cat which will play cat videos on Instagram on TV 😂😁 Thanks for the wonderful content. ✨✨✨✌
Nice video, I'll be working on a jog wheel soon. I have been working with a nextion screen for my boat to control heating, lighting, displaying engine perameters, solar charging information and a few other things using a pic chip for extra ios and solid state relays which I'll replace with latching relays to consume less power. they are really interested displays with a decent amount of processing and ios.
Hey. For a encoder you can use a hard drive motor. If you have keyboard connected to the Android phone, when you press control alt delete the phone will rebiot
So if your pro micro is programmed to now be a HID device, how do you get an updated sketch on it? Googling suggests the bootloader gets activated for a very short duration on reset and for longer if you "double reset" Is that true Andreas?
For HID and usb MIDI, I use Teensy's boards, more power, cheaper and well documented, fully arduino IDE compatible. You should make a vid about these boards, they are my prefered boards this last years...
@@AndreasSpiess I order it at robotshop Europe, cheapest and low shipping price www.robotshop.com/de/en/teensy-lc-usb-microcontroller-development-board.html (I'm based in France, but they have many plateforms in europe, I'm sure you could get shipped in switzerland).
@@AndreasSpiess You're welcome, I've seen a few different ways that make jog wheels click. Most can be modified to remove it. Hopefully, you get lucky and have an easy one to modify.
@@AndreasSpiess The BBC micro:bit is a small (4x5cm) board intended for educational use. Every 11 year old kid in Britain received one to use in class, starting in 2016 (over a million to date). Its based around the Nordic nRF51822 and includes bluetooth, native USB, and the thing that makes it interesting for my application, an accelerometer, two uncommitted buttons, and a 5x5 led matrix. It will even run off a pair of AA batteries, the kit includes a holder. And they are cheap, US$15, while the comparable arduino BLE nano lacks the light matrix and uncommitted buttons, for US$21. (I am trying to build a simulator for a hand bell, that could be assembled from a cheap off the shelf board, without the need for any soldering. All it would require is attaching some kind of handle, and loading software to make the thing, greatly reducing the skills needed to build yourself some. Its intended to be used with simulation software that currently just detects key presses. So I need bluetooth keyboard to press the buttons, the accelerometer to detect when you swung the bell, and the buttons/lights so you can select the note the bell will play)
you can use a hard drive motor as a jog wheel using arduino to usb, although a wireless bluetooth esp32 would be fantastic, you should make a video on it..
I also like the Digispark, which is using an Attiny85 and hacking the USB to its limits and above. So most of the time it shold work ;-). You can get these from Aliexpress for about $1.50. You can also build it yourself, if you have some Attiny85 lying around.
Wieder einmal ein Klasse Video in gewohnter Qualität von Dir :-) Könntest Du irgendwann auch mal etwas zu LCD Menüs mit dem Arduino machen? Würde mich sehr interessieren, wie da Deine herangehensweise ist.
Thank you very much for your again excellent video. In this video I saw that you are using winSCP; I am not anymore. A few weeks ago I was looking for a bottleneck in a transfer of larger files. I noticed that the communication with SCP via winSCP is extremely slow. Still slow with SFTP via winSCP. SFTP via Filezilla met my expectations. Since you always allow ssh access to a device, SFTP works without additional installations. I wish everyone a nice summer :-)
That rubber ducky reminded me of a thing I made about 12 years ago... an attiny85 on a piece of stripboard that also was used as usb connector. And the only thing it did, was running a modified v-usb example to randomly press capslock. It was a single use item, because after successful use it destroyed and thrown out of the window by its victim. ;)
By the way, it is possible to make usb a little bit more secure by not allowing every device. There are tools like this: usbguard.github.io/ (On Debian and Debian based Linux Distributions it is just an "apt install usbguard" away)
@@AndreasSpiess I searched a bit and I found remains of it on an old archive disk! It was 10 years ago and not 12. And it was this thing: imakeprojects.com/Projects/haunted-usb-cable/ And the only modification to the code was that I limited it to Caps Lock because Keys like "space" were too dangerous. ("rm -rf /var/cache/something/*" could become "rm -rf / var/cache/something/*")). And yes, it was fun for everyone but the poor victim. ;)
Just to make it clear, this is not my website and I just used their code and schematic. What I found on my archive was the downloaded code and the modified version. I used this to find the above mentioned website. And yes, their idea and presentation was very good (but the code was a bit too dangerous, space or enter keys can be bad when they meet a root shell).
I work with rather closed software that relies on very very slow mouse inputs, a few key combinations, and best yet command line for efficient inputs without (easily) misclicking on stuff. They won't lets us write macros on the computer for those commands as the software is security conscious. I want to build a macro keyboard for the most common commands to turn the dozens-of-times-per-day used commands that are 5-30 keystrokes into a single physical macro button.
Stickin on windoof is the problem, but even there i think you can navigate by tab and hit by spacebar. On mac/linux i managed it to use a midi controller for all my purposes, editing pics in lightroom and photoshop. Now it’s connected to my raspi4 as controller for my lights (and some special commands...). Midi controllers comes in very different shapes and functions, work mostly as midi tunneled usb serial devices and they r very cheap. Behringer x-touch mini is my recommendation.
@@AndreasSpiess Most interfaces support using the Tab key to switch / cycle through the available buttons. This way it would not matter where the window is on the screen as long as it is in the foreground.
@@AndreasSpiess Yes, I just saw the product video of the microscope to get a better sense of the controls - it seems your solution is as good as it gets.
Nice video as always..... I too was working on esp32 based bt keyboard and mouse and had to wake a windows laptop from a keystroke while being paired, but as soon as I put the windows device to sleep the bt keyboard disconnects.... Do you have any inputs to keep the bt keyboard connected during sleep and wake the windows wake through button press? Thanks in advance....
is the github repo set to private? it's not showing up on your list of repos. anyway, good stuff, foot pedals and wheels are very handy for a lot of computer tasks (video/audio editing, graphic design, 3d modelling...), and depending on your use case this is probably easier than setting up and using MIDI devices.
Man, only if getting force feedback output or using v-usb with cheaper micros was as easy I know of only one force feedback method... Open source steering wheel.
This has become my favourite RUclips channel. Every video is just gold.
I'm going to treasure them even more with the new rate, but I totally understand slowing down. It is insane how much effort is invested here.
Thanks for your work Andreas, enjoy the free time.
already is one of my favs!.. make sure to hit the bell icon and select ALL.. so you too can sit in the front row! :P
Glad you like them! You are right, some effort goes into the videos ...
Adreas, have nice "holidays" in the coming two months. I am sure you will gather new ideas to surprise us, like you do every week. Many thanks for the way you always teach and inspire us!
Thank you for your nice words! Yes, I want to get a little more from summer. And I have to do more biking because I was set back because of my accident...
@@AndreasSpiess 0
There was a great deal of that which reqires re-watching, probably a few times. Thanks for the inspiration.
Glad you enjoyed it!
1 video every 2 weeks? Sunday is my favorite youtube day to look forward too.
On the bright side, now I have more time to study for my ham license.
I guess, every bad thing has a good thing :)
I hope you will get your license soon!
Just like all the other videos, you are informative and straight to the point, no BS included! I love all of your videos Andreas! Thank you again!
Thank you! And have a nice summer!
This man deserves much more subscribers. Excellent and high quality content
Thank you. Working on it!
Exactly what I am working on right now with a 'rubber ducky' and nextion display for a zoom-conference keypad :-)
Thanks Andreas!
Cool project! You have to share it!
As always, a very inspiring video. I have recently made an ESP32 based 20 key keypad to control my OBS stream. It was your ESP32 videos that pointed me into the right direction. Also, I appreciate your jog wheel project because I am wanting to add a jog wheel to the CNC controller I'd like to build. Thanks so much!
You are welcome!
Seeing this working would be really interesting for me, since I use OBS for teaching purposes (avoiding post-production due to time limitations)
@@codigoBinario01 I used cherry keyboard switches for my build. I have a laser cutter and engraver which helped to make the key placement exact, but a 3D printer couild do the same. I only had to purchase the diodes, the keys, and the ESP32. It's a pretty easy soldering job. the software is dead simple to adapt to your needs. I used Brian Lough's RUclips videos on making a keypad to guide me and adapted his software with just a few changes. My first major electronic project. His is dead simple and can use one of those flat blister 12 figure flat plastic keypads. The other route is to get a bluetooth USB number keypad. Then you can make it more easily wireless which is very handy to step away from streaming computer. You can also reprogram that keypad too. Right now I am trying to figure out how to use LiFePo batteries with this and get a rechanging circuit built in to mine.
I think I would add some debounce/ detect state change code to your USB microscope script instead of the delay so that it can only trigger when transitioning from low to high and not when held high. Great video, appreciated as always!
Good tip!
Great video as always. I just used a Joystick library on an Micro Pro to connect a Clutch Pedal that I am using in my Sim Racing, the pedal is also self made by using a potentiometer. The fact that you can connect almost any device either as a keyboard or a mouse or a joystick blew my mind at that moment.
True. It is a simple and efficient solution to many problems.
How's it that everytime I think of doing something, you come up with the solution for the exact problem
Idea for a rotary encoder: An old hard-disk from a laptop. GreatScott did a video about that...
I got this tip a few times. I have to try it once. Thanks!
It's getting tricky to source a suitable HDD - for a long time already they are cost-optimized, so the motor is a part of the chassis.
@@AndreasSpiess Here's the video from GreatScott: ruclips.net/video/tjCJ3MlFt7g/видео.html
@@killymxi Remove the disks, cut away the part of the case that gets in the way, reassemble. Then connect the motor to a sensitive comparator circuit to use it as an encoder.
I wanted to suggest the same solution, but I was sure someone else already did it.
The Pi zero with ALOA is a great bit of kit for HID
Great video, thank you for another education in tech.
Good addition. Thank you!
Well after looking at your website it seems that RUclips comments are the best way to reach you. I merely want to thank you so much for all the great content you have been putting out here on your channel. Though I have been messing with computers since the early 1980's, I have always only been comfortable with software. Of course I can build computers from parts, etc. But having never had a proper electronics education, I have always had some trepidation when it came to discreet electronic components and other things that involved soldering irons, blue smoke, and (seeming) black magic. But recently I have discovered the world of NodeMCU devices and decided that I should buy a soldering iron because maybe it was time to play in the hardware hacking world. Shortly after learning how to make a fun LED-strip project with a NodeMCU, logic level converter, and buck-converter, I came upon your channel here on RUclips. I find all your videos extremely informative and fun to watch,. And they give me inspiration for future project ideas. I really especially appreciate your videos on antennas, as I have found them fascinating. I have watched many of your videos now and enjoy them very much (including the summaries at the end, by the way -- I don't skip the endings). I just want you to know that you are appreciated. So thank, you, Andreas, for all your hard work, and your fantastic presentation.
Thank you for your nice words. We are never too old to learn something new. And these days, hardware is so cheap that nearly everybody can become a "Maker". And in combination with software and Wireless, the whole thing becomes really "fun".
Also note the AtTiny85 in the Adafruite-Trinket / Digispark projects as cheap programmable USB HID devices.
True. I just do not have one...
@@AndreasSpiess Also, USB bit-bang technique will only work on PCs with operating system. (E.g. does not work on your camera, and does not work inside PC BIOS.)
I would recommend you to use USB HID Touch device emulation instead of mouse (if it is possible in the driver you use), as it operates on absolute positions instead of relative movements. Also note, that HID keyboard will still just send "key IDs", this it is effected by the active keyboard layout of your operating system.
For PCs this is a much better idea. However, this software runs on the camera and it probably only understands "mouse"
Wow! This is another video that I will save for future reference. I'm also greatful for the additional information shared in the comments. I will check out the other boards with alternative solutions as well.
Together we are strong!
What if I want to create a HID device that does not "mimic" an existing mouse or keyboard? I want an analog input added to my computer, but I need it to be a unique device. Would I have to create some kind of custom drivers to make that possible?
Have a very good summer Andreas! & you all guys...
Thank you. You too!
Likes your channel, its content, your voice, your humor and what you do.
Why do I feel some frustration in this video?
No idea ;-) Have a nice summer!
your videos are great Andreas thank you for all the hard work and time doing this!
My pleasure! Glad you like them.
Not that I have any certainty of that model, but it is sometimes possible to remove or bend the latches that stop the encoder from moving freely on #3. Then you might want to add more weight hidden in the wheel so it has more inertia.
Great video!
Maybe I have to sacrifice one and open it...
Again a very enriching video, it's not only quanitity it's also quality. Thanks !! I hope you will find another few hundreds interesting topics, maybe you will build a fusion reactor in your garage ?
:-)) For my Harley. Would be cool.
I don't know why atmega32 is so expensive. Stm32f103 (blue pill) is far more cheap, powerful, and can emulate many usb devices even audio or storage.
Maybe I will have a look at the bluepill in the near future...
@@Chris-rg6nm "Big Arduino" 🤣 I may have to steal that.
@@AndreasSpiess Be aware of the fake chips (most of them right now) on bluepills. They have no serial boot loader installed, then you have to upload the software via stlink (at least one time for uploading maple bootloader. After this, you can upload via USB.
And be aware of stlink clones. Some of them has incorrect pin markings. If it does not work, check the correct pinout directly in the board.
@@anvz6 also the watchdog timer is disabled in some counterfeit chips.
@@anvz6 Can you tell us who sells real Bluepills ? I have never received fake chips but has only purchased ca 20 boards.
Well deserved holidays, thank you.
My two cents:
- digispark is really good at this, also
- at least Android smartphones understand USB HID, not only Bluetooth ones
- a cool combo is using a proximity/gesture sensor instead of buttons/jogs with the MCU ...hope I'll be able to submit a pull request
Cool. I wait for your request. Digisparks were mentioned quite a few times. I do not own one...
Andreas, I am using a Griffin Powermate as USB volume knob for years now - it is working perfectly! A bluetooth version is available as well.
Thanks for the tip and for sharing your experience!
Quality over quantity. Two videos a month is fine by me.
Thank you! I have to get a little more outside this summer...
Again nice Sunday morning entertainment ! So for the next coming weeks only one video every two weeks... I guess you're going on a holiday... enjoy it !
Btw, a very nice microscope camera ! Crisp clear picture ! Link ?
Enjoy your summer, too! This is the microscope: s.click.aliexpress.com/e/_dXtDOHq and s.click.aliexpress.com/e/_dZpEeUM
thanks for all, what do you think of this; Contour Design Shuttle Express , kind regards
Nice product. Thank you for the link!
Amazing! You keep coming up with completely new projects. In this case the overlap with what I’m working on was great. I really appreciate you sharing this with us and coming up with fresh ideas for sensors and microcontrollers. Thank you!
Glad it helped you. This should be the purpose of my videos.
Very good project 👍
Many thanks
Don't know if someone mentioned it before, but the Digispark could be a alternative to the Rubber Ducky. It's also able to emulate keystrokes.
You are right. It was mentioned a few times.
At 2:28 you say you can't take back control of your device if something goes wrong, but can't you add an external circuit that allows data flow one way?
As I said: You can unplug the device. Or switch it off. Of course you can add something to disconnect the data lines, too.
thank
For this channel thumb up is an understatement. Wonderful button is needed. Here you learn so much with fun.
Thank you for your nice words! I am proud to have such subscribers!
I like command line/data piping more useful and robust compared to HID. e.g. commands can be sent to microscope directly. Or logging data by printing into a csv or tsv file.
You are right if things are connected to a PC
interesting ideas, indeed! thanks Andreas and have a nice summer!
Thanks, you too!
Nice video. Have a nice holiday. This video is very useful for my DIY HMI Keypad project. Thanks,
Cool projects, thank you Andreas. I don't remember how was the frequency of your videos, but I think 1vid weekly is a good frequency.
It is every Sunday 9am my time.
Thank you Andreas , have a nice summer too ! English auto generated subtitles do not work in current video . I get dutch .. auto generated instead ! There was no problem last Sunday .
I deleted Duch now. I do not know why it was there. Maybe because of my accent ;-)
I used a Teensy 3.2 to automate some repetitive mouse move once. Was a fun little project with a touch lcd so I could set the number of times it would run the loop. Was one of my first “useful” projects
I can imagine it was useful!
If you can take apart the rotary encoder, the detent is usually just a ball bearing. Remove it and the wheel will spin freely.
Thank you. I will try it!
..first time ive listened to one of your vids with my new headphones.. your voice makes them vibrate in the low end range! LOL
interesting project Andreas, i seen it a while back in a defcon talk
The topics are not new, but I wanted to put them a little together for reference...
Love the channel my Swiss friend. Really good projects 👍🏻❤️
Thank you!
I've been looking for a potentiometer-type free-wheeling rotary encoder for a long time. While you can remove the detent spring from regular rotary encoders, they're still a little stiff. The only thing I can find is the mouse wheel sensor type, which would require a bit of mechanical work, probably a 3D printer.
Somebody suggested a SRGPHJ3200. I do not know if it is any good.
@@AndreasSpiess I don't either. The data sheet had very little information aside from physical sizes. I did see it has Detents, so would have to be modded. Also, Mouser marked it as Obsolete, so probably not being made any more. I'll go with an optical interrupter encoder - easy to steal out of an old or cheap mouse.
I ordered one of those "obsolete" ones...
For project number 4, how can i make a button stay ON if I press the button, and OFF when i release it? Its because when I try to hold the button to stay on, it only send 1 command at a time. (Its for a push to talk project).
I do not remember the details. But I assume it can be done by simple programming logic.
@@AndreasSpiess hymm, ill try to work on it on my own. Thanks 👍👍
@@AndreasSpiess i dont know how to make an input of a keypad stays on, so i decided to just use simple push buttons. So far so good, ill expand it more in the future. Heres the code:
#include
BleKeyboard bleKeyboard("BLE Macro Keyboard", "NATHLUKE");
const int button1 = 17;
const int button2 = 16;
int buttonstate1 = 0;
int buttonstate2 = 0;
void setup() {
Serial.begin(9600);
bleKeyboard.begin();
pinMode(17, INPUT_PULLUP);
pinMode(16, INPUT_PULLUP);
}
void macrokeyhere (uint8_t key){bleKeyboard.press(key); }
void loop (){
buttonstate1 = digitalRead(button1);
buttonstate2 = digitalRead(button2);
if (buttonstate1 == LOW){macrokeyhere(KEY_LEFT_ALT); Serial.println("Button1 is Pressed");}
if (buttonstate2 == LOW){macrokeyhere(KEY_LEFT_CTRL);Serial.println("Button2 is Pressed");}
else {bleKeyboard.releaseAll();}
}
You can have alot of fun with Arduino (like) boards as HID. I use the Teensy boards for this purpose. The support of this board is really good.
I build a custom "joystick" for flight simulations, including a rotary encoder for the set of the radio frequency in the sim.
Do you have instruction guides?
Nice project. Many other viewers suggested to use a Teensy for that purpose.
Just thinking about the jog wheel - what about using a simple rotary encoder in combination with a mechanical gear with a ratio of 1:100 (or similar). Cheap rotary encoder come with 20 or 24 impulses per full rotation ...
Good idea. That is maybe what is inside my jog wheel ;-) Maybe I have to open it once.
Index of projects for quick reference:
3:44 Project #1 (Microscope camera controlled by buttons)
6:03 Project #2 (Data logging)
6:54 Project #3 (Keyboard emulation with a wheel)
10:23 Project #4 (Smartphone automation using a button)
11:30 Project #5 (Rubber Ducky)
Thank you!
With the help of a Rotary encoder and an e-ink display, I am working on a wireless HID device similar to Microsoft Surface Dial.
My second project will be to make a wireless button for my cat which will play cat videos on Instagram on TV 😂😁
Thanks for the wonderful content. ✨✨✨✌
She will love your project, I am sure!
Andreas, can you please share the link to the inspection camera at 3:48? Thanks in advance!
It should be there by now.
You can also send a tab + enter keys, should be easier
For the camera? I am not sure it understands keystrokes. The software runs in the camera.
You deserve a break over the summer! :-)
Thank you!
Nice video, I'll be working on a jog wheel soon. I have been working with a nextion screen for my boat to control heating, lighting, displaying engine perameters, solar charging information and a few other things using a pic chip for extra ios and solid state relays which I'll replace with latching relays to consume less power. they are really interested displays with a decent amount of processing and ios.
The Nextions for sure are nice for such an application because you can make them also good looking...
for the microscope project, a simple pyautogui script on the pc should give you a nifty control of the targetsoftware 😉
It has no connection to a PC. Just HDMI for a monitor
Next step an Alexa, Siri, or hey google interface?
Hey. For a encoder you can use a hard drive motor. If you have keyboard connected to the Android phone, when you press control alt delete the phone will rebiot
Thanks for the two tips!
So if your pro micro is programmed to now be a HID device, how do you get an updated sketch on it?
Googling suggests the bootloader gets activated for a very short duration on reset and for longer if you "double reset"
Is that true Andreas?
For me it worked as usual. I did not do anything different
Link for microscope doesn't include the lens, is it standard lens or have to buy specifically for this microscope?
I thought I added two links?
@@AndreasSpiess Yes, but in your lenses-link are several versions listed, which type did you choose? (gain-factor)
@@AndreasSpiess Saw it, Thanks :)
I have the 120x
Real helpful tutorial! Just subscribed!
Welcome aboard the channel!
For HID and usb MIDI, I use Teensy's boards, more power, cheaper and well documented, fully arduino IDE compatible. You should make a vid about these boards, they are my prefered boards this last years...
Their problem always was the worldwide availability of the price of shipment. But maybe it changed.
@@AndreasSpiess I order it at robotshop Europe, cheapest and low shipping price www.robotshop.com/de/en/teensy-lc-usb-microcontroller-development-board.html (I'm based in France, but they have many plateforms in europe, I'm sure you could get shipped in switzerland).
Thanks for the link!
You can probably disassemble the jog wheel and remove the Ball bearing that “clicks” into a dimple to get smooth free spin movement.
Thanks for the tip. I will have a look.
@@AndreasSpiess You're welcome, I've seen a few different ways that make jog wheels click. Most can be modified to remove it. Hopefully, you get lucky and have an easy one to modify.
Your are expanding my time with your very helpful information, alot of thanks
You are welcome!
A BM jog wheel clone, Thank you Andreas, this is just what I need for DR16
Glad you like it!
This is helpful. Do you know if the keyboard library works with a bbc micro:bit?
I fo not know the micro bit :-(
@@AndreasSpiess The BBC micro:bit is a small (4x5cm) board intended for educational use. Every 11 year old kid in Britain received one to use in class, starting in 2016 (over a million to date). Its based around the Nordic nRF51822 and includes bluetooth, native USB, and the thing that makes it interesting for my application, an accelerometer, two uncommitted buttons, and a 5x5 led matrix. It will even run off a pair of AA batteries, the kit includes a holder. And they are cheap, US$15, while the comparable arduino BLE nano lacks the light matrix and uncommitted buttons, for US$21.
(I am trying to build a simulator for a hand bell, that could be assembled from a cheap off the shelf board, without the need for any soldering. All it would require is attaching some kind of handle, and loading software to make the thing, greatly reducing the skills needed to build yourself some. Its intended to be used with simulation software that currently just detects key presses. So I need bluetooth keyboard to press the buttons, the accelerometer to detect when you swung the bell, and the buttons/lights so you can select the note the bell will play)
Good luck with your project.
I used the digispark which has a attiny85, and can do usb hid for keyboard and mouse
Also a good choice. Maybe a little (too) limited for some projects.
How about putting your laser cutter to work and make a hall effect based jog wheel?
Possible. But I have no such laser :-(
I play even your newest videos on 1.5x xD
So you must be a bright guy ;-)
@@AndreasSpiess I just can just listen faster.
Very I3 (interesting, inspiring, improving) and enjoy your vacation 🙏🏾
Thank you! Will do! I hope you also have time for holidays!
Thanks sir, for your great efforts
You are really a great teacher.
It's my pleasure
The Pro Micro looks Similiar to AtTiny85 8bit MCU which also supports some HID usage.
True. Just more pins, memory, and power.
Interesting video... Just wonder that changing(DIYing) bluetooth 3.0 device to 5.0 is possible or not.
I do not think so.
you can use a hard drive motor as a jog wheel using arduino to usb, although a wireless bluetooth esp32 would be fantastic, you should make a video on it..
ruclips.net/video/CMz2DYpos8w/видео.html
I thought this is what I have done in this video.
ruclips.net/video/tjCJ3MlFt7g/видео.html
ruclips.net/video/30SG7JPlXho/видео.html
Sorry for ma wrong answer. I only saw the *ESP32 wireless" and somehow omitted the rest. Cool idea of Greatscott!
I also like the Digispark, which is using an Attiny85 and hacking the USB to its limits and above. So most of the time it shold work ;-). You can get these from Aliexpress for about $1.50. You can also build it yourself, if you have some Attiny85 lying around.
You are right. I knew them, but never tried one.
Can you make video on how to set internal RTC of esp using Arduino ide. And accuracy of that RTC in normal condition.
I made videos about ntp time which includes the internal clock.
How to send button pushes and joystick movement to android via bluetooth? For example paning a google maps map with joystick.
You find plenty of projects for Windows. I do not know if they also work for Android. Just google "esp32 joystick"
Wieder einmal ein Klasse Video in gewohnter Qualität von Dir :-) Könntest Du irgendwann auch mal etwas zu LCD Menüs mit dem Arduino machen? Würde mich sehr interessieren, wie da Deine herangehensweise ist.
Da müsste ich ein entsprechendes Projekt haben... Aber da gibt es schon viele Videos.
New project suggestion: Adding Amp and BT connectivity to your favorite old school wired (non-powered) speakers.
I do not have such speakers :-(
@@AndreasSpiess wow! I have a pair of JBL Studio Monitors that are lonely and need repurposing in a BT world.
Many thanks for the interesting video. I think that some of your tips gave me some ideas of my own. Maybe I can implement them in my own projects.
Enjoy your projects! This was the goal of my video...
please, can you explain in other video your microscope ? or put in comments the link to this . thanks
I put the links to the microscope in the description.
@@AndreasSpiess sorry but I can't see the link in the description. 🧐
Here is the line:_ Microscope: s.click.aliexpress.com/e/_dXtDOHq and s.click.aliexpress.com/e/_dZpEeUM
Thank you very much for your again excellent video.
In this video I saw that you are using winSCP; I am not anymore.
A few weeks ago I was looking for a bottleneck in a transfer of larger files.
I noticed that the communication with SCP via winSCP is extremely slow. Still slow with SFTP via winSCP. SFTP via Filezilla met my expectations. Since you always allow ssh access to a device, SFTP works without additional installations.
I wish everyone a nice summer :-)
Thanks for the tip. I do not use it often and only for very short scripts. So I did nor recognize it.
Similar to the Rubber Ducky, there is also Bad USB, which can also come with WiFi, when an ESP8266 is added, aka WiFi Ducky.
Never heard about the WiFi version. Thanks!
Great projects
Thanks for sharing 👍😀
You are welcome!
That rubber ducky reminded me of a thing I made about 12 years ago... an attiny85 on a piece of stripboard that also was used as usb connector. And the only thing it did, was running a modified v-usb example to randomly press capslock. It was a single use item, because after successful use it destroyed and thrown out of the window by its victim. ;)
By the way, it is possible to make usb a little bit more secure by not allowing every device. There are tools like this: usbguard.github.io/
(On Debian and Debian based Linux Distributions it is just an "apt install usbguard" away)
Thanks for the link. And this was a funny project, I am sure...
@@AndreasSpiess I searched a bit and I found remains of it on an old archive disk! It was 10 years ago and not 12. And it was this thing: imakeprojects.com/Projects/haunted-usb-cable/
And the only modification to the code was that I limited it to Caps Lock because Keys like "space" were too dangerous. ("rm -rf /var/cache/something/*" could become "rm -rf / var/cache/something/*")).
And yes, it was fun for everyone but the poor victim. ;)
Very good idea and presentation! Maybe for Halloween ;-)
Just to make it clear, this is not my website and I just used their code and schematic.
What I found on my archive was the downloaded code and the modified version. I used this to find the above mentioned website.
And yes, their idea and presentation was very good (but the code was a bit too dangerous, space or enter keys can be bad when they meet a root shell).
Hello Andreas, very nice Video. Code snippets link is not working...
Try now. It was on private. Sorry.
Andreas Spiess it’s working, thanks Andreas!
I work with rather closed software that relies on very very slow mouse inputs, a few key combinations, and best yet command line for efficient inputs without (easily) misclicking on stuff. They won't lets us write macros on the computer for those commands as the software is security conscious. I want to build a macro keyboard for the most common commands to turn the dozens-of-times-per-day used commands that are 5-30 keystrokes into a single physical macro button.
That sounds like an excellent application!
Stickin on windoof is the problem, but even there i think you can navigate by tab and hit by spacebar. On mac/linux i managed it to use a midi controller for all my purposes, editing pics in lightroom and photoshop. Now it’s connected to my raspi4 as controller for my lights (and some special commands...). Midi controllers comes in very different shapes and functions, work mostly as midi tunneled usb serial devices and they r very cheap. Behringer x-touch mini is my recommendation.
How to make a bluetooth android zoom controller using rotatary encoder?
Unfortunately, I have no such needs. So I do not know ☹️
If you simulate it pressing windows + print screen, you get a screenshot button, preferable as a foot pedal
Good idea. Especially for me as a RUclipsr. Thanks!
@@AndreasSpiess forgot to tell that they automatically get sorted into a folder inside of your windows default 'picture' folder
Can I use esp32 as a USB hid device?
Unfortunately, not. The S2 should be able, but the feature is not yet supported.
How to get to know about different new libraries , like u use a lot of new libraries, atleast new to me
I search with Google
It's actually not so difficult to bit-bang USB with other microcontrollers. For example an ATTINY85, can be used as well.
True. But the price differences are no more this big, I think.
@@AndreasSpiess it depends if you just buy an arduino type board, or make your own PCB. Or when there is only a limited amount of space.
Good morning, did you try tabs instead of mouse emulation for the microsope?
No. Do you know more?
@@AndreasSpiess Most interfaces support using the Tab key to switch / cycle through the available buttons. This way it would not matter where the window is on the screen as long as it is in the foreground.
This software runs in the camera. It only has a mouse and no keyboard. So I assumed nobody brogrammed keys. At least it is not documented.
@@AndreasSpiess Yes, I just saw the product video of the microscope to get a better sense of the controls - it seems your solution is as good as it gets.
Hy! Where are you with your satellite communication project ?
The PA Fried itself and I had to get a replacement :-(
Ow! Sorry for the 200 € !
@@AndreasSpiess 😱
True. Now I have a Bulgarian instead of a Chinese...
Love the videos from the guy you used has example for bluetooth hid, he is very funny
Thank you!
we should al enjoy the (beautiful) weather outside so no problem that there's not a weekly video in July and August!
Thank you! I enjoyed this "free" weekend...
Nice video as always..... I too was working on esp32 based bt keyboard and mouse and had to wake a windows laptop from a keystroke while being paired, but as soon as I put the windows device to sleep the bt keyboard disconnects.... Do you have any inputs to keep the bt keyboard connected during sleep and wake the windows wake through button press? Thanks in advance....
I did not use it with a laptop. Maybe you have to issue a .begin() if disconnected? I do not know.
@@AndreasSpiess Thank you for the response
is the github repo set to private? it's not showing up on your list of repos.
anyway, good stuff, foot pedals and wheels are very handy for a lot of computer tasks (video/audio editing, graphic design, 3d modelling...), and depending on your use case this is probably easier than setting up and using MIDI devices.
Updated. Thanks!
i need a key-code for press "Print" is there a possibility ? thx
I think so. But you have to google the hex code.
@@AndreasSpiess i google, but i found nothing that do that magic function "print"
Some of these kinds of UI problems can be solved in PC software, using open source tools like AutoHotKey.
Unfortunately, this software only runs in the camera. For the PC you are right. AutoHotKey is a very good tool.
Man, only if getting force feedback output or using v-usb with cheaper micros was as easy
I know of only one force feedback method... Open source steering wheel.
@7:18 , this guy was one of my favorite project based RUclipsrs especially on the topic of Bluetooth .. Wondering what happened to Evan Kale ?
I do not know. But RUclips is hard business if you want to live of it. And as a hobby it consumes a lot of time.