Internal Comparator | Full Tutorial On How To Use It - Arduino101
Вставка
- Опубліковано 15 лип 2024
- $2/5pcs 2Layer & $2/5pcs 4Layer PCBs: jlcpcb.com
🔥I'm starting a new Arduino series. These videos will have some more difficult Arduino programming. In this video I show you how to set the internal comaprator the Arduino has and how to use it.
🔀LINKS
-------------------------------------
Tutorial Website: electronoobs.com/eng_arduino_...
Tutorial: electronoobs.io/tutorial/190#
ATmega328p datasheet: bit.ly/3csU1i6
Get Arduino UNO: www.banggood.com/custlink/mvv...
Like share and subscribe to motivate me. Thank you
#Arduino
#tutorial
#programming - Наука та технологія
Once again I am deeply impressed with your use if graphics and animations to illustrate complicated topics.
I'm glad you say that. Thank you :)
@@ELECTRONOOBS What tools do you use to accomplish such advance graphics and animations?
@@fernandohood5542 I'm also asking this question
@@fernandohood5542 he has reply many time to this question, you better watch his Q&A
@@fernandohood5542 im sure he will tell if you asked him on the electronoobs form
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.
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
I'm gonna need to watch this a few times !
Me too.... but will remember the gist forever
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!!!!
Thank you very much. Yes, animations take me a lot of time but I'm glad you guys like it.
Wow... I'm impressed by the way you teach, animate, explain.. marvelous ❤️❤️❤️❤️
thank you! i am really intrested in microcontrolles in general and your explanations are great!
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 so much :)))))
I hav always been waiting for this
I'm glad. Thanks!
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!
Ha! Looks like you took viewer feedback to heart. Love this kind of video. The graphics overlays on the video are just so good!
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 :)
HOW DID I MISS THIS!!!!! Great Video!!!! :D
Yes, such type of learning videos are welcomed.
Se pare ca concursul sa încheiat. Super tare electronoobs a fost distractiv
Wow!!! This was a useful tutorial.
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
Glad I could help :)))
This could be a great series!
Great to see some advanced content
As always , Thank you))))).
I know this video is gonna be interesting ,amaaazzzinggg
now I will watch it hahaha! exited ....
amazing presentation
!!
Your videos are amazing and informative .Thank you sir
good work with graphic we love to see more
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...
Nice. I didn't know about this.
Arduino Course (Spanish): bit.ly/3ldW6kO
Follow me on FACEBOOK for more: facebook.com/Electronoobs
Help me on Patreon: www.patreon.com/ELECTRONOOBS
excelente trabajo, saludos desde venezuela!
Great tutorial 👍🏻👍🏻
Amazing and easy explanation
Wow this video is very helpful 👍
Great information .... I'm waiting for more videos
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
The idea is to make a series on Arduino but at C level, registers, ports, vectors etc... :)
Awesome tutorial 👍👍
Yes, more videos of arduino internals.
Ones again thank you so much sir
Super helpful thanks
Good stuff you got here, well done
çok güzel bir video olmuş teşekkür ederim
Helpful video
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😊
Bestest video
Awesome tutorial bro 👌👌👍👍
Thank you very much
Nice want more video in digital electronics
Thank you sir you cover all my doubts about ESC programming
Actually, I have written a whole book on your ESC programming
wow :O Nice!
Love from India Mumbai
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!!!
That's such a great thing to hear! :)))
Finally Arduino!!!
Excellent.
Super nice bro 👌👌👌
Excellent
Bravo 👏👍
You are awesome
perfect
Nice one
Very good video. Thanks. For this kind of work, have you ever tried to use a PSoC 5LP board as the CY8CKIT-059?
Can you continue this series to tell us more about atmega328p and its features
cool~
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
I'm glad for that. Good luck!
Your videos deserve much more views than it is receiving currently, I guess youtube algorithm is getting worse...
thanks (y)
Wow
@Electronoobs pretty nice tut! is it possible to combine that with the internal referance via analogReference(INTERNAL) to increase sensivity? thx
What's the difference between if else statement, and internal comparator ? Thanks for your great video.
👌👌👌👌👌
Can you make a similar video about setting up timers, timer interrupts, etc
Very good video! But i dont realy like to use normal Opamps as comparators.
Hi, Please upload video related to "coreless miniature motor & drivers.."
Excellent.
One question, however: why don't you compare with the battery negative (GND) instead of creating a virtual zero?
Nice 👌 Video, add Join option in ur channel
Bro, can you please make a video on how to read a reciever using interrupt vector.
Please do reply with your opinion.
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.
👍
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.
Some possible speed ups:
Use macros instead of the void functions. No calling overhead.
(Compiler might not do this automatically, not sure).
Instead of if-checks in the interrupt handler, set the interrupt vector to a different function from within the interrupt to handle the next step in the sequence of the brushless motor (setting a new interrupt function might go faster than those if-checks).
It would be interesting to hear if this made the brushless motor run smoother/quieter or allowed faster speeds. Maybe you already have reached the speed limit due to The power switching MOSFets.
Great video!I never explored the use of the comparator. I'm going to make a cnc EDM machine to cut small gears, and this comparator could sense the spark length...stay tuned!
Thank you so much for all these tips :)
Dont use macros for functions, makes it hard to debug and has loads of other disadvantages, use inline instead(dunno if arduino supports it but >=c99 and c++ supports it)
@@josefaschwanden1502 How are you able to debug on Arduino? Just curious.
@@TheRainHarvester dunno i dont use arduno
@@josefaschwanden1502 @TheRainHarvester I would suggest that in this particular situation there's no great advantage (or disadvantage) to using macros or functions. That's because this is a void situation - so no type checking either way. However using when using functions in situations like this it is appropriate to make them inline. Google 'inline functions arduino' for more info. The bottom line would appear to be use the attribute always_inline to get the compiler to bend to your will.
With functions that take or return arguments the balance tips towards using functions rather than macros although, as usual, it is not a simple decision if there are scope, speed, or size considerations.
En español tambien por favor
ELECTRONOOBS
!
1:55 start of tutorial
Instructions unclear, cyborg Banana now threatens Tokyo...
Make an wall maze solver robot (micromouse) please
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.
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 ?
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!
Which software do you use to edit your videos???
Very impressive, I like the use of amination 💓
Does names like ADEN , ACSR.... Are known by the IDE?
Yes, just take a look at the example code in the description. You could use
great video...can I know what software are you using to create the animation?
After Effects
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
Dear could you please how to write own arduino project what does kmow in order to write a project?
Another great video! Do you edit your videos yourself?
Thank you. And yes, I do!
@@ELECTRONOOBS That's awesome! I like how the text labels in the video track the objects. I'm learning how to edit videos myself. Can you tell me which video editing software you use?
@@Excalibur32 Adobe After Effects
Please make video watchdog timer
why you dont put a dropping resistor with the LED? maybe you have lots of many if you blow the chip
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......
Sorry you didn't understood the video. Check the text tutorial on Electronoobs as well, maybe that will help more :)
@@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.
Please what is the name of the software(logiciel) you used for simulation .
hey buddy you should have split this topic in twice and make the passages more clear ... anyway very good
bro can we make 4 in 1 out time division multiplexer using aurduino plz help me 🙏
For explaining video
Replay please
احتاج الي كود لتشغيل متور دسي ثلاجه بمقابل مادي. ارجو الرد
Great work Electronoobs ,,
मेरे प्यारो मित्रो ,,
मैं भी इसी तरह का UA-camr हूँ l
Mega Science मेरा channel है l
कभी हमे भी मौका दीजिये सेवा करने का 👍👍🦾🦿🚀👩🏭👩🔧🛸🔎
plz make mini high amp motor driver or brushed esc
pleaseeeeee
plzzz
Can I hire you to review some code as i am trying to learn comparator coding?
I think you inverted ADEN and ACME from 7:03 until you show the code.