Search found 18 matches

by poesel
Thu Jun 25, 2020 6:11 pm
Forum: ESP32 boards
Topic: RMT pin state
Replies: 7
Views: 406

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: 406

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: 406

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: 6994

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: 381

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: 381

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
by poesel
Mon Feb 24, 2020 10:46 pm
Forum: Development of MicroPython
Topic: '-' in frozen module path not allowed
Replies: 2
Views: 573

Re: '-' in frozen module path not allowed

Nevermind - my fault. Problem was that /dist-packages is not a module.
by poesel
Mon Feb 24, 2020 4:05 pm
Forum: Development of MicroPython
Topic: '-' in frozen module path not allowed
Replies: 2
Views: 573

'-' in frozen module path not allowed

Hi, I try to freeze some modules. Some of them live in /dist-packages. During the build I get a lot of error messages like: build-GENERIC/frozen_content.c:5764:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token STATIC const mp_rom_obj_t const_table_data_dist-packages_shutil...
by poesel
Wed Feb 19, 2020 7:12 pm
Forum: ESP32 boards
Topic: Precedence of .mpy & .py
Replies: 2
Views: 365

Re: Precedence of .mpy & .py

Thanks - your explanation and the linked thread helped me understand it!
by poesel
Mon Feb 17, 2020 8:49 pm
Forum: ESP32 boards
Topic: Precedence of .mpy & .py
Replies: 2
Views: 365

Precedence of .mpy & .py

Hi,

if I have:

/lib/foo.py
/lib/foo.mpy
&
sys.path=['/lib']

Which module has precedence?

What if:

/lib/foo.py
/libmpy/foo.mpy
&
sys.path=['/libmpy','/lib']

What happens here?

Thanks!