Arduino - Analogue Outputs

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.ค. 2024
  • In this video we use analogWrite and a low pass filter to control the analogue outputs on an Arduino board
    Get hold of these fantastic little devices here:
    Arduino Uno: amzn.to/3aeuND3
    Arduino Mega: amzn.to/33OxUAl
    Arduino Micro: amzn.to/2XSTfom
    Arduino Pro Mini: amzn.to/2Fg75ef
    Motor + driver: amzn.to/31Lj76M
    Find us on Facebook, Instagram and Twitter @MachineShopUK
    Visit our website TheMachineShop.uk
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @boazburnett4102
    @boazburnett4102 ปีที่แล้ว +3

    10k ohm and 100 uf worked well for me

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

    Excellent explanation, thanks!

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

    Thanks for your video, it is helping me to setup the analog outputs 0-5V on my Arduino Mega 2560, one question, what will be the typical resistor and capacitor specifications for an interface with a typical PLC 0-5VDC input channel?

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

    Thank you.

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

    This has been very helpful to me as I was struggling to understand how to get a "simple" analog level out of my Arduino. I understand the notion of an RC time constant. But as many comments here ask, can you please provide some insight as to how to choose the RC Values? I assume it would be related to the PWM frequency, but also to how quickly the analog out is turned on and off. For example, I am interested in operating an individual electromagnet in a motor (not the motor itself) and might need to switch the electromagnet on and of at a rate of 48 KHz. I know enough electronics to know the R and C values will affect this performance but don't understand how to select those values or what the trade-offs will be.

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

    Can you specify resistance and capacitance used in the video please? I need it for my final work for high school. It would be greatly appreciated!

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

      Hi Ivan, thank you for the comment, the values of the resistance and capacitance would depend on what you are connecting to the Arduino and the frequency you are using. You should do your research, look up RC Time Constant

    • @ivanpopovic9403
      @ivanpopovic9403 2 ปีที่แล้ว

      @@TheMachineShopUK Thank you for reply, your video really helped me a lot.

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

    What is the resistance and capacitance value used here?

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

    Is it possible to create a synth using this technique? I expect the attack and decay to be too high for an audible frequency to play.

    • @Hoptronics
      @Hoptronics 8 หลายเดือนก่อน

      Yes but it won't be very good. It will be 8bit square waves. It'd be better to use something like an esp32 that supports I2S and a DAC module.

  • @musicproductionlogs368
    @musicproductionlogs368 2 ปีที่แล้ว

    Question. If I use a capacitor with less capacitance will the signal get more accurate?

    • @TheMachineShopUK
      @TheMachineShopUK  2 ปีที่แล้ว

      I wouldn’t say more accurate but it would be faster to respond and decay, if you want a steady output then this would introduce more ripple

    • @musicproductionlogs368
      @musicproductionlogs368 2 ปีที่แล้ว

      @@TheMachineShopUK ok thanks