Chapter 5. Of Cars and Controllers
In this chapter, you are going to build a connected model car that can be controlled remotely. We will show you how this can be done by using the Photon as well as the Electron. We will demonstrate remote control of the model car using a computer keyboard as well as a Leap Motion (https://www.leapmotion.com/) controller.
We will begin with a discussion about the components to be used to build the model car, and how they should be connected and assembled together. We will use the local server setup from the Local Server Setup section in Chapter 3, P2P and Local Server, and plug in our code for controlling the car.
Towards the end of this chapter, we will explore an idea for hand-gesture control of the car using a Leap Motion controller.
This chapter covers the following topics:
Building the model car – hardware components
Building the model car – prerequisites
Putting it all together and controlling the car
Moving the car with gestures
Programming the car with the...