CHAPTER 6

image

Simulating Sensors

Arduinos can be used to simulate sensors for Arduinos or other platforms that use sensors. Simulating sensors allows you to produce repeatable and known data that can be used to test and debug systems, as well as explore sensors that may not be available. The concepts in this chapter focus on the connection types of various sensors instead of the data sent. Although the data is purposely skewed, it is being sent via the same methods used by the actual sensors.To better demonstrate that Arduinos can directly simulate the various sensors, reader code for each type of interface is included with the examples; this code ...

Get Pro Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.