Search found 1644 matches

by mnfisher
Wed Jan 28, 2026 9:51 pm
Forum: General
Topic: Rolling average - circular buffer questions
Replies: 4
Views: 49

Re: Rolling average - circular buffer questions

If using the circular buffer - then if you don't mind destroying the contents of the buffer - then it's possible - it returns the earliest samples first (so - if you want the last 10 - then discard until 10 (or 10 minutes worth) remain - then average) If you need to keep all the values (user chooses...
by mnfisher
Wed Jan 28, 2026 1:50 pm
Forum: General
Topic: Implementing a non blocking delay
Replies: 71
Views: 4602

Re: Implementing a non blocking delay

Demo runs rather better if exported as a Flowcode app....


Martin
by mnfisher
Wed Jan 28, 2026 11:43 am
Forum: General
Topic: Implementing a non blocking delay
Replies: 71
Views: 4602

Re: Implementing a non blocking delay

I did a simulation only version of the 'slots' approach.... The only v11 (maybe) thing is LED::SetState() - Can replace with If(value) LedOn else LedOff. As it's simulation only - memory not an issue :-) In my crude 'conveyor belt' animation it takes an item about 30s to get from 'button' to 'reject...
by mnfisher
Wed Jan 28, 2026 7:05 am
Forum: General
Topic: Implementing a non blocking delay
Replies: 71
Views: 4602

Re: Implementing a non blocking delay

A couple of other ideas.... To handle the multiple 'item' issue. Both in 'idea' form... Represent the conveyor as a series of slots - where 0 is okay and one is 'faulty' - this could be a circular buffer (or an array of bytes / bits) - this needs to 'move' in sync with the conveyor. When a high puls...
by mnfisher
Tue Jan 27, 2026 10:01 pm
Forum: General
Topic: Rolling average - circular buffer questions
Replies: 4
Views: 49

Re: Rolling average - circular buffer questions

Should be able to do what you want it to.. If you set to save the last '5' values (as an example - I know you will need more) So it will always contain 5 values (after at least 5 have been read) - and adding new will overwrite the earliest data. However - get indexed value returns the value at the i...
by mnfisher
Tue Jan 27, 2026 3:35 pm
Forum: General
Topic: SmartScope Offer
Replies: 5
Views: 106

Re: SmartScope Offer

Yes - it does do that :-)
by mnfisher
Tue Jan 27, 2026 3:04 pm
Forum: General
Topic: SmartScope Offer
Replies: 5
Views: 106

Re: SmartScope Offer

Didn't know about the spectrum analyser - will have to check that out.

Never used the frequency generator either (it always seems a bit 'fiddly') - and if you get really fancy it's all open-source - so you can add the feature you need :-)

Still comes highly recommended.

Martin
by mnfisher
Tue Jan 27, 2026 12:24 pm
Forum: General
Topic: SmartScope Offer
Replies: 5
Views: 106

SmartScope Offer

For a few days (till 2/2/26) the LabNation SmartScope is on offer at Elektor ( https://www.elektor.com/products/labnation-smartscope-usb-oscilloscope?_pos=1&_psq=smartsc&_ss=e&_v=1.0) for £67.15 (+VAT) I've used mine for many years (and it is always on the desk) - although it doesn't hav...
by mnfisher
Tue Jan 27, 2026 12:19 pm
Forum: Projects - Embedded
Topic: Esp32 QRCode generation and decode
Replies: 3
Views: 348

Re: Esp32 QRCode generation and decode

As it outputs the QR code text, QR version and ECC level - I used V for version - so it looks like

Greetings from Flowcode V5 - for a little nostalgia. I used v11 - but the encoder decided on a V5 QR code...
by mnfisher
Tue Jan 27, 2026 12:16 pm
Forum: Projects - Embedded
Topic: Esp32 QRCode generation and decode
Replies: 3
Views: 348

Re: Esp32 QRCode generation and decode

And to decode.... This just creates a QR code - and then decodes it using 'quirc' - I struggled initially to get the decoder to recognise any QR code (the image can contain multiple - just one here) - and the 'trick' was inverting the image - originally I created it as white (255) on black (0) - but...