Search found 5200 matches

by pythoncoder
Mon Jun 14, 2021 1:42 pm
Forum: General Discussion and Questions
Topic: Saving data on ramdisk before a WDT event
Replies: 2
Views: 64

Re: Saving data on ramdisk before a WDT event

If the ESP32 is crashing, RAM contents will be lost. You could use the network to log data to another machine. In general ramdisks don't make much sense in a microcontroller context because RAM is scarce. If you want to save data in RAM, you're best off saving it in Python objects (lists, dicts or a...
by pythoncoder
Mon Jun 14, 2021 1:26 pm
Forum: General Discussion and Questions
Topic: Job Postings Allowed?
Replies: 2
Views: 79

Re: Job Postings Allowed?

As far as I know (as co-mod) I think this should be OK.
by pythoncoder
Mon Jun 14, 2021 1:25 pm
Forum: General Discussion and Questions
Topic: Implementing SENT Interface in MicroPython?
Replies: 4
Views: 69

Re: Implementing SENT Interface in MicroPython?

17µs is about what I'd expect. This doc explains how to optimise speed, but as you mentioned you may need to use the inline assembler. This can achieve very high performance. It is also possible to write native C modules , however the learning curve for these is similar to that of the assembler (in ...
by pythoncoder
Mon Jun 14, 2021 1:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: RPi pico machine.SPI periodic dropout.
Replies: 5
Views: 274

Re: RPi pico machine.SPI periodic dropout.

I tried this and failed to replicate the fault. To provoke occasional GC I first ran some floating point maths. I then ran a large application which performs periodic GC. In each case the output of the filter was stable. Assuming you guys are running recent firmware I can only conclude that this fau...
by pythoncoder
Mon Jun 14, 2021 9:18 am
Forum: Raspberry Pi microcontroller boards
Topic: RPi pico machine.SPI periodic dropout.
Replies: 5
Views: 274

Re: RPi pico machine.SPI periodic dropout.

Very possible, but I think that if Pyboards had this problem it would have been spotted by now.

A minimal test case might be to run PWM at a fixed frequency with a 50% duty ratio, put the result through an RC filter, and look for glitches with a scope.
by pythoncoder
Sun Jun 13, 2021 1:34 pm
Forum: General Discussion and Questions
Topic: Pin.irq: Handlers for each Trigger
Replies: 3
Views: 101

Incremental encoders

The easy way to handle encoders is to use the ^ exclusive or operator. See encoder_portable.py.
by pythoncoder
Sun Jun 13, 2021 1:29 pm
Forum: General Discussion and Questions
Topic: Need help uploading modules to hardware
Replies: 2
Views: 122

Re: micropython

mattyt wrote:
Sat Jun 12, 2021 2:13 am
...
In the future, please use a more descriptive title so community members can see if the thread is relevant to them. For example, it would be best to change this thread to something like "Need help uploading modules".
Now done.
by pythoncoder
Sat Jun 12, 2021 6:29 am
Forum: ESP32 boards
Topic: ESP32 for Smart attendance system(Face Recognition)
Replies: 2
Views: 528

Re: ESP32 for Smart attendance system(Face Recognition)

Vishwesh Bhat wrote:
Thu May 27, 2021 4:01 am
...
4. Is my hardware choice(ESP32) wrong for this project? Suggest me what else could I use to make things simpler.
...
See http://openmv.io/. These guys have camera hardware which runs MicroPython and code to to this kind of thing.
by pythoncoder
Thu Jun 10, 2021 5:09 pm
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 19
Views: 2453

Re: Cannot get access to /dev/ttyACM0

Good idea. Here is the relevant output: [ 1752.750204] usb 1-1: new full-speed USB device number 5 using xhci_hcd [ 1752.901103] usb 1-1: New USB device found, idVendor=2e8a, idProduct=0005, bcdDevice= 1.00 [ 1752.901108] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1752.90111...
by pythoncoder
Wed Jun 09, 2021 12:32 pm
Forum: ESP32 boards
Topic: Pin.PULL_UP not working?
Replies: 1
Views: 64

Pin.PULL_UP not working?

Reading forum posts this must have worked in the past. Yet I've tested today on two boards - including the reference board - with the same floating pin result. Adding physical resistors fixed the problem. Am I missing something or has a regression crept in? I'm running the latest daily build. The se...