Hardware Reference
In-Depth Information
5. In write mode, master sends 1 byte of information at a time, and slave
responds with ACKs. In read mode, master receives 1 of byte information
at a time and sends an ACK to the slave after each byte.
6. When communication has been completed, the master sends a stop bit.
SettingUptheHardware
To confirm that your first program works as expected, you can use the serial
monitor to print out temperature readings from an I 2 C temperature sensor to
your computer. Because this is a digital sensor, it prints the temperature in
degrees. Unlike the temperature sensors that you used in previous chapters,
you do not have to worry about converting an analog reading to an actual
temperature. How convenient! Now, wire a temperature senor to the Arduino
as shown in FigureĀ 8-4.
Figure 8-4: Temperature sensor
Search WWH ::




Custom Search