Created
October 21, 2018 21:58
-
-
Save neonil123/ea1e57233f3376faa3076561e2dd0381 to your computer and use it in GitHub Desktop.
This file contains 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 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 |
make a screenshot of the widget settings
Il lun 16 dic 2019, 18:24 arya970 <notifications@github.com> 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 <notifications@github.com> 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 <notifications@github.com> 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 <neonilr1999@gmail.com> 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 <neonilr1999@gmail.com> 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 <notifications@github.com> 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 <notifications@github.com> 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 <notifications@github.com> 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
its already connected but still stuck in 5,6,7 or 8