Search found 429 matches

by MJU
Tue Oct 15, 2019 11:34 pm
Forum: Flowcode V8
Topic: interrupt activate and deactivate
Replies: 9
Views: 412

Re: interrupt activate and deactivate

Hi MJU, How about starting a timer (or just a count) when the beam is broken. A second count can also be started if the second beam is interrupted (basically time how long the beam is broken for) - the count/timer increments should be in the main loop of your code. (Have two (or more) counters/time...
by MJU
Tue Oct 15, 2019 5:33 pm
Forum: Flowcode V8
Topic: interrupt activate and deactivate
Replies: 9
Views: 412

Re: interrupt activate and deactivate

I don't want to steal this topic but I was wondering about the same thing lately. What I need to do is detect which of two racetracks finishes first. I have two lasers that shine across two racetracks (70cm) and my idea was to have an interrupt detect which of these laserbeams are broken first. This...
by MJU
Wed Oct 09, 2019 5:10 pm
Forum: Flowcode V8
Topic: LEDs and LED Array not simulating correctly 8.2.1.13
Replies: 6
Views: 999

Re: LEDs and LED Array not simulating correctly 8.2.1.13

Thank you medelec35!
by MJU
Wed Oct 09, 2019 12:35 am
Forum: Flowcode V8
Topic: LEDs and LED Array not simulating correctly 8.2.1.13
Replies: 6
Views: 999

Re: LEDs and LED Array not simulating correctly 8.2.1.13

Benj wrote:Hello Simon,

Thanks for letting us know, the file should be available again in the specified location now.


Hey thanks, do we replace the existing flowcode.exe with this one?
My FC8 doesn't find the updates automatically. I have version: 8.2.0.12
by MJU
Tue Sep 10, 2019 5:15 pm
Forum: Flowcode V8
Topic: MQTT basics
Replies: 3
Views: 271

Re: MQTT basics

Thank you Leigh;

Is this some text that can get pasted into the wikipage?
by MJU
Mon Sep 09, 2019 5:41 pm
Forum: Flowcode V8
Topic: MQTT basics
Replies: 3
Views: 271

MQTT basics

I've been looking for a way to send data to a database on a server for a while and suddenly all directions point to MQTT. I'd never noticed this component and suddenly it appears the technique I was looking for. But from reading the Wiki page for the MQTT component I don't even know what hardware th...
by MJU
Tue Aug 20, 2019 11:59 pm
Forum: Flowcode V8
Topic: Multiple interupts at a time: good idea or not?
Replies: 8
Views: 529

Re: Multiple interupts at a time: good idea or not?

Thanks BenJ
by MJU
Mon Aug 19, 2019 5:10 pm
Forum: Flowcode V8
Topic: Multiple interupts at a time: good idea or not?
Replies: 8
Views: 529

Multiple interupts at a time: good idea or not?

Is it a good idea to use multiple interrupts in one project? - I want to use a timer for longer periods (1 minute) and want to accomplish this with a timer interrupt. - I need an interrupt on a UART RX change - I want one on a IO port change - And I think I would need another one. Is it a good idea ...
by MJU
Sat Jul 27, 2019 5:42 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

Re: UART "Timeout" parameter question

No shortage on beers here chipfryer :-) I think you are a bit jealous :-) I've never used the CB before, but my first experience look good. I can store the received RX data in a variable, the only thing that is left to solve is that the last byte appears double in the variable. But that won't be a g...
by MJU
Tue Jul 23, 2019 11:12 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

Re: UART "Timeout" parameter question

Thanks Leigh, The time between bytes seem a bit long indeed. The bits are about 0.103ms, so this seems right for 9600baud, but the time between bytes are about 0.152ms, what seem a bit too long. So trigger the RX with an interrupt seems the right thing to be a good path to follow. The "0" ...
by MJU
Mon Jul 22, 2019 4:41 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

A strange thing I've noticed earlier. If I receive 20bytes (9600 8N1), I suppose this would take 1.04ms/byte, so 20.8ms for these 20bytes. But the module that is connected uses 22.8ms for these 20 bytes. I calculated it and this is about 8700baud. Sometimes the Nano receives these bytes well, but ma...
by MJU
Thu Jul 18, 2019 3:42 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

Re: UART "Timeout" parameter question

LeighM wrote:Could you post the program?
This would help a lot :D


I will PM this because it's quite a mess right now..
Thanks in advance..
by MJU
Thu Jul 18, 2019 3:39 pm
Forum: Flowcode V8
Topic: Any Thingspeak examples (with ESP8266) around?
Replies: 5
Views: 601

Re: Any Thingspeak examples (with ESP8266) around?

Any word on this one? :-)
by MJU
Thu Jul 18, 2019 3:28 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

Re: UART "Timeout" parameter question

Hi, Yes, it is effectively 1 and 3 The timeout is the longest gap that the component will wait before it exits the function. The gap can be before the received characters, within the string of characters, or at the end (if the requested string length has still not been fulfilled) The usual problem ...
by MJU
Wed Jul 17, 2019 5:46 pm
Forum: Flowcode V8
Topic: UART "Timeout" parameter question
Replies: 10
Views: 906

UART "Timeout" parameter question

I don't understand how the timeout parameter in the UART receive string works. The way I see it, the parameter just waits until the UART has a HIGH to LOW on the RX pin, and after that waits until the number of bytes in the #bytes parameter is fetched. I think that when it starts receive bytes it st...
by MJU
Wed Jul 10, 2019 11:29 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

The Receive interrupt is 'odd' and I don't think it will work as you expect. You are using ReceiveString - use ReceiveChar (with a byte variable) Don't use SendString in the interrupt handler. (Receive the string and then reply - this happens in main - if each character needs echoing then do it out...
by MJU
Wed Jul 10, 2019 5:15 pm
Forum: Feature Requests
Topic: Improve/Update Matrix Wiki
Replies: 2
Views: 392

Improve/Update Matrix Wiki

Hey guys, I didn't know where to post this so I put it here. Can someone please explain the easiest way to find details for the char$ function? I'll explain why. I've been searching the Wiki for more then 15 minutes now but can't find the information for how to use this command. I've started in the ...
by MJU
Wed Jul 10, 2019 12:26 am
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

Thanks all, but it seems to boil down to a very simple thing.. With all the testing, especially with your tips of using RXint, it seems that the main problem is putting all the single received strings into one larger. The following chart I tested and it may seem a little strange, but this gives me a...
by MJU
Tue Jul 09, 2019 10:06 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

- coincidentally I was trying at the weekend to get a Wemos Mega/ESP8266 to talk to it's ESP chip (via UART4) - I failed having screwed up the ESP8266 programming :-( Can now run microPython on the ESP8266 but can't reprogram it to AT command set. Also failed to get it to talk to the Arduino side o...
by MJU
Tue Jul 09, 2019 5:39 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

Just had a quick look and a few thoughts... 1) What are you trying to send the string to? (Another Arduino etc) I have made RF (LORA) Flowcode example that sends data from one node to another. My goal is to put the receiver in different spots to receive and resend data it receives. At the sender si...
by MJU
Tue Jul 09, 2019 5:49 am
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

I used a Nano for my example program. It received from Bluetooth or Usb aok. Can you post your code, or part thereof Martin Thanks Martin, I've searched for a version that I thought worked, but didn't. This one sends a text (sendtext) and listens in the macro "receive" if it comes back. T...
by MJU
Mon Jul 08, 2019 5:49 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

Hey there, I've been trying everything I can think of to get the thing working as I want it to work. I've copied the circular buffer example from mnf in https://www.matrixtsl.com/mmforums/viewtopic.php?f=76&t=20668#p91988 but this doesn't work for me. I don't get it. My guess is that there must ...
by MJU
Mon Jul 08, 2019 3:34 pm
Forum: Flowcode V8
Topic: Any Thingspeak examples (with ESP8266) around?
Replies: 5
Views: 601

Re: Any Thingspeak examples (with ESP8266) around?

Would be great BenJ.
I wish you all @Matrix a pleasant vacation!
by MJU
Fri Jul 05, 2019 5:56 pm
Forum: Flowcode V8
Topic: Any Thingspeak examples (with ESP8266) around?
Replies: 5
Views: 601

Any Thingspeak examples (with ESP8266) around?

Does someone have an example for using Thingspeak with an ESP8266 and Flowcode? I found some posts about this topic here: https://www.matrixtsl.com/mmforums/viewtopic.php?f=63&t=18721&p=81096&hilit=ifttt#p81094 but is there an example available? Does anyone has this thing working? Maybe ...
by MJU
Thu Jul 04, 2019 5:45 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1024

Re: Arduino Nano, interrupt and UART questions

Ok thank you guys..!