O'Reilly logo

Raspberry Pi Home Automation with Arduino by Andrew K. Dennis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing our thermostat and fan

We have our hardware setup and the code ready. Now we can test the thermostat out and see it in action. First, we will attach the fan and then run the application generated by our previous Makefile.

Attaching the fan

Make sure that your Raspberry Pi is powered down and that the fan is not plugged into the wall. Using a wire stripper and cutters, cut one side of the cable connecting the plug to the fan body. Take the end of the cable attached to the plug and attach it to the COM point on the relay. Use a screwdriver to ensure that it is fastened correctly. Now, take the other portion of the cut cable that is attached to the fan body and attach this to the NO point. Once again, use a screwdriver to ensure it is fastened ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required