Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.16/5 (4 votes)
See more:
Hello kindly assist

i am trying to develop a watering system using arduino how do i create a GUI in C# that will capture data from the arduion such as water levels from the soil moistur and also set a timer please assist with a simple code im using Visual studio 2017

What I have tried:

i have tried using the previous code posted in this forum but it wont complie so many errors i have failed to fix
Patrice T 2-May-20 19:14pm    
Show code and list of errors.
cardinalray101 3-May-20 9:55am    
Severity Code Description Project File Line Suppression State
Error Couldn't process file Properties\MainForm.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
Patrice T 3-May-20 12:38pm    
Use Improve question to update your question.
So that everyone can pay attention to this information.
Richard Deeming 7-May-20 13:22pm    
You've downloaded a file from the internet, and you need to unblock it.

You can do that on an individual file by finding it in Windows Explorer, right clicking on it, selecting "Properties", ticking the "unblock" checkbox, and then clicking "OK".

Unfortunately, Windows Explorer won't let you do that for multiple files at the same time. And if you've downloaded a zip file and extracted it without unblocking it, all of the extracted files will be blocked.

Fortunately, Powershell has a solution. Open the project folder in Windows Explorer, and click on "File" ⇒ "Open Windows Powershell" to open a Powershell window in that folder. Then enter:
dir -r | unblock-file
Richard MacCutchan 3-May-20 4:50am    
You really cannot expect anyone to write such a program for you. There are many examples of simple Windows forms applications that you can find here and at other internet sites.

1 solution

There are many sites available for the Automatic Watering System using Arduino controlled from PC or using android Mobile and coded in C#. Have you checked this, which is available on Codeproject:
Computer Controlled Watering System with C# or VB.NET[^]
You can start searching on websites that are most profound in these kinds of projects written by many authors. Start searching with keywords, PC controlled automatic watering system using Arduino and C#.
You can also start from these websites which has great information.
Automatic Plant Watering System | Full Circuit With Source Code[^]
Automatic Irrigation System Using Arduino : 5 Steps - Instructables[^]
Automatic Plant Watering System Using Arduino[^]

If you are facing some problem fixing errors in the code that you are working on, updating your question with the code you are working on will help you.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900