-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino compatibility #10
Comments
Hi. |
I don't have Uno or Mega, but library is compatible with Arduino. |
Some background info: I using Mega 2560 PRO MINI board. I have tested jbanaszczyk/pms5003 library and iz works well as long as I have read procedure in main loop. Soon as I move read procedure out of the main loop to the separate function I receiving CRC Error all the time. That's why I would like to test your library - also with read procedure out of main loop. |
I did not change the code - it is your's Advanced from Examples. USB/COM adapter is connected to RX/TX lines on 2560 board |
Yes, but without circuit I don't know what pins you are using. |
2560 has its own RX/TX pins (RX=4, PE0, TX=5, PE1). I believe this is the problem. |
You are right, my mistake. I mean Serial, Serial1, Serial2... |
Yes, you are right - I have to use SoftwareSerial also. In my case definition is following: |
Hi @fu-hsi I'm in the same boat as roberto, although I might be a newbee at this (pls keep in mind). I'm trying to make your code work with SoftwareSerial but can't seem to make it work. Any guidance on the matter? As of now i've tried to define softserials as pin (3,2). my code below: #include <SoftwareSerial.h> SoftwareSerial pmsensor(3,2); |
Hi. I have same issue. How to connect to Arduino using SoftwareSerial?? Thank You. |
Try to avoid using Software emulation of serial port if you want to live in peace for long time ;-) |
Hi all. I am also relatively new and I have been trying to set up using this. I have the library loaded and am using the basic and advanced example but they are returning "no data". I have the pms1003 set up on an uno with the gnd, vcc and TX&RX pins (1,0). I also have a logic converter for the tx/rx pins. I'll attach a diagram. I was wondering if anyone has any insight into why this might not be working. Do I need to alter something on the code that I am missing? Thanks in advance for any help! |
I'm using a The TX and RX pins of the Below is the code that I'm using. Hope it helps
|
I'm trying to use seeya post to solve my issue I'm migrating from another library to https://github.com/fu-hsi Library but I get no response, I need to use D7 & D8 (also try with GPIO 13,15) in a wemos and it compiles ok but does not work. here is my code: #include "PMS.h" #include <SoftwareSerial.h> PMS pms(pmsSerial); void setup() void loop()
} // Do other stuff... |
Hello I searched and tried many codes from various sources but ended up with no sensor data even the code provided by @Fu-shi did not worked for arduino uno or mega boards This revised code worked well for me on uno, mega, and seeeduino Lotus boards for both PMS5003 and PMS7003 sensors Thank you very much Dear @Fu-shi and @seeya A small correction: For example, if you connect TX cable to D4 and RX cable to D5, code part becomes: SoftwareSerial pmsSerial(4, 5); Million thanks.... |
Anybody has luck with raspberry picow? |
Could be this library adopted to Ardino (Uno, Mega, ...)?
Thank You!
The text was updated successfully, but these errors were encountered: