12-bit DAC Arduino MCP4725 How To Use It - Stable Voltage Reffrence

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2024
  • High quality PCB prototypes: www.pcbway.com
    PCBWAY 7th anniversary event: www.pcbway.com/activity/anniv...
    3D & CNC service: www.pcbway.com/rapid-prototyp...
    🔥Start using the MCP4725 DAC module with Arduino and different projects.
    🔀LINKS
    -------------------------------------
    Codes & Examples: electronoobs.com/eng_arduino_...
    My tools: electronoobs.com/eng_afiliate...
    False/True T-Shirt: teespring.com/it-s-funny-beca...
    🤝SUPPORT
    -------------------------------------
    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    ELECTRONOOBS.io: electronoobs.io
    Donate on PayPal: www.paypal.com/donate?hosted_...
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.io/forum/index.php
    Facebook page: / electronoobs
    Canal en Español: / electronoobs en español
    00:00 Intro
    01:44 The MCP4725
    02:47 Specs
    04:32 Library and code
    06:17 Lookup table and SINE
    07:34 Signal Generator
    08:39 Why to use DAC?
    10:58 Thank you
    Like share and subscribe to motivate me. Thank you
    #MCP4725
    #Arduino
    #Tutorial
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 74

  • @ELECTRONOOBS
    @ELECTRONOOBS  ปีที่แล้ว +2

    Get an ESP32: s.click.aliexpress.com/e/_AKsuGp
    My Tools: bit.ly/3uv8bc3
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

  • @sennabullet
    @sennabullet 5 หลายเดือนก่อน

    Another winner if a video from you. Thank you as always for all your hard work to share your knowledge with us in an easy to understand way.

  • @artursmihelsons415
    @artursmihelsons415 ปีที่แล้ว +5

    Back in days, just for fun, I connected 8bit resistor divider directly to AVR pins and writed code in asm with different lookup tables to create signal generator with option to change frequency and signal form.. Maximum frequency was higher than for this chip.. All project was very cheap.. 😂😉

  • @piiumlkj6497
    @piiumlkj6497 ปีที่แล้ว

    great video , and as always keep them coming !

  • @FreeCircuitLab
    @FreeCircuitLab ปีที่แล้ว +1

    We can make a component tester using this DAC and the Arduino DAC. Now the Arduino can set a Vin to a circuit under test and measure it's Vout, and print those data to serial monitor or to a curve on an MIT android app.
    Also it can draw the VI curve of a component by sweeping the current through that component using a powerful op amp (TDA2030) as a Voltage to current converter and checking the voltage across it.

  • @Tarbard
    @Tarbard ปีที่แล้ว

    Nice work on the video quality as well as the content

  • @karthikrajagopal6162
    @karthikrajagopal6162 ปีที่แล้ว +1

    Informative video!
    As you demonstrated in your video, never connect and disconnect a capacitor on a DAC output while its running as it can significantly load the DAC because of its low output current capability causing it to fail.

  • @restonjesus
    @restonjesus ปีที่แล้ว

    Thanks. It's very useful for me.

  • @lpjunction
    @lpjunction ปีที่แล้ว +1

    This is handy for making a transistor curve tracer.

  • @HorstFederau
    @HorstFederau 5 หลายเดือนก่อน

    Thank you so much for this explanation. I am building a flight simulator using real airplane gauge. A lot of them use resolvers to measure knob turns, for example, turning the knob to adjust heading. From what I have learned, resolvers use one coil to induce electrical signal into two other coils to measure angular rotation. This DAC could be used for the exciter coil? How would you measure the voltage on the other two to figure out angles?

  • @ezzeldin101
    @ezzeldin101 ปีที่แล้ว

    I was looking for a video for that topic, thanks a lot bro❤

  • @rubikon7648
    @rubikon7648 ปีที่แล้ว

    THANK YOU BROTHER, VERY NİCE AND CLEAR EXPLANATİON

  • @AFSMG
    @AFSMG ปีที่แล้ว

    Excelente video. Felicitaciones

  • @yunesrahem2715
    @yunesrahem2715 7 หลายเดือนก่อน

    Thank you very much, can you explain how to change the amplitude of signals in program

  • @overbuiltautomotive1299
    @overbuiltautomotive1299 ปีที่แล้ว

    yep the buck step up project seems neat

  • @bramSDASCL1759
    @bramSDASCL1759 5 หลายเดือนก่อน

    great video

  • @user-ir2fu4cx6p
    @user-ir2fu4cx6p ปีที่แล้ว

    Underrated video.

  • @userou-ig1ze
    @userou-ig1ze ปีที่แล้ว

    wow, so great thanks for this!! liked! any module that has more steps and/or can output a bit more power??

  • @anterocelllumajang
    @anterocelllumajang ปีที่แล้ว

    Nice , make controll voltage buck regulator series xl4016 with modul dac and use push button as control

  • @alexandergmzx
    @alexandergmzx ปีที่แล้ว

    Excellent explanation, this is great for digital potentiometers

  • @Stubb0rn
    @Stubb0rn ปีที่แล้ว +1

    Great video but the addresses at 4:24 didn't work properly for me when using 2x MCP4725 on the same bus. When pulling to GND 0x60 was fine but when pulling to VCC 0x61 worked for me instead of 0x63. Default 0x62 worked fine in isolation.

  • @oussamathedjfreeman
    @oussamathedjfreeman ปีที่แล้ว

    Hii could you help ?! I have analog signal input, how can i use the input signal to do something, for ex analog input is stable and then when signal input it drop to 0 and back to 100 again but each signal have it own drop time, how to identfy them

  • @isalihkilic
    @isalihkilic ปีที่แล้ว +1

    I planned it to use in a digital supply with LM338, a year ago but didn't have time to do. To control the output of the LM338 (5A version of the LM317), you should apply a voltage to the ADJ which is 1.25V lower than the output. My plan was to use an op-amp to amplify the output of DAC.

    • @mahmutkelesoglu683
      @mahmutkelesoglu683 ปีที่แล้ว

      merhaba ibrahim. ben LM317 ile 5 volt çıktı veren devre yaptım ve bununla DAC'yi beslemem gerek. ama beslediğim zaman DAC sabit 2.3 volt veriyor. normal arduino ile beslediğimde ise doğru bir şekilde çalışıyor. bu konuda yardımcı olabilir misin?

    • @mahmutkelesoglu683
      @mahmutkelesoglu683 ปีที่แล้ว

      "you should apply a voltage to the ADJ which is 1.25V lower than the output." şurada tam olarak ne demek istedin. yardımcı olursan çok sevinirim

    • @isalihkilic
      @isalihkilic ปีที่แล้ว

      @@mahmutkelesoglu683 benim bahsettiğim DACyi LM317 ile beslemek değil, DAC ile ürettiğim referans voltajını kullanarak LM317yi kontrol etmek. DAC ile 0-5V arası bir gerilim elde ediyorum bunu op-amp ile 0-20V arası gerilimlere yükseltiyorum ardından LM317nin ADJ pinine bu voltajı veriyorum

    • @mahmutkelesoglu683
      @mahmutkelesoglu683 ปีที่แล้ว

      @@isalihkilic Peki ben LM317nin ADJsine DACden aldığım voltajı bağlasam, LM317'nin çıkışını 0 ile 5 arasında değiştirebilir miyim? Böyle bir şey mümkün olur mu?

    • @isalihkilic
      @isalihkilic ปีที่แล้ว

      @@mahmutkelesoglu683 ADJ pinine bağladığının 1.25V fazlasını verir. Yani 0-5V verirsen 1.25-6.25V arası kontrol eder

  • @ikehsamuelifeanyi4925
    @ikehsamuelifeanyi4925 ปีที่แล้ว

    Very good project ❤ 💕

  • @menxxx1
    @menxxx1 ปีที่แล้ว

    Thanks

  • @patxiplg
    @patxiplg ปีที่แล้ว

    Cool video! Did you record the voiceover with a different microphone? Which one is it? It sounds great. Thank you!

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว +1

      Thae same as always. A T-bone microphone

    • @iuhere
      @iuhere ปีที่แล้ว

      a new one is probably in the making hopefully

  • @stormbytes
    @stormbytes ปีที่แล้ว

    So this module only allows 2 of this gizmos on the IC2 bus? (limited to 061 and 063 addresses ?) What do I do if i want to use 4 or 5 of them?

  • @KennethScharf
    @KennethScharf ปีที่แล้ว +1

    What about using this DAC as the output of an SDR radio? What is the max sample rate we can do with I2C? Note that for voice quality audio, (max freq of about 3khz) we need a sample rate of at least 6khz (nyquist), but we probably want at least double that, so say 12khz. The output will be filtered by a LPF.

  • @lampartzjardu7734
    @lampartzjardu7734 ปีที่แล้ว

    so i can give AC on the MOSFET-s gate to controll this MOSFET ?

  • @grzesgrzankaify
    @grzesgrzankaify ปีที่แล้ว +1

    What is the highest sine frequency that can be generated?

  • @wearesisterstube7354
    @wearesisterstube7354 ปีที่แล้ว

    Nice

  • @stm32user
    @stm32user ปีที่แล้ว

    Super. But we can use digital pot

  • @taranagnew436
    @taranagnew436 ปีที่แล้ว

    What mouse are you using?

  • @THEELECTRICGUY
    @THEELECTRICGUY ปีที่แล้ว +1

    I am also trying to work on a similar project but with a 12 bit R2R ladder directly connected to Arduino UNO! But still I am getting only 18 Hz max sine wave. Can we achieve a greater frequencies with an FPGA? how much?
    Maybe a good project idea for you to try!? :)

    • @odissey2
      @odissey2 ปีที่แล้ว

      It is hard to get more than 6-7 bits using R2R DAC. The rule of thumb: if you see noise on the DAC output on the scope, it is less than 8 bits.
      However, it is easy to get fast output >1MHz from the R2R DAC. For that you have to write to the port at about 100MHz rate, which requires FPGA

  • @darkomanko
    @darkomanko ปีที่แล้ว

    Maybe you can rebuild your VFD Inverter with this modules.

  • @abdullhbaarod4552
    @abdullhbaarod4552 ปีที่แล้ว

    I have an Arduino UNO + Gyroscope piece 60 50 But I could not find a video explaining how I can download the code to make it fly control

  • @umar5138
    @umar5138 ปีที่แล้ว

    can anyone assist me, i try the sine wave code but my Vpp is 500mV meanwhile my Vref is 5V, anyone know what is the problem here?. thankyou

  • @mahmutkelesoglu683
    @mahmutkelesoglu683 ปีที่แล้ว

    ı have supplied this module with arduino, then it gives the voltage what ı want. but, when ı connect Vdd to my circuit output, which gives 5.09 volts, the module does not work properly. what is the problem? anyone help?

  • @umar5138
    @umar5138 ปีที่แล้ว

    i need to use mcp4725 with 3 addresses. mine come with 0x60 address and already connected to ground, i already desolder and connected ADDR to VCC so i have 0x61 address. I have 0x60 and 0x61, i need to have 1 more address, can anyone please help me, thankyou

  • @ameristanbouli5063
    @ameristanbouli5063 ปีที่แล้ว

    very cool ..now i want to try it, but that 9 bit sine table will eat my pic16877 memory alive 😂

    • @odissey2
      @odissey2 ปีที่แล้ว +1

      The output speed of the mcp4725 is very low, less than 7k samples/sec. At such low rate it is enough time to calculate sine for each point using the standard math library.

  • @ketanmorajker
    @ketanmorajker ปีที่แล้ว

    👌🏻

  • @gopendrayadav9167
    @gopendrayadav9167 ปีที่แล้ว

    Sir tell me 24s 300a ESC bldc motor controller coding and diagram

  • @Yuehanlad
    @Yuehanlad ปีที่แล้ว

    The voltage readings you are getting are correct. Your maths are slightly wrong. 5 V / 4095 is 1.221 mv not 1.2 mV , the extra 0.021mV when multiplied by thousands makes all the difference. why, there are also common voltage references of 4.096V. So just about 1mv for every step.

  • @asifaljamie
    @asifaljamie ปีที่แล้ว

    Need content about micropython

  • @lamngoc9896
    @lamngoc9896 ปีที่แล้ว

    please work on dac and boost converter 😢😢

  • @0124akash
    @0124akash 9 หลายเดือนก่อน

    Sir how to write code for dc current measurements using Arduino and 2line LCD, WCS 1800 sensor ?

  • @zyghom
    @zyghom ปีที่แล้ว +1

    why would someone EVER use PCBWAY? I recently made a project and comparing JLCPCB vs PCBWAY it was like 1 to 5 price, really?

  • @taranagnew436
    @taranagnew436 ปีที่แล้ว

    Is any dac bidirectional?

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว

      You mean like an DAC and ADC in the same module? Idk...

    • @__Chucky__
      @__Chucky__ ปีที่แล้ว

      Yes
      www2.mouser.com/c/semiconductors/data-converter-ics/data-acquisition-adcs-dacs-specialized/?instock=y

  • @mixguru9669
    @mixguru9669 ปีที่แล้ว

    Measuring 12but DAC with 8bit Oscilloscope may result in wrong conclusions.

  • @SMARTGAMERZ25
    @SMARTGAMERZ25 ปีที่แล้ว

    sir plz make a bluetooth headphone with a bluetooth mic plz sir for a gaming channel

  • @muthumohan9947
    @muthumohan9947 ปีที่แล้ว

    24 bit stereo dac

  • @xntumrfo9ivrnwf
    @xntumrfo9ivrnwf ปีที่แล้ว

    lol wtf is this rule of 3 thing? You're just scaling 4095 by 3/5...
    Good video!

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว +1

      www.smartick.com/blog/mathematics/rule-of-3/

  • @qutube100
    @qutube100 ปีที่แล้ว

    buck boosty genius

  • @sammin5764
    @sammin5764 ปีที่แล้ว

    🌟🌹🌟

  • @PlaylistsM
    @PlaylistsM ปีที่แล้ว

    Only 12-bit?

  • @bob-ny6kn
    @bob-ny6kn ปีที่แล้ว

    Two minutes of advertising on a twelve minute video? f*. Time to dislike and unsubscribe.

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว

      If you can't take 50 seconds, bye bye :=)