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

Common problems faced


While building a project, there may not be many problems faced as it is mostly a development in software. Still, mistakes can happen in the ways described here.

In your code, do not declare a variable name or function name same as Python data type or Python prebuild function; for example, naming a function email(). This is not valid and can create a runtime error in the code. The same problem can occur when you set the Python script filename as a predefined Python function, for example, email.py.

While experimenting with gspread, try to write the script in the install library folder of gspread itself. Alternatively, you can play with Linux to make the function and the file available as an external location of the files. For example, we installed gspread using these commands:

git clone https://github.com/burnash/gspread.git
cd gspread
python setup.py install

In the same gspread folder, write the Google spreadsheet data logging program. One of the most common issues with...

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