- Hands-On Robotics Programming with C++
- Dinesh Tavasalkar
- 67字
- 2021-06-24 15:30:32
Smart light – working with digital sensor
After writing our first C/C++ program for Raspberry Pi, we can now write a program that will take input from an LDR sensor and turn the LED on or off. For this project, you will need the following hardware components:
- 1 LDR sensor module
- 1 LED
- Raspberry Pi
- 5 female-to-female connecting wires
First, let's explore how the LDR sensor works.
推薦閱讀
- Java逍遙游記
- Extending Jenkins
- Learn TypeScript 3 by Building Web Applications
- 國際大學生程序設計競賽中山大學內(nèi)部選拔真題解(二)
- C++程序設計(第3版)
- Linux C/C++服務器開發(fā)實踐
- 深入淺出Java虛擬機:JVM原理與實戰(zhàn)
- Java EE框架整合開發(fā)入門到實戰(zhàn):Spring+Spring MVC+MyBatis(微課版)
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Windows Forensics Cookbook
- MATLAB 2020從入門到精通
- iOS開發(fā)實戰(zhàn):從入門到上架App Store(第2版) (移動開發(fā)叢書)
- 深入分布式緩存:從原理到實踐
- Bootstrap 4 Cookbook
- 利用Python進行數(shù)據(jù)分析