書名: Hands-On Robotics Programming with C++作者名: Dinesh Tavasalkar本章字數(shù): 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.
推薦閱讀
- AngularJS Testing Cookbook
- ThinkPHP 5實戰(zhàn)
- Python測試開發(fā)入門與實踐
- Oracle數(shù)據(jù)庫從入門到運維實戰(zhàn)
- 軟件項目管理實用教程
- JavaCAPS基礎(chǔ)、應(yīng)用與案例
- SQL 經(jīng)典實例
- iOS自動化測試實戰(zhàn):基于Appium、Python與Pytest
- Extreme C
- Buildbox 2.x Game Development
- Android移動應(yīng)用項目化教程
- 交互設(shè)計師成長手冊:從零開始學(xué)交互
- Python GUI Programming Cookbook(Second Edition)
- 深入理解Kafka:核心設(shè)計與實踐原理
- Professional JavaScript