Reader small image

You're reading from  Raspberry Pi Sensors

Product typeBook
Published inApr 2015
Publisher
ISBN-139781784393618
Edition1st Edition
Right arrow
Author (1)
Rushi Gajjar
Rushi Gajjar
author image
Rushi Gajjar

Rushi Gajjar is an entrepreneur, embedded systems hardware developer and a lifetime electronics enthusiast. He works in the field of research and development of high-speed single-board embedded computers and wireless sensor nodes for the Internet of Things. Prior to that, his extensive work as a freelancer in the domain of electronics hardware design introduced him to rapid prototyping development boards and single board embedded computers such as the Raspberry Pi. In the spare time, he loves to develop the projects on Raspberry Pi including sensors, imaging, data logging, web-servers, and machine learning automation systems. He authored a DIY and hardware based book titled Raspberry Pi Sensors which takes deep dive in developing sensor interfacing based projects with Raspberry Pi. His vision encompasses connecting every entity in world to the Internet for enhancing the human living experience. https://www.linkedin.com/in/rushigajjarhttp://www.amazon.com/Raspberry-Pi-Sensors-Rushi-Gajjar/dp/1784393614/ref=sr_1_9?ie=UTF8&qid=1453884207&sr=8-9&keywords=raspberry+Pi+Sensorshttp://rushigajjar.blogspot.in/
Read more about Rushi Gajjar

Right arrow

Fixing common problems


While building the project, many of us will not get the output the first time. Let's solve the common problems collaboratively. There are some frequently occurring problems while building the projects with the RasPi and the ultrasonic sensors.

Is it showing the distance incorrectly?

You are so enthusiastic to write the code by yourselves, and you might have been mistaken. Check the timings of turning the trigger pin for the perfect amount of time, and check whether you have read the echo pin correctly.

Some of the device response may be slow. I recommend that you add a delay of 60 ms after making the trigger pin low, as shown in the following code:

GPIO.output(23, False)
time.sleep(0.06)

If you are still not getting the result, try playing around with these values of delay. Also, check for the correct indentation of the code, which might be the major reason that you are facing the problem.

There is a high chance that you may be having so many things on your table that the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Raspberry Pi Sensors
Published in: Apr 2015Publisher: ISBN-13: 9781784393618

Author (1)

author image
Rushi Gajjar

Rushi Gajjar is an entrepreneur, embedded systems hardware developer and a lifetime electronics enthusiast. He works in the field of research and development of high-speed single-board embedded computers and wireless sensor nodes for the Internet of Things. Prior to that, his extensive work as a freelancer in the domain of electronics hardware design introduced him to rapid prototyping development boards and single board embedded computers such as the Raspberry Pi. In the spare time, he loves to develop the projects on Raspberry Pi including sensors, imaging, data logging, web-servers, and machine learning automation systems. He authored a DIY and hardware based book titled Raspberry Pi Sensors which takes deep dive in developing sensor interfacing based projects with Raspberry Pi. His vision encompasses connecting every entity in world to the Internet for enhancing the human living experience. https://www.linkedin.com/in/rushigajjarhttp://www.amazon.com/Raspberry-Pi-Sensors-Rushi-Gajjar/dp/1784393614/ref=sr_1_9?ie=UTF8&qid=1453884207&sr=8-9&keywords=raspberry+Pi+Sensorshttp://rushigajjar.blogspot.in/
Read more about Rushi Gajjar