Search found 22 matches

by poesel
Mon Jun 28, 2021 5:41 pm
Forum: Programs, Libraries and Tools
Topic: mqtt_as subscribe problem
Replies: 8
Views: 3570

Re: mqtt_as subscribe problem

'/' works for me, too.
by poesel
Sun Jun 27, 2021 6:19 pm
Forum: Programs, Libraries and Tools
Topic: mqtt_as subscribe problem
Replies: 8
Views: 3570

Re: mqtt_as subscribe problem

Ok, it was of course my fault. I had messed up the configuration and with it the assignment of the coros.
Now everything works.
by poesel
Sun Jun 27, 2021 10:48 am
Forum: Programs, Libraries and Tools
Topic: mqtt_as subscribe problem
Replies: 8
Views: 3570

Re: mqtt_as subscribe problem

Ok, switched the topic to 'qwe' and found out, that, opposed to what I wrote before, the subscription does not work. Code: def callback(topic, msg, retained): print((topic, msg, retained)) async def conn_han(client): print('subscribing...') await client.subscribe('qwe', 1) async def main(client): aw...
by poesel
Sun Jun 27, 2021 9:26 am
Forum: Programs, Libraries and Tools
Topic: mqtt_as subscribe problem
Replies: 8
Views: 3570

mqtt_as subscribe problem

Hi, I'm running this code: def callback(topic, msg, retained): print((topic, msg, retained)) async def conn_han(client): await client.subscribe('test/topic', 1) async def main(client): await client.connect() n = 0 while True: await asyncio.sleep(5) print('publish', n) # If WiFi is down the following...
by poesel
Thu Jun 25, 2020 6:11 pm
Forum: ESP32 boards
Topic: RMT pin state
Replies: 7
Views: 4303

Re: RMT pin state

Thanks for the hint but we ran some tests with the SPI version and it showed not difference in stability to the normal driver. So there is no gain for the loss of one pin. But I have to admit that I did read the data sheet of the HX711 wrongly. I thought the clock signal must have a maximum length o...
by poesel
Tue Jun 23, 2020 12:09 pm
Forum: ESP32 boards
Topic: RMT pin state
Replies: 7
Views: 4303

Re: RMT pin state

Hmm, so I guess it is not possible?
That is too bad. RMT pulses are quite stable and could be used for creating the clock signal for a HX711 driver. That would be a great improvement over the current bit banging. But without knowing the state you can not synchronize with the data signal.
by poesel
Sun Jun 21, 2020 8:51 pm
Forum: ESP32 boards
Topic: RMT pin state
Replies: 7
Views: 4303

RMT pin state

If I use RMT to generate a pulse on a pin is there a way to know the current state of the pin? Ideally something like Pin.IRQ_FALLING that triggers a callback. I tried to use this but it fails. Most llikely because you can't have RMT and Pin on the same pin at the same time. from utime import sleep_...
by poesel
Sun Jun 21, 2020 10:30 am
Forum: ESP8266 boards
Topic: Pin Toggle Performance
Replies: 8
Views: 14252

Re: Pin Toggle Performance

Sorry to dig this up.
I failed to find any documentation on this part:
GPIO_OUT = ptr32(0x60000300) # GPIO base register
for i in range(100):
GPIO_OUT[1] = 0x10 # set bit 4
GPIO_OUT[2] = 0x10 # clear bit 4
Is there documentation or is it obsolete by now?
by poesel
Tue Apr 14, 2020 4:26 pm
Forum: General Discussion and Questions
Topic: TI ADS1231/ADS1232/ADS1234
Replies: 3
Views: 3040

Re: TI ADS1231/ADS1232/ADS1234

Thanks - I'll look into it.
by poesel
Mon Apr 13, 2020 4:44 pm
Forum: General Discussion and Questions
Topic: TI ADS1231/ADS1232/ADS1234
Replies: 3
Views: 3040

TI ADS1231/ADS1232/ADS1234

These are ADC for bridges, mostly used for scales.

Has anyone successfully communicated with one of these?

Apart from this:
https://github.com/IJonez/DMS/tree/test
I came up empty handed wrt to python.

Thanks