Search found 18 matches

by upymar
Tue Jun 23, 2020 9:11 am
Forum: ESP8266 boards
Topic: Problem with simple socket loop
Replies: 1
Views: 1443

Problem with simple socket loop

Hi community, I have configured my esp8266 as access point and want it to react on certain data send from a smartphone over a socket it listens on. This is my code: import usocket as socket addr = socket.getaddrinfo('0.0.0.0', 80)[0][-1] while True: s = socket.socket() s.bind(addr) s.listen(1) cl, a...
by upymar
Tue Jun 02, 2020 9:29 am
Forum: ESP8266 boards
Topic: Reaction on button press while running another function
Replies: 2
Views: 2409

Re: Reaction on button press while running another function

Thank you.

I will work through this.
by upymar
Mon Jun 01, 2020 9:43 am
Forum: ESP8266 boards
Topic: Reaction on button press while running another function
Replies: 2
Views: 2409

Reaction on button press while running another function

Hi community, I wrote some small programm for a sonoff s20 switch with a esp8266 core: from umqtt.simple import MQTTClient SERVER = "192.168.1.3" CLIENT_ID = "sonoff_s20_1" TOPIC = b"/steckdosen/sonoff_s20_1" relais = machine.Pin(12, machine.Pin.OUT, value = 1) button = machine.PIN(0, machine.Pin.IN...
by upymar
Mon May 04, 2020 8:30 am
Forum: ESP8266 boards
Topic: [SOLVED] General question regarding GPIOs of Wemos D1 mini
Replies: 3
Views: 2823

Re: General question regarding GPIOs of Wemos D1 mini

Thank you,

this solved my problem.

Kind regards

Martin
by upymar
Wed Apr 29, 2020 3:09 pm
Forum: ESP8266 boards
Topic: [SOLVED] General question regarding GPIOs of Wemos D1 mini
Replies: 3
Views: 2823

[SOLVED] General question regarding GPIOs of Wemos D1 mini

Hello community, I've connected a Wemos D1 mini running micropython v1.12 on a breadboard with a rgb led. G (GND) with the cathode of the led. D1,D2,D3 over a resistor to the connectors of r,g,b. When supplying power by connecting the MicroUSB port the led glows slightly red. But without any code ex...
by upymar
Sun Nov 03, 2019 12:05 pm
Forum: ESP8266 boards
Topic: how to extract numbers from a string
Replies: 3
Views: 2546

Re: how to extract numbers from a string

Thank you, that works great!
by upymar
Sat Nov 02, 2019 10:21 pm
Forum: ESP8266 boards
Topic: how to extract numbers from a string
Replies: 3
Views: 2546

how to extract numbers from a string

I'm trying to pass numbers from a received mqtt message to neopixel.

On my pc i got it to work with

Code: Select all

import re
msg = "rgb(124,95,8)"
r,g,b = re.findall('\d+',msg)
Unfortunately micropythons ure module doesn't know findall function.

Any Suggestionen?
by upymar
Sun Oct 27, 2019 8:14 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 3919

Re: Strange behaviour of WS2812 LED strip

Thanks for all your answers,

I have made a stupid mistake. I forgot to connect from gnd of the LED strip to the esp8266.
Now it's working fine.

Thanks again for your help.
by upymar
Sat Oct 26, 2019 6:03 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 3919

Re: Strange behaviour of WS2812 LED strip

I have also tested it with another esp8266 with the same result.

Does this help?
by upymar
Sat Oct 26, 2019 2:10 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 3919

Strange behaviour of WS2812 LED strip

Hello community, I connected a 1m WS2812 LED strip with 60 LEDs to my esp8266 on GPIO 0. I'm using a power supply with 5V and 3A directly connected to the LED strip. My code: from neopixel import NeoPixel from time import sleep pin = machine.Pin(0, machine.Pin.OUT) np = NeoPixel(pin, 60) for i in ra...