Created
October 21, 2018 21:58
-
-
Save neonil123/ea1e57233f3376faa3076561e2dd0381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
BlynkTimer timer; | |
char auth[] = "********************************"; | |
char ssid[] = "********************************"; | |
char pass[] = "********************************"; | |
int n; | |
void setup() | |
{ | |
Serial.begin(9600); | |
Blynk.begin(auth, ssid, pass); | |
// You can also specify server: | |
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80); | |
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080); | |
pinMode(16,OUTPUT); | |
pinMode(5,OUTPUT); | |
timer.setInterval(1000L, sendUptime); | |
} | |
void sendUptime() | |
{ | |
Blynk.virtualWrite(V1, n); | |
} | |
void loop() | |
{ | |
Blynk.run(); | |
timer.run(); | |
n=analogRead(A0); | |
Serial.println(n); | |
if(n>190) | |
{ | |
digitalWrite(16,LOW); | |
digitalWrite(5,HIGH); | |
} | |
if(n<190) | |
{ | |
digitalWrite(16,HIGH); | |
digitalWrite(5,LOW); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link for boards | |
http://arduino.esp8266.com/versions/2.4.2/package_esp8266com_index.json |
hi you don't have the Blynk library in arduinoInviato dal mio dispositivo Huawei-------- Messaggio originale --------Oggetto: Re: neonil123/gas detectorDa: arya970 A: neonil123 CC: neonil123 ,Author sir, what this mean? and how to solve it?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
can i use MQ2 sensor and ESP8266 CH340 version for this project?
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
-->YES you can use it Inviato da Posta per Windows 10 Da: arya970Inviato: domenica 15 dicembre 2019 17:03A: neonil123Cc: neonil123; AuthorOggetto: Re: neonil123/gas detector can i use MQ2 sensor and ESP8266 CH340 version for this project?—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
is the code and circuit diagram is different if i use MQ2 sensor and ESP8266 CH340 version for this project?
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
-->No, you can use the same code Inviato da Posta per Windows 10 Da: arya970Inviato: domenica 15 dicembre 2019 17:35A: neonil123Cc: neonil123; AuthorOggetto: Re: neonil123/gas detector is the code and circuit diagram is different if i use MQ2 sensor and ESP8266 CH340 version for this project?—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
I have successfully uploaded the coding, but why on blynk it says it's not online yet?
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
-->Open The Serial monitor and read the debug mesages Inviato da Posta per Windows 10 Da: arya970Inviato: domenica 15 dicembre 2019 18:58A: neonil123Cc: neonil123; AuthorOggetto: Re: neonil123/gas detector I have successfully uploaded the coding, but why on blynk it says it's not online yet?—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
the node MCU is not conected to the serverInviato dal mio dispositivo Huawei-------- Messaggio originale --------Oggetto: Re: neonil123/gas detectorDa: arya970 A: neonil123 CC: neonil123 ,Author
sir, i use MQ2 sensor for the project but, why gauge on the blynk stuck in 7?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
make a screenshot of the widget settings
Il lun 16 dic 2019, 18:24 arya970 <[email protected]> ha scritto:
… its already connected but still stuck in 5,6,7 or 8
[image: 340974]
<https://user-images.githubusercontent.com/58910123/70923822-714aef00-2020-11ea-8c1b-7bc2ad09310c.jpg>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXISVIXG44OBR3TLBQDLQY6TTLA5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AC2#gistcomment-3113005>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIW3CQNRCPAZ6FESCD3QY6TTLANCNFSM4J3ALO3A>
.
the widget is ok maybe the problem is related to the hardware can you send
some pictures of the wiring
Il lun 16 dic 2019, 18:39 arya970 <[email protected]> ha scritto:
… its something wrong?
[image: 340976]
<https://user-images.githubusercontent.com/58910123/70925126-a0faf680-2022-11ea-93c8-75e38714f8f3.jpg>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXIRJEMENHJ7LLQQQJUDQY6VMRA5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AD4#gistcomment-3113022>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIW7RDBSPP4X2FJD4BTQY6VMRANCNFSM4J3ALO3A>
.
hmmm the wiring seems ok
Il lun 16 dic 2019, 19:01 arya970 <[email protected]> ha scritto:
… its following your video and schematic
[image: 340993]
<https://user-images.githubusercontent.com/58910123/70926783-9beb7680-2025-11ea-8dac-60f7fd72b4c0.jpg>
[image: 340994]
<https://user-images.githubusercontent.com/58910123/70926785-9c840d00-2025-11ea-9832-4382accd16dd.jpg>
[image: 340995]
<https://user-images.githubusercontent.com/58910123/70926786-9c840d00-2025-11ea-8a13-2b2cbf783847.jpg>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXITR4ZTQPO4BEVT54ADQY6X43A5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AFE#gistcomment-3113042>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIXABQU7MF7MCV22RXLQY6X43ANCNFSM4J3ALO3A>
.
do you have any solution/advice for that?
try to connect the vcc of the sensor to the vin pin of node mcu
Il lun 16 dic 2019, 19:03 Neonil Rosca <[email protected]> ha scritto:
… hmmm the wiring seems ok
Il lun 16 dic 2019, 19:01 arya970 ***@***.***> ha scritto:
> its following your video and schematic
> [image: 340993]
> <https://user-images.githubusercontent.com/58910123/70926783-9beb7680-2025-11ea-8dac-60f7fd72b4c0.jpg>
> [image: 340994]
> <https://user-images.githubusercontent.com/58910123/70926785-9c840d00-2025-11ea-9832-4382accd16dd.jpg>
> [image: 340995]
> <https://user-images.githubusercontent.com/58910123/70926786-9c840d00-2025-11ea-8a13-2b2cbf783847.jpg>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXITR4ZTQPO4BEVT54ADQY6X43A5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AFE#gistcomment-3113042>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AJINXIXABQU7MF7MCV22RXLQY6X43ANCNFSM4J3ALO3A>
> .
>
maybe your sensor needs 5v
Il lun 16 dic 2019, 19:05 Neonil Rosca <[email protected]> ha scritto:
… try to connect the vcc of the sensor to the vin pin of node mcu
Il lun 16 dic 2019, 19:03 Neonil Rosca ***@***.***> ha scritto:
> hmmm the wiring seems ok
>
> Il lun 16 dic 2019, 19:01 arya970 ***@***.***> ha scritto:
>
>> its following your video and schematic
>> [image: 340993]
>> <https://user-images.githubusercontent.com/58910123/70926783-9beb7680-2025-11ea-8dac-60f7fd72b4c0.jpg>
>> [image: 340994]
>> <https://user-images.githubusercontent.com/58910123/70926785-9c840d00-2025-11ea-9832-4382accd16dd.jpg>
>> [image: 340995]
>> <https://user-images.githubusercontent.com/58910123/70926786-9c840d00-2025-11ea-8a13-2b2cbf783847.jpg>
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXITR4ZTQPO4BEVT54ADQY6X43A5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AFE#gistcomment-3113042>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AJINXIXABQU7MF7MCV22RXLQY6X43ANCNFSM4J3ALO3A>
>> .
>>
>
vcc of the sensor is already connected to the vin pin of nodemcu
i think that the problem is releated to the sensor you can check it with a
simple Serial monitor code you can find it on file examples analog
AnalogInOutSerial
Il lun 16 dic 2019, 19:12 arya970 <[email protected]> ha scritto:
… vcc of the sensor is already connected to the vin pin of nodemcu
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXIUQDSN3ES4JFPOFZSDQY6ZHBA5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AGG#gistcomment-3113059>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIXX4HKDXSBFNVBHEBLQY6ZHBANCNFSM4J3ALO3A>
.
i have check the sensor and its working and no problem with the sensor
try to change the pin of the gauge info to analog 0
Il lun 16 dic 2019, 19:53 arya970 <[email protected]> ha scritto:
… i have check the sensor and its working and no problem with the sensor
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXIRBCFSFWWRU5H76UMTQY66BZA5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6AJC#gistcomment-3113105>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIQMET6OVXEEZWA4QN3QY66BZANCNFSM4J3ALO3A>
.
I have changed the pin gauge into analog 0. But, the number stuck in 6 in gauge
it's very strange i think that you have some hardware issues can you check the connections maybe you have a broken wire-------- Messaggio originale --------Oggetto: Re: neonil123/gas detectorDa: arya970 A: neonil123 CC: neonil123 ,Author I have changed the pin gauge into analog 0. But, the number stuck in 6 in gauge
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
do you think is possible if the problem is from blynk?
yes it can be a blynk problem
Il mar 17 dic 2019, 08:56 arya970 <[email protected]> ha scritto:
… do you think is possible if the problem is from blynk?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/ea1e57233f3376faa3076561e2dd0381?email_source=notifications&email_token=AJINXIU3SLZGJAJZYXRAECTQZBZ3PA5CNFSM4J3ALO3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF6BK2#gistcomment-3113645>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJINXIU6VOV7BUILFBM74T3QZBZ3PANCNFSM4J3ALO3A>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sir, what this mean? and how to solve it?
