Search found 1492 matches

by kersing
Sat Mar 07, 2020 3:56 pm
Forum: Programming Tips & Tricks
Topic: Store & Retrieve ULong using EEPROM.fcfx
Replies: 16
Views: 12979

Re: Store & Retrieve ULong using EEPROM.fcfx

The obvious question would be why are you comparing strings and not numbers?

If you need to compare strings you could compare the number to see if it is < 10, add three zeros in front if the string, check < 100, add two zeros and compare < 1000 and add one zero.
by kersing
Mon Mar 02, 2020 9:00 am
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 873

Re: storing data in memory

The eeprom will not handle power cuts while being written to. That is why I wouldn’t use it.
by kersing
Sun Mar 01, 2020 11:10 pm
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 873

Re: storing data in memory

Use something like a diode in the power feed to the controller and add the capacitor between the diode and the controller. That way only the controller draws power from the capacitor.
by kersing
Sun Mar 01, 2020 10:26 pm
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 873

Re: storing data in memory

It would be better to find a way to keep the controller powered while starting. You could use a super cap to try and bridge the low power period. The controller has no ‘deeper memory’ to store variables, external memory could be used but that would require battery backup or something like it and you...
by kersing
Fri Feb 28, 2020 10:56 pm
Forum: Bugs / Application Errors
Topic: Compare$() does not work as advertised?
Replies: 8
Views: 6768

Re: Compare$() does not work as advertised?

Are you trying to compare strings? Compare$ is for strings, not other data types.
by kersing
Wed Feb 12, 2020 11:44 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 892

Re: The Things network (TTN) anyone?

The question what the coverage of a gateway will be is often asked but depends on too many variables to be predictable. From experience, if a gateway is deployed in a city within a building the range will be limited to a few kilometers at most. If the building is one of new types with all kinds of R...
by kersing
Wed Feb 12, 2020 12:26 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 892

Re: The Things network (TTN) anyone?

Keep in mind LoRa and LoRaWAN are different things. LoRaWAN adds a lot of features and standards on top of LoRa.

Thanks for the suggestion, I am not looking for hardware. I designed (and build) my own 4 years ago.
by kersing
Wed Feb 12, 2020 1:09 am
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 892

Re: The Things network (TTN) anyone?

I found this one: https://www.benl.ebay.be/itm/LoRaGo-MOTE-RN2483-LoRaWAN-Node-in-Arduino-Nano-Form-Factor/123999985035?hash=item1cdef99d8b:g:m-wAAOSwSq1d6LNn Looks promising? There is a schematic in a link. I'm going to check this out or is there a reason why it doesn't meet the requirements? Woul...
by kersing
Wed Feb 12, 2020 1:03 am
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 892

Re: The Things network (TTN) anyone?

Currently there are issues with the software stack of that gateway. The Dragino LPS8 would be a better choice and also allows connecting a better antenna. (It does not include a USB power supply, that needs to be added) If you enjoy building your own gateway based on an Raspberry Pi you should proba...
by kersing
Tue Feb 11, 2020 8:21 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 892

Re: The Things network (TTN) anyone?

Yes, first time in 2016.

I used an 8 bit pic (I have to check which one) with RN2483 LoRaWAN module from microchip. Created a Flowcode component for the RN2483.
by kersing
Sun Feb 09, 2020 1:37 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 2259

Re: FLOAT to INT and back again.

MX_FLOAT expands to a double on platforms that support double precision floating point.
by kersing
Sun Feb 09, 2020 9:57 am
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 2259

Re: FLOAT to INT and back again.

Change your union to:

Code: Select all

 typedef union
{
  float AsFloat;
  MX_UINT8 AsByte[4];
} MX_FloatUnion;

MX_FloatUnion FloatUnion;


Assign the value to AsFloat and get the bytes from the 4 AsByte vast like your earlier example.
by kersing
Sat Feb 08, 2020 10:42 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 2259

Re: FLOAT to INT and back again.

You could try to use float for the union member in stead of the MX_FLOAT. That should result in a 4 byte float.
by kersing
Sat Feb 08, 2020 6:32 pm
Forum: User Components
Topic: Component request for rotary encoder module
Replies: 2
Views: 750

Re: Component request for rotary encoder module

Perhaps you could attempt to create something yourself in stead of asking for every component you need to be created for you? Several users have used Flowcode to create components and shared them with community which is greatly appreciated. By the way, there is already a rotary encoder component , h...
by kersing
Sat Feb 08, 2020 6:27 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 2259

Re: FLOAT to INT and back again.

You added 4 bytes and read 8 into byte sized variables but your samples still show just 4 bytes worth of bits. Shouldn’t you look at 8 bytes and print the value of all 8?
by kersing
Thu Feb 06, 2020 9:25 pm
Forum: User Components
Topic: component for ADC
Replies: 8
Views: 1102

Re: component for ADC

There is no need to post the same request multiple times.
by kersing
Thu Feb 06, 2020 9:24 pm
Forum: Bug Reports
Topic: Internal DAC error FC8
Replies: 5
Views: 843

Re: Internal DAC error FC8

Can you post (attach as file) a flowchart that shows the problem?
by kersing
Wed Feb 05, 2020 9:04 am
Forum: General Programming
Topic: ADC 16bit conversion to 1µm
Replies: 10
Views: 1126

Re: ADC 16bit conversion to 1µm

Please do not post questions as topic starters in "Programming Tips & Tricks".
by kersing
Sat Jan 11, 2020 10:36 pm
Forum: Flowcode V6
Topic: ULong Variable not working!
Replies: 10
Views: 1293

Re: ULong Variable not working!

Could you provide some context? May-be even a flowchart demonstrating the issue?
by kersing
Mon Jan 06, 2020 8:27 pm
Forum: Bug Reports
Topic: PIC16F1936 software set UART... NOT correct.
Replies: 10
Views: 1370

Re: PIC16F1936 software set UART... NOT correct.

DCW wrote:can you not rewrite the routines of FLOWCODE... so that they work correctly....????


Could you provide answers to the questions Ben asked? That would help finding issues.
by kersing
Thu Dec 26, 2019 11:00 pm
Forum: Flowcode V8
Topic: Merry Christmas!
Replies: 12
Views: 1416

Re: Merry Christmas!

A bit late for Christmas wishes, so

I’m wishing everyone an
Excellent 2020
by kersing
Thu Dec 26, 2019 10:52 pm
Forum: Flowcode V8
Topic: E32 LORA tranceiver module: quick start guide
Replies: 3
Views: 2458

Re: E32 LORA tranceiver module: quick start guide

Why are you asking this question on a Flowcode forum while referring to and attaching Arduino code? Is there not a more appropriate forum available?
by kersing
Sun Jul 14, 2019 5:45 pm
Forum: Flowcode V8
Topic: ACSII <--> String
Replies: 6
Views: 1086

Re: ACSII <--> String

Just keep in mind to not exceed the length of the string - 1 with the index (number between the brackets) and to add str[last index + 1] = 0 if you are not using the entire string length as declared in Flowcode to avoid surprises.
by kersing
Tue Jul 09, 2019 10:17 pm
Forum: Flowcode V8
Topic: Arduino Nano, interrupt and UART questions
Replies: 16
Views: 1950

Re: Arduino Nano, interrupt and UART questions

The dot is used for local (in contrast to global) variables.

The percentage sign is modulus and is used to calculate the remainder after division. So 105 % 20 = 5.
by kersing
Tue Jul 09, 2019 10:11 pm
Forum: Flowcode V8
Topic: One wire problems
Replies: 3
Views: 712

Re: One wire problems

You can ignore the warning, that will be issued in working setups as well.
The 1 wire component is extremely timing critical. Make sure to get oscillator set to highest possible speed and Flowcode set to the correct click so it can calculate the delays correctly.