Search found 40 matches

by keiranwyllie
Sat Aug 20, 2016 11:31 am
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

Sorry, I meant this part of the sketch was html /* store the HTML in program memory using the P macro */ P(message) = "<html><head><title>16 Channel Test</title>" "<body style='background-color:powderblue;'>" "<form action='/control' method='POST'>" "<h1 style='color:red;font-family:comic sans ms;fo...
by keiranwyllie
Sat Aug 20, 2016 7:45 am
Forum: EtherTen
Topic: EtherTen and Relay 8 Shields
Replies: 8
Views: 4919

Re: EtherTen and Relay 8 Shields

Jumped the gun a little here. It seems the code I've used above turns everything off instead of just the first channel.

Any suggestions?
by keiranwyllie
Sat Aug 20, 2016 7:44 am
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

Only using html at the moment. The code is over here: viewtopic.php?f=4&t=6648

I've just used the sketch example for the 8 channel relay shield.
by keiranwyllie
Fri Aug 19, 2016 11:13 pm
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

Well I'm open to options on POST or GET. Still learning when it comes to web page development.

It's a LAMP server because I plan to host other pages etc on it too.
by keiranwyllie
Thu Aug 18, 2016 10:54 am
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

A few actually lol
by keiranwyllie
Thu Aug 18, 2016 10:42 am
Forum: EtherTen
Topic: EtherTen and Relay 8 Shields
Replies: 8
Views: 4919

Re: EtherTen and Relay 8 Shields

Well I've had a win with the following code: if (shield1BankA==1 && digitalRead(buttonPin2)==HIGH) { sendRawValueToLatch1(0); Serial.println("Deactivating relay 1"); delay(2000); } else if (digitalRead(buttonPin2)==HIGH) { sendRawValueToLatch1(1); Serial.println("Activating relay 1"); delay(1000); }...
by keiranwyllie
Thu Aug 18, 2016 10:05 am
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

Thanks Dave, not really what I'm after though. I already have a Pi LAMP server on my network that I want to host the main home automation webpages. I have an EtherTen (with a relay 8 shield) controlling relays in another part of the house that is connected to my network (POE). My aim is to serve up ...
by keiranwyllie
Thu Aug 18, 2016 8:28 am
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Re: Pi Webserver to Arduino

I'm using an EtherTen that's just connected to the same network as my pi... If that's what you mean.
by keiranwyllie
Tue Aug 16, 2016 10:39 pm
Forum: Random Chit-Chat
Topic: Pi Webserver to Arduino
Replies: 22
Views: 10393

Pi Webserver to Arduino

Hi everyone, Is it possible to control the arduino web content from another webserver? I think it should be but am struggling to find anything decent on the interwebs that provides any insight. I want to be able to send control commands from a Raspberry Pi web server to my arduino. I'm expecting som...
by keiranwyllie
Tue Aug 16, 2016 9:41 am
Forum: EtherTen
Topic: EtherTen and Relay 8 Shields
Replies: 8
Views: 4919

EtherTen and Relay 8 Shields

Hi all, Firstly, I'm pretty new to the world of arduino and programming but I'm working hard to learn. I've already built one EtherTen/Relay8 combo to replace the switches on our pool fountains/spa/lights and works like a charm over a modified web page. I'm now trying to run an EtherTen with 2 relay...