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

Motor shield and motors

For this project, we have chosen the official Arduino Motor Shield. This is a device we can connect to our Raspberry Pi to Arduino shield and then use it to attach and drive DC motors. The specifications for the shield can be found on the following Arduino website:

http://arduino.cc/en/Main/ArduinoMotorShieldR3

The shield has an operating voltage of 5 V to 12 V and for our project we will connect a 9 V battery to the screw terminal power connectors. This will provide enough power to drive the single 9 V motor that we are going to connect to it.

Note

For testing purposes, we will use a 9 V battery, however if you wish to install the motor shield based device, you may wish to consider attaching it to a wall wart or wiring it ...

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