At the bottom you can see an adaptable box, this is where I split my meter tails after the isolation switch to 2x 16mm SWA cables. In the adaptable box is a 2x 5way Henley block which splits the live and neutral, there is also an earth block. A tip here is to make sure you get a big enough adaptable box, else you will waste hours like I did trying to bend and connect 16mm cable not easy.
This way you get a little extra room and slack to work. The 2 armoured cables then go off to my 2 CUs via a couple more adaptable boxes. This is my main CU which will control the cellar, ground floor, central heating and garden. The black box on the right is again another adaptable box, with SWA armoured cable you can't just stick it in to a plastic box like a consumer unit, instead you have to use a metal box so you don't crack what ever it is you are connecting it to. SWA is connected using a gland which is a bit like a hose pipe connector, it tightens on to the cable and allows you to connect the cable to something in this case the adaptable box.
This then goes to the main switch on the CU which is spilt out to 2 RCDs which are the large modules you can see and they further split out to MCBs, which are the smaller modules you can see. Evidently this doesn't look so neat at the moment and this is because it is still in a temporary layout whilst we test the connections throughout the house and whilst I get the distribution boards properly laid out. As an example of how much I have going to this board, the mass of cables in the bottom right are the majority of the cables just for the cellar and ground floor.
A tip here is make sure you mark your cables at both ends, else the connection process will become a nightmare! There are a few cables which you might be able to see coming out of the MCBs and going down to the distribution board. These are my functional circuits such as ground floor lights, kitchen sockets, boiler, cooker, etc. The distribution board is a little sparse and very messy at the moment, at the top you can see the earth commoned together.
Netduino Home Automation Projects
Below this is some 60A choc block which is currently connecting the kitchen sockets up. In the top right behind the mass of wires is the ground floor lights. The white bar is some cable management trunking which will be present throughout once I finish. Finally the 2 MCBs at the bottom right are just being used temporarily to connect the ground floor sockets up. This is by no way adhering to any electrical standards currently and is only in a format that should be used temporarily for testing. Once finished I will have a rail that will distribute earth and neutral, the live will go to the supply side for each relay and each relay will have a live feed coming from the supply from the corresponding MCB and daisy chained between the relays.
It is important to physically isolate mains and low voltage, so all mains will run down the right hand side of the enclosure and the low voltage control signal will run down the left and no switching will leave the enclosure. This is really important because if anything went wrong you could end up with mains running through what you think is low voltage control gear.
To enable this I will be using a netduino housed in the enclosure with a control board that will switch the relays using 24v. The netduino will be controlled wirelessly using a gainspan module and will be in a plastic box to physically isolate it. You could also use IR as an alternative, but the idea is to keep everything contained within the enclosure.
I have been working on my database architecture quite intensively and have chosen a layered approach. I keep my models and enums separate so I can use them throughout all layers. I then have a BusinessLogicLayer which contain all my application logic and I working on implementing workflows here.
Finally I am working on a service layer which will provide a point where all my applications can interface with my database. My next task is to finalise my control boards for switching my relays. I have some ULN which allow 24v to be controlled directly by a netduino. Once this is in place I will be working on some netduino code to control these boards. Stay tuned But to do so you have to change the token inside the code with your ubidots account token key.
Now if you click on the Devices tab you will see that a new device is created but still your program will stop abruptly. Since the uploading sensor variables like air quality, light level and temperature is created automatically when you upload a value to this variables. But the control variable "relay1button" for which we are requesting Ubidots to receive it's last value is not present so you have to manually create it. Now to visualize the sensor data and the button for our control variable we have to create widgets inside our Dashboard in your Ubidots account.
After completing all the widgets in your Dashboard always click on the control variables widgets so that they can have some default value which you can read using Netduino. Let's write a code to control our on-board led using the relay1button widget we created on our Ubidot's Dashboard! Now the main part where the LED Control takes place based on Ubidots "relay1button" widget is inside the main function in class Program.
Smart Home Using Netduino
Outside the continous while loop we first intialize the led pin to low or we turn it off. Then inside the while loop you check continuously after every milliseconds for the last value of the "relay1button" variable which can be changed by clicking on it's widget present in Ubidots Website Dashboard or it's Smartphone application.
When you click the "relay1button" widget you either send 1 i. You can add as many Relays as you want but since this is a prototype i am using a single relay! Now let's change this code to control a actual LED Bulb using relay. It's very easy just add a relay to a digital pin i. First intialize the pin to which relay1 is connected and then let it be initially turned off because we will control it via the Ubidots IoT platform Now inside the while true loop instead of controlling the on-board led we will be controlling the relay pin.
Now you should connect the relay to digital pin D2 and hear a click sound whenever you turn it ON using the Ubidots website or App. Connect anything you want to control to this relay and voila your home automation project is ready. It's upto you what you want control! References you require for the analog read functionality on Netduino I used below Arduino code as reference to make C code for Netduino!
All the Grove sensors and modules we connected works fine when provided power supply of 3.
Search My Projects
The sensor seems to work fine when provided 5V via Grove base shield but not at 3. I am facing this problem i don't know the exact reason since the sensor working voltage is specified as 3. As digital pins of Netduino are 5V tolerant i can keep the Grove base shield voltage switch towards 5V side but the problem lies with Analog pins which are not 5V tolerant and hence can get damaged so i was successful in interfacing the sensor to Netduino but right now will not incorporate it in the final demo.
Dashboard Link Shareable link.
- Marine Combustion Practice.
- Netduino Home Automation Projects!
- From Clinic to Classroom: Medical Ethics and Moral Education.
- Kippers Snowy Day.
- A Review of “Netduino Home Automation Projects”?
First to make sure to have a 3. Make the code more efficient like using timer function to call for reading the sensors and uploading it at periodical intervals, etc. Hey guys i tried my best to make you understand how i made my smart home prototype and i hope you understood everything what i have presented here. There was so much i want to explain but it seems this page will not end. It was my first time working with Netduino and with Visual Studio; faced a lot of problems but at last the project was completed and i am happy with the result.
Online PDF Netduino Home Automation Projects
Log in Sign up. Monitor your room temperature, humidity, light intensity and air quality from smartphone Read up about this project on. Smart Home Using Netduino. Amol Disale. Intermediate Full instructions provided 2 days 1, Things used in this project. Introduction:- Home automation makes true the idea of the interconnected world at the touch of your fingertips. Netduino3 Features:.
- The David Story: A Translation with Commentary of 1 and 2 Samuel;
- BE THE FIRST TO KNOW.
- Netduino Home Automation Projects - eBook - tyruvyvizo.cf.
Relay Connection with Netduino board. Final Connections with Netduino. Blink C. Blinking the onboard led on Netduino board. Threading ; using Microsoft. Hardware ; using SecretLabs. Write false ; Thread. Write true ; Thread. Ubidots Uploading and Receiving Program C. Program to receive the data using http get request and also uploading the data to ubidots using http post request.
GetBytes method using System. Print "Ready to Run! Run ; while app.
Run ; Thread. Next ; app. Print "" ; Debug. Print "Initializing the networks Print "Getting all the network interfaces. Ethernet : Debug. Wireless : Debug. Print "Found Unknown : Debug. GetBytes payload ; request. Length ; request. GetRequestStream ; dataStream. Write byteArray , 0 , byteArray. Length ; dataStream. Create requestUrl ; request. Create url ; request. Any is 0. Print "No IP Address" ; if net.
Print "Sleep while obtaining an IP" ; Thread. Print "Failed to get an IP Address in the alotted time. PhysicalAddress ; Debug. ToString ; Debug. Relay Control using Netduino and Ubidots C. Controlling a relay connected to a digital pin of Netduino via Ubidots website or App. Reading the analog sensor connected via the Grove base shield i. AnalogInput Pins. Read ; Debug. Print "Air is Fresh!!