Skip to content
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

ESP32 Gives problem with SD Card #2

Open
rajeshdoshi opened this issue Dec 3, 2021 · 5 comments
Open

ESP32 Gives problem with SD Card #2

rajeshdoshi opened this issue Dec 3, 2021 · 5 comments

Comments

@rajeshdoshi
Copy link

Hi,
I am using this library along with SD Card interfaced to ESP32.
Individually both of them work fine. But as soon as they are connected together, both start to malfunction.

I have used different pins for SS.

Thanks..

@yash-dahima
Copy link

Hi Rajesh,

Can you please help me with running only OPC with ESP32? I am getting all values 0 except temperature which also is wrong. Below is the code:

#include <OPCN3.h>

// create new instance (specify SS pin in constructor)
OPCN3 myOPCN3(15);

void setup() {

Serial.begin(9600);

// turn on laser, fan and set high gain
myOPCN3.initialize();
delay(1000);

}

void loop() {

delay(10000);
HistogramData hist = myOPCN3.readHistogramData();

// Get Temperature
Serial.print("Temperature: ");
Serial.println(hist.getTempC());

// Get Relative Humidity
Serial.print("RH (%): ");
Serial.println(hist.getHumidity());

// Get PM values
Serial.print("PM 1: ");
Serial.println(hist.pm1);

Serial.print("PM 2.5: ");
Serial.println(hist.pm2_5);

Serial.print("PM 10: ");
Serial.println(hist.pm10);

}

Below is the output on serial monitor in Arduino IDE:

Capture

@rajeshdoshi
Copy link
Author

rajeshdoshi commented Sep 4, 2023 via email

@yash-dahima
Copy link

Thanks Rajesh for prompt response :)

I'm new to this, so some more explanation will really help. Can you please explain more on "It needs dedicated data pin" and what you mean by standard SPI?

@rajeshdoshi
Copy link
Author

rajeshdoshi commented Sep 5, 2023 via email

@yash-dahima
Copy link

Thank you so much Rajesh for clarification! All The Best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants