I’m new to Arduino and coding but like playing around with it. Me and my son (10) are growing plants inside and wanted to automate the watering and light wen it’s dark. At the supermarket here in Holland you get seeds to grow your own tomatoes and other things to get the kids involved with nature. Got the circuit sorted out via circuito.io but have no clue about the code. can anyone help me with the code? this is the link to the project: circuito.io
already saw those examples but I didn’t find the one that fits our project, looking for a couple of weeks now. As mentioned I’m learning something new but no coding skills jet.
what are the MOSFET for? what are the diodes for? how did you decide the resistor value?
I’m yet to actually complete an arduino project, so take everything I say with a grain of salt. But I’ve also done a fair bit of research and am in the middle of an electrical engineering degree so I have some suggestions for what the parts may be for and how to choose them.
A lot of projects draw more power, or use higher voltages, than one can safely route through an arduino board. Put another way, there are plenty of times when you don’t want to connect your power supply, board, and devices in series. What I’ve done in my project is to wire the power supply and microcontroller in parallel, and run data lines from my board to my devices. However, it’s possible to control higher current/voltage devices by using MOSFET relays. This instructables page might explain things more.
Lots of components are also sensitive to high voltage. Exposing them to voltages above their rating can damage or destroy them, so they’re often put behind resistors to protect them. My guess is that the resistor values are chosen such that, during normal operation, the resistor will drop the voltage and keep the sensitive components safe. I’m not sure how one would calculate that by hand, though.