Digital to Analog Converter using PWM
Вставка
- Опубліковано 15 жов 2024
- This a short explanation how a PWM DAC works. It is a kind of technical background knowledge you might be interested in for some upcoming sound synthesis projects. It also shows a simple low pass filter.
Next video will be about the R-2R resistor ladder.
I found that while this is good for some applications, it's quite difficult to get decent response from certain frequencies. I found buying a DAC chip was much easier and the result was much cleaner and more reliable than I myself could have achieved. I find that while IC chips can be slightly more expensive, I definitely just use them whenever I can as often for standardized things like this, the result is much more fine tuned than what I could've achieved on my own.
nice, tyvm. that makes sense. was reading a datasheet that mentioned filtered PWM. back when i learned about PWM i did wonder if the on/off mode nature of PWM could be a problem for circuits that are sensitive enough.
I think you still need a current limiting resistor following the amplifier in order to avoid burning out the LED.
WHats is the aplifier? And what you suggest for a 500mA load?
Thank you for the tutorial...
Let me know how to calclulate the value of R and C for a particular PWM freq (e.g.200MHz)
I want to go from the output of an RC receiver into the pot input (throttle) of a motor controller without using a microcontroller. The motor controller supplies 5VDC to the pot or hall effect sensor and a varied voltage is returned to set the speed of the motor. Can this technique be used for that? Thanks!
Won't hooking LED 4:39 directly (without limiting resistors) to Arduino damadge any of its pins or the LED itself?
if i generate analog signal(PWM ) to the pin 6(arduino UNO) can i read
same output from analog pin(A0) with same board.i tried this but i cant
able to read anlalog value what i generated from pin number 6.Please let
me know how can fix this
If you generate PWM on pin 6, it wont show up on your analog pin (A0). To see on analog pin, you need to write a line in your program called AnalogRead() function. But still you wont see anything on analog pins. Thats because all analog pins on Arduino are designed to take inputs like sensor data, signals, etc. not generate any output from those pins. For PWM, only Digital Pins can be used to generate and see PWM, not analog pins. Comment back if you have any more queries!
You cannot do this directly, because the PWM is not a true analog signal. The solution is the circuit shown in this video.
Can this be used to run 3.3v logic from a 5v pin?
Can you read analog signal with pwm digital pin ?......if not how DHT22 WORKS ON D2 pin on nodemcu esp8266....plz reply.
What interface did you choosed for that?
I can use this as an starting point to make a *Digital Audio -> Analog Audio* converter?
no, it does not aplicable for audio
Hi, I'm just trying to play a bass drum sound.
but without success in the sketch
(*arduino uno)
Can you help me
I can precisely predict the resistor and capacitor by using Laplace transform right?
Hello need some help I buy a analog to digital converter board it's call uxcell and I don't know how to use that I'm trying to swap a digital cluster in to my car that have analog cluster someone say only thing I need to make the speedometer to work is a analog to digital converter can you guys help me with this?
Yes! I did it this same :D I use op-amp to produce linear voltage from pwm. :D
I am having trouble with obtaining linear voltage. Could you give me some advice?
Great vid! Thanks for the easy explanation
What's the amp your using? I'd like to do the same, but not sure on which amp to use. Ty!
LM386N-4 worked for me :D
@@theoceansucks wow. This was 6yrs ago :0
Blat from the past! I needed the same solution for a thing and couldn't find it in the comments. Thought maybe this would help someone some day 😸
@@theoceansucks Today is the day. With this small and cheap circuit I can use the pwm signal of one arduino as an anlog input on the next one (use other form of communication isn't possible and also can use an optocoppler in between.
Can’t you get analog voltage also by connecting a potentiometer to Ground and 5V output?
If you want to adjust brightness of LED you just need to connect LED+resistor directly to pin of arduino, you don't need to filter PWM and than use buffer. LED dimming is not good example, because for LED dimming you need just PWM and it is actually better than analog dimming.
A actually it is there. Sorry.
which is the opam ?
operational amplifier eg lm741
can you tell me what's the name of the amplifier?
;)
Fabrizio Benvenuti It's probably just a normal operational amplifier like LM358 and such.
Thank you. Good, usefuly video.
great video! thanks!
thanks , me ajudou demais nas minhas experiencias!
Great Video Thanks.
I normally use around 50 MHz PWM, then the Frequency is so high, that I don't need any smoothing for what I use it for.
Good idea, but very basic, it doesnt work with a small charge
nice demo, but would have been simpler with 555 timer
whts the purpose of using multimeter ?
it's to show that the voltage is still the same regardless of using smoothing or not
Thanks!
comment