Search found 16 matches

by Ventran
Wed Oct 28, 2020 11:59 am
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 4
Views: 70

Re: Switching between tasks

do you want task 1 for some time. THEN task 2 for some time. THEN task 3? in which case they don't need to be separate tasks Yes. I want something like this: while True: display.text("Task #1", 5, 5) display.show() utime.sleep_ms(5000) display.fill(0) display.text("Task #2", 5, 5) display.show() ut...
by Ventran
Wed Oct 28, 2020 8:26 am
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 4
Views: 70

Re: Switching between tasks

OK, I use only:

Code: Select all

await asyncio.sleep_ms( )
but the Display show only Task #3 (5 sec) and Task #2 (1 sec).

Image

I want show on display Task #1 (during 5 sec.), Task #2 (during 5 sec.) and Task #3 (during 2 sec.)
by Ventran
Tue Oct 27, 2020 9:46 pm
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 4
Views: 70

Switching between tasks

Hello, I have a questions. It it possible in micropython create e.g three tasks (include forever loop each) and switching between them. This is a graph what i need to do: what-i-need-to-do.png I trying this but not work properly: async def task1(): while True: todo() await asyncio.sleep_ms(500) asyn...
by Ventran
Fri Oct 23, 2020 9:15 pm
Forum: ESP8266 boards
Topic: Relay trigger when startup or reset
Replies: 10
Views: 272

Re: Relay trigger when startup or reset

Thank you for your answers. I do not more time to struggle with the problem. My solution is use 16-Bit IO Ports Expander - MCP23017. I am using I2C to control this IC.
Capture.PNG
Capture.PNG (84.07 KiB) Viewed 29 times
Additionally I found this table. May Be helpful for someone:
84c12dbb8d607c3dda15ee884f2d076c419bd558.jpeg
84c12dbb8d607c3dda15ee884f2d076c419bd558.jpeg (179.41 KiB) Viewed 9 times
by Ventran
Mon Oct 19, 2020 6:48 pm
Forum: ESP8266 boards
Topic: Relay trigger when startup or reset
Replies: 10
Views: 272

Re: Relay trigger when startup or reset

This is my design board. Here is a schematic: One of six channe l channel.PNG ESP8266 mcu.PNG Power Supply Unit psu.PNG Oscilloscope Waveform: State High on pin = Relay Turn-Off. GPIO0 and GPIO2 Spike when boot SDS00001.png GPIO13 without spike https://obrazkiforum.atnel.pl/8185/f197990c99a7a629c6dd...
by Ventran
Sat Oct 17, 2020 6:26 pm
Forum: ESP8266 boards
Topic: Relay trigger when startup or reset
Replies: 10
Views: 272

Relay trigger when startup or reset

Hello, I have a problem with my device. The construcion have a six relays conected to ESP8266-12F module. When plug-in connector to 230V Socket and device start-up I see and heare spike on GPIO (especialy IO0 and IO2). Below I attached short video. This short movie show what is wrong with GPIO when ...
by Ventran
Thu Oct 01, 2020 7:48 am
Forum: Other Boards
Topic: [NUCLEO-F446RE] rshell --> timed out or error in transfer to remote
Replies: 7
Views: 1575

Re: [NUCLEO-F446RE] rshell --> timed out or error in transfer to remote

I had the same problem with NUCLEO-F401RE Board and uPyCraft v1.1 Tool. Copy only ~3.5k code file *.py
RShell v0.0.28 Tool work perfect. Thank You.
by Ventran
Wed Sep 23, 2020 9:52 am
Forum: Programs, Libraries and Tools
Topic: Unable to import machine module
Replies: 2
Views: 624

Unable to import machine module

Hello,
Why my VS Code IDE showing error message: Unable to import machine module?
import-err.PNG
import-err.PNG (30.51 KiB) Viewed 624 times
by Ventran
Mon Sep 21, 2020 5:49 pm
Forum: ESP8266 boards
Topic: Asynchronous Websocket
Replies: 5
Views: 796

Re: Asynchronous Websocket

Thank you for answer @pythoncoder. I found propably good solution using uselect
by Ventran
Sat Sep 19, 2020 7:25 pm
Forum: ESP8266 boards
Topic: Asynchronous Websocket
Replies: 5
Views: 796

Re: Asynchronous Websocket

Ok, I tried this solution but LED still not blinking. So, I think in this situation is necessary use non-blocking socket. How I can do this?