Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Sensors

You're reading from  Raspberry Pi Sensors

Product type Book
Published in Apr 2015
Publisher
ISBN-13 9781784393618
Pages 192 pages
Edition 1st Edition
Languages
Author (1):
Rushi Gajjar Rushi Gajjar
Profile icon Rushi Gajjar
Toc

Table of Contents (16) Chapters close

Raspberry Pi Sensors
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
1. Meeting Your Buddy – the Raspberry Pi 2. Meeting the World of Electronics 3. Measuring Distance Using Ultrasonic Sensors 4. Monitoring the Atmosphere Using Sensors 5. Using an ADC to Interface any Analog Sensor with the Raspberry Pi 6. Uploading Data Online – Spreadsheets, Mobile, and E-mails 7. Creating an Image Sensor Using a Camera and OpenCV Shopping List Index

It's time to glow LEDs!


Let's gather some components and wires first. You need a standard LED (one piece, forward voltage, and 3.3V), wires (one red and one black, with a 2.54 mm female-to-female jumper wire connector), an Ethernet cable, your PC, and the RasPi+.

The standard setup that we had all the time and we will follow is PC (Windows/Mac/Linux) with PuTTY or the terminal installed. There is also the Ethernet connection of the PC with the RasPi, with the entire configuration and setup explained in Chapter 1, Meeting Your Buddy – the Raspberry Pi. What I assume now is that your PC is running a live session with the RasPi. Take the LED in your hand and carefully observe that among the two terminals, one terminal is longer than the other; this is the positive (anode) terminal of the LED. The shorter terminal on LED is negative (ground) and it should be connected to pin 6 (GND) of the RasPi. Carefully connect the positive terminal to pin 11 (BCM GPIO 17, refer to GPIO table). Using the wire...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime