Notifications
Clear all

Ethernet Shield

3 Posts
3 Users
0 Likes
1,072 Views
(@markasread)
Member
Joined: 3 years ago
Posts: 12
Topic starter  

Hi all,

I'm working on a new version of a project I started earlier this year, it's a very simple setup where a trigger activates a relay for a set number of seconds activating a pump to drain a well.

No I want to keep an eye on it an want to keep track of how many times it gets triggered. (And maybe add a little math to it so I can see how much water has been pumped.)

So I purchased an Ethernet shield for my Arduino Uno, I've been reading a lot of tutorials on how to connect it to my network and how to the SD card for logging. Now most all of these tutorials use a sensor, but I want to log button presses.

So now I turn to you to ask for some help, does anybody here have any experience with it and is willing to help me or point me in the right direction?

Found this really cool script, which I will attempt to modify to my needs, but I might be a little over my head...

https://werner.rothschopf.net/microcontroller/202108_arduino_webserver_ntp_sd_en.htm

Any help is very much appreciated.

kind regards,

MarkAsRead

 

 

This topic was modified 3 years ago by MarkAsRead

   
Quote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1121
 
Posted by: @markasread

So now I turn to you to ask for some help, does anybody here have any experience with it and is willing to help me or point me in the right direction?

 

Posted by: @markasread

I might be a little over my head..

Probably, but then keep you head above water by taking small steps at a time.  Look at what you want to achieve and work on understanding small bits at a time.  The whole shebang can come further down the line.

For example, learn how to connect buttons and to act upon button presses.  So to start with wire up a button and an LED and write code to switch on the led when you press a button.  That will take you into finding out about debouching buttons presses.

Perhaps then move on the learn how to make a relay switch an LED on and off, first with with pure code and then with a button press that initiates the code to make the relay work.

Then learn how to write some text to an SD card, move on the learn how to capture text from an input prompt and save it to the SD card.

Soon you will have code to press a button to do something and code to write something to an SD card.  And then you will probably be able to see how you could record a button press event  to the SD card. (if thats what you want to do).

Anyway I'm sure you get the gist of this advice, small manageable steps, and don't attempt to run before your can walk.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2523
 
Posted by: @byron
Posted by: @markasread

So now I turn to you to ask for some help, does anybody here have any experience with it and is willing to help me or point me in the right direction?

Posted by: @markasread

I might be a little over my head..

Probably, but then keep you head above water by taking small steps at a time.  Look at what you want to achieve and work on understanding small bits at a time.  The whole shebang can come further down the line.

For example, learn how to connect buttons and to act upon button presses.  So to start with wire up a button and an LED and write code to switch on the led when you press a button.  That will take you into finding out about debouching buttons presses.

Perhaps then move on the learn how to make a relay switch an LED on and off, first with with pure code and then with a button press that initiates the code to make the relay work.

Then learn how to write some text to an SD card, move on the learn how to capture text from an input prompt and save it to the SD card.

Soon you will have code to press a button to do something and code to write something to an SD card.  And then you will probably be able to see how you could record a button press event  to the SD card. (if thats what you want to do).

Anyway I'm sure you get the gist of this advice, small manageable steps, and don't attempt to run before your can walk.

Good advice from byron; and leave the ethernet part until last 🙂

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote