I am quite a noob with the arduino still but I am wondering if it is possible to press a button on the arduino and receive 40v AC current.
If it is, could someone explain the schematics and any extra components I need
Thank you for your patients with me :smiley-lol:
Try a solid state relay switching on a 40 volt mains transformer.
It's not really clear what you mean by "receive 40v AC current". Do you mean powered by 40 volts AC? Or detect it?
Either way, you would need the components needed to convert it to 5 volts DC. This would likely entail a transformer, a rectifier, a filter, and then a voltage regulator. Here's a schematic I found by googling AC to 5 volt DC:
It's not quite clear if the Arduino needs to read a 40V AC or to create a 40V AC signal.
For reading 40V AC, you can rectify the AC signal (4 diodes and an electrolitic capacitor) followed by a voltage divider (https://learn.sparkfun.com/tutorials/voltage-dividers/all).
The rectifier/capacitor will create a DC voltage of roughly 56 Volt from the 40V AC and the voltage divider needs to be calculated in such a way that it reduces the DC voltage to 5V. E.g. 10kOhm from 56V to Arduino pin, 1kOhm from Arduino pin to ground.
For generating 40V AC, you will need to provide a little be more detail and it will not my area of knowledge. With the little info that you gave, if tou have a 40V AC signal available, you can switch it on/off with a relay.
I see that Chris did beat me to it. Not sure if th LM7805 is needed.
And Railroader as well.
I would like the end result to be 40v AC.. sorry for the confusion. I will try a relay system and try to figure it out. Thank you!
In that case, you need to specify the frequency, and if a square wave is sufficient, or do you need a sinusoidal output. The latter will be more difficult to put together.
What is the application?
What do you need the 40Vac for?
We may be able to help you with an alternative solution.