Search found 8 matches

by Nikunj_Vadher
Tue Jan 15, 2019 7:21 am
Forum: ESP8266 boards
Topic: Interrupt Handling problem
Replies: 2
Views: 153

Interrupt Handling problem

I am having a orchid green house and they need humidity and controlled temperature. For that I am building a system which monitor green house environment temperature and humidity(stemp, shum) and if it falls below the specific values ( itemp, ihum) then it send a signal to start water pump. I am usi...
by Nikunj_Vadher
Sat Jan 12, 2019 9:15 am
Forum: ESP8266 boards
Topic: Interrupt variable increment problem
Replies: 1
Views: 69

Interrupt variable increment problem

import config itemp=config.temp ihum=config.hum def inctmp(p): itemp = itemp + 1 def dectmp(p): itemp = itemp - 1 p0 = Pin(0, Pin.IN) p0.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=inctmp) p15 = Pin(15, Pin.IN) p15.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=dectmp) here config....
by Nikunj_Vadher
Mon Dec 24, 2018 9:41 am
Forum: ESP8266 boards
Topic: ds18b20 programming
Replies: 2
Views: 182

ds18b20 programming

As I read data sheet for ds18b20, I found we can program it. I would like to know how to program it and how to set alarm level and how trigger some function(code) in micropython.
by Nikunj_Vadher
Tue Dec 18, 2018 9:27 am
Forum: ESP8266 boards
Topic: Global Variables
Replies: 1
Views: 545

Global Variables

How to declare global variables in micropython that can be accessible from boot.py, main.py and many files. creating and writing and updating file data taking time and getting into error.I want to declare only 2 variables. Also want to create and freeze(compile) code for python server that listen on...
by Nikunj_Vadher
Tue Dec 18, 2018 4:53 am
Forum: Development of MicroPython
Topic: Micropython esp8266 firmware build
Replies: 2
Views: 604

Re: Micropython esp8266 firmware build

The README.md in ports/esp8266 is sufficient. You only have to follow the instructions literally, not skipping a step or ignoring a word, including the README in the installed esp-idf. About not installing modules: in the esp8266 directory there is a file called mpconfigport.h, which includes defin...
by Nikunj_Vadher
Sun Dec 16, 2018 7:36 am
Forum: Development of MicroPython
Topic: Micropython esp8266 firmware build
Replies: 2
Views: 604

Micropython esp8266 firmware build

Respected Forum Members, I am looking for compiling micropython firmware guide for linux (Ubuntu). lots of guides available but every guide showing different error so not able to compile it properly. I also want to know how to remove unnecessary packages ( modules) from firmware so I can free some m...
by Nikunj_Vadher
Thu Dec 13, 2018 10:07 am
Forum: ESP8266 boards
Topic: Type Casting
Replies: 2
Views: 177

Type Casting

How to convert variable read from file into integer. fp = open("set.txt","r") v1=fp.readline() v2=fp.readline() a1=int(v1) getting this error File "<stdin>", line 1, in <module> File "<string>", line 12, in <module> ValueError: invalid syntax for integer with base 10 txt file contains two variable v...
by Nikunj_Vadher
Mon Dec 10, 2018 8:02 am
Forum: Programs, Libraries and Tools
Topic: Access point server in ESP8266
Replies: 0
Views: 335

Access point server in ESP8266

Want piece of code for creating http web server in access point mode.