Chapter 4. Sensors and input
This chapter covers
- The role sensors play in projects as transducers, converting physical phenomena to electrical signals
- How microcontrollers use analog-to-digital conversion (ADC) to interpret incoming analog signals
- Building voltage divider circuits to read resistive sensors like photoresistors
- Using Johnny-Five’s generic Sensor class to read sensor data and listen for data and changes
- Taking advantage of Johnny-Five’s component-specific Thermometer and Button classes
- Managing default digital logic levels using pull-down resistors
To build nifty gadgets, whether they’re temperature-controlled automatic fans or more interesting inventions, you’ve got to be able to gather information and input from the real, ...
Get JavaScript on Things 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.