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.

КОМЕНТАРІ • 46

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

    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.

  • @THE16THPHANTOM
    @THE16THPHANTOM 4 роки тому

    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.

  • @Enigma758
    @Enigma758 6 років тому

    I think you still need a current limiting resistor following the amplifier in order to avoid burning out the LED.

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

    WHats is the aplifier? And what you suggest for a 500mA load?

  • @mahantkeyur
    @mahantkeyur 8 років тому +2

    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)

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

    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!

  • @sharksally914
    @sharksally914 4 роки тому

    Won't hooking LED 4:39 directly (without limiting resistors) to Arduino damadge any of its pins or the LED itself?

  • @lazyvideos9525
    @lazyvideos9525 4 роки тому +1

    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

    • @ankitmallick8732
      @ankitmallick8732 4 роки тому

      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!

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

      You cannot do this directly, because the PWM is not a true analog signal. The solution is the circuit shown in this video.

  • @NullPointer
    @NullPointer 4 роки тому

    Can this be used to run 3.3v logic from a 5v pin?

  • @subhadipghorui2216
    @subhadipghorui2216 6 років тому

    Can you read analog signal with pwm digital pin ?......if not how DHT22 WORKS ON D2 pin on nodemcu esp8266....plz reply.

  • @kyoadam1593
    @kyoadam1593 4 роки тому

    What interface did you choosed for that?

  • @huckanz
    @huckanz 7 років тому +1

    I can use this as an starting point to make a *Digital Audio -> Analog Audio* converter?

  • @laserbeaksoundwave9710
    @laserbeaksoundwave9710 7 років тому

    Hi, I'm just trying to play a bass drum sound.
    but without success in the sketch
    (*arduino uno)
    Can you help me

  • @amrelkomy3474
    @amrelkomy3474 6 років тому +1

    I can precisely predict the resistor and capacitor by using Laplace transform right?

  • @vicmon25mon85
    @vicmon25mon85 8 років тому

    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?

  • @maxim25o2
    @maxim25o2 5 років тому +1

    Yes! I did it this same :D I use op-amp to produce linear voltage from pwm. :D

    • @waynewu7763
      @waynewu7763 5 років тому

      I am having trouble with obtaining linear voltage. Could you give me some advice?

  • @mrcassid
    @mrcassid 8 років тому +2

    Great vid! Thanks for the easy explanation

  • @shaiss1
    @shaiss1 9 років тому

    What's the amp your using? I'd like to do the same, but not sure on which amp to use. Ty!

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

      LM386N-4 worked for me :D

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

      @@theoceansucks wow. This was 6yrs ago :0

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

      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 😸

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

      @@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.

  • @dwalden74
    @dwalden74 4 роки тому

    Can’t you get analog voltage also by connecting a potentiometer to Ground and 5V output?

  • @xxJerry19xx
    @xxJerry19xx 10 років тому

    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.

    • @xxJerry19xx
      @xxJerry19xx 10 років тому

      A actually it is there. Sorry.

  • @ngovanoanh2222
    @ngovanoanh2222 10 років тому +1

    which is the opam ?

  • @225fabry
    @225fabry 9 років тому +1

    can you tell me what's the name of the amplifier?
    ;)

    • @SopanKotbagi
      @SopanKotbagi 7 років тому

      Fabrizio Benvenuti It's probably just a normal operational amplifier like LM358 and such.

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

    Thank you. Good, usefuly video.

  • @blesspascal6016
    @blesspascal6016 7 років тому +1

    great video! thanks!

  • @valmirqueiroz9336
    @valmirqueiroz9336 6 років тому

    thanks , me ajudou demais nas minhas experiencias!

  • @jijinpavithran
    @jijinpavithran 7 років тому +1

    Great Video Thanks.

  • @leberkassemmel
    @leberkassemmel 8 років тому

    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.

  • @alejandroleon3170
    @alejandroleon3170 4 роки тому

    Good idea, but very basic, it doesnt work with a small charge

  • @harveyellis6758
    @harveyellis6758 8 років тому

    nice demo, but would have been simpler with 555 timer

  • @micydiaries3867
    @micydiaries3867 7 років тому

    whts the purpose of using multimeter ?

    • @fffmpeg
      @fffmpeg 6 років тому +1

      it's to show that the voltage is still the same regardless of using smoothing or not

  • @martin128
    @martin128 9 років тому

    Thanks!

  • @asdffewfew
    @asdffewfew 4 роки тому

    comment