ADC blocks and REGISTERS | Internal Reference | Internal Temperature Sensor Arduino101

Поділитися
Вставка

КОМЕНТАРІ • 118

  • @zyghom
    @zyghom 3 роки тому +11

    super nice educational video, I still however did not get WHY we would go for register vs built in functions but ok ;-)
    Great point about ref voltage
    btw 1k/4.7k resistors - it makes sense to measure them first or apply some reference voltmeter when the project is finished - and let me tell you from my experience: breadboard vs. soldered final project is huge difference.
    On Raspberry Pico ADC minimum value never goes below 450 but max goes to 64k - strange

    • @deadly_dave
      @deadly_dave 3 роки тому +10

      "I still however did not get WHY we would go for register vs built in functions but ok ;-)"
      Two reasons I suppose.
      1. It's good to understand what is happening on the chip, this is somewhat hidden from you if you are using the built in functions.
      2. Depending on your use case, direct register code is going to run faster/significantly faster than using the built in functions.

    • @zyghom
      @zyghom 3 роки тому +1

      @@deadly_dave yeap, in general it would be true but in this case probably not much. When I read ADC I usually make few measurements and then get AVG ;-)

    • @deadly_dave
      @deadly_dave 3 роки тому +4

      @@zyghom
      In that case refer to reason 1 💪🧠
      There is also the third reason that I follow sometimes, just because you can. 😎

    • @zyghom
      @zyghom 3 роки тому +2

      @@deadly_dave we are together ;-) That is why I said: "super nice educational video" ;-)

    • @deadly_dave
      @deadly_dave 3 роки тому +1

      @@zyghom That's fair :)

  • @BrownieX001
    @BrownieX001 3 роки тому +22

    Interested in this type of content for ESP32

    • @akul24
      @akul24 3 роки тому

      Me too 🙌

  • @ELECTRONOOBS
    @ELECTRONOOBS  3 роки тому +1

    Arduino Course (Spanish): bit.ly/3ldW6kO
    Follow me on FACEBOOK for more: facebook.com/Electronoobs
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

  • @IncroyablesExperiences
    @IncroyablesExperiences 3 роки тому +5

    Very interesting, the "quality" times "deep info" from your channel is unique!

  • @khomo12
    @khomo12 2 місяці тому

    Very good! As an undergrad, I know that it is not easy to explain this in such a short amount of time!👍👍👍

  • @eduarddez4416
    @eduarddez4416 9 місяців тому

    Your series regarding registers has truly helped me better understand how things work . Thank you

  • @RoterFruchtZwerg
    @RoterFruchtZwerg 3 роки тому +4

    Great Video, very well explained! However, you missed one important trick ;) One source of the ADC Mux is the internal 1.1V bandgap reference. This allows you to measure the 1.1V internal reference against Vcc as reference and thus determining Vcc without the need of a voltage divider or additional wiring!

  • @FreeCircuitLab
    @FreeCircuitLab 3 роки тому

    I have watched it in full quality 1080p. Now I realized it is worth to do so. Nice tutorial

  • @tomcrofton7744
    @tomcrofton7744 3 роки тому +1

    This is cool. With a PIC micro I was once able to send the DAC output to the ADC input and get the battery voltage without using any external pins.

  • @amnesie6615
    @amnesie6615 3 роки тому +1

    Advanced Arduino = BIG LIKE!

  • @jackwilliams2010
    @jackwilliams2010 3 роки тому +2

    I really enjoy watching detailed videos like this. It fills gaps in my knowledge and makes me more confident I can do these things myself. And you have such a great way of explaining things. Thank you!

  • @Shubham-po2tp
    @Shubham-po2tp 3 роки тому +2

    Please do more on microcontroller
    U r explaining is best

    • @Shubham-po2tp
      @Shubham-po2tp 3 роки тому

      Skills

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 роки тому

      Thank you so much! I'll do more!

    • @Shubham-po2tp
      @Shubham-po2tp 3 роки тому

      @@ELECTRONOOBS
      Thank you for your reply,
      I am fan of you
      Following since PID Vedio
      Ping pong ball
      Amazingly explained
      Best ever explanation of pid concept,
      After watching that vedio no one can have confusion on pid
      Thank you so much for putting great effort

  • @fahadalmansor2688
    @fahadalmansor2688 2 місяці тому

    excellent presentation and sequence of information, man you are a good teacher

  • @gtxsatria2010
    @gtxsatria2010 3 роки тому +1

    You are Genius. I want learn but to old for learning

  • @Sekhar_Home
    @Sekhar_Home 3 роки тому

    I finally able to learn what to use with ADC.. thanx again.. pls give more videos on analog 101 series

  • @bogdan546
    @bogdan546 3 роки тому +2

    I was waiting for this episode.

  • @prashantmalla3094
    @prashantmalla3094 3 роки тому

    This is what I was searching for whole day and Thanks for making this video.

  • @jaroslawpiotrowski210
    @jaroslawpiotrowski210 3 роки тому +1

    Very good tutorial, very good and simple way explain how to program arduino and others microcontrollers on low level. I like it !

  • @electronic7979
    @electronic7979 3 роки тому +1

    Very helpful video

  • @byronwatkins2565
    @byronwatkins2565 2 роки тому +1

    You don't need a voltage divider. It is more accurate to use the supply as reference and then to read the internal bandgap reference. Reverse the equation to find out what reference is needed to yield 1.1V... that is your calibrated battery voltage.

  • @cuarentenaviral4756
    @cuarentenaviral4756 3 роки тому +1

    Saludos! 😍
    Espero y puedas hacer un video sobre el ESP32

  • @your.free.electrons
    @your.free.electrons 3 роки тому +3

    Didn't knew that the atmega328p chip had an internal temperature sensor...thanks for this informative video...
    Just wanted to that is it possible for the atmega to get hot while operating at the highest clock speeds?

  • @keen2461
    @keen2461 3 роки тому

    Good tutorial. Maybe you missed to comment that in order to make accurate measurements using the internal reference, you need to measure it. The datasheet says 1.1V, but the exact value can vary from chip to chip, so in order to make precise measurements, one has to measure it and include the value in the code. There are many videos about the topic on YT (the guy with the swiss accent has one).

  • @DuroLabs85
    @DuroLabs85 3 роки тому

    Very helpful and excellent video
    regards from india

  • @ranganatennakoon
    @ranganatennakoon 3 роки тому

    I love 101 tutorial . thanks noobs !

  • @VorpalForceField
    @VorpalForceField Рік тому

    Excellent series ..!!! Thank You for sharing ... Cheers :)

  • @hiteshjain2640
    @hiteshjain2640 3 роки тому

    Really nice vid mate. You inspire me to learn more and I started a UA-cam channel too.

  • @RavindraSingh-jw2sm
    @RavindraSingh-jw2sm 3 роки тому

    That is some really quality stuff. Brilliant 🙌

  • @vishal01mehra
    @vishal01mehra 3 роки тому

    Need similar knowledge about Esp32. Great video thanks.

  • @diyrobotronics
    @diyrobotronics 3 роки тому +1

    Awesome sir🔥🔥

  • @backdemoletor4654
    @backdemoletor4654 3 роки тому

    Interesting video ... Especially the part of the temperature sensor

  • @Tony770jr
    @Tony770jr 3 роки тому

    More register videos would be great!

  • @PablumMcDump
    @PablumMcDump 3 роки тому +2

    In other cases, you've noted that the use of registers can be faster than the Arduino functions -- is there a performance benefit in their use for ADCs?

  • @Benqo
    @Benqo 11 місяців тому

    Thank you a lot. Very nice explanation.

  • @incxxxx
    @incxxxx 2 роки тому

    Informative and clear. Super!

  • @ranaharsh365
    @ranaharsh365 3 роки тому +1

    Next: Communication Protocols😁... I'm waiting....

  • @iamnotsure1
    @iamnotsure1 3 роки тому

    I love your videos. Your uploads make my day!

  • @adespade119
    @adespade119 2 роки тому

    Excellent video, thank you.

  • @techieelectro
    @techieelectro 3 роки тому +1

    What's up my friend 😊👍

  • @FreeCircuitLab
    @FreeCircuitLab 3 роки тому +1

    Hi brother, I have a question, can we sample higher frequency periodic signals with low sampling ADCs by taking samples not from a single cycle but from multiple cycles, lets say we want a 360° waveform, so if we sample it from 360 cycle by teiggering the conversation at right time while the wave is at that phase. Then we can merge the samples from different cycles to re create the shape of the wave. This will be helpful to make a high bandwidth scope using slow Arduino. Please reply with your opinion.
    Thanks

  • @webslinger2011
    @webslinger2011 3 роки тому

    Thanks for explaining this. So using a prescaler increases the sampling rate of the analog pins making it possible to create an audio amplifier using a nano and a dual h-bridge motor driver.

  • @Taran72
    @Taran72 3 роки тому

    Thank you for explaining this so clearly. :)

  • @HomeTV-PK
    @HomeTV-PK 3 роки тому

    Hi Bro you are doing great work.
    Next video should be be on generating pwm on multiple pins at same time with register

  • @Schwuuuuup
    @Schwuuuuup 3 роки тому +1

    There is a seemingly better way to read VCC - Without a voltage divider, that drains the battery and without using pins. you can Read the Voltage Reference against VCC, and calculate VCC from there somewhat backwards:
    long readVcc() {
    long result;
    // Read 1.1V reference against AVcc
    ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
    delay(2); // Wait for Vref to settle
    ADCSRA |= _BV(ADSC); // Convert
    while (bit_is_set(ADCSRA, ADSC));
    result = ADCL;
    result |= ADCH

  • @sci-makem7941
    @sci-makem7941 5 місяців тому

    Thx for the fully explained video👏🏻 upload more video like this😃 this really helped me🫡

  • @siddharthmali5841
    @siddharthmali5841 3 роки тому

    Excellent video as usual. 👍🏻

  • @edgarbonet1
    @edgarbonet1 Рік тому

    Very nice tutorial! There is just one issue with your code, this line is incorrect:
    int value = ADCL | (ADCH

  • @deepshekhat281
    @deepshekhat281 3 роки тому

    very well explained....

  • @francoisrochefort5759
    @francoisrochefort5759 3 роки тому

    Very nice and instructive video; thank you

  • @shuvendupattari8079
    @shuvendupattari8079 3 роки тому

    As always, incredible man 👌👌👌👌

  • @rifatrahmanriku9018
    @rifatrahmanriku9018 3 роки тому

    Hope you will make this type of video for esp32

  • @MikesTropicalTech
    @MikesTropicalTech 3 роки тому +1

    Thanks for this! The inaccuracy of analog voltage measurement has been bugging me for a long time. I see that using the default Vcc as the voltage reference is garbage due to your well-explained points.
    So the only way to get an accurate voltage reading is to:
    1 - Use the 1.1V reference
    2 - Prescale your maximum expected input voltage down to a maximum of 1.1V with a resistor divider.
    This leads me to see that you have to use extremely high precision resistors in your voltage divider, or you're forced to do a calibration process on every unit you build. Otherwise the single fixed scaling factor you use in the software will be inaccurate in each unit due to tolerances in the resistors. How do people normally handle this? 1%? 0.1%? What is the cost differential for these vs. default 5% resistors?
    I've tried to use an external 4.096V reference chip so I don't lose a bunch of resolution bringing my 80V battery pack max target voltage down to under 1.1V. Am I gaining anything with that chip or should I just massively scale down the input voltage and use the 1.1V reference?
    Also, how does using the Bandgap reference come into this? Does every microcontroller have the same Bandgap reference and if so, what value is it and how accurate is it? Thanks!

    • @jackwilliams2010
      @jackwilliams2010 3 роки тому +1

      I have seen many old boards where the manufacturer places a potentiometer on the board to manually calibrate. Another option to calibrate each board without a potentiometer is through software. Have an accurate 5v supply on your bench and run a routine to record the digital value on the board's nonvolatile memory. Your program can use that as the max value and scale accordingly.

  • @ahmadhussain6482
    @ahmadhussain6482 3 роки тому +1

    good job

  • @Cdswjp
    @Cdswjp 2 роки тому

    thank you. nice video friend!

  • @sultan7679
    @sultan7679 Рік тому

    Great video, Thanks

  • @user-xb5zu6zu7j
    @user-xb5zu6zu7j 5 місяців тому

    excellent video

  • @tonyvarghese75
    @tonyvarghese75 3 роки тому +1

    Can you please make driver drowsiness detector using raspberry pi and usb camera

  • @MasterJOEvlog
    @MasterJOEvlog 3 роки тому

    nice tutorial thank you

  • @Mr0neShotAway
    @Mr0neShotAway 3 роки тому

    This is amazing! more please :)

  • @ankitnegi2524
    @ankitnegi2524 3 роки тому

    I love this seriessss.....

  • @muhandes8453
    @muhandes8453 3 роки тому

    Thank you very much!!

  • @xnetworkDEVILx
    @xnetworkDEVILx 3 роки тому

    hi thanx for the video but please can you tell us witch software you use for the teaching animation ???

  • @Utube2Itube
    @Utube2Itube 3 роки тому

    I love this series and I really wanted to learn about the internal voltage reference, it will be extremely useful for some of my data logging applications. However, does anyone know how stable this voltage reference is compared to the 5V VCC e.g. when the arduino is powered with 12V (always the same supply adapter)? Is there a significant improvement in the stability?

  • @MiniLuv-1984
    @MiniLuv-1984 3 роки тому

    Very useful, thanks. Can you talk about external reference standards that you can buy from ebay such as the AD584KH precision voltage reference modules? Do they improve on the accuracy of the internal reference provided by the Arduino?

  • @jdelectron
    @jdelectron 3 роки тому

    That's what I queries (why veref or vcc is not internally shorted in chip)
    So we could avoid shorting in vref and vcc in battery powered project.....

  • @FixTronics
    @FixTronics 3 роки тому

    Great content as always

  • @yuriselektro2236
    @yuriselektro2236 3 роки тому

    👍👍

  • @aidancallaghan7059
    @aidancallaghan7059 Рік тому

    Im not understanding the sampling rate. You said that the sample rate is 16MHz divided by a division factor (one option being 2), but the max rate is 200KHz? what happens when the division factor is 2 and why does the ADC not sample at 8MHz in this situation?

  • @galihtanu
    @galihtanu 3 роки тому

    Just for summary:
    So of i create external voltage reference 0.1 v (100mv) and measure 75mv
    I get 75/100*1023 reading?
    Tq for reply

  • @jstro-hobbytech
    @jstro-hobbytech 2 роки тому

    Hey man, could you build a peak detector in software using this. I have a few 328pu chips. Great video series btw. I'll be back on your patreon in a few weeks

  • @Zhaymoor
    @Zhaymoor 3 роки тому

    Amazing ! Thank you

  • @PhG1961
    @PhG1961 3 роки тому

    Nice video, very usefull !

  • @shoumikahmed6373
    @shoumikahmed6373 3 роки тому

    Hello sir, I have made the portable soldering iron V3 . But the buttons are not working properly .May be because there was no interrupts for the push buttons. If you fix the problem that would be great...

  • @CABohol
    @CABohol 3 роки тому

    Nice!

  • @zohaibanwer5199
    @zohaibanwer5199 3 роки тому

    So .. if we .. set .. reference to 1.1v can we used it measure.. thermocouple .. ?

  • @aymaneelfahsi8048
    @aymaneelfahsi8048 2 роки тому

    what if it's a microphone??? should i first get rid of the negative signal?

  • @georgevarughese2770
    @georgevarughese2770 3 роки тому

    CAN YOU SUPPLY A WEIGHING SCALE PROJECT INCLUDING SOURCE CODES?

  • @yousifali1737
    @yousifali1737 3 роки тому

    amazing video, I hope you keep doing more videos like this.

  • @Shubham-po2tp
    @Shubham-po2tp 3 роки тому

    Please tell how to use interupt
    Hardware and software

  • @paulpixzy5297
    @paulpixzy5297 Рік тому

    Please how can i use register for more than one channel??
    I need reply

  • @fatimawaterdetector
    @fatimawaterdetector 3 роки тому

    Hi sir I want instrument for underground water detection special software and program can you make for me thanks

  • @guilhermerochasoares236
    @guilhermerochasoares236 3 роки тому

    Muito bom!!!

  • @Shubham-po2tp
    @Shubham-po2tp 3 роки тому

    But Internal 1.1ref bound me to measure
    Maximum 1.1 v drop
    Is it applicable for 3 3.7 v series connection
    Fully charged 4.2*3 12.6
    Discharged 3.0*3 9v
    12.6 - 9 3.6
    Min 3 volt drops detection required

    • @Shubham-po2tp
      @Shubham-po2tp 3 роки тому

      Is it safe to connect Arduino 3.3 v pin to ref
      May this resolve it

  • @PrUveTGoogl
    @PrUveTGoogl 10 місяців тому

    Расскажите пожалуйста если можно как в регистрах настроить 12 битный ацп

  • @_munna_
    @_munna_ 3 роки тому

    👌👌👌👌

  • @taranagnew436
    @taranagnew436 3 роки тому

    where can i print the page you have?

  • @erdum
    @erdum 3 роки тому

    Next UART

  • @sultan7679
    @sultan7679 Рік тому

    That keysight multimeter is really sexy

  • @zuhaibchoudhary4635
    @zuhaibchoudhary4635 2 роки тому

    👍

  • @richmondmagallon6948
    @richmondmagallon6948 Рік тому

    +/- 10 difference in temperature is a night and day difference 🥲

  • @rakesh__rocky9
    @rakesh__rocky9 3 роки тому

    💫🤟🏼💞

  • @legominimovieproductions
    @legominimovieproductions 3 роки тому

    In the most cases the "5V" on my arduinos is somewhere between 4.2 and 4.8V XD

  • @MuhammadDanish-xz3qt
    @MuhammadDanish-xz3qt 3 роки тому

    Sir i want to know your source of earning.

  • @royerickmelendez3408
    @royerickmelendez3408 3 роки тому

    a video without a banana it´s not a video...

  • @mitalighosh7801
    @mitalighosh7801 3 роки тому

    #GlobalElectroTech

  • @kosmos8460
    @kosmos8460 2 роки тому

    Для чего писать по русски когда видео на английском ?

  • @daniele1209
    @daniele1209 2 роки тому

    Thanks for nice works