Arduino program and circuit design, help T - T

I got the first part but what do you mean by"don't connect to many things to the Uno 5V output"?

The relay is a mechanical device, so parts would have to move at 5 times a second and most cheap relays can't do that or won't last long.
A MOSFET has no moving parts and will last forever.

ohh alrighttt thank youuuu!!

When you supply an Uno with 12V it goes through a voltage regulator to provide the 5V output. If you draw to much current (have too many things connected) the regulator will get hot and may burn out.

ohhhh okiokkii i get ittt. But what next...?

Buy the parts connect them together and write the code

okiokkii. May I come back in this forum and ask guidance from u once I assemble it? I think i may encounter some problems on the way... like how do i connect the MOS FET to the arduino and the breadboard?

Also, taking into account what user horace said about using IDE serial monitor/press switchel to control the frequency, I aim to use DIP switches. Do I need to use diodes and resistors? I am really sorry and thank u in advance

Why not power the UNO directly from the USB cable, instead of going USB > 12V converter > UNO barrel jack > UNO on-board regulator?

Show the MOSFET module you will be using and we will see if it is OK
You can connect the DIP switches directly to the Uno pins the other end goes to GND.

Try this for making a schematic. No valve but you can use the motor symbol instead.

likee arduino - wire - pc?

wont it harm my pc if the whole thing blows up...?

alralrrr thank youuu, I'll come back once I've finished doing a schematic

Arduino - USB cable - plug-in USB power source. No pc involved.
It sounded like you were plugging the 12V boost cable into an AC powered USB power source anyway.

okiokkiii ^ v ^ thank youuu

Which MOSFET module?

If you had planned ahead and bought the 12V valve, you would only need one power supply for everything.

hellooo, sorry I had to eat and log off earlier. I found various MOSFET module, are there any specifications or would the first option sufficeee? :)) (IMAGE 1 AND 2 are one product, the same goes for 3 and 4)

Image 1:


Image 2:
Image 3:
Image 4:

i havent bought them yet, should I switch to 12 V valve? Where should i connect the power supply to? the arduino, relay, or valve...?

The first module is no good, it doesn't work with any Arduino or RPi
The second one is OK but you will need to solder a connector to it.
Do you know how to solder?

Up to you. Can you buy a 12V valve that meets your needs?

@whannabetralali_07 - before you spend, and probably waste, any money, why not work out the software?

Without buying a thing you can plan it in the simulator, this one works well

You can use LEDs and push buttons and things in place of what the real hardware might end up needing to be.

You are at the beginning level of several interconnected skills that you will need to accomplish your goal. We can do the learning for you, and no one is going to design and code this for you.

I suggest you take on a few, or even a few more than a few, basic Arduino projects until you know enough at least to be less dangerous than knowing little to nothing.

a7