I would like to make a program that sends signals on an app (made with app inventor), I would like it to be able to change the parameters (example: I would like a fan to turn on when the temperature is greater than 30 °). How can I do it?
Welcome! Show us a block diagram and what progress you have made so far, and post your code per forum rules. I am surprised you have not found this in your research. We will help but we are not a free design service although there is a section here you can pay to have it done for you.
Could you show me some program lines on this? (increases or decreases the temperature)
Hi David and welcome to the arduino-forum.
well this is by far a too unprecise description of what you want to do.
There are two basic ways to proceed in your project:
-
Asking for advice on what hardware-components to use
This means you should describe your planned project in detail
control/switching things from a smartphone-app
just inside of your greenhouse or from your local WLAN or worldwide?
what in addition to measuring a temperature and switching on/off a fan do you want to have? -
specifying the hardware
for way 2:
There are quite a lot of things
you
have to specify
what microcontroller do you want to use?
what temperature-sensor do you want to use?
what wireless protocol do you want to use?
You can have a lot of fun learning all these things but it is not done within 2 or 3 hours if you start from not knowing anything about electronics and not knowing anything about programming.
So you have to make a basic decision:
going way 1 or going way 2
best regards Stefan
you've described two features (1) fan controller and (2) wifi interface. suggest you work on each individually before trying to combine them
the fan controller obviously needs a temperature sensor and an output that turns the fan on/off. that code is pretty basic. monitor the temperature sensor and turn the fan on when temperature exceeds some set-point and turned when below the set-point - some margin
do a google search
i think there are more options for wifi communication, you need to be more specific. and esp32 supports wifi
david56, You have the tool to answer most of your questions under your fingers and on the screen, it is called google. You are not the only one that wants/has done this. If you search maybe in an evening you can find what you want to build, if not you will find the temperature control information and wifi information. In the process you will find controllers that run from a few dollars to a bunch of them. StefanL38 and gcjr have given you great advice, give it a try and let us know how it works out.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.