Raspberry Pi Sensors : integrate sensors into your Raspberry Pi projects and let your powerful microcomputer interact with the physical world /
This book is perfect for hardware enthusiasts who want to develop amazing projects using Raspberry Pi. Some knowledge and experience working with Linux, C, and Python is a plus, but once you're set up to go, you'll be ready to push the creative capabilities of your Raspberry Pi even furthe...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgements; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Meeting Your Buddy
- the Raspberry Pi; A glance at the Raspberry Pi board; Setting up for the first time; Installing the operating system; Purchasing your SD card; Downloading the required software; Expanding the root filesystem; Logging in to the RasPi; Opening the desktop; Connecting the Raspberry Pi to the Internet; Internet connection through Wi-Fi dongle; Internet connection through Ethernet from a PC; Editing the command-line file of the RasPi
- Turning on the RasPiChanging cmdline.txt again to add the PC's Ethernet port IP address; Sharing the Internet connection between your PC and an Ethernet connection; Installing and opening the free SSH client on your PC; A crash course on Linux; The terminal and shell; Useful and frequently used Linux commands; Installing useful libraries; git-core; wiringPi; python-gpio; Be ready with Python and C; Writing and executing the Python program; Writing and executing the C program; Practice makes you perfect; Summary; Chapter 2: Meeting the World of Electronics; Basic terminologies of electronics
- VoltageCurrent; Resistor; Capacitor; Open circuit and short circuit; Series and parallel connections; Pull-up and pull-down resistors; Communication protocols; UART; Serial Peripheral Interface; Inter-Integrated Circuit; Useful tips and precautions; Understanding the GPIO port; It's time to glow LEDs!; Shell script and GPIO; LED blink and Python; Let's blink the LED with C code; Summary; Chapter 3: Measuring Distance Using Ultrasonic Sensors; The mysterious ultrasonic sensor; Distance calculation; Building the project!; Hardware setup; Software setup; Initial configuration
- Setting the GPIO pins on the default modeSending and receiving the pulses; Calculation of distance; Fixing common problems; Is it showing the distance incorrectly?; Is the module not responding?; Are you measuring the distance less than 2 cm?; A wearable device for the visually impaired; Building the hardware; Software setup; Summary; Chapter 4: Monitoring the Atmosphere Using Sensors; Sensor selection process; Criticality of an application; Selecting a sensor package; Sensor properties; Purchasing the sensor; Available sensors; InsideDHT
- temperature and humidity sensors
- Introducing the photoresistor (photocell)Building the project; Hardware setup; Breadboard setup; Preparing the code; Code the DHT sensor and measure relative humidity and temperature; Code the LDR sensor and measure light variations; Putting all the parts together; Troubleshooting common problems; Received DHT data is not valid; The LDR sensor gives a zero value; Is the voltage correct?; Summary; Chapter 5: Using an ADC to Interface any Analog Sensor with the Raspberry Pi; Analog-to-digital convertors; Data reception and signal conditioning; Amplification; Sampling and quantization