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

  Рет қаралды 56,856

Electronoobs

Electronoobs

Күн бұрын

Пікірлер: 80
@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
@artursmihelsons415
@artursmihelsons415 2 жыл бұрын
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.. 😂😉
@FreeCircuitLab
@FreeCircuitLab 2 жыл бұрын
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.
@karthikrajagopal6162
@karthikrajagopal6162 Жыл бұрын
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.
@sennabullet
@sennabullet 9 ай бұрын
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.
@lpjunction
@lpjunction Жыл бұрын
This is handy for making a transistor curve tracer.
@HorstFederau
@HorstFederau 10 ай бұрын
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?
@isalihkilic
@isalihkilic 2 жыл бұрын
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
@Stubb0rn
@Stubb0rn Жыл бұрын
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.
@pierpa_76pierpaolo
@pierpa_76pierpaolo 4 күн бұрын
But how do I connect an input signal via the SCL pins \ SDA on this module? Basically I need to convert a digital signal to analog for a sound level meter (since I am not satisfied with seeing the value in Db but want to be able to record it so I can keep it as evidence ....... ).
@yunesrahem2715
@yunesrahem2715 11 ай бұрын
Thank you very much, can you explain how to change the amplitude of signals in program
@userou-ig1ze
@userou-ig1ze 2 жыл бұрын
wow, so great thanks for this!! liked! any module that has more steps and/or can output a bit more power??
@paulocarvalho7877
@paulocarvalho7877 15 күн бұрын
Well, most Arduinos have a limit of 400kbps in their I2C hardware. The data frame of the I2C protocol is 30-bit long. Since most Arduinos only allows bi-directional communication, that means 400k / 30 / 2 ~ 6.7ksps (max theoretical sample rate). Halve that by each additional device on the I2C bus. While easy to implement, for applications such as audio synth or laser galvo drive that is not enough. For high-speed applications, SPI for instance is a better choice. Keep that limit in mind when designing a solution.
@piiumlkj6497
@piiumlkj6497 2 жыл бұрын
great video , and as always keep them coming !
@Tarbard
@Tarbard 2 жыл бұрын
Nice work on the video quality as well as the content
@KennethScharf
@KennethScharf 2 жыл бұрын
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.
@marjunemjhay6328
@marjunemjhay6328 2 ай бұрын
Nice video. I have a question. I want to connect the output of the mcp4725 to another arduino using analog read function. Is it possible? I tried it but when i connect the two arduino with a common ground. The output of the mcp4725 stops. Can you help me please? Thank you verymuch.
@restonjesus
@restonjesus Жыл бұрын
Thanks. It's very useful for me.
@rubikon7648
@rubikon7648 2 жыл бұрын
THANK YOU BROTHER, VERY NİCE AND CLEAR EXPLANATİON
@overbuiltautomotive1299
@overbuiltautomotive1299 2 жыл бұрын
yep the buck step up project seems neat
@anterocelllumajang
@anterocelllumajang 2 жыл бұрын
Nice , make controll voltage buck regulator series xl4016 with modul dac and use push button as control
@مقاطعمترجمة-ش8ث
@مقاطعمترجمة-ش8ث 2 жыл бұрын
Underrated video.
@THEELECTRICGUY
@THEELECTRICGUY 2 жыл бұрын
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 2 жыл бұрын
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
@ezzeldin101
@ezzeldin101 2 жыл бұрын
I was looking for a video for that topic, thanks a lot bro❤
@pplg-yt
@pplg-yt 2 жыл бұрын
Cool video! Did you record the voiceover with a different microphone? Which one is it? It sounds great. Thank you!
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Thae same as always. A T-bone microphone
@iuhere
@iuhere 2 жыл бұрын
a new one is probably in the making hopefully
@alexandergmzx
@alexandergmzx 2 жыл бұрын
Excellent explanation, this is great for digital potentiometers
@standarde878
@standarde878 3 ай бұрын
Can't this module also control analog output based on input PWM, and not frequency? Or no?
@stm32user
@stm32user 2 жыл бұрын
Super. But we can use digital pot
@oussamathedjfreeman
@oussamathedjfreeman 2 жыл бұрын
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
@AFSMG
@AFSMG 2 жыл бұрын
Excelente video. Felicitaciones
@stormbytes
@stormbytes 2 жыл бұрын
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?
@AugustineAriola
@AugustineAriola Жыл бұрын
Very good project ❤ 💕
@lampartzjardu7734
@lampartzjardu7734 Жыл бұрын
so i can give AC on the MOSFET-s gate to controll this MOSFET ?
@taranagnew436
@taranagnew436 2 жыл бұрын
What mouse are you using?
@bramSDASCL1759
@bramSDASCL1759 9 ай бұрын
great video
@grzesgrzankaify
@grzesgrzankaify 2 жыл бұрын
What is the highest sine frequency that can be generated?
@paulocarvalho7877
@paulocarvalho7877 15 күн бұрын
That depends on the I2C bus speed, which in most Arduinos is limited to 400kbps. With a single DAC on the I2C bus, I was able to generate (verified with an oscilloscope) a ~80Hz sine wave sampled at every 10 degrees (36 samples per cycle, which is a moderate resolution). 400kbps / 30 (I2C data frame length) / 2 (bi-directional mode) / 36 samples per second ~ 185Hz theoretical. In real life, Arduino does other stuff per `loop()` iteration, hence the 80Hz-or-so result I got. That can be good for a power supply, but if you want to synthesize audio signals, for example, I'd go for the SPI protocol, which requires more wires, but is 8Mbps for a 16MHz Atmega microcontroller.
@zyghom
@zyghom 2 жыл бұрын
why would someone EVER use PCBWAY? I recently made a project and comparing JLCPCB vs PCBWAY it was like 1 to 5 price, really?
@Yuēhàn24
@Yuēhàn24 2 жыл бұрын
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.
@darkomanko
@darkomanko 2 жыл бұрын
Maybe you can rebuild your VFD Inverter with this modules.
@wearesisterstube7354
@wearesisterstube7354 2 жыл бұрын
Nice
@ketanmorajker
@ketanmorajker 2 жыл бұрын
👌🏻
@abdullhbaarod4552
@abdullhbaarod4552 2 жыл бұрын
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
@abdullhbaarod4552
@abdullhbaarod4552 2 жыл бұрын
Answer give
@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?
@gopendrayadav9167
@gopendrayadav9167 2 жыл бұрын
Sir tell me 24s 300a ESC bldc motor controller coding and diagram
@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
@debelix
@debelix Ай бұрын
@0:16 That's not actually true, Arduino UNO doesn't have DAC but Arduino Due have two of them!
@mixguru9669
@mixguru9669 Жыл бұрын
Measuring 12but DAC with 8bit Oscilloscope may result in wrong conclusions.
@ameristanbouli5063
@ameristanbouli5063 2 жыл бұрын
very cool ..now i want to try it, but that 9 bit sine table will eat my pic16877 memory alive 😂
@odissey2
@odissey2 2 жыл бұрын
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.
@lamngoc9896
@lamngoc9896 Жыл бұрын
please work on dac and boost converter 😢😢
@taranagnew436
@taranagnew436 2 жыл бұрын
Is any dac bidirectional?
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
You mean like an DAC and ADC in the same module? Idk...
@__Chucky__
@__Chucky__ 2 жыл бұрын
Yes www2.mouser.com/c/semiconductors/data-converter-ics/data-acquisition-adcs-dacs-specialized/?instock=y
@asifaljamie
@asifaljamie 2 жыл бұрын
Need content about micropython
@sammin5764
@sammin5764 2 жыл бұрын
🌟🌹🌟
@0124akash
@0124akash Жыл бұрын
Sir how to write code for dc current measurements using Arduino and 2line LCD, WCS 1800 sensor ?
@SMARTGAMERZ25
@SMARTGAMERZ25 2 жыл бұрын
sir plz make a bluetooth headphone with a bluetooth mic plz sir for a gaming channel
@PlaylistsM
@PlaylistsM Жыл бұрын
Only 12-bit?
@muthumohan9947
@muthumohan9947 2 жыл бұрын
24 bit stereo dac
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf 2 жыл бұрын
lol wtf is this rule of 3 thing? You're just scaling 4095 by 3/5... Good video!
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
www.smartick.com/blog/mathematics/rule-of-3/
@qutube100
@qutube100 2 жыл бұрын
buck boosty genius
@bob-ny6kn
@bob-ny6kn 2 жыл бұрын
Two minutes of advertising on a twelve minute video? f*. Time to dislike and unsubscribe.
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
If you can't take 50 seconds, bye bye :=)
@menxxx1
@menxxx1 2 жыл бұрын
Thanks
@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
Different Ways for Measuring Current With Arduino
13:32
Electronoobs
Рет қаралды 77 М.
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 21 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 110 МЛН
MOSFETs Drivers and Bootstrap - Types, Logic Level and More
12:46
Electronoobs
Рет қаралды 73 М.
Internal Comparator | Full Tutorial On How To Use It - Arduino101
11:23
#148 TCA9548A I2C MULTIPLEXER (& Voltage Shifter)
38:00
Ralph S Bacon
Рет қаралды 26 М.
Using the ESP32 DAC - Voltages, Waveforms & Sounds
34:46
DroneBot Workshop
Рет қаралды 82 М.
Making a 12 bit DAC Using an Arduino - The Learning Circuit
7:51
element14 presents
Рет қаралды 44 М.
Converting an Arduino PWM Output to a DAC Output
18:48
ForceTronics
Рет қаралды 110 М.
Power For Your Electronics Projects - Voltage Regulators and Converters
37:26
DroneBot Workshop
Рет қаралды 1,2 МЛН
Analog Constant Load/Current Controller Circuit
13:18
Electronoobs
Рет қаралды 77 М.
Hardware tools repair tool high performance tool
0:16
Hardware tools
Рет қаралды 3,8 МЛН
Кто-то еще помнит про эту консоль?
0:51
ПРОСТО ЛЕШКА
Рет қаралды 2,3 МЛН
iphone designer studio📱🤣🤣
0:16
티곰
Рет қаралды 1,2 МЛН
🤔Как правильно держать iPhone? 📱
0:46
Не шарю!
Рет қаралды 1,5 МЛН
bulletproof❌ Nokia✅
0:17
AGENT43
Рет қаралды 47 МЛН