No video

Menu with voice & rotary encoder - Arduino

  Рет қаралды 101,678

Electronoobs

Electronoobs

Күн бұрын

Best & Fast Prototype ($2 for 10 PCBs): www.jlcpcb.com
Thanks to JLCPCB for supporting this video.
This is a small example of how to use a rotary encoder to scroll the menu. How to create special unique characters for the i2c LCD screen and how to play Mp3 files with the DFplayer module. You have all the files you need below.
Help my projects on Patreon: / electronoobs
my Q&A page: electronoobs.co...
Canal en Español: / electronoobs en español
--------------------------------------------------------------------
COUPONS
--------------------------------------------------------------------
Creality CR10 mini: www.gearbest.c...
COUPON: "CR10MINI"
Anycubic I3: www.gearbest.c...
COUPON: "I3MEGA"
Creality CR10 : www.gearbest.c...
COUPON: "11CR10US" or "11CR10EU"
Tevo Tornado: www.gearbest.c...
COUPON: "Tornados" or "TornadosUS"
PROJECT LINKS
--------------------------------------------------------------------
Tutorial webpage: www.electronoob...
Part list: www.electronoob...
Rotary encoder test code: www.electronoob...
i2c LCD test code: www.electronoob...
Special char LCD code: www.electronoob...
DFplayer example code: www.electronoob...
Final code: www.electronoob...
i2c library: www.electronoob...
DFplayer library: www.electronoob...
SCHEMATICS
--------------------------------------------------------------------
Rotary encoder: www.electronoob...
i2c LCD: www.electronoob...
DFplayer: www.electronoob...
Final schematic: www.electronoob...
Like share and subscribe to motivate me. Thank you

Пікірлер: 154
@ELECTRONOOBS
@ELECTRONOOBS 6 жыл бұрын
I hope you enjoy this video. If you have any question use this comment section or my Q&A. Want to support me? www.patreon.com/ELECTRONOOBS Thank you very much!
@ufohunter3688
@ufohunter3688 6 жыл бұрын
Nicely done. What is the Max clock frequency you can use on the I2C line for these LCDs? Can it do 400KHz or even more? or just 100KHz?
@ufohunter3688
@ufohunter3688 6 жыл бұрын
The reason I ask, is that you are using 10K pull-up resistors. That big of a resistor can hardly do 100KHz.
@madhukeshnp
@madhukeshnp 5 жыл бұрын
Why GOD has stuffed all the intelligence at one single place ????????? I am jealous of this guy. You are just amazing.......!!!!!!!!
@luisces
@luisces 2 жыл бұрын
This was by far the most straightforward explanation I've seen around, also the amount of comments and code readability is amazing! Well done
@DaveEverett01
@DaveEverett01 4 жыл бұрын
Nice to see someone combining all these elements together. You could eliminate the 10k resistors as pinMode can be configured as INPUT_PULLUP. Also the DFplayer has an amplifier onboard and can drive a normal speaker quite loud, so you could make the project simpler. I hope this information is helpful
@rubabvlogs1843
@rubabvlogs1843 6 жыл бұрын
dude you are awesome....the way u describe the things so calmly...no youtuber does this....thanks...
@Sulaim1569
@Sulaim1569 4 жыл бұрын
Agreed
@1_HighDuke
@1_HighDuke 6 жыл бұрын
Great video overall. I personally would've liked to see more of an explanation of the final code since it uses interrupts.
@yogpanjarale
@yogpanjarale Жыл бұрын
okay i coming back to this video after 5 years i used to watch this channel a lot back when i was 12-13 , now i am 17 i will comeback and make it , making such stuff still interests me
@MrCrystan
@MrCrystan 6 жыл бұрын
This is by far the best menu i have seen so far and the voice bonus is just WOW. Kudos for sharing the code with us too
@marinussmit3322
@marinussmit3322 3 жыл бұрын
Thanks for this easy to follow guide! I used it to build a sensor box with a scrolling menu to show the readings from the various sensors!
@barbasbandas6665
@barbasbandas6665 6 жыл бұрын
Man just great! You are becoming one of my favourites
@littlemadness221990
@littlemadness221990 5 жыл бұрын
At least, someone is still advertising JLCPCB :))
@texmuphy68
@texmuphy68 2 жыл бұрын
Great explanation of how a rotary encoder works. (and you're easy on the eye as well)
@alphonsesynrem28
@alphonsesynrem28 4 жыл бұрын
You are really good, very detailed and easy to understand how every of your projects works. Thank you so much, I am learning so much. Keep up the detailed explanation and transparency of your projects. I have found your videos very helpful and nothing useless in them. Your videos are quick fast and to the point, makes it very worthwhile.
@Shalfatk01
@Shalfatk01 2 жыл бұрын
i love that "banana for a scale" :D
@leehewitt9559
@leehewitt9559 2 жыл бұрын
Excellent video, this will help me to build a project for a similar task. Glad I'm a patron to keep your channel going.
@mohammedrhiat4375
@mohammedrhiat4375 3 жыл бұрын
Great Video , GOOD JOB !!
@russ_vee_jr4199
@russ_vee_jr4199 Жыл бұрын
Really good vid. Your implementation of scrolling is helpful to me as I define coding of my current project. I hadn't stopped to figure it out, but your method showed me how simple it is. You do Good Work. Thanks Much....
@octapc
@octapc 6 жыл бұрын
You are so under subbed. Love your work.
@ZenoModiff
@ZenoModiff 6 жыл бұрын
IF YOU ARE A PROJECT LOVER WE THE ZENO-MODIFF TEAM PARTNERS WITH YOU TO MAKE COOL PROJECTS WITH ARDUINO,RASPBERRY PI,IOT & DIY ELECTRONICS WHICH YOU LOVE IF YOU ARE ONE WHO REALLY NEED HELP TO ACHIEVE OR TO MAKE PROJECTS BUT DONT HAVE THE BASIC IDEA OF IT WE ARE WITH YOU FRIEND PLEASE SUBSCRIBE OUR KZfaq CHANNEL FOR MORE VIDEOS kzfaq.info
@Rayyarhs
@Rayyarhs 3 жыл бұрын
For rotary use interupt. If using delay or you use library that has delay, and turn the rotary to fast, it will read wrong readings.
@mesotin
@mesotin 4 жыл бұрын
This was awesome dude!!! Great job, got to check out your other videos!
@stever3886
@stever3886 3 жыл бұрын
Most excellent video. I will be using this for my next project menus
@lklkvcvc
@lklkvcvc 4 жыл бұрын
The best tutorial video I watched on a project
@ChunkySteveo
@ChunkySteveo 6 жыл бұрын
Another great explanation of the basic fundamentals. You're very good at explaining it all, keep it up!
@alphonsesynrem28
@alphonsesynrem28 5 жыл бұрын
Thank you for the tutorial. You have excellent way of simplifying the so seemed complicated work of electronics or mcu coding. I have learned a very nice and important thing.
@nedstar7378
@nedstar7378 Жыл бұрын
Excellent video and great information, thanks for sharing.
@james_waynegamingvideos6959
@james_waynegamingvideos6959 5 жыл бұрын
I love this youtube channel, one of my favorite channel to view everyday, thanks for sharing your knowledge to everyone, you got a great job doing it. salute!
@1113562
@1113562 5 жыл бұрын
very neat. I found this as was looking for a way to generate voice sentences and values for transmission from a data acquisition system at a remote location. transmission would be via an audio channel of a gsm gps tracker device.
@RandyLott
@RandyLott 6 жыл бұрын
The 1k resistors likely reduce ringing, so that may be why it's quieter with them.
@Farizno
@Farizno 6 жыл бұрын
Fantastic video.Exactly what I was looking for, and then some. Thanks for your continued great videos and fantastic explainations.
@dfn808
@dfn808 2 жыл бұрын
I know I'm a bit late, but this is an excellent tutorial. Thanks for sharing.
@tamarathompson9418
@tamarathompson9418 6 жыл бұрын
Thanks heaps im reading a book on this and have all the components but haven't gotten around to doing anything with it yet , the df player i mean . Cheers
@Zhaymoor
@Zhaymoor 6 жыл бұрын
I wish you explaind how to use the interrupts in your code
@electrotsmishar
@electrotsmishar 3 жыл бұрын
Thank you. Awesome video
@apollorobb
@apollorobb 4 жыл бұрын
On some libraries for I2C displays you have to initiate the LCD with lcd.begin and not init.
@datdawg9291
@datdawg9291 6 жыл бұрын
You are awesome at explaining and teaching
@mahmoudtarek8328
@mahmoudtarek8328 6 жыл бұрын
You are my favourite electronics channel
@ELECTRONOOBS
@ELECTRONOOBS 6 жыл бұрын
Thank you so much!
@paulbrandt2454
@paulbrandt2454 6 жыл бұрын
Wonderfull tutorial! Great explanations and examples. A lot of good information.
@belenhedderich3330
@belenhedderich3330 6 жыл бұрын
Dear Your example test sketch of the LCD is for a 20*4, not for a 16*2 as in the example. Doing the whole thing hehe
@Mysteryos
@Mysteryos 6 жыл бұрын
Very very good explications and video. Moreover I am french and I understand you. Thanks
@dilipsuthar1836
@dilipsuthar1836 3 жыл бұрын
Good vdo, great piece of information shared on fundamentals. Keep sharing....
@MikeSmith
@MikeSmith 6 жыл бұрын
I notice that the button on the encoder is set for a pulldown resistor however the encoder I have has is set for pullup so it is acting like the button is always pushed. How would you change the code for a button with a pullup resistor?
@carangers
@carangers 3 жыл бұрын
This every get solved? I think Im having the same issue.
@yukonschannel
@yukonschannel 3 жыл бұрын
This every get solved? I think Im having the same issue.
@oriannakane7359
@oriannakane7359 3 жыл бұрын
I did it by taking out the switch resistor (so it will no longer be pulled down). Then in the code where the button section is, reverse it by saying if (!digitalRead(push))...
@oriannakane7359
@oriannakane7359 3 жыл бұрын
@@yukonschannel I just answered. Hope it helps!
@oriannakane7359
@oriannakane7359 3 жыл бұрын
@@carangers I just answered. Hope it helps!
@chiparooo
@chiparooo 6 жыл бұрын
Nice tutorial! Great explanations and examples. A lot of good information.
@ZenoModiff
@ZenoModiff 6 жыл бұрын
IF YOU ARE A PROJECT LOVER WE THE ZENO-MODIFF TEAM PARTNERS WITH YOU TO MAKE COOL PROJECTS WITH ARDUINO,RASPBERRY PI,IOT & DIY ELECTRONICS WHICH YOU LOVE IF YOU ARE ONE WHO REALLY NEED HELP TO ACHIEVE OR TO MAKE PROJECTS BUT DONT HAVE THE BASIC IDEA OF IT WE ARE WITH YOU FRIEND PLEASE SUBSCRIBE OUR KZfaq CHANNEL FOR MORE VIDEOS kzfaq.info
@maikscheermeijer718
@maikscheermeijer718 3 жыл бұрын
***SOLVED*** If you are using a black soldered rotery encoder with already 3 resistors on the back, don't use the resistors in the schematic for the encoder. You also have to change the code line to ************ if (!digitalRead(push))******************
@hsfi7408
@hsfi7408 3 жыл бұрын
Great Video! Thanks!!!
@ccango
@ccango 5 жыл бұрын
Nicely done. Great explanation!!
@kamalambrator4332
@kamalambrator4332 6 жыл бұрын
Nice nice nice nice tutorial! Great explanations and examples. A lot of good information, thank you!!!!!!!!!!!!!!!
@DRI1966
@DRI1966 3 жыл бұрын
Thank you for this video. Well explained 👍
@swaransinghsandhu
@swaransinghsandhu 6 жыл бұрын
Also your work shop is very nice looking
@kanadnemade
@kanadnemade 6 жыл бұрын
Love that background!
@VikMKW
@VikMKW 6 жыл бұрын
Couldn't you substitute the external pull up resistors on the Data/Clock pins with the on board pullup resistors of the arduino using "pinMode(data, INPUT_PULLUP)" ?
@ELECTROBUFF
@ELECTROBUFF 6 жыл бұрын
Good video about rotary encoders. What software do you use to edit your videos?
@ELECTRONOOBS
@ELECTRONOOBS 6 жыл бұрын
Thank you. I use After Effects!
@addaemichael4683
@addaemichael4683 4 жыл бұрын
This is a great project and I will be glad if you can use this same project to produce an electric drum using piezo transducers no MIDI.thanks
@abbaschandorwal724
@abbaschandorwal724 3 жыл бұрын
I want to print measuring tape can a signal from the encoder give a continuous print outif connected to a printer so I can have a 5 meter long tape printed to sell commercially
@j.lucena5486
@j.lucena5486 3 жыл бұрын
Very good. Excellent
@mertcapkin7263
@mertcapkin7263 6 жыл бұрын
Good content and great video editing! Subscribed :)
@jimbobillybob1959
@jimbobillybob1959 6 жыл бұрын
Thanks so much! Another great video!!
@eii9639
@eii9639 8 ай бұрын
This is awesome!! What kind of breadboard is that?
@gsuresh2u
@gsuresh2u 2 жыл бұрын
Hi, good work, but how to use this code for Stm32 blue pill? How to define rotary pins?
@majinkeyboards
@majinkeyboards 3 жыл бұрын
Awesome!
@joebatista4306
@joebatista4306 Жыл бұрын
Hello, I am having a small problem with your code right now, it keeps returning an "exit status" error and i jst cannot find the solution to this problem. Could you please assist. Kind regards
@muratdndr
@muratdndr 2 жыл бұрын
Thank you very much bro...
@omhobby9481
@omhobby9481 4 жыл бұрын
5:40 hey is it possible only use internal pull up instead of pull up resistor?
@gsuresh2u
@gsuresh2u 2 жыл бұрын
Is this code work for Stm32 blue pill? What pins I need to use for rotary encoder?
@moienrabbany8344
@moienrabbany8344 2 жыл бұрын
hi thanks for helpful information, I wanna make mp3 player and display file name in lcd with BT-201 module and I don't know how to connect it with arduino and write the code . I need help to do that
@isprithul
@isprithul 6 жыл бұрын
Hoping to see that brushed motor quadcopter soon.
@anthonyg4671
@anthonyg4671 6 жыл бұрын
Iqbal Samin Prithul sound is ok it must be your end.
@isprithul
@isprithul 6 жыл бұрын
Anthony ihavenoidea Right. Somebody turned my speaker knob to the lowest position
@vishal01mehra
@vishal01mehra 6 жыл бұрын
Thank you very much for Great project.
@calvin-7540
@calvin-7540 4 жыл бұрын
@9:21, shouldn't be both the 3rd and 4th rows decimal 8 instead of 6 if we count in terms of binary order, should they?
@chalos9752
@chalos9752 6 жыл бұрын
Great video!!!
@Toro-Tor
@Toro-Tor 4 жыл бұрын
Good stuff and THANK YOU! But there is one problem with the suggested library, if I put it in my arduino-libraries, I get Warnings: "Invalid library found in C:/.../libraries/DFPlayer_Mini_Mp3_by_Makuna: no headers files (.h) found ..." Even if I now use a sketch where I dont use this library, still get this message. Its nice to have libraries where there is only the necessary stuff written, but obviously here to little was written. Any ideas what to do?
@paraneethanomwong648
@paraneethanomwong648 3 жыл бұрын
Why I can’t use init but begin?
@markknezovich5620
@markknezovich5620 6 жыл бұрын
otlichna! Spasba bolshoi!
@unalakdogan9416
@unalakdogan9416 2 жыл бұрын
hello, every time I turn the rotary encoder, why does the counter increase by 2? For example, when I turn a round, it says 1 and then 2 on the screen.
@ishmatullahbahri8228
@ishmatullahbahri8228 Жыл бұрын
does anyone know how to use this DFPlayer example code on arduino uno? i have tried with Uno and using the 0 and 1 pin. But it can't work, thanks for the help
@garethdavies8673
@garethdavies8673 4 жыл бұрын
great video many thanks
@Andandos
@Andandos 5 жыл бұрын
very nice and simple code! I tried it with the LiquidMenu library (qithub/VaSe7u/LiquidMenu) but I was not able to combine it with the rotary encoder + I2C display...
@katrinapaulabalbuena2906
@katrinapaulabalbuena2906 6 жыл бұрын
Thank you so much for this video.
@ELECTRONOOBS
@ELECTRONOOBS 6 жыл бұрын
U wellcome :)
@gare_moore
@gare_moore 4 жыл бұрын
How would you adapt this system for a Bluetooth speaker? Also, can you use normal push buttons? Thank you for posting.
@swaransinghsandhu
@swaransinghsandhu 6 жыл бұрын
Nice project
@akroutsamo
@akroutsamo 5 жыл бұрын
are switch case break better with menu than the iF statement ? maybe a new tuto , and how to save some value to the eeprom, lets say temperature controller for example
@alirezaasad8822
@alirezaasad8822 3 жыл бұрын
good work
@jordanmusleh6305
@jordanmusleh6305 5 жыл бұрын
Best video ever..!!👏👏👏👏👏🤟🙏🤜🤛
@kimberlycarreon1804
@kimberlycarreon1804 3 жыл бұрын
You nare so awesome
@GRBtutorials
@GRBtutorials 6 жыл бұрын
And what about the orders after the first one? How much is the shipping here to Spain? I heard figures like 20 € or so, which is a bit expensive considering that the PCBs are less than 2 € (the EUR/USD goes pretty well, finally...).
@edslab5383
@edslab5383 6 жыл бұрын
Are you Great Scott! 2.0?
@ELECTRONOOBS
@ELECTRONOOBS 6 жыл бұрын
LOL
@hansj.tankred6730
@hansj.tankred6730 6 жыл бұрын
Blink! O
@akshayd211
@akshayd211 5 жыл бұрын
@@ELECTRONOOBS I think you are better because you share the product links, code and teach better too. :) Thank you!
@madhukeshnp
@madhukeshnp 5 жыл бұрын
@@akshayd211 Really..... GreatScott is loosing the hold nowadays i feel !
@markd.maranan3742
@markd.maranan3742 4 жыл бұрын
Does it work with the regular lcd 16x2 (not the i2c one)?????
@AdriOq
@AdriOq 4 жыл бұрын
Hi! I love your videos, I was wondering if you can explain how to change the encoder pins for clk and dt in the complete code.
@soniakanjani2587
@soniakanjani2587 4 жыл бұрын
Can u make this same project with LCD shield
@grecomoragagonzalez5031
@grecomoragagonzalez5031 6 жыл бұрын
hi, nice video!! i have some troubles with the special characters. "array must be initialized with a brace-enclosed initializer" appears when i load the uint0_t sentence, do you knou what could be the problem?, thanks BTW
@guyfradasyl88650
@guyfradasyl88650 6 жыл бұрын
wonderfull video have you a link (enable) to buy the same breadbord, because mine is not working good. thank
@MrTigger015
@MrTigger015 6 жыл бұрын
if someone has problem with switch inside encoder just solder 1k/10k resistor on bottom layer of pcb
@ruslan.zhumabai
@ruslan.zhumabai 5 жыл бұрын
Do you have project menu with button on arduino. If you have show please.
@GRBtutorials
@GRBtutorials 6 жыл бұрын
"And share the video with your friends" Unfortunately, my friends don't like electronics.
@emreoztoklu
@emreoztoklu 6 жыл бұрын
hi my friend, ı would like yo ask a question. Could u create a project which can use same like this kidnd of project by using a GLCD KS0108 ?
@amirakhtar390
@amirakhtar390 4 жыл бұрын
this is very help full video
@orange11squares
@orange11squares 6 жыл бұрын
you forgot to add a replicator to materialize your desired coffee ! :))
@akshayd211
@akshayd211 5 жыл бұрын
Your code does not work with my setup which is exactly the same.
@abolfazlabbasi4854
@abolfazlabbasi4854 5 жыл бұрын
Thanks for the tutorial But your IDE's font size need to be bigger because I couldn't see the lines even with 1080 quality.
@alejandroperez5368
@alejandroperez5368 5 жыл бұрын
You need to learn some modals and stop watching tutorials on tiny screens.
@DeclanGreen
@DeclanGreen 4 жыл бұрын
I love this project. Is there a PCB design to go with it?
@guilhermerochasoares236
@guilhermerochasoares236 6 жыл бұрын
Can I use the WTV020?
@vivekvenkatsubramaniam437
@vivekvenkatsubramaniam437 6 жыл бұрын
How much memory did the program consume?
@kentharris7427
@kentharris7427 2 жыл бұрын
I liked your video. You should check your links however got a "You have a virus" Pop up ad that locked up my browser. Had to go to task manager to "End Task" to turn off my browser to start over.
Уроки Arduino. Работа с энкодером
10:55
Заметки Ардуинщика
Рет қаралды 182 М.
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 33 М.
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 53 МЛН
123 GO! Houseによる偽の舌ドッキリ 😂👅
00:20
123 GO! HOUSE Japanese
Рет қаралды 6 МЛН
This Dumbbell Is Impossible To Lift!
01:00
Stokes Twins
Рет қаралды 32 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 19 МЛН
How to use Rotary Encoder with Arduino
14:44
Mario's Ideas
Рет қаралды 43 М.
ROTARY ENCODER WITH INTERRUPTS - Arduino tutorial #12
13:12
Bas on Tech
Рет қаралды 56 М.
HACKED!: Using an HDD Motor as a Rotary Encoder?!
8:21
GreatScott!
Рет қаралды 1,5 МЛН
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 214 М.
Rotary Encoders: A Comprehensive Guide to Understanding and Using Them
7:44
Best code to use with a KY-040 Rotary Encoder? Let's find out!
9:13
Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM
13:21
Electronoobs
Рет қаралды 104 М.
Arduino with I2C LCD and Rotary Encoder
16:21
John Miller
Рет қаралды 29 М.
MOSFETs Drivers and Bootstrap - Types, Logic Level and More
12:46
Electronoobs
Рет қаралды 69 М.
Easy and Simple Arduino Settings Menu - How to
17:17
Taste The Code
Рет қаралды 42 М.
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 53 МЛН