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?
@rajkumaraj68482 жыл бұрын
What is the resistance and capacitance value used here?
@ivanpopovic94032 жыл бұрын
Did u find out what values were used?
@sandorkurilla51462 жыл бұрын
@@ivanpopovic9403 1KOhm and 100uF
@CuriousCaine Жыл бұрын
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.
@ivanpopovic94032 жыл бұрын
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!
@TheMachineShopUK2 жыл бұрын
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
@ivanpopovic94032 жыл бұрын
@@TheMachineShopUK Thank you for reply, your video really helped me a lot.
@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 Жыл бұрын
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.
@milankruskovic742 жыл бұрын
Excellent explanation, thanks!
@musicproductionlogs3682 жыл бұрын
Question. If I use a capacitor with less capacitance will the signal get more accurate?
@TheMachineShopUK2 жыл бұрын
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