Login Register


DIY Home automation project (1/3) filter_list
Author
Message
DIY Home automation project (1/3) #1
Hey there, haven't posted anything in a good while (couple of years), so I guess this is at least something.
I have decided to do a home automation project, simply because it seems cool, and I don't trust the big IoT companies with security (Mirai botnet).
This project would also let me learn more about electronics, programming and some networking.

I decided to use a NodeMCU board, which is a development board for the ESP8266 WiFi board, as it can be programmed through the Arduino IDE
and can be controlled over WiFi.
Spoiler:
[Image: iewcee.png]


At the time of starting this project, I had absolutely no knowledge of the Arduino/ESP8266 libraries available, so I had do do some research.
The software on the NodeMCU listens on port 1901 UDP for certain commands identifying which GPIO pin to set HIGH, and which to set LOW to either turn on or off the LED/Relay.
To test the code before hooking this thing up to relays, I connected a couple of LED's and sent commands as a broadcast on my local network.
I will be putting in some security mechanisms later on, not sure which ones. Been thinking about restraining it to receive commands only from devices in the whitelist (MAC addresses).
I also have a couple of buffer overflows which need to be taken care of before I hook this thing up.
After some struggle I got the commands to arrive at the NodeMCU, and turn on/off the LED's.
Spoiler:
[Image: agnbpx.png]

The resistor on the image is from trying to get a temperature sensor working, but that is a separate expansion I might be doing later on.

In the process of trying to get things to work I accidentally managed to short Voltage In to ground, ending in a nice smell of a burned circuit coming from my keyboard pass-through USB port.

In the future I am also planning on either using lasers and photoresistors, or IR LEDs to count people in different rooms and turn light on/off accordingly.
Next stage is to create the mobile applications to control the NodeMCU, for both Android and IOS. Again, I have no knowledge in that field, so it will be rather interesting.
I would love to get some tips from you guys, as you are most likely way better at this than me.

[+] 1 user Likes TechSaavy's post
Reply

RE: DIY Home automation project (1/3) #2
Looks very interesting, tag me if you post part 2 and 3. I wanted to create a home automation project as well. I wanted to create it with a raspberry pi though.

You know what would be nice as well? A NFC future, that could connect with your phone. I wouldn't use a lock that is connected to the device though. They have so called "smart locks" which are even easier to "pick", hack, than you can pick a normal physical lock.

Very interesting to read.
~~ Might be back? ~~

Reply

RE: DIY Home automation project (1/3) #3
Interesting, tell me too if you post the other parts.

Good read, pretty much a nice description of the project.


(11-02-2018, 02:51 AM)Skullmeat Wrote: Ok, there no real practical reason for doing this, but that's never stopped me.

Reply

RE: DIY Home automation project (1/3) #4
Please everyone be very very careful with this. Never, EVER, trust a computer or automation in general with anything that could cause any significant issues in your life.

As soon as your device connects to any other devices, you are susceptible to attack. Routers can get rooted, bluetooth devices can be spoofed and hacked into, hell I know ppeople who would be brave enough to find where you live, and hard-wire into your shit just to plant a device so they could control your stuff.

Be safe, and be smart.
Scientia potentia est

[Image: inkexplosion.jpg]

Reply







Users browsing this thread: