Тёмный

Internal Comparator | Full Tutorial On How To Use It - Arduino101 

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

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

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 183   
@Nono-hk3is
@Nono-hk3is 4 года назад
Once again I am deeply impressed with your use if graphics and animations to illustrate complicated topics.
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
I'm glad you say that. Thank you :)
@fernandohood5542
@fernandohood5542 4 года назад
@@ELECTRONOOBS What tools do you use to accomplish such advance graphics and animations?
@dr.n0n082
@dr.n0n082 4 года назад
@@fernandohood5542 I'm also asking this question
@alfadex50
@alfadex50 4 года назад
@@fernandohood5542 he has reply many time to this question, you better watch his Q&A
@lexander9686
@lexander9686 4 года назад
@@fernandohood5542 im sure he will tell if you asked him on the electronoobs form
@aleksandarjakimov6830
@aleksandarjakimov6830 4 года назад
Absolutely fantastic!!! Animation and theory are, hmmm, what to say, I can't find a word. This is what the channel need. More Arduino advanced stuff easily explained.
@andymouse
@andymouse 4 года назад
I'm gonna need to watch this a few times !
@rikvermeer1325
@rikvermeer1325 3 года назад
Me too.... but will remember the gist forever
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Arduino Course (Spanish): bit.ly/3ldW6kO Follow me on FACEBOOK for more: facebook.com/Electronoobs Help me on Patreon: www.patreon.com/ELECTRONOOBS
@myhobbies5965
@myhobbies5965 4 года назад
Yes, such type of learning videos are welcomed.
@uwezimmermann5427
@uwezimmermann5427 4 года назад
nice introduction and a nice first step away from the limits of the Arduino language. Around 09:00 I was a bit skeptical at first, it is a bit brutal to only set the MUX-bits in the ADMUX register, but since you are not using the ADC itself it is of course ok...
@lavinarodriguess5349
@lavinarodriguess5349 3 года назад
Wow... I'm impressed by the way you teach, animate, explain.. marvelous ❤️❤️❤️❤️
@revealingfacts4all
@revealingfacts4all 4 года назад
Boy, i must say, the animations are at a whole new level. I can tell you spent a lot of time on the video editing (at least it looks like you did) and this is just awesome!!!!
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Thank you very much. Yes, animations take me a lot of time but I'm glad you guys like it.
@MegaScience
@MegaScience 4 года назад
Great work Electronoobs ,, मेरे प्यारो मित्रो ,, मैं भी इसी तरह का RU-vidr हूँ l Mega Science मेरा channel है l कभी हमे भी मौका दीजिये सेवा करने का 👍👍🦾🦿🚀👩‍🏭👩‍🔧🛸🔎
@fredstratford5104
@fredstratford5104 4 года назад
Good job on tackling one the hobby's biggest obstacles - unreasonable fear of the data sheets. Data sheets for the Atmel AVR micro-controller family typically run to hundreds of pages and at first glance look fearsome. It has the look of a snapping book with sharp teeth - a monster. However tackling data sheets is key to gaining more than a superficial understanding. Showing that they can not only be tackled, but exploited, is a good way to reduce data sheet phobia and help others into them. Data sheets can be transformed from scary monsters to docile helpful pets just by taking the time to read them. Your example is complicated but shows that by understanding how the micro-controller works you can exploit the capability and reduce the complexity. Keep up the good work and put more datasheets to the front in full view!
@palliyil
@palliyil 4 года назад
These kinds of videos are what I had originally subscribed to your channel for. Glad to see some real clever less evident uses of the Arduino, instead of more 3d printing stuff! Please keep making videos of this type. There are too many beginner level Arduino videos everywhere. But rarely any intermediate level ones. This caters to my needs perfectly. And I'm sure there are tons of others like me who would appreciate it too
@tilaksai420
@tilaksai420 4 года назад
Your videos deserve much more views than it is receiving currently, I guess youtube algorithm is getting worse...
@matteorossi5128
@matteorossi5128 3 года назад
hey buddy you should have split this topic in twice and make the passages more clear ... anyway very good
@mrfrozen97-despicable
@mrfrozen97-despicable 4 года назад
As always , Thank you))))).
@swan4959
@swan4959 4 года назад
I hav always been waiting for this
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
I'm glad. Thanks!
@himanshujangra2599
@himanshujangra2599 4 года назад
Can you continue this series to tell us more about atmega328p and its features
@hadrienberthet2575
@hadrienberthet2575 3 года назад
I think you inverted ADEN and ACME from 7:03 until you show the code.
@lmif3187
@lmif3187 4 года назад
What's the difference between if else statement, and internal comparator ? Thanks for your great video.
@50Hz
@50Hz 4 года назад
Good stuff you got here, well done
@himanshujangra2599
@himanshujangra2599 3 года назад
Can you make a similar video about setting up timers, timer interrupts, etc
@dr.n0n082
@dr.n0n082 4 года назад
What's the software you're using
@MrGenia1991
@MrGenia1991 4 года назад
arduino ide
@dr.n0n082
@dr.n0n082 4 года назад
@@MrGenia1991 I know arduino ide i new that animating software to explain
@rgmtb
@rgmtb 4 года назад
Wow this is WAY over my head but I wanted to give you a thumbs up for all the time you put into this video. There was a lot of work put into this and I appreciate what you do for the community!
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Thank you so much :)))))
@electronic7979
@electronic7979 4 года назад
Helpful video
@sarathkc6563
@sarathkc6563 3 года назад
Hi,is it safe to apply sine wave (1v rms) having -ve peak to arduino comparator input pin.planning to make a zero crossing detector.
@revealingfacts4all
@revealingfacts4all 4 года назад
Ha! Looks like you took viewer feedback to heart. Love this kind of video. The graphics overlays on the video are just so good!
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Thank you. I always take note of the feedback but I'm not always able to make a video right away, because sometimes I'm already in progress with a few projects, so I can't just leave those away and start a new one till I don't finish those. Have a nice day :)
@hocvan9802
@hocvan9802 Год назад
void setup() { pinMode(4, OUTPUT); ACSR |= B00010000; // Clear flag comparator interrupt (ACI bit to 1) ACSR &= B11011111; // Set ACBG, to be equal to "0" ADCSRA = (0 && ADEN); // Disable the ADC module because ADCSRB = (1 && ACME); // Enable the MUX selector for negative input of comparator ADMUX = 0; // Select A0 as comparator negative input ACSR |= B00000011; // Set interrupt on rising edge } void loop() { digitalWrite(4,LOW); delay(100); } // Interrumption vector for the Analog comparator ISR (ANALOG_COMP_vect) { digitalWrite(4,HIGH); delay(100); } I copied the code according to the instructions and added a led to detect interrupts. Why is it not working? Can you help me?
@incxxxx
@incxxxx 11 месяцев назад
Instead - if(ACSR & B00100010) //If we are into falling edge you should have - if(( ACSR & B00000011) == B00000010 )//If we are into falling edge And similarly: instead - if(ACSR & B00100011) //if we are into rising edge shoul be - if( ( ACSR & B00000011) == B00000011 ) //if we are into rising edge Otherwise it will not work correctly.
@ankitnegi2524
@ankitnegi2524 4 года назад
I know this video is gonna be interesting ,amaaazzzinggg now I will watch it hahaha! exited ....
@walidkhier
@walidkhier 8 месяцев назад
Excellent. One question, however: why don't you compare with the battery negative (GND) instead of creating a virtual zero?
@weijunzhang6855
@weijunzhang6855 Год назад
On time 7:04, should the ADEN=0 in order to set the negative input with the ADC Multiplexer output. In the video, it shows ADEN=1. Thnaks!
@wodowiesel
@wodowiesel 9 месяцев назад
@Electronoobs pretty nice tut! is it possible to combine that with the internal referance via analogReference(INTERNAL) to increase sensivity? thx
@warriorofpeace218
@warriorofpeace218 3 года назад
Nice video, but you made a mistake, which confused me extremly: 7:43, here you have written the ADEN Bit to one schematically. May consider to change this!
@freelectron2029
@freelectron2029 3 года назад
wtf the title says 101. you obviously dont understand the meaning of 101. it refers to the begging of a subject. the basics. the first unit in a 4 year long uni course. you are talking about comparator and multiplexs. this is not 101.
@lander1591
@lander1591 4 года назад
Instructions unclear, cyborg Banana now threatens Tokyo...
@machinemaker2248
@machinemaker2248 4 года назад
I didn't even know uno had a comparator. Can it compare to a programmed voltage? I would like to use it to get logic out from photosensor, and programmatically change sensitivity for changing ambient light.
@NullPointer
@NullPointer 4 года назад
This is really a great video! Covering these kind of unknown topics in a beginners level is really useful (i hate to see beginners code where all they use is if and else), having a language as potent as C++ and using it that way breaks my heart haha
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
The idea is to make a series on Arduino but at C level, registers, ports, vectors etc... :)
@mihailucian409
@mihailucian409 3 года назад
i think people would be grateful if you programs would work! it's just science fiction movie! first of all in the video you have one program and in the description you have another one! nice try!
@mahershhab3824
@mahershhab3824 Год назад
احتاج الي كود لتشغيل متور دسي ثلاجه بمقابل مادي. ارجو الرد
@surajsurya1928
@surajsurya1928 4 года назад
Wow!!! This was a useful tutorial.
@ticktock8751
@ticktock8751 4 года назад
why you dont put a dropping resistor with the LED? maybe you have lots of many if you blow the chip
@gudimetlakowshik3617
@gudimetlakowshik3617 4 года назад
great video...can I know what software are you using to create the animation?
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
After Effects
@yacineyaker7485
@yacineyaker7485 4 года назад
I suggest u do it with atmel studio it's was more better than arduino ide and u can still upload the code with the same way as arduino ide just with associating atmel studio with avrdude u get when installing arduino ide and just click the button it's upload
@gokulkrish7256
@gokulkrish7256 2 года назад
Bro, can you please make a video on how to read a reciever using interrupt vector. Please do reply with your opinion.
@harys6382
@harys6382 4 года назад
bro can we make 4 in 1 out time division multiplexer using aurduino plz help me 🙏
@kaancelik2053
@kaancelik2053 Год назад
Hi sir,Can you share ESC V3 code and schematic,please?
@viswanath7168
@viswanath7168 4 года назад
Make an wall maze solver robot (micromouse) please
@adrie9236
@adrie9236 4 года назад
5 episodes later... today I will show you how to delete the arduino ide and use the command line interface instead
@Jose-tw9bl
@Jose-tw9bl 4 года назад
thank you! i am really intrested in microcontrolles in general and your explanations are great!
@user-gp4vu7ox3y
@user-gp4vu7ox3y 3 года назад
Please what is the name of the software(logiciel) you used for simulation .
@dilshankasthuriarachchi4737
@dilshankasthuriarachchi4737 4 года назад
Dear could you please how to write own arduino project what does kmow in order to write a project?
@onurolce
@onurolce 4 года назад
A bit complicated. I've another question. I have a circuit right now which includes an Opamp IC and PIC microcontroller. Opamp IC amplifies mV signals to around +2V and gives Voltage to PIC ADC input. My question is can I use PIC's analog comparator as an Opamp and do same job without Opamp IC ?
@asadrao5147
@asadrao5147 2 года назад
Can you please give link for the code for better understanding ?
@mohamedanbaj7997
@mohamedanbaj7997 4 года назад
I'm speek Arabic 😢😌😌😌, no speak English
@thearchetype9829
@thearchetype9829 4 года назад
Which software do you use to edit your videos???
@Dhruv.Wadhwa
@Dhruv.Wadhwa 4 года назад
U know you are very gud at explaining and sooo muchh better than great scott (No offence). Thank you sooo muchh i learnt alot from you😊
@fatihyildirim8498
@fatihyildirim8498 4 года назад
çok güzel bir video olmuş teşekkür ederim
@MELVIN_RIJOHN_T
@MELVIN_RIJOHN_T 4 года назад
Since I don't have any oscilloscope I need something to measure frequecy
@zazugee
@zazugee 4 года назад
build one with the arduino xD
@SumitSharma-do8ye
@SumitSharma-do8ye 4 года назад
Sir i try your transmitter and reciver . But sketch not compile . It show multiple libraries were found Exit status1
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
You have to install those libraries. In that tutorial I also share the libraries!
@harikamalakarreddydarapu7410
@harikamalakarreddydarapu7410 4 года назад
You are awesome
@raagamparmar179
@raagamparmar179 4 года назад
HOW DID I MISS THIS!!!!! Great Video!!!! :D
@theawt
@theawt 4 года назад
me before: full tutorial in 10 minutes? This is rubbish. me after: wow I have to learn to explain things from this guy: this IS a full tutoral
@MarcoPolo-zv1ft
@MarcoPolo-zv1ft 4 года назад
amazing presentation !!
@hachiko_6139
@hachiko_6139 3 года назад
Comparator 🤔🤔 💡💡 Minecraft
@stefano.a
@stefano.a 3 года назад
Very good video. Thanks. For this kind of work, have you ever tried to use a PSoC 5LP board as the CY8CKIT-059?
@AnzeDodic
@AnzeDodic 4 года назад
Can we use internal comperator (interrupt) and analog read (interrupt) at the same time?
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Yes and no. Not exactly at the same time. This here is from the datasheet: With bit ADEN: Writing this bit to one enables the ADC. By writing it to zero, the ADC is turned off. Turning the ADC off while a conversion is in progress, will terminate this conversion. So, you could for example, after each comparator conversion, enable the ADC, take a measurement and then disble back the ADC in order to make another conversion of the comaprator. Of course, this might give timming problems...
@PerchEagle
@PerchEagle 3 года назад
@@ELECTRONOOBS you mean I can't use the ACD and the comparator at the same time? Do I must use each one alone?
@andreiciora2765
@andreiciora2765 4 года назад
Se pare ca concursul sa încheiat. Super tare electronoobs a fost distractiv
@puriap250
@puriap250 4 года назад
Nice. I didn't know about this.
@MyMcMichael
@MyMcMichael 4 года назад
Very good video! But i dont realy like to use normal Opamps as comparators.
@YTadwait
@YTadwait 4 года назад
Can you make a static switch using zero crossing to automatically bypass load from one inverter (UPS) to another (ups) incase of failure of the first one.
@harshalshambharkar4432
@harshalshambharkar4432 4 года назад
good work with graphic we love to see more
@ShammoThePro
@ShammoThePro 4 года назад
Super nice bro 👌👌👌
@d3vastat0r89
@d3vastat0r89 4 года назад
Holy crap, dude. I don't understand anything here (not your fault), but I did notice something. You make all these animations? D:
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Yes
@carlmen6567
@carlmen6567 3 года назад
Okay but what's max input rating of comparator?
@ELECTRONOOBS
@ELECTRONOOBS 3 года назад
Same as the Arduino, max 5.5V but max 5V is recomended.
@piiumlkj6497
@piiumlkj6497 4 года назад
Why are you whispering ? Did you record late at night ?
@NBL00D
@NBL00D 4 года назад
Nice vídeo, i have try explore the comparator of Arduino to make SMC for dc-dc converter but i give up. Your vídeo inspire me to try again. Thanks you
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
I'm glad for that. Good luck!
@sachink1789
@sachink1789 4 года назад
Hi, Please upload video related to "coreless miniature motor & drivers.."
@ELCspeed
@ELCspeed 4 года назад
Please make video watchdog timer
@Josuedosawe
@Josuedosawe 4 года назад
En español tambien por favor ELECTRONOOBS !
@jmatosjr
@jmatosjr 4 года назад
Amazing and easy explanation
@shivamovatt3984
@shivamovatt3984 4 года назад
Love from India Mumbai
@parvprobots797
@parvprobots797 4 года назад
plz make mini high amp motor driver or brushed esc
@parvprobots797
@parvprobots797 4 года назад
pleaseeeeee plzzz
@rafaelqsb
@rafaelqsb 3 года назад
I'm a researcher and your explanation about the use of internal comparators are so deep inside the work that i do in my thesis. Thank you for your help , so.... Whats up my frend, wellcome back!!!
@ELECTRONOOBS
@ELECTRONOOBS 3 года назад
That's such a great thing to hear! :)))
@Johennessy
@Johennessy 4 года назад
Bro! Honestly I love u! I built a two phase motor with permanent magnets and I was just about to get into the topic of controlling it via the back emf signal and u just posted that video. Awesome u saved me a lot of time. Keep up the great work! Kind regards Johannes
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Glad I could help :)))
@varn4591
@varn4591 4 года назад
cool~
@ShubhamSharma-oq4ru
@ShubhamSharma-oq4ru 4 года назад
Great information .... I'm waiting for more videos
@youssefahourri3245
@youssefahourri3245 4 года назад
Very impressive, I like the use of amination 💓 Does names like ADEN , ACSR.... Are known by the IDE?
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Yes, just take a look at the example code in the description. You could use
@SuperLeoSG
@SuperLeoSG 4 года назад
Interrupts, not interruptions
@komalgnaik
@komalgnaik 4 года назад
Great tutorial 👍🏻👍🏻
@kabhath
@kabhath 4 года назад
Super helpful thanks
@ssaccount9101
@ssaccount9101 3 года назад
Thank you very much
@Comment-fy5jf
@Comment-fy5jf 4 года назад
Your videos are amazing and informative .Thank you sir
@anonymoususer900
@anonymoususer900 4 года назад
I have done arduino and coding to a pretty decent level. I have made many awesome projects at home as well. I didnt know very much about this concept so i tried learning it but i couldnt understand anything from this video. So i m not sure how others did. So if u are accepting advices, mine would be that you either stick with making projects that are nice and useful or make more deatiled tutorials with explained coding. One i would really appreciate is 'MULTIPLEXING'. Again just an advice......
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Sorry you didn't understood the video. Check the text tutorial on Electronoobs as well, maybe that will help more :)
@anonymoususer900
@anonymoususer900 4 года назад
@@ELECTRONOOBS No problem bro. Sure i will wait for your next video. Also bro dont get me wrong as i wasnt trying to spread hate. what i was trying to do was suggesting and informing you.
@jaishankarm5920
@jaishankarm5920 4 года назад
Nice 👌 Video, add Join option in ur channel
@surajmate8047
@surajmate8047 4 года назад
Thank you sir you cover all my doubts about ESC programming Actually, I have written a whole book on your ESC programming
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
wow :O Nice!
@jenniferw8963
@jenniferw8963 2 года назад
1:55 start of tutorial
@kluisx6417
@kluisx6417 4 года назад
Wow this video is very helpful 👍
@arunbaalaji5589
@arunbaalaji5589 4 года назад
Nice want more video in digital electronics
@ahmadmaaz2566
@ahmadmaaz2566 3 года назад
Bestest video
@kashif8704
@kashif8704 4 года назад
Can the output of comparetor be connected to hardware pin........???
@ELECTRONOOBS
@ELECTRONOOBS 4 года назад
Not by hardware I think. But you could email a digital port to the value of the ACO bit so each time the output of the comparator changes the digital pin will also change....
@rohitchaturvedi2271
@rohitchaturvedi2271 4 года назад
Yes, more videos of arduino internals.
Далее
Pin Change Interruptions ISR | PCINT | Arduino101
14:19
МАЛОЙ ГАИШНИК
00:35
Просмотров 402 тыс.
EEPROM Memory - Store Anything - Arduino101
13:16
Просмотров 106 тыс.
FOC Driver Controller PCB - Slow Brushless Control
14:19
Analog Constant Load/Current Controller Circuit
13:18
How different are C and C++? Can I still say C/C++?
10:25