Search found 140 matches

by kwiley
Wed Apr 14, 2021 5:58 pm
Forum: MicroPython pyboard
Topic: Input voltage limit, V+ as output, and actuator power supply options
Replies: 4
Views: 4454

Re: Input voltage limit, V+ as output, and actuator power supply options

Thank you for the reply. What about my confusion about using V+/VIN for input and output at the same time? If I don't provide USB power, but rather supply battery power to V+ or perhaps utilize a DC wart that goes to a barrel instead of USB and break the barrel apart to supply a V+ pin, can I then s...
by kwiley
Wed Apr 14, 2021 6:20 am
Forum: General Discussion and Questions
Topic: Adding an Ethernet Interface
Replies: 3
Views: 1854

Re: Adding an Ethernet Interface

I connected an ethernet port to a PyBoard at one point, but I did it with a WizNet. As I recall, it worked perfectly. I actually got a second WizNet device after that, a different model. I can't remember what the difference or purported advantage of the second model was. I never got around to wiring...
by kwiley
Tue Apr 13, 2021 5:52 pm
Forum: MicroPython pyboard
Topic: Input voltage limit, V+ as output, and actuator power supply options
Replies: 4
Views: 4454

Input voltage limit, V+ as output, and actuator power supply options

The spec diagram (pybv11-pinout.jpg) and the MicroPython webpage (https://store.micropython.org/product/PYBv1.1H) and the SparkFun page (https://learn.sparkfun.com/tutorials/pyboard-hookup-guide/all) all say V+ can be 3.6-16V, but the docs say it can only take up to 10V (https://docs.micropython.org...
by kwiley
Fri Apr 09, 2021 11:49 pm
Forum: General Discussion and Questions
Topic: Why does utime.gmtime() exist?
Replies: 2
Views: 1491

Re: Why does utime.gmtime() exist?

Oh! I had no idea. Thanks.
by kwiley
Fri Apr 09, 2021 11:48 pm
Forum: MicroPython pyboard
Topic: How to trigger delayed callback from interrupt
Replies: 4
Views: 4078

Re: How to trigger delayed callback from interrupt

Thanks, as always, for your responses. I'll see if I can get something working. It certainly seems like a reasonable tasks: trigger a delayed callback or interrupt, and do so *from* an interrupt with all the vagaries that involves (no memory allocation, etc.). I can imagine lots of uses for a callba...
by kwiley
Fri Apr 09, 2021 2:51 pm
Forum: General Discussion and Questions
Topic: Setting RTC subseconds
Replies: 0
Views: 1180

Setting RTC subseconds

The docs say this: ---------- RTC.datetime([datetimetuple]) Get or set the date and time of the RTC. With no arguments, this method returns an 8-tuple with the current date and time. With 1 argument (being an 8-tuple) it sets the date and time (and subseconds is reset to 255). The 8-tuple has the fo...
by kwiley
Fri Apr 09, 2021 1:38 pm
Forum: General Discussion and Questions
Topic: Why does utime.gmtime() exist?
Replies: 2
Views: 1491

Why does utime.gmtime() exist?

I realize utime is a MicroPython conversion of time and that time offers a gmtime() function, but given that time is specially tailored to MicroPython and that MicroPython doesn't offer built-in timezone calculations anyway, and given that gmtime() returns the same value of localtime(), why is gmtim...
by kwiley
Thu Apr 08, 2021 11:29 pm
Forum: MicroPython pyboard
Topic: How to trigger delayed callback from interrupt
Replies: 4
Views: 4078

How to trigger delayed callback from interrupt

I have a pin interrupt catching a rising edge of a signal. I use that to turn an LED on. I'd like to turn the LED off a moment later, perhaps 100ms or so. I tried catching the time in a global variable with ticks_ms() in the callback and then waiting for the main loop to detect that 100ms had transp...
by kwiley
Thu Apr 08, 2021 10:58 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 89129

Re: ntptime kills the wifi station, hard reset required to fix

That would seem to indicate that it ran to the end successfully. I have an ESP32 I could test it with too I suppose, and scads of ESP8266s lying around. That would seem to suggest that the PyBoard D specific firmware has a problem. I'd love for something else with a D to try this. I have three Ds my...