-
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
Cannot get output from Arduino #29
Comments
I have a similar issue, I cannot get my sensor (PMS5003) to interface with my Nano and output to Serial Monitor. I have a DHT sensor interfacing also to verify that the code is working. From the PMS5003 the Tx -> D3, Rx -> D2. Also the fan kicks on so I know the sensor is receiving power but I am not sure why I can't get it to read at all, let alone reading from the sensor. Here is my code: #include "DHT.h" #define DHTPIN 13 // Digital pin connected to the DHT sensor DHT dht(DHTPIN, DHTTYPE); SoftwareSerial Serial1(3,2); // RX, TX void setup() { dht.begin(); Serial1.begin(9600); void loop() { float h = dht.readHumidity(); // Check if any reads failed and exit early (to try again). Serial.print(F("Humidity: ")); if (pms.read(data)) { |
@Just-ice-E you can't block main loop like these:
Please use examples provided with library. |
Thank you for the library.
I have issue getting output on Arduino r3. I have connected my rxd to pin6 and txd to pin 4 and I use this code.
I was hoping you could guide me in the right direction.
The text was updated successfully, but these errors were encountered: