No values of PM2.5 sensor - PMS3003

Hi guys,

I’ve bought a PM 2.5 Sensor, in particular sensor PMS3003.

I connected it using this tutorial.

When I start the program, the values I get are all zeros, as you can see at the picture below this.

Even if I try to connect Rx and Tx to different pins, I still can’t get anything of them.

Thanks in advance

The tutorial shows different ways to wire and code. Please post the wiring and code that you are using so that we are on the same page, so to speak.

Screen shot of your Serial monitor is useless. Copy/paste this info in your post.

Now there’s no useful info in that image anyway, so I’m not bothering to post it inline here.

I use both of the codes, in the first one i connect the sensor to the Rx and Tx on the arduino. When i use the second code i connect them to the 10 and 11 pins (that pins are used in the code)

I didn't send you the code because is the same like in the link I have attached. The connection of the arduino and the sensor is also like in the article.

In the software serial example:

//*The RX pin on the sensor connects to pin 10 on the Arduino
//*The TX pin on the sensor connects to pin 11 on the Arduino

SoftwareSerial PMSerial(10, 11); // RX, TX

This has the Uno RX to the sensor RX and Uno TX to sensor TX. In the hardware serial example Uno RX goes to sensor TX and Uno TX to sensor RX.
I believe the hardware serial example is right.

Try swapping the RX and TX so that Uno RX (pin 10) goes to sensor TX and Uno TX (pin 11) goes to sensor RX.

groundFungus:
In the software serial example:

SoftwareSerial PMSerial(10, 11); // RX, TX

This has the Uno RX to the sensor RX and Uno TX to sensor TX. In the hardware serial example Uno RX goes to sensor TX and Uno TX to sensor RX.
I believe the hardware serial example is right.

Try swapping the RX and TX so that Uno RX (pin 10) goes to sensor TX and Uno TX (pin 11) goes to sensor RX.

Yes, I know. That is how I connect them.

I'm starting to think that the problem is the sensor (highly unlikely), or maybe the cables. How can I check the cables ?

[quote author=vampirstajn link=msg=3506627 date=1512060167]
Yes, I know. That is how I connect them.

So you connect them (slightly) different than in the example after all...

That's why we always ask "how did YOU connect it?". Same for the software - even seemingly innocent pin number changes can be highly relevant - so that's why the question: what is the software YOU are running?

I'm starting to think that the problem is the sensor (highly unlikely), or maybe the cables. How can I check the cables ?

Swap them out for other wires.
Connect it to a known-good Serial device, such as the Serial monitor. You should see the communication, but may be not human readable.
Connect the device to a known-good host (swap out a working sensor with yours).

So it was not wired as in the tutorial. Well, if you had provided the wiring diagram that I requested in reply #1 (of your setup), I would not have wasted my time typing reply #4.

How can I check the cables ?

Buy a DMM. Use it.

I have same problem but i try to remove checkvalue function and it’s work.