Search found 51 matches
- Tue Jun 25, 2019 7:37 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
You can control that by the initial value of i 0 or 1. If you want the behaviour to change in certain times, you need to know the real time. But you were at that question before. Hi Robert, yes, i am aware of real time which we need to synchronize with ntptime and for this we need internet. But, i ...
- Mon Jun 24, 2019 10:38 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
You can control that by the initial value of i 0 or 1. If you want the behaviour to change in certain times, you need to know the real time. But you were at that question before. Hi Robert, yes, i am aware of real time which we need to synchronize with ntptime and for this we need internet. But, i ...
- Mon Jun 24, 2019 10:10 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
You must reset i=0 if level raises again to 10 and more.e.g. Hi Robert, i have a doubt. Logic is working when level<10 and power is on. But what if power off and power is back in midnight. how to handle logic not work in midnight for few censorious? typo mistake. now i have changed scenarios from c...
- Sun Jun 23, 2019 7:50 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
Hi Robert, i have a doubt. Logic is working when level<10 and power is on. But what if power off and power is back in midnight. how to handle logic not work in midnight for few censorious?
- Sun Jun 23, 2019 6:48 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
Thank you Robert. Now logic is working fine.Roberthh wrote: ↑Sat Jun 22, 2019 7:58 pmYou must reset i=0 if level raises again to 10 and more.e.g.Code: Select all
if level >= 10: i = 0 time.sleep(1)
- Sat Jun 22, 2019 7:42 pm
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
Hi , i am trying to blink inbuilt led only once if the level value is less than 10. with below code i am able to blink once.but when the level value increases more than 10 and reduces less then 10 led is not blinking. can someone help me how to achieve this ? Note:- if i include i=0 inside while loo...
- Tue Jun 18, 2019 11:17 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
Thank you python coder. i will check and get back to you if i have any question.pythoncoder wrote: ↑Tue Jun 18, 2019 9:49 amThe Wiki http://wiki.micropython.org/Home has links to drivers for a variety of devices. You can also search this forum.
- Tue Jun 18, 2019 9:11 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
There are many ways to do it, depending on the electronic interface of the device. MicroPython supports various interfaces: UARTs, I2C, SPI, CAN or simply changing Pin inputs. There are also drivers for various devices, some official, some contributed by users. UARTs are somewhat problematic on ESP...
- Mon Jun 17, 2019 1:20 pm
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
Hi pythoncoder, below screenshot may give an idea what i am trying to say. is it possible to pass a value from external device at runtime to ESP8266 ?pythoncoder wrote: ↑Mon Jun 17, 2019 8:07 amI'm not sure what you're asking. That code would work on an ESP8266.
- Mon Jun 17, 2019 7:41 am
- Forum: ESP8266 boards
- Topic: How to switch on a electric bulb with ESP8266 board?
- Replies: 50
- Views: 31027
Re: How to switch on a electric bulb with ESP8266 board?
@RajaRamesh The ntptime module is merely used to initialise the RTC. If you have an internet connection it's the obvious way to do it, but you can set it by any means you wish. Note that the RTC on the ESP8266 is not very accurate and it may need setting at regular intervals. Ok...pythoncoder. is i...