H!
I have an electromagnet running on 12V, but I want to be able to control the voltage input with arudino UNO. What is the best/easiest way to do so?
To control the voltage I want to use microphone output.
Use a logic level MOSFET to switch the load on and off. With a PWM signal the power can be controlled to some degree. See low side switch.
A microphone has a very low output voltage. Easiest solution is an audio amplifier with output for a loudspeaker.
The UNO doesn't have a microphone output. Is that a translation error?
Hi!
I have an electromagnet running on 12V, but I want to be able to control the voltage input with Arduino UNO with a code shown in the picture. I wrote the code to control the 5 V output from Arduino, but I want to do the same for the 12V power source.
What is the best/easiest way to do so and what power source would work well for this task?
Notes:
I am very new to Arduino so provide a detailed answer, please.
A low-budget solution would be great.
"senserval" is a Value I want to use as a controlling value of Voltage from 0V to 12V. It is calculated from my audio Input via AUX.
Please use code tags, </>, when posting code.
Post schematics.
Using a logic level N channel MOSFET switching the low side is the common way. Remember the kicj back diode across the inductor.
@qlqlo, do not cross-post. Threads merged.
I am sorry. I just felt that the previous post did not express my problem very well so I did not receive an appropriate answer so I asked one more time to provide more details. Unfortunately, I did not find a way to delete my old question.
Best Regards
I don't think schematics are necessary to answer my question.
I will look into MOSFETs, thanks. (y)
That is because there is no need to delete questions. Just provide further information as necessary.
It is frequently pointed out here that schematics are the "language of electronics".
Hi, @qlqlo
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
This will help with advice on how to present your code and problems.
A good posting of your code and a circuit diagram, will help immensely.
A hand drawn image will be fine, make sure it contains your power supplies, component names and pin labels.
Thanks.. Tom...
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.