Go Down

Topic: multiple sharp dust sensor on one Arduino  (Read 220 times) previous topic - next topic

NoNickname

Hello:

I am recently tried connecting 5 sharp dust sensors on one arduino mega. arduino 5v connecting to breadboard and each sensor get power supply from breadboard, I also use a resister to scale down voltage to 3.3v.
I attached my code of how I get the data from sensor. From the output file of sensor, not all sensor are working correctly. Some of them have really low readings(just giving noise). I wonder if there will be a power supply issue providing 5v to each sensor at the same time. or there is something wrong with my code.

I am not a expert of electronic, I wonder if some one could help me understand this problem.
Many thanks!

knut_ny

Ny

pylon

Post a link to the hardware you're using!

Post a wiring diagram!

Quote
I also use a resister to scale down voltage to 3.3v.
Why? The sharp dust sensors I know work at 5V level.

Quote
I wonder if there will be a power supply issue providing 5v to each sensor at the same time. or there is something wrong with my code.
I doubt that as you're activating only one LED at a time, so there shouldn't be a high currents.

NoNickname

I follow this instruction, here is the link:

http://www.instructables.com/id/How-to-Interface-With-Optical-Dust-Sensor/

I just simply duplicate the 5 sensors on one arduino and one breadboard.

Thanks all for the reply, it is really helped !!






Andym535

There are several variations of the Sharp dust sensor. Which one are you using? The most common one is very sensitive to the timing of the pulse that controls the led within the sensor and you can't get this right using analogread() even with one sensor; you have to use an ISR.

wvmarle

A resistor is not a voltage regulator, nor can it be used as a replacement. It sounds like that's what you're doing. Anyway, complete schematic diagram (so no Fritzing-created mess) and specifics of the sensor please.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

pylon

Quote
I follow this instruction, here is the link:

http://www.instructables.com/id/How-to-Interface-With-Optical-Dust-Sensor/
If you do, why are you using additional resistors to change some voltage to 3.3V? Are you using exactly the same sensor as in the instructable?

Post schematics of your setup as the extension to multiple sensors is not that simple.

Just out of curiosity: why do you need 5 dust sensors within a few cm?

Go Up