Tinman Electronics 7 - How to interface a quadrature output rotary encoder

  Рет қаралды 29,875

Tinman Electronics

Tinman Electronics

9 жыл бұрын

Quadrature output may seem confusing at first, but when you get in there with the scope, and with Tinman's teaching on rotary encoders: you're bound to understand it!
You can find the circuit, arduino code, and other ressources I used for this video on my website: tinmanelectronics.com/articles...

Пікірлер: 28
@Booga76
@Booga76 9 жыл бұрын
Hey...nice and clear explenation. Thanks !
@ainushah3005
@ainushah3005 9 жыл бұрын
thank you so much your video is very helpful
@HelloNotMe9999
@HelloNotMe9999 6 жыл бұрын
Could you provide a link to those great breadboard probe point pillars?
@inventaunmanana4860
@inventaunmanana4860 6 жыл бұрын
suscribed from argentina!!
@rayc5079
@rayc5079 6 жыл бұрын
Where can I find the code?
@jmitsch44827
@jmitsch44827 7 жыл бұрын
EXCELLENTLY EXPLAINED. GREAT VIDEO, WELL DONE. THANK YOU.....N8DLI
@Qbasic8
@Qbasic8 8 жыл бұрын
First things first. Nice video. Explained nicely and clearly. On a side note, could you not make the same sort of thing using 2 photoresistors and 2 leds?
@TinmanElectronics
@TinmanElectronics 8 жыл бұрын
+Qbasic8 Thanks! And yeah, you can make a rotary encoder pretty easily, depending on what you have on hand!!
@Graham1904
@Graham1904 4 жыл бұрын
Use interrupts on 2 and 3 and then you don't use processing power. When interrupt then do A>B or B>A.......
@Arturolaz
@Arturolaz 8 жыл бұрын
Hi! Nice video, thanks for it. I was wondering, do you have a part number of your test terminals? I loved them, thanks again
@XanderBetts
@XanderBetts 7 жыл бұрын
Seconded. Those test terminals are rad. Took me a minute to figure out what they were when first seeing the circuit, but now I can't live without them!
@jeromedumais
@jeromedumais 8 жыл бұрын
The code seems MORE STABLE if I add a "b_last" in the condition : " if ((b == LOW) && (b_last == LOW)) " (Indeed you have to declare b before setup and b_last at the end of the loop.) Also, a 'delay(1)" exactly, at the end of the loop, seems to help accuracy
@JulioZaga
@JulioZaga 9 жыл бұрын
Thanks, I get it...
@MrQwerty2524
@MrQwerty2524 5 жыл бұрын
So, I tried this out for myself and I just don't understand why the resistors are needed.. I tried this with 2 LED's attached from 3,3 volts to pin 1 and 3. Attached pin 2 to GND and everything worked fine... Such a simple circuit as this seems to make the concept clearer from the start for noobs. (like me)
@MrQwerty2524
@MrQwerty2524 5 жыл бұрын
Goddamn thanks a bunch!
@0MrENigma0
@0MrENigma0 9 жыл бұрын
Hi Justin. I both thumbed up and subscribed, So, TU+S=EnJoYeD
@TinmanElectronics
@TinmanElectronics 9 жыл бұрын
0MrENigma0 Omg, thanks so much! You actually made me so glad :)
@notaclue143
@notaclue143 7 жыл бұрын
thought aload of BS - as got one of these - which looked up thedata - the actual code is 8-bit grey code - the four bit greyt is in the text - thereafter it gets to be less than computable . Recently got arduino - not played with , where count is easy - but conversion - can play with for a month of sundays - tedious . If bourns had published the conversion code from grey to hex , octal or binary in the increaseing from through binary - saveing a lot of errors , they have it as increaseing grey code
@rsoni4992
@rsoni4992 8 жыл бұрын
the program only counts in one direction. what could be the reason behind it?
@Xrispy24
@Xrispy24 8 жыл бұрын
+R Soni For me the program counted both ways. Did you wire this up yourself and test my code out?
@rsoni4992
@rsoni4992 8 жыл бұрын
+Justin St-Amant yes I did.... but it's counting in one dirrection only.
@rsoni4992
@rsoni4992 8 жыл бұрын
+Justin St-Amant I mean I did the connection as shown in the video, but counts only in one direction.
@ovi_4
@ovi_4 6 жыл бұрын
You must have forgotten to insert both of your count functions onto your code. U must have used them within your if statements such as: count-- and count++. If you only have one or the other it will obviously count in one direction only
@oliverwijesooriya2067
@oliverwijesooriya2067 6 жыл бұрын
Nice ex plane
@arduinomaquinas
@arduinomaquinas Жыл бұрын
Your information is very good,❤ I work with machines that use several encoders, and I loved your teaching, 🇧🇷😉👍congratulations on the video! 👏👏👏👏👏👏 "@arduinomaquinas" thanks you ! ( subscribed).
Rotary Encoder Tutorial with Arduino Code
26:04
Kevin Darrah
Рет қаралды 392 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 104 МЛН
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 30 М.
Interfacing with Quadrature Encoders
9:00
Texas Instruments
Рет қаралды 16 М.
Tinman Electronics 6 - How to get more current out of your regulator
16:33
Tinman Electronics
Рет қаралды 12 М.
No Verilog FPGA-based Quadrature Decoder
15:48
Demand Peripherals
Рет қаралды 439
Defeating Microwave Weapons! - Part 1
29:28
Tech Ingredients
Рет қаралды 1,1 МЛН
Tinman Electronics 8 - Disposable e-cigarette teardown
6:49
Tinman Electronics
Рет қаралды 30 М.
QuadratureDecoderNewDesign
14:57
Doug Wong
Рет қаралды 295
Best code to use with a KY-040 Rotary Encoder? Let's find out!
9:13
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
ГОСЗАКУПОЧНЫЙ ПК за 10 тысяч рублей
36:28
Ремонтяш
Рет қаралды 501 М.
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 12 МЛН