what is the problem guys? I am new to this stuff.
The problem seems to be posting in a forum section that specifically asks you not to.
Let me move it.
im sorry...
So, what's the problem?
I wanted to make a device that measures air quality. I purchased the materials with the help of a video. I built the circuit. In the coding part, I did everything according to the video. I chose Done. And I got a screen like this. I don't know what to do because I am so ignorant. (a project I prepared for homework)
What coding?
What video?
Don't post pictures, post code.
No, post code.
The code you wrote.
And the messages it produces.
I'm not going to waste time watching a video in a language I don't understand.
I don't know how to inform you my friend. You can understand what's going on in just 7 minutes of the video. But I guess you don't want to help much. no problem
I've asked you to post you code
I've asked to to post the messages the code produces.
I've asked you to describe your problem.
I even moved the the topic to a more useful area.
I guess you don't want help.
No problem.
you are right
#include<DHT.h>
DHT dht(D4, DHT11);
#include<Wire.h>
#include<Adafruit_SSD1306.h>
Adafruit_SSD1306 display(128, 64,&Wire,-1);
int buzzer=D8;
int MQ135= A0;
int MQ135DEGER;
void setup() {
Serial.begin(9600);
dht.begin();
display.begin(SSD1306_SWITCHCAPVCC, 0X3C);
pinMode(MQ135, INPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
float t= dht.readTemperature();
float h= dht.readHumidity();
float f = dht.readTemperature(true);
MQ135DEGER=analogRead(MQ135);
delay(60);
if(MQ135DEGER> 120){
digitalWrite(buzzer, HIGH);
delay(500);
digitalWrite(buzzer, LOW);
delay(3000);
}
display.clearDisplay();
display.setTextSize(1,2);
display.setTextColor(WHITE);
display.setCursor(0,10),
display.println("Hava Kalitesi=");
display.setCursor(90, 10);
display.println(MQ135DEGER);
display.setCursor(0, 40);
display.println("Temp:");
display.setCursor(30, 40);
display.println(t);
display.setCursor(70, 40);
display.println("Hum:");
display.setCursor(95, 40);
display.println(h);
display.display();
}
All codes are here. My problem is the error in the output part of the first photo.
That appears to be a message showing the details of a successful compilation. I see the same message when I compile the posted code for my esp8266.
Have you up loaded the code to the board?
What does the display show?
nothing happens on the screen. because i am getting error as i show in first photo.
Screenshots are utterly useless.
Copy the whole message, and paste it here.
Why do you think the screen image you show in first photo is an error?
And please use code tagsâŠ
You can Edit your post using the in the tool bar just below your post
select the code part and press the <code/>
icon in the tool bar to mark it as code. (also make sure you indented the code in the IDE before copying, thatâs done by pressing ctrlT on a PC or cmdT on a Mac)
â do yourself a favour and please read How to get the best out of this forum
Variables and constants in RAM (global, static), used 28800 / 80192 bytes (35%)
â SEGMENT BYTES DESCRIPTION
â ââ DATA 1512 initialized variables
â ââ RODATA 952 constants
âââ BSS 26336 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60995 / 65536 bytes (93%)
â SEGMENT BYTES DESCRIPTION
â ââ ICACHE 32768 reserved space for flash instruction cache
âââ IRAM 28227 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 251136 / 1048576 bytes (23%)
â SEGMENT BYTES DESCRIPTION
âââ IROM 251136 code in flash
After writing the codes, such an article comes and nothing happens.
Variables and constants in RAM (global, static), used 28800 / 80192 bytes (35%)
â SEGMENT BYTES DESCRIPTION
â ââ DATA 1512 initialized variables
â ââ RODATA 952 constants
âââ BSS 26336 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60995 / 65536 bytes (93%)
â SEGMENT BYTES DESCRIPTION
â ââ ICACHE 32768 reserved space for flash instruction cache
âââ IRAM 28227 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 251136 / 1048576 bytes (23%)
â SEGMENT BYTES DESCRIPTION
âââ IROM 251136 code in flash
The code you posted compiles and uploads successfully for me.
You can confirm that by enabling in File>Preferences the checking the verbose output during compile and upload boxes.
What you post is not an error message.
"Nothing happens" is a different story.
Have used a library example from the display library to confirm that you can indeed see output on the display.
You could also change the program to use Serial output, to confirm the sensor is being read correctly.