In order to complete this tutorial you need to create your free account at HomeAutomationServer.com.
HomeAutomationServer.com has been discounted, please use the new version of this project: Control ESP8266 GPIOs from Anywhere in the World.
What’s this all about? “We provide a free platform that allow you to control your home from anywhere in the world.”
After you create your account you can find a complete tutorial tutorial inside, but I’ve decided to post here a sneak peak!
This tutorial example is something really easy that anyone can follow trough. This was the best example I could create to explain how this works. After you test this example you can create your own project with more advanced features. Just an idea, you can replace those LED’s for relays. And instead of controlling a simple LED you can control a 220V Lamp or your garage door. I’m currently working on those more advanced tutorials.
Parts Required
- Arduino Board
- Ethernet Shield W5100
- 5x LEDs
- 1x Breadboard
- 5x 220 OHM Resistors
- 2x Servos
- USB Webcam
- Pan and tilt
- Jumper Wires
- Wall Charger is optional
- Ethernet Cable
Schematics – Example
How to Insert your Webcam
Watch the video below to learn how to insert your webcam.
Click here to create your free account at Spreecast.com
I’ve decided to hot glue my servos like that, this was a quick setup that I’ve made. But I encourage to get one pan and tilt and make something better. Keep in mind that you’ll need to change the servos positions in my code (variables: “bServo” and “tServo”).
Upload the Arduino Code below
Click here to see this Arduino code above on Github.com
(Don’t forget to change your unique “user_key” that we provide inside HomeAutomationServer.com)
Demonstration of this Example
Read: Control ESP32 and ESP8266 GPIOs from Anywhere in the World
hello,nice project can try.
i have do all the steps above but still doesn’t work…
how to check if Ethernet Shield W5100 connect to website or not?
Hey John,
Thanks for testing my project!
What’s your serial monitor printing when you’re running my project?
I need user_key does not appear
Hi eren,
If you login again it will appear or simply delete your cookies and chace from the browser.
hi i loved ur both web based projects i made it but i m stuck with ur this project my serial monitor is showing the client is not available what to do in ur code i changed the ip to my ip just this much changing i made but it is not working what to do now please tell me i would love ur help on it thank u
You can’t change the ip from my code.
Please only change the unique key.
Thant’s the only thing you need to modify with my code
connecting…
connected
the client is not available
stop connection
the above are my serial monitor talks well please tell me is homeautomation website is not communicating coz where it has to get its location and data it gets it out with stop connection what to do please tell me
Hi lovligirl,
I’m using constantly my project for a few weeks now and it works just fine.
What did you change to my code?
Just the Unique key?
Which Arduino and Ethernet shield are you using?
hi rui thanks to ur web but ur project is not working i have done every possible work but it is not even response on any activity and just no client on serial my all mates changed there concentration to other work thank u but please do something so that people like me don’t have to be in so much pain to get it ok ur replies are also so much late even examples of ether-net are working instead of this.
ok Mr rui i tried ur code tried tried treid alot then i put it in example format then i lessen whole theory and now it is working i removed a big portion of ur code thanks to u my net was not working so i wasn’t able to test it but the example of webclient is the basic pattern of mine thnks again to make such a good project
hye rui,
i got same problem with lovelygirl, connected.. the client is not available.
why? can u share with me and troubleshoot it. im still learning why it happen and share with u if i get the solution.
As I’ve said before, I’m not sure what is happening,
sometimes the client is not available, but after a few seconds it connects again.
I’m working on a new update for my http://HomeAutomationServer.com website.
I hope it fixes some of those bugs…
I made an account on spreecast and added the event name to my dashboard but it tells me to upgrade my account to view the spreecast
Any free alternatives??
Hi,
You’re right, only paid users can embedded unlisted spreecasts.
If you’re a free member, you have to set your spreecasts as public. (They recently changed that)
The webcam feature will be removed from home automation server soon…
But I’ll be adding much more features.
Thanks,
Rui
Hey Rui, Thanks for the reply
But i did make the free plan and when i added the event name, it tells me “The content creator must upgrade their account to make this spreecast available.”
Could you please look into the situation because i think spreecast changed their plans
Thanks, i would really appreciate it if you could help me out
Abhijeet
Hey Rui,
Please don’t remove the webcam feature , just try and find another way of doing it. Or tell people to set their spreecast as public cause i really love that feature.
And how do i find out about other feature you put in?
And where in the website can i donate cause i love what your doing.
Thanks
Abhijeet
Thanks for your feedback!
I’ll try to find a better alternative so I can keep the webcam feature,
You can donate and download my ebook here:
https://randomnerdtutorials.com/ebook
When will the compatibility with the raspberry pi come? We can do so much with that!
Thanks
Abhijeet
In a few weeks you’ll be able to use an API that I’m currently developing.
Basically you’ll be able to send POST and GET commands to send data or retrieve data from the HomeAutomationServer.
So It should work in any programming language (embedded device) that supports http requests.
Awesome, can’t wait!
I can’t wait for the raspberry pi compatibility because what makes this great is that you don’t need to have a computer always on to keep your dynamic address static, It works on dynamic addresses, which is great cause i wouldn’t like to keep the computer always on just to maintain a static ip
Thanks for your great effort
Abhijeet
PS: What kind of features will homeautomationserver provide with the raspberry, i hope there’s webcam streaming cause it can support cameras, and rf id tags would be awesome.
Or you can donate here: https://www.paypal.com/pt/cgi-bin/webscr?cmd=_flow&SESSION=i6riiA468nzTi15dw3G6KZhkm3lHfA5THHJ7cbX-zBxPrCLtvpitwNhooyi&dispatch=5885d80a13c0db1f8e263663d3faee8d66f31424b43e9a70645c907a6cbd8fb4
Thanks again! I’m working on some cool new features for Home Automation Server.
Great Projects!
I’m new to Arduino projects. I have an Adafruit cc3000 wifi shield and I want to use it in this project instead of the ethernet shield but I don’t know how to Change the code.
Please help me build the code. Thanks In advance.
on your Home Automation Server – Project Example, you used an Ethernet shield. I want to ask if I use a WiFi shield like Adafruit CC3000 WiFi shield instead of an Ethernet shield will it work? Thanks, Regards, Troy
It will work with the Adafruit CC3000 Wifi shield if you make some changes to my code.
Try to search for the difference between both boards. I don’t have the Adafruit board myself…
-Rui
Have your project working on my “Chicken Coop Door Controller” but would like a confirmation that action has completed, ie button on Home Automation website lights up etc…..