Search found 26 matches

by doceave
Sat Mar 28, 2020 3:49 pm
Forum: ESP32 boards
Topic: ESP32 Sleep Modes
Replies: 2
Views: 394

ESP32 Sleep Modes

I have built a device which interfaces an ADS1115 which needs to measure signals over a very small range. Owing to poor circuit design I am stuck with attempting to minimize interference bmo software settings. The wifi and bluetooth radios are a major source of interference --- probably due to littl...
by doceave
Wed Mar 18, 2020 2:44 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio --- Calling async functions sequentially
Replies: 3
Views: 1362

Re: uasyncio --- Calling async functions sequentially

Thanks Peter My setup is precisely like this at present. The problem being that function A and function B should not be linked in any way as I may need to call each independently during operation of the machine. Real world application: I have around 10 functions, each representing a piece of hardwar...
by doceave
Wed Mar 18, 2020 8:44 am
Forum: Programs, Libraries and Tools
Topic: uasyncio --- Calling async functions sequentially
Replies: 3
Views: 1362

uasyncio --- Calling async functions sequentially

Hi there everyone Micropython and uasyncio fresh installations on an ESP32 generic. I have number of async functions that interact with hardware. On startup I would like to run a few of these functions one at a time (each completing before the next is run). Between some of these functions I would fu...
by doceave
Sun Feb 23, 2020 3:49 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio --- Calling one async function from another
Replies: 2
Views: 393

Re: uasyncio --- Calling one async function from another

This is a much simpler illustration than presented in your tutorial :)

Many thanks indeed. The former examples does exactly what I need.
by doceave
Sun Feb 23, 2020 8:09 am
Forum: Programs, Libraries and Tools
Topic: uasyncio --- Calling one async function from another
Replies: 2
Views: 393

uasyncio --- Calling one async function from another

Hi there everyone Another NOOB question relating to the uasyncio way of doing things: In the section of code below, if I wanted to call one routine from another. The routine will execute then return a value. I am clearly doing something incorrectly. Again I hope an expert will point out the error wi...
by doceave
Thu Feb 20, 2020 4:02 pm
Forum: Programs, Libraries and Tools
Topic: DS18B20 --- Reading while getting other chores done
Replies: 17
Views: 1737

Re: DS18B20 --- Reading while getting other chores done

Totally amazing! :) It works! So excited to put it through its paces now!

Thanks so so much to everyone!
by doceave
Thu Feb 20, 2020 2:11 pm
Forum: Programs, Libraries and Tools
Topic: DS18B20 --- Reading while getting other chores done
Replies: 17
Views: 1737

Re: DS18B20 --- Reading while getting other chores done

It is absolutely super that you guys look after the community at this level. I am amazed and feel so honored.

Will test folder structure as described by Kev asap and revert with results.
by doceave
Wed Feb 19, 2020 8:18 pm
Forum: Programs, Libraries and Tools
Topic: DS18B20 --- Reading while getting other chores done
Replies: 17
Views: 1737

Re: DS18B20 --- Reading while getting other chores done

I will again attempt installation. Sadly ampy does not allow movement of entire folders so I will have to re-create the folder structure (which looks rather odd) on the ESP32. This is the structure I was using. Would you mind casting an eye over this before I repeat the process?: /uasyncio/uasyncio/...
by doceave
Wed Feb 19, 2020 7:28 pm
Forum: Programs, Libraries and Tools
Topic: DS18B20 --- Reading while getting other chores done
Replies: 17
Views: 1737

Re: DS18B20 --- Reading while getting other chores done

I really do hope this will help with troubleshooting.... :| :
>>> import uasyncio as asyncio
>>> dir(asyncio)
['__class__', '__name__', '__path__']
>>>
by doceave
Wed Feb 19, 2020 5:42 pm
Forum: Programs, Libraries and Tools
Topic: DS18B20 --- Reading while getting other chores done
Replies: 17
Views: 1737

Re: DS18B20 --- Reading while getting other chores done

Hi there KevinKK525 ---- I am so sorry to bother with NOOB requests. Your modification of Jimmo's code is below: import uasyncio as asyncio async def adc_task(): while True: print ("Doing ADC things......") await asyncio.sleep_ms(100) async def ds18x20_task(): while True: print ("Doing temperature t...