MySQL for the Internet of Things

(Steven Felgate) #1
ChApTEr 2 ■ hArdwArE for IoT SoluTIonS

Notice the number of boards available. Be sure to choose the one that matches your board. If you’re
using a clone board, check the manufacturer’s site for the recommended setting to use. If you choose the
wrong board, you typically get an error during upload, but it may not be obvious that you’ve chosen the
wrong board. Because I have so many different boards, I’ve made it a habit to choose the board each time
I launch the IDE.
The next thing you need to do is choose the serial port to which the Arduino board is connected. To
connect to the board, use the Tools ➤ Port menu option. Figure 2-15 shows an example on a Mac. In this
case, no serial ports are listed. This can happen if you haven’t plugged your Arduino into the computer’s USB
ports (or hub), if you had it plugged in but disconnected it at some point, or if you haven’t loaded the drivers
for the Arduino (Windows). Typically, this can be remedied by simply unplugging the Arduino and plugging
it back in and waiting until the computer recognizes the port.


Figure 2-14. Choosing the Arduino board

Free download pdf