Troubleshooting the usual issues
There may be issues with all the recipes in this chapter. In this last section of the chapter, we are going to look at the most common issues that can arise with hardware devices and also how to solve them.
The relay doesn't change its state when the sketch is loaded to the board
If you correctly loaded the sketch, this is most probably a connection problem between the relay and the board, so check the connections first.
Then, also check that the relay is working correctly. To do that, disconnect the signal pin from the Galileo board, and connect it directly to the 5V pin on the Galileo board. Use a breadboard if needed. If the relay doesn't turn on, it means that you have a defective relay that needs to be changed.
The DC motor doesn't turn when the sketch is loaded to the board
First, check all the connections, and check that you correctly defined the pins to which the motor shield is connected. Check the manufacturer's documentation, if necessary.
Then, also...