ritika27
Posts: 4
Joined: Mon Apr 10, 2017 5:52 am

Dust sensor

Wed Apr 12, 2017 10:47 am

i cannot get readings from dust sensor on raspberry pi monitor. I used the dust sensor code from github. It shows error error error
.What may be the problem ??
How can i check my firmware version and how can i update my firmware ?
I attempted running firmwarecheck.py It is not displaying the version

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Dust sensor

Wed Apr 12, 2017 10:53 am

Which dust sensor?
Which code did you use?

You need to be specific to get sensible answers.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

ritika27
Posts: 4
Joined: Mon Apr 10, 2017 5:52 am

Re: Dust sensor

Wed Apr 12, 2017 11:23 am

https://www.seeedstudio.com/Grove-Dust- ... -1050.html
I use the sensor mentioned in the above link and the code is

import time
import grovepi
import atexit

atexit.register(grovepi.dust_sensor_dis)

print("Reading from the dust sensor")
grovepi.dust_sensor_en()
while True:
try:
[new_val,lowpulseoccupancy] = grovepi.dustSensorRead()
if new_val:
print(lowpulseoccupancy)
time.sleep(5)

except IOError:
print ("Error")

Return to “General discussion”