Это видео недоступно.
Сожалеем об этом.
Arduino - Analogue Outputs
HTML-код
- Опубликовано: 18 авг 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
10k ohm and 100 uf worked well for me
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?
Excellent explanation, thanks!
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.
What is the resistance and capacitance value used here?
Did u find out what values were used?
@@ivanpopovic9403 1KOhm and 100uF
Thank you.
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!
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
@@TheMachineShopUK Thank you for reply, your video really helped me a lot.
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.
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.
Question. If I use a capacitor with less capacitance will the signal get more accurate?
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
@@TheMachineShopUK ok thanks