Hello...
I've uploaded a sketch of what I would like to successfully connect: 1) an Arduino controller, 2) a LM7805 regulator circuit, and 3) a MOSFET circuit to switch a 12 soleniod.
When the 24V input is received, the LM7805 outputs a 5v signal to the Arduino. The Arduino responds by sending an output signal which is fed into the MOSFET, which turns on the MOSFET, ultimately switching the 12V solenoid. If I connect the Arduino ground to the 12V supply ground and test just the MOSFET circuit, the solenoid switches as expected. However, if I intend to use the 5V LM7805 signal, I can no longer connect the Arduino to the 12V ground, correct? I must connect the Arduino ground to the 24V ground if I want the 5V signal, correct?
Is there a way to use the two power supplies together with the Arduino? I tried to omit the 12V supply by utilizing only the 24v supply. I tried this by using a LM317 circuit to get from 24v down to 12V. However, when I connected what I had measured (no load) to be 12V up to the MOSFET circuit, the voltage dropped from 12V down to 4V and would no longer fire the solenoid.
Any suggestions? I'm stuck using the 24v supply.
I've uploaded a sketch of what I would like to successfully connect: 1) an Arduino controller, 2) a LM7805 regulator circuit, and 3) a MOSFET circuit to switch a 12 soleniod.
When the 24V input is received, the LM7805 outputs a 5v signal to the Arduino. The Arduino responds by sending an output signal which is fed into the MOSFET, which turns on the MOSFET, ultimately switching the 12V solenoid. If I connect the Arduino ground to the 12V supply ground and test just the MOSFET circuit, the solenoid switches as expected. However, if I intend to use the 5V LM7805 signal, I can no longer connect the Arduino to the 12V ground, correct? I must connect the Arduino ground to the 24V ground if I want the 5V signal, correct?
Is there a way to use the two power supplies together with the Arduino? I tried to omit the 12V supply by utilizing only the 24v supply. I tried this by using a LM317 circuit to get from 24v down to 12V. However, when I connected what I had measured (no load) to be 12V up to the MOSFET circuit, the voltage dropped from 12V down to 4V and would no longer fire the solenoid.
Any suggestions? I'm stuck using the 24v supply.
Attachments
-
24.7 KB Views: 31