No Coding Rotary Encoder Pt. 2 Decoding (w/ hardware)

  Рет қаралды 9,852

ARENOT DIY

ARENOT DIY

Күн бұрын

It's been a while since the first episode of the no coding rotary encoder, but here it is!
This episode covers:
Signal conditioning refresher
Signal dissection
Integrated circuit and transistor interface
I'm no expert, this is my way of doing things I wanted to share. Suggestions and questions are welcome, thanks!

Пікірлер: 31
@SpinStar1956
@SpinStar1956 Жыл бұрын
Very impressive what you have done, and enjoyed watching the whole video at ‘Normal’ speed which is a real compliment coming from me! 🤣😂🤣 Subscribed and hope to see more! 😊
@murrrr8288
@murrrr8288 2 жыл бұрын
I am speculating it could be possible to read the signal with just few logic operations or one generic logic chip. When A or B is low(or high) it's clock pulse. Then AND or OR them, if the other one is high, it turns left, if low, it turns right (or other way around depending how you set it). Or even simpler, the other one is clock and other is direction with true/false binary if exact accuracy is not crucial
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
Thats the basic operation of the digi-pot I describe
@odissey2
@odissey2 5 ай бұрын
I noticed that encoders which were debounced using large capacitors (100n), degrade very fast, compared to w/o caps. I suspect that when contacts are closing, there are some micro sparks or electro erosion occurring. So be aware.
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
Sorry for all the "Ums" Haha. Its something I want to avoid in the future. There is a fair bit of info here however, and will let you use a rotary encoder with minimal hardware!
@MellexLabs
@MellexLabs 2 жыл бұрын
You should look into grey code decoding ... most rotary encoders output grey code due to the mechanics of the encoder plates. If you use a couple of logic gates you can decode it into binary pretty easily
@Pixelwaster
@Pixelwaster Жыл бұрын
Why 1Meg and CMOS? Just asking because I have never seen 1Meg collector resistors before. Old school CMOS chips did things TTL couldn't but 4000 logic is like hen's teeth now. You have me curious about the 5 transistor version.
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
The 1M resistors are there to limit the current the BJT inverters are always sinking, as long as the encoder isn't being turned. I didn't like the idea of its quiescent current being higher than it needed to, and 1M resistors still let the cmos D-flip flop operate. I have another video planed where I explain the 5 transistor solution, as well as build a "one knob" video game remenicent of space invaders, with just logic and LEDs. Thanks for watching!
@germanjohn5626
@germanjohn5626 11 ай бұрын
there are too many false positives with a circuit like this, I tried many so called solutions of using encoders without coding and they all sux'd. I finally ended up using rotary pulse switches and never looked back.
@ottermods3212
@ottermods3212 2 жыл бұрын
Thank you so much for the video and in depth explanation! I had attempted to do the hardware decoding of a rotary encoder, but I could never quite crack it. I'm really eager to try using your method.
@arenotdiy7280
@arenotdiy7280 2 жыл бұрын
My pleasure! I hope it works out for you, feel free to reach out with questions :)
@kippie80
@kippie80 6 ай бұрын
So many poorly implemented encoders out there. My scopes for instance, on both of them, if I turn it too fast - not that fast - it does not work. Drives me nuts.
@arenotdiy7280
@arenotdiy7280 6 ай бұрын
I agree! And especially when its fairly simple to build well, and important in operation, you would think the average quality would be better. My car stereo will often turn up the volume when I'm turning it down, I want to try fixing it with my next design and video
@AnalogDude_
@AnalogDude_ 27 күн бұрын
Even Ford car radio had these problems.
@Spark-Hole
@Spark-Hole Жыл бұрын
The circuit at 26.00 is Great! I will copy it sometime. but I wonder if you can replace the OR gate with three NAND gates and a transistor(negate), Less components count!
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
Perhaps! Its always a juggle with ease of design and component coservation. I think simplicity and elegance should be the goal. I plan do go into depth in my next video on the 5 transistor version I mentioned that yeilds the same result, with maybe more accuracy and certainly less current use. I'd love to hear any results your experiments yield!
@edwardfletcher7790
@edwardfletcher7790 2 жыл бұрын
Rotary encoders are awesome, such a handy interface...
@SirDzair
@SirDzair Жыл бұрын
another analog wizard ! lovely video
@jorgealzate4124
@jorgealzate4124 Жыл бұрын
A little suggestion: for the inversion of the logic of the rotary encoder the transistors aren't needed. Just connect C to Vcc and A and B with pull down resistors instead of pull up ones.
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
I like the idea, it fits my penny-pinching attitude! I think I had better luck with my debounce circuit this way, I'll need to give it a test sometime. Thanks for watching!
@Bazzeee
@Bazzeee Жыл бұрын
Nice work! I believe the set pin on the second flip flop needs to be pulled high. Now it either pulled low or floating isn't it?
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
You are totally right! It would be a problem if the encoder was left inbetween indentations long enough that stray voltage could build up on the set pin. It would leave both set and reset high, giving a rising edge on the "clock" output, even though the encoder hadn't been turned. The same goes for the clock pin of the "up/down" flip flop, it should be pulled low with a 1M resistor in theory, because to my knowledge, the 4013 doesn't have an internal pull down resistor. I didn't experience those issues with my experiments however, and with me being the fraction of a penny pincher that I am, and also wanting to simplify the concept as much as possible for its presentation, I chose to omit them. Thanks for watching and pointing that out!
@NikiDorian
@NikiDorian 2 жыл бұрын
Thank you for the video. Really well explained! Do you by any chance know of any one chip solutions to decoding the pulses other than a microcontroller?
@arenotdiy7280
@arenotdiy7280 2 жыл бұрын
If what you mean is a single integrated circuit that give up/down and clock, yes, but they're obsolete, I've tried to get them :( Here's the datasheet for one such chip www.google.com/url?sa=t&source=web&rct=j&url=www.elmelectronics.com/wp-content/uploads/2016/07/ELM404DS.pdf&ved=2ahUKEwje1v2_pbP1AhWrGDQIHb9YC-0QFnoECCkQAQ&usg=AOvVaw1i1sFQVjzUk20ilgFR93MW One of my examples of simple decoding only used one transistor and the associated passive components to get the same output (albeit a little primitive) so I guess it really depends what you want to use it for
@NikiDorian
@NikiDorian 2 жыл бұрын
@@arenotdiy7280 Wow thank you! That would be perfect... if i can find them. I've heard of those devices existing but never saw the datasheet for one. I guess they went obsolete because of 8pin micros. Too bad! Thanks again, and If you enjoy making these edicational videos, keep the m comming... There aren't many good teachers on youtube...
@SouthShoreSonics
@SouthShoreSonics 9 ай бұрын
Nice work!
@ahmetzum3601
@ahmetzum3601 Жыл бұрын
awesome project which I want to replicate! but I am even more of an amateur so can you please share the simplest version of the circuit in its absolute simple form?
@arenotdiy7280
@arenotdiy7280 Жыл бұрын
I'm working on my transcript for that exact video! Only 5 transistors, some diodes and resistors.
@ahmetzum3601
@ahmetzum3601 Жыл бұрын
@@arenotdiy7280 sounds like a miracle to me 😀I am eagerly waiting for its final form. thank you so much for your efforts 🤙
@lordhexon
@lordhexon Жыл бұрын
Cs t listen to sny one who says ahm ahm more then 5 times in 10 seconds , after all those ahm ahm cant take anything you say serious.
@LucianoBarbosaK
@LucianoBarbosaK 2 жыл бұрын
Do you had code for the arduino leonardo
How To Use A Rotary Encoder Without Software
29:41
Gadget Reboot
Рет қаралды 16 М.
No Coding Rotary Encoder Pt. 1 DIY Breakout Board
14:54
ARENOT DIY
Рет қаралды 5 М.
Worst flight ever
00:55
Adam W
Рет қаралды 29 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 13 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Design Your Electronic Circuit Layout With This Unique Method - Tutorial
28:45
Five Five Five Four Oh One Seven
Рет қаралды 22 М.
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 36 М.
How a 555 Works as a Timer.
30:13
PKAE Electronics
Рет қаралды 180 М.
AS5600 magnetic position encoder - best encoder for stepper motors
48:18
Curious Scientist
Рет қаралды 108 М.
flawless PCB design: Bad ground ideas many engineers believe - Part 6
15:11
Debounced rotary encoder module
20:37
Curious Scientist
Рет қаралды 7 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 342 М.
Worst flight ever
00:55
Adam W
Рет қаралды 29 МЛН