Search found 80 matches

by pidou46
Mon Nov 25, 2019 1:47 pm
Forum: ESP32 boards
Topic: TM2130 packwge
Replies: 3
Views: 791

Re: TM2130 packwge

I have made some experiments with Timer with a step / dir driver (like TM2130) https://github.com/pidou46/ustepper/blob/master/ustepper.py The general idea is to setup a PWM output and stop it with a Timer. You just need to compute the Timer delay to achieve the desired stroke. This solution is quit...
by pidou46
Thu Nov 07, 2019 9:28 pm
Forum: Programs, Libraries and Tools
Topic: New version of Thonny IDE
Replies: 7
Views: 3429

Re: New version of Thonny IDE

This latest release bring studding stability, it works flawlessly for all my uses cases.

kudos to Aivar :D
by pidou46
Thu Nov 07, 2019 9:23 pm
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Re: Set Pins values synchroniously

Still, I think OutoftheBOTS_ is right it could be usefull to have synchro pin value setting build in micropython, it would bring easyness and portability, I will probably open an issue on git repository since I'm (still) not able to make a PR by myself...
by pidou46
Thu Nov 07, 2019 9:16 pm
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Re: Set Pins values synchroniously

Nice, it works like a charm with the latest build.

Thank you
by pidou46
Thu Nov 07, 2019 8:25 pm
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Re: Set Pins values synchroniously

I have tried the viper code, but I get the following error:

Code: Select all

Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
SyntaxError: invalid micropython decorator
I run the same code on esp8862 and doesn't get the error
by pidou46
Thu Nov 07, 2019 8:12 pm
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Re: Set Pins values synchroniously

Thanks, I have build a complete working sample: from machine import Pin, mem16 p12=Pin(12, Pin.OUT) p14=Pin(14, Pin.OUT) p12.value(0) print(p12.value()) p14.value(0) print(p14.value()) #esp32 GPIO_OUT_REG=0x3FF44004 #set GPIO12 and GPIO14 to 1 GPIO=0b00000000000000000101000000000000 mem16[GPIO_OUT_R...
by pidou46
Tue Nov 05, 2019 7:41 am
Forum: Programs, Libraries and Tools
Topic: New version of Thonny IDE
Replies: 7
Views: 3429

Re: New version of Thonny IDE

Nice!

It's my prefered option to work with micropython powered MCU (ESP8266 ad ESP32)

It make the process of writing code for micropython alot easier thant everything I have tried before.

Thanks
by pidou46
Thu Oct 31, 2019 1:40 pm
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Re: Set Pins values synchroniously

Thanks Roberthh for your reply, I've found another post with a reply from you for the ESP8266: https://forum.micropython.org/viewtopic.php?t=5736 I get the point but I still have a hard time to make it work. import machine machine.mem16(0x3FF44008) Traceback (most recent call last): File "<stdin>", ...
by pidou46
Wed Oct 30, 2019 9:55 am
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 3784

Set Pins values synchroniously

Hello, Is there a way to set severals Pins values synchroniously rather than sequencialy ? In other words, is it possible to change Pin(1) and Pin(2) value in the same time ? My specific use case is to change microstepping configuration of a drv8825 while motor spin. Mode2 | Mode1 | Mode0 | STEP MOD...
by pidou46
Tue Oct 15, 2019 1:58 pm
Forum: ESP32 boards
Topic: Reading fan tacho signal frequency?
Replies: 8
Views: 1728

Re: Reading fan tacho signal frequency?

what I have understand is that esp are not very good at counting pulses. I have an idea, but my knoledge in electronic design is very low, so please tell me if it's pratical: wiring the pulse output to a capacitor and a resistor, so the pulse will fill the capacitor and resistor will burn this energ...