I am a complete newbie and would like to know how to control a arduino in real time through code...
do you want someone to write the code for you or do you want to learn how to do this?
You need an Arduino/Arduino compatible board with internet connection. Is WiFi an option for you? Even a weak signal where the Arduino will be is good enough. I would recommend a Wemos D1 mini. If the WiFi signal is very weak, a Wemos D1 mini Pro would be better because you can attach an external antenna to boost the signal.
When you say "controlled by a website", what do you mean? A third party website? Your own website on a web server? Making the Arduino act as a web server?
You might want to consider an application called Blynk.
Is wemos D1 mini programmed by Arduino IDE?
When i say controlled by a website i mean that i am the website host and there would be a button on the website which upon click would give the arduino a command to run the pump...
And about Blynk i would like to program from trash...without any 3rd party interference
I want to learn...
OK - then it's a first project that is too complex for a "complete newbie" as you described yourself.
You should build up skills first in C++, Arduino, simple electronics (controlling a solenoid might be tricky, read about free-wheel diode, ...) and then you have the whole internet and HTTP stuff to understand (possibly web sockets or Ajax....)
it's a long but very rewarding road
Yes. You need to install the ESP8266 boards package.
I assume you mean the website developer/maintainer. The "host" is a machine! Ok, so you have some relevant experience for this project.
Where is the website hosted and where will the Arduino be located? Describe how the two are connected (LANs, WANs, routers etc).
Yes I have some experience in front-end and learning back-end. I can build a website but i have no idea on how to connect the website to the arduino and command the arduino from there...
For demonstration purpose i will keep the arduino in 0.5m radius...
I consider connecting the arduino and the laptop by means of wifi or bluetooth... any opinion?
I have some knowledge of C programming and know some front end development and am currently learning about back-end development...
very thankful for the motivation...
Radius from what? The pump, I guess. That's ok. But what I was asking is will the Arduino be in area with WiFi connection, and if so, how does that WiFi connect to internet? A router perhaps.
The Arduino must be connected to the laptop with USB cable for uploading the code. After that, it can be disconnected from the laptop and can connect to WiFi to connect to the web server. The laptop will not be needed again unless to re-upload corrected code.
The Arduino can act as Webserver
The Webserver (on the Arduino) can host a webpage with buttons.
You can access the Webserver (on the Arduino) within your LAN with your PC.
The Webserver (on the Arduino) can change output states based on the entries on the webpage.
As a Start - see the example
Ethernet | Webserver
if you have that working - come back to us with more detailed questions.
Look for a web solution to turn an LED on andoff.
When you understand that, put a relay driver in place of the LED !
I got some idea...can i upload a file from my computer using file commands to the arduino cloud and then upload the same to my arduino via wifi?
Sorry, I have no idea, I have not used Arduino cloud. Perhaps others can advise.
How will your web site know there is water that can be pumped?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.