-
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
ESP8266 NodeMCU CP2102 #13
Comments
Hi. Yes, it looks fine. Regards. |
I do use NodeMCU Vin for PSM5005 V+. |
If you are supply NodeMCU from USB then VIN can have 5V. https://circuits4you.com/wp-content/uploads/2017/12/nodemcu-circuit-diagram.png |
Thank you @fu-hsi, @kalapontsai . I have two other questions: And sorry for these questions, i am a newbie: In my case i am going to use your lib with Blynk lib, and so the pms data is sent through wifi to my smartphone Blynk app, so actually i dont need the Serial1 prints, but they could be useful for debug purposes... |
Yes. That's whay You can't use USB for programming when PMS is connected.
No. See the first answer.
I never did use this, so I don't know.
You must connect external CP2102 or CH340G module to TXD1 and then to PC or you can use HC-06 and your Smartphone for receive messages (https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal&hl=en). Regards. |
thank you @fu-hsi |
Nope. Small changes is required.
PMS object requires Stream object as argument. |
ah thank you, @fu-tsi, seems simple, i will try. |
I use hardware serial when possible.
|
The best way to avoid many problems is to use hw serial port. Nowadays there are many microcontrollers/developer boards which has at least two HW serial ports. In my case I using MEGA2560 Core (or Pro) and with this library works great |
Ok thank you for the suggestions. perhaps i have to calculate the medium value of the readings? thank you! |
hello @fu-hsi, i tried to use default mode ( basic.ino logic) , and the readings now have changed, and are more stable |
Hello @fu-hsi ,
i would like to use the PMS library in a .ino sketch for the board NodeMCU in subject.
I need to understand which PMS5003 pins must be connected to which NodeMCU pins and how to specify in the .ino which NodeMCU pins i am using.
I saw somewhere that +5V can be got from NodeMCU VIN ..is it true?
I am going to connect in this way:
NODEMCU -- PMS5003:
VIN -- PIN1
GND -- PIN2
RX -- PIN5 (TXD)
TX -- PIN4 (RXD)
Is it right?
I have to connect the PMS5003 PIN3 (SET) and PIN6 (RESET) too, or they can be left unconnected?
THANK YOU!
The text was updated successfully, but these errors were encountered: