Search found 13 matches

by Zolee
Thu Mar 28, 2019 7:41 pm
Forum: ESP8266 boards
Topic: IR 38Khz frequency out
Replies: 5
Views: 549

Re: IR 38Khz frequency out

Arduino code for esp8266:
https://github.com/markszabo/IRremoteESP8266
Tested with wemos d1 mini. It works!
by Zolee
Sat Mar 16, 2019 9:12 am
Forum: ESP32 boards
Topic: How calculate time.ticks_ms for long periods?
Replies: 9
Views: 981

Re: How calculate time.ticks_ms for long periods?

Thank you!
I want to use this, to count the impulse on electric power measure device. 10000 imp/kwh. I hope is enough fast to send the data to the server and counting precisely, with one microcontroler.
by Zolee
Sat Mar 16, 2019 7:25 am
Forum: ESP32 boards
Topic: How calculate time.ticks_ms for long periods?
Replies: 9
Views: 981

Re: How calculate time.ticks_ms for long periods?

Hi!

Can I use rtc long period? (esp32)
I want to measure the seconds in a infinity loop. Every 1 minute, i want send data to my server.
Like so: check the second in the tuple, if second=0, send the data to server.
Can this work long period?
Thanks!
by Zolee
Sun Sep 02, 2018 11:56 am
Forum: ESP8266 boards
Topic: How to check gpio pin input, when http-server is running?
Replies: 8
Views: 920

Re: How to check gpio pin input, when http-server is running?

Ok, i think this setup never will working, because the server loop not a "real" loop. The server loop recognised only, if the client send a request. If the request is sended, the another function is called, but only at once. Same problem as before. The output: Got a connection from ('192.168.4.2', 3...
by Zolee
Sun Sep 02, 2018 10:31 am
Forum: ESP8266 boards
Topic: How to check gpio pin input, when http-server is running?
Replies: 8
Views: 920

Re: How to check gpio pin input, when http-server is running?

Thanks! I writed a code with asyncio, but only one loop called. loop = asyncio.get_event_loop() try: asyncio.ensure_future(server()) asyncio.ensure_future(erzekelo()) loop.run_forever() except KeyboardInterrupt: pass finally: print("Closing Loop") loop.close() Only the server loop is running. loop =...
by Zolee
Fri Aug 31, 2018 3:35 pm
Forum: ESP8266 boards
Topic: How to check gpio pin input, when http-server is running?
Replies: 8
Views: 920

Re: How to check gpio pin input, when http-server is running?

Thanks! The Client mode is not active always, only when the request sending. Then disabling it in the code. My first problem is this statement: if mozgas.value()==1: print("mozg√°s") jelzes=1 This wont be executed in the loop. How i want to make it: -starting the AP. -user set the wifi connection. -s...
by Zolee
Fri Aug 31, 2018 1:26 pm
Forum: ESP8266 boards
Topic: How to check gpio pin input, when http-server is running?
Replies: 8
Views: 920

How to check gpio pin input, when http-server is running?

Hello! I have a mini project at home. I want to send a notification, when motion sensor is active. My problem is, how can i check the input value, when http server is running. Is checks, and send the message to my phone, but only at once. My program ask the User, from the wifi connection settings. B...
by Zolee
Sun Oct 01, 2017 6:14 pm
Forum: ESP8266 boards
Topic: Can't get the servo SG90 working
Replies: 8
Views: 3072

Re: Can't get the servo SG90 working

I have written a simple function to control the servo speed, but not work in parallel. (multiprocessing) speed = ['0.5','1'] servo = {'1a':'5','1b':'4'} def motor_vezerles(servok, new_state, sebessegek): sebesseg=float(speed[sebessegek]) pinnumber=int(servo[servok]) last_state=PWM(Pin(pinnumber), fr...
by Zolee
Thu Sep 28, 2017 5:30 pm
Forum: ESP8266 boards
Topic: Can't get the servo SG90 working
Replies: 8
Views: 3072

Re: Can't get the servo SG90 working

It is possible to control the servo speed with wemos d1 mini?
by Zolee
Thu Aug 10, 2017 6:28 pm
Forum: ESP8266 boards
Topic: Problem with webserver socket send function
Replies: 1
Views: 478

Re: Problem with webserver socket send function

When the HTML code size, is smaller than 1070 byte conn.send() works perfectly!
But why?