Two buttons || rotary encoder = infinite functions (menu+oled display)-Arduino, FastLed and WS2812B

  Рет қаралды 7,914

Ionut Fedaceag (TS-BB)

Ionut Fedaceag (TS-BB)

Күн бұрын

Пікірлер: 38
@amarissimus29
@amarissimus29 4 жыл бұрын
I'm got a problem in the sketch "3-tandt4-rotary-encoder-infinite-functions.ino". My encoder input is only counting backwards (both clockwise and anti-clockwise decrement and will not increment). The code looks ok to me (++ right, -- left). Any insight as to why this might be the case? Thanks for the upload. This is my first foray into single pin data strips, so I'm overly used to addressing colors individually and it's nice to have some clean, well commented code to play around with.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
First of all check your connections, but if it's counting in one direction but not in the other direction, i think that the rotary encoder has some connections problems internally. Try using another one and see if the problem persist. Your welcome for the code and sorry for the delayed response! ;)
@pitilay9248
@pitilay9248 4 жыл бұрын
Very nice ❤️❤️❤️👍👍👍.. I'm like it more.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
Thanks! ;) :)
@craigrobinson6812
@craigrobinson6812 3 жыл бұрын
Is it possible you take requests for codes or take on commission?
@aadilamin7609
@aadilamin7609 4 жыл бұрын
Hello sir , can you make the RPM led gauge? If yes then please make a video on that.
@mitabhowmik5287
@mitabhowmik5287 4 жыл бұрын
Sir is there any way to control the effects (patterns) of WS2812B LEDS with radio frequency (using NRF24 module). With each button alloted for each pattern. If it is possible using only 1 Arduino nano....please help me out. Please! Your explanations are crystal clear. Please sir.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
The RF modules like NRF24, are just to make a wireless bridge to send data, so yes you can use them for that, but depending on your needs and RF module you will need two controllers. There will be in the future a video about rotary encoders over RF, but you can also see the code from this clip kzbin.info/www/bejne/paSUhHSMpNV9f9E .
@mitabhowmik5287
@mitabhowmik5287 4 жыл бұрын
@@IonutFedaceag Thank you so much sir.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
@@mitabhowmik5287 With pleasure! ;)
@BRUXXUS
@BRUXXUS 4 жыл бұрын
@@IonutFedaceag This is exactly the same kind of thing I'm hoping to do with a project of mine. (the controlling ws2812b from one arduino to another using the NRF24 module) I hope you're doing well, and looking forward to new videos. :D
@jommeldockx1793
@jommeldockx1793 3 жыл бұрын
It's possible by using irq pin as interupt.
@scottiusnevious5143
@scottiusnevious5143 4 жыл бұрын
I just got some leds to try out the fast led library. Wish me luck.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
Well, in that case, good luck and happy learning... and coding! :) ;)
@nanoproject510
@nanoproject510 4 жыл бұрын
@@IonutFedaceag I can increase the number of LEDs, but many cases are empty kzbin.info/www/bejne/e3LUYWuljrWYr5I I'm not familiar with your CHSV Code, but familiar with the RGB code 😁
@thematrixeyes7776
@thematrixeyes7776 4 жыл бұрын
@@nanoproject510 nice.... 👍
@MHTSAPAS
@MHTSAPAS 3 жыл бұрын
I get Function Reset! flashing on the screen every second with nothing further working. i checked all connections and they seem to be fine. Any ideas?
@drumminjeff71
@drumminjeff71 3 жыл бұрын
I have the same issues. I think it might have something to do with the input pin choices I'm making. I'm also using NodeMCU. At 1 timeI have the oled working And the board wasn't constantly resetting but the rotary still wouldn't work. The push button on the rotary was working though after I added the pull up resistant.. Now I can't even get it to do that and it is resetting every couple seconds.
@MHTSAPAS
@MHTSAPAS 3 жыл бұрын
@@drumminjeff71 I’ll give it another go this weekend but as of now, mine went from resetting every second or so to switching between modes like crazy. It’s odd because I can load a different file with the exact same setup and it all works well. I’ll keep you posted.
@drumminjeff71
@drumminjeff71 3 жыл бұрын
I actually got mine working now. The issue was with the is with the interrupt routine. Since I'm using a node MCU it is a little different and I've never done that before. The ISR function must have the ICACHE_RAM_ATTR statement before it in the code and I didn't know that.
@drumminjeff71
@drumminjeff71 3 жыл бұрын
Are you using the capacitors? I don't have those installed and the rotary is a bit glitchy. Maybe that's what's causing yours to jump around??
@MHTSAPAS
@MHTSAPAS 3 жыл бұрын
@@drumminjeff71 I am actually but they’re not completely necessary for the test phase. I’m running a 1k for the LED’s and 1’s as per the schematic for the potentiometer as per his build. As per my build without the OLED, I do not need them at all. I’m mainly doing this to add lighting under desks and other places so I decided to just do away with the screen altogether and just stick with the Nano. A 5V, 60 RGB LED strip and the potentiometer. Upon initial power it is off. One click will light just the first led and the potentiometer will move the light source left and right along the 60 LED strip (one LED on at a time only) Second click will light up the whole strip and the potentiometer will cycle through all the different color modes so you can set your color and just leave it at that or change it as necessary. Third click runs 10 LEDs of different colors and they scroll back and forth the LED strip. Fourth click turns the LED’s off. Rinse and repeat. All this does not need a separate power source. Just connect the strip to the 5V pin, GND and the pin of your choice and you’re set. If you don’t care for the OLED, this way works wonders. I just thought it would be a nice addition but gave up due to limited time and knowledge to find out what was wrong.
@boopeshkumarprabhakaran
@boopeshkumarprabhakaran 3 жыл бұрын
Can you share codes please
@mezeidragomir
@mezeidragomir 4 жыл бұрын
Salut. Cum pot să dau de tine? Ți-am trimis mail dar nu cred că mai e de actualitate.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
Salut, Pe mail e ok, dar nu am avut timp sa-ti raspund ca am tot fost pe drumuri saptamana asta. Cum adica nu mai e de actualitate? Ai schimbat planul de bataie? Trimite-mi tot mail si gasim o solutie...
@mezeidragomir
@mezeidragomir 4 жыл бұрын
@@IonutFedaceag Ai un mail de la mine. Credeam că adresa ta de mail nu mai e de actualitate. La asta mă refeream.
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
Aaaa, adresa este, doar timpul e scurt... :)
@mezeidragomir
@mezeidragomir 4 жыл бұрын
@@IonutFedaceag Ok 😊 Aș aprecia mult dacă ai putea să-mi dai un răspuns, fie el cît de scurt, la mail-ul pe care ți l-am trimis.
@thematrixeyes7776
@thematrixeyes7776 4 жыл бұрын
hmmmm
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
What do you mean by "hmmmm" ? :))
@thematrixeyes7776
@thematrixeyes7776 4 жыл бұрын
@@IonutFedaceag its mean KEREN, keren is amazing :))
@IonutFedaceag
@IonutFedaceag 4 жыл бұрын
​@@thematrixeyes7776 Good to know! ;) :)
@marcosdasilva7409
@marcosdasilva7409 7 ай бұрын
SHOW
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 46 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Menu with voice & rotary encoder - Arduino
15:01
Electronoobs
Рет қаралды 103 М.
Best code to use with a KY-040 Rotary Encoder? Let's find out!
9:13
How to control groups of leds in FastLed Library with Arduino and WS2812B NEOPIXEL
14:42
This Component solves "All" Motor Problems?! (Motor Encoder) EB#58
11:34
Rotary Encoders II
7:45
learnelectronics
Рет қаралды 6 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН