{"id":2697,"date":"2023-07-22T17:10:34","date_gmt":"2023-07-22T14:10:34","guid":{"rendered":"https:\/\/racov.ro\/?p=2697"},"modified":"2023-07-22T17:14:57","modified_gmt":"2023-07-22T14:14:57","slug":"monitoring-and-control-over-the-web-with-2-arduino-and-ethernet-shield-no-computer-needed","status":"publish","type":"post","link":"https:\/\/racov.ro\/index.php\/2023\/07\/22\/monitoring-and-control-over-the-web-with-2-arduino-and-ethernet-shield-no-computer-needed\/","title":{"rendered":"Monitoring and control over the web with 2 Arduino and Ethernet Shield, no computer needed"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/pI-h_5Olp2U?rel=0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p class=\"hckui__typography__bodyL\">This project came from the necessity of monitoring a diesel generator, installed in a remote site, from a data center.<br \/>\nIt is a rather unique project, because people are using the smart phone or the computer to talk to Arduino, but I don\u2019t need another screen, that\u2019s why I wanted to make two Arduino talk to each other over the local area network.<\/p>\n<p class=\"hckui__typography__bodyL\">So what this project does, it takes the input pins of an Arduino (named Server), and replicate their status to another Arduino (the Client), activating the same pins as output. The transmission media is the local area network and they work independently, without the need for a computer, though you can monitor the web-page generated by the Server, by typing in its IP address. Also, the page has to be refreshed manually or with the help of a browser plug-in.<br \/>\nI used the Arduino Nano and the ENC28J60 Ethernet Shield, making the whole assembly very compact. The code for both the server and the client is very simple and self-explanatory. You just have to change the IP address according to your network.<\/p>\n<p class=\"hckui__typography__bodyL\">Right now I only transfer 6 dry contacts in the digital status of A0 to A5 pins, but this can be extended with D3 to D9. The rest of the pins are taken. With more work, it is possible to transfer also analog values to PWM outputs, but not in this project.<\/p>\n<p>The code can be found <strong><span style=\"text-decoration: underline;\"><span style=\"color: #000080; text-decoration: underline;\"><a style=\"color: #000080; text-decoration: underline;\" href=\"https:\/\/www.hackster.io\/viorelracoviteanu\/monitoring-and-control-over-the-web-with-2-arduino-and-ether-fb273e?utm_campaign=published_project&amp;utm_medium=email&amp;utm_source=hackster\" target=\"_blank\" rel=\"noopener\">here<\/a><\/span><\/span><\/strong><\/p>\n<p>I&#8217;ll be posting soon the final integration of the project, from the Generator to the Alarm Panel. I&#8217;m still waiting for some components&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff This project came from the necessity of monitoring a diesel generator, installed in a remote site, from a data<\/p>\n","protected":false},"author":1,"featured_media":2698,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-2697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/racov.ro\/wp-content\/uploads\/2023\/07\/feat-blog.jpg?fit=700%2C350&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p75FkB-Hv","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/posts\/2697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/comments?post=2697"}],"version-history":[{"count":3,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/posts\/2697\/revisions"}],"predecessor-version":[{"id":2702,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/posts\/2697\/revisions\/2702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/media\/2698"}],"wp:attachment":[{"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/media?parent=2697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/categories?post=2697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/racov.ro\/index.php\/wp-json\/wp\/v2\/tags?post=2697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}