Тёмный

Menu with voice & rotary encoder - Arduino 

Electronoobs
Подписаться 577 тыс.
Просмотров 101 тыс.
50% 1

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.com/eng_preguntas...
Canal en Español: / electronoobs en español
--------------------------------------------------------------------
COUPONS
--------------------------------------------------------------------
Creality CR10 mini: www.gearbest.com/3d-printers-...
COUPON: "CR10MINI"
Anycubic I3: www.gearbest.com/3d-printers-...
COUPON: "I3MEGA"
Creality CR10 : www.gearbest.com/3d-printers-...
COUPON: "11CR10US" or "11CR10EU"
Tevo Tornado: www.gearbest.com/3d-printers-...
COUPON: "Tornados" or "TornadosUS"
PROJECT LINKS
--------------------------------------------------------------------
Tutorial webpage: www.electronoobs.com/eng_ardui...
Part list: www.electronoobs.com/eng_ardui...
Rotary encoder test code: www.electronoobs.com/eng_ardui...
i2c LCD test code: www.electronoobs.com/eng_ardui...
Special char LCD code: www.electronoobs.com/eng_ardui...
DFplayer example code: www.electronoobs.com/eng_ardui...
Final code: www.electronoobs.com/eng_ardui...
i2c library: www.electronoobs.com/eng_ardui...
DFplayer library: www.electronoobs.com/eng_ardui...
SCHEMATICS
--------------------------------------------------------------------
Rotary encoder: www.electronoobs.com/images/Ar...
i2c LCD: www.electronoobs.com/images/Ar...
DFplayer: www.electronoobs.com/images/Ar...
Final schematic: www.electronoobs.com/images/Ar...
Like share and subscribe to motivate me. Thank you

Наука

Опубликовано:

 

29 янв 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
@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
@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
@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!
@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.
@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.
@yogpanjarale
@yogpanjarale 11 месяцев назад
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
@ChunkySteveo
@ChunkySteveo 6 лет назад
Another great explanation of the basic fundamentals. You're very good at explaining it all, keep it up!
@barbasbandas6665
@barbasbandas6665 6 лет назад
Man just great! You are becoming one of my favourites
@mesotin
@mesotin 4 года назад
This was awesome dude!!! Great job, got to check out your other videos!
@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.
@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!
@littlemadness221990
@littlemadness221990 5 лет назад
At least, someone is still advertising JLCPCB :))
@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.
@lklkvcvc
@lklkvcvc 4 года назад
The best tutorial video I watched on a project
@Farizno
@Farizno 6 лет назад
Fantastic video.Exactly what I was looking for, and then some. Thanks for your continued great videos and fantastic explainations.
@stever3886
@stever3886 3 года назад
Most excellent video. I will be using this for my next project menus
@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....
@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
@abbaschandorwal724
@abbaschandorwal724 2 года назад
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
@paulbrandt2454
@paulbrandt2454 6 лет назад
Wonderfull tutorial! Great explanations and examples. A lot of good information.
@omhobby9481
@omhobby9481 4 года назад
5:40 hey is it possible only use internal pull up instead of pull up resistor?
@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.
@gsuresh2u
@gsuresh2u 2 года назад
Is this code work for Stm32 blue pill? What pins I need to use for rotary encoder?
@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)" ?
@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.
@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
@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 ?
@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
@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.
@dilipsuthar1836
@dilipsuthar1836 2 года назад
Good vdo, great piece of information shared on fundamentals. Keep sharing....
@dfn808
@dfn808 2 года назад
I know I'm a bit late, but this is an excellent tutorial. Thanks for sharing.
@markd.maranan3742
@markd.maranan3742 4 года назад
Does it work with the regular lcd 16x2 (not the i2c one)?????
@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?
@nedstar7378
@nedstar7378 Год назад
Excellent video and great information, thanks for sharing.
@Zhaymoor
@Zhaymoor 6 лет назад
I wish you explaind how to use the interrupts in your code
@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
@apollorobb
@apollorobb 4 года назад
On some libraries for I2C displays you have to initiate the LCD with lcd.begin and not init.
@Mysteryos
@Mysteryos 6 лет назад
Very very good explications and video. Moreover I am french and I understand you. Thanks
@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?
@RandyLott
@RandyLott 6 лет назад
The 1k resistors likely reduce ringing, so that may be why it's quieter with them.
@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...).
@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.
@guyfradasyl88650
@guyfradasyl88650 6 лет назад
wonderfull video have you a link (enable) to buy the same breadbord, because mine is not working good. thank
@ccango
@ccango 5 лет назад
Nicely done. Great explanation!!
@mohammedrhiat4375
@mohammedrhiat4375 2 года назад
Great Video , GOOD JOB !!
@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 RU-vid CHANNEL FOR MORE VIDEOS ru-vid.com
@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
@gsuresh2u
@gsuresh2u 2 года назад
Hi, good work, but how to use this code for Stm32 blue pill? How to define rotary pins?
@mertcapkin7263
@mertcapkin7263 6 лет назад
Good content and great video editing! Subscribed :)
@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 RU-vid CHANNEL FOR MORE VIDEOS ru-vid.com
@datdawg9291
@datdawg9291 6 лет назад
You are awesome at explaining and teaching
@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.
@ruslan.zhumabai
@ruslan.zhumabai 5 лет назад
Do you have project menu with button on arduino. If you have show please.
@jimbobillybob1959
@jimbobillybob1959 6 лет назад
Thanks so much! Another great video!!
@Shalfatk01
@Shalfatk01 2 года назад
i love that "banana for a scale" :D
@electrotsmishar
@electrotsmishar 3 года назад
Thank you. Awesome video
@kamalambrator4332
@kamalambrator4332 6 лет назад
Nice nice nice nice tutorial! Great explanations and examples. A lot of good information, thank you!!!!!!!!!!!!!!!
@joebatista4306
@joebatista4306 11 месяцев назад
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
@paraneethanomwong648
@paraneethanomwong648 3 года назад
Why I can’t use init but begin?
@soniakanjani2587
@soniakanjani2587 4 года назад
Can u make this same project with LCD shield
@vivekvenkatsubramaniam437
@vivekvenkatsubramaniam437 6 лет назад
How much memory did the program consume?
@mahmoudtarek8328
@mahmoudtarek8328 6 лет назад
You are my favourite electronics channel
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
Thank you so much!
@guilhermerochasoares236
@guilhermerochasoares236 5 лет назад
Can I use the WTV020?
@akshayd211
@akshayd211 5 лет назад
Your code does not work with my setup which is exactly the same.
@DeclanGreen
@DeclanGreen 4 года назад
I love this project. Is there a PCB design to go with it?
@DRI1966
@DRI1966 3 года назад
Thank you for this video. Well explained 👍
@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...
@eii9639
@eii9639 7 месяцев назад
This is awesome!! What kind of breadboard is that?
@chalos9752
@chalos9752 6 лет назад
Great video!!!
@vishal01mehra
@vishal01mehra 6 лет назад
Thank you very much for Great project.
@hsfi7408
@hsfi7408 3 года назад
Great Video! Thanks!!!
@markknezovich5620
@markknezovich5620 5 лет назад
otlichna! Spasba bolshoi!
@olegyanishen2577
@olegyanishen2577 4 года назад
Love your work! I need help with come project... can you help?
@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
@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
@j.lucena5486
@j.lucena5486 3 года назад
Very good. Excellent
@swaransinghsandhu
@swaransinghsandhu 6 лет назад
Also your work shop is very nice looking
@muratdndr
@muratdndr 2 года назад
Thank you very much bro...
@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!
@sidharthap
@sidharthap 6 лет назад
What software do you use to design your PCBs, Eagle, KiCAD?
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
In this video EASYEDA. Also use DesignSpark or Eagle.
@garethdavies8673
@garethdavies8673 4 года назад
great video many thanks
@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))******************
@majinkeyboards
@majinkeyboards 3 года назад
Awesome!
@jordanmusleh6305
@jordanmusleh6305 4 года назад
Best video ever..!!👏👏👏👏👏🤟🙏🤜🤛
@katrinapaulabalbuena2906
@katrinapaulabalbuena2906 6 лет назад
Thank you so much for this video.
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
U wellcome :)
@alirezaasad8822
@alirezaasad8822 3 года назад
good work
@amirakhtar390
@amirakhtar390 4 года назад
this is very help full video
@dvddavizcky3254
@dvddavizcky3254 6 лет назад
Can you use GitHub for code? Pls
@soumyaranjan6835
@soumyaranjan6835 6 лет назад
I have requeste sir to make multiple alarm clock by speech.
@swaransinghsandhu
@swaransinghsandhu 6 лет назад
Nice project
@MikeSmith
@MikeSmith 5 лет назад
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!
@ImaginaPower
@ImaginaPower 6 лет назад
You have to make your screen bigger on the arduino IDE its impossible to follow on a phon screen.
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
ImaginaPower yes, it's difficult for smartphones. On desktop PC is perfect so I had to make a choice. Any way I always live the code below so you could read it. Thank you and keep up. Have a nice day.
@MrTigger015
@MrTigger015 6 лет назад
if someone has problem with switch inside encoder just solder 1k/10k resistor on bottom layer of pcb
@kimberlycarreon1804
@kimberlycarreon1804 3 года назад
You nare so awesome
@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.
Далее
Sensors - which one to use
17:06
Просмотров 1,3 млн
Уроки Arduino. Работа с энкодером
10:55
Strong cat !! 😱😱
00:19
Просмотров 2,1 млн
Beautiful gymnastics 😍☺️
00:15
Просмотров 14 млн
I Melted Wood With Friction
8:44
Просмотров 856 тыс.
How to use rotary encoders
14:12
Просмотров 30 тыс.
HACKED!: Using an HDD Motor as a Rotary Encoder?!
8:21
How to use Rotary Encoder with Arduino
14:44
Просмотров 41 тыс.
Arduino with I2C LCD and Rotary Encoder
16:21
Просмотров 28 тыс.
Rotary Encoder (KY-040) Debounce Circuit Tutorial
15:03
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41