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.
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...
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!!!!
Great work Electronoobs ,, मेरे प्यारो मित्रो ,, मैं भी इसी तरह का RU-vidr हूँ l Mega Science मेरा channel है l कभी हमे भी मौका दीजिये सेवा करने का 👍👍🦾🦿🚀👩🏭👩🔧🛸🔎
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!
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
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!
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 :)
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?
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.
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!
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.
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.
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
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!
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
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 ?
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...
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.
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!!!
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
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 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.
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....