Search found 888 matches

by mnfisher
Sun May 05, 2024 9:55 pm
Forum: General
Topic: IOT_Made_Easy - or not?
Replies: 10
Views: 50

Re: IOT_Made_Easy - or not?

I've done no better either. Managed to get it running in sim - so at least not waiting on an upload every time - but no update from FC. Works AOK from Edge.

Pour me a glass too - time for some down time!
by mnfisher
Sun May 05, 2024 8:49 pm
Forum: General
Topic: IOT_Made_Easy - or not?
Replies: 10
Views: 50

Re: IOT_Made_Easy - or not?

I posted earlier on vc about this. Sometimes second click.
by mnfisher
Sun May 05, 2024 7:30 pm
Forum: General
Topic: IOT_Made_Easy - or not?
Replies: 10
Views: 50

Re: IOT_Made_Easy - or not?

Enjoy the wine ;) I do have some esp8266 boards around - wonder how Ben got on with adding them as a target? I was hoping for minimal power consumption here - and probably only need one reading per 24 hours. I had an experiment with two parallel (ish) conductors and using an ADC to measure across th...
by mnfisher
Sun May 05, 2024 6:10 pm
Forum: General
Topic: IOT_Made_Easy - or not?
Replies: 10
Views: 50

Re: IOT_Made_Easy - or not?

Thanks - I did see the API keys - and maybe should just use those. The 'MadeEasy' tag took my eye though... Just tried using a 'GET' using the API string - and that doesn't work either :-( Maybe I'm not designed to be connected. - CoPilot helped :-) Now can update via Edge and a URL - not yet throug...
by mnfisher
Sun May 05, 2024 5:58 pm
Forum: General
Topic: IOT_Made_Easy - or not?
Replies: 10
Views: 50

IOT_Made_Easy - or not?

An appeal for help with the IOT_Made_Easy component. I set up an account with thingspeak.com - and created a single channel with one data field (Field 1) (WaterLevel) This also has a channel id - which I feel comes into play somewhere? I also set up a MQTT device (LoftMonitor) Which has a long Id, p...
by mnfisher
Sat May 04, 2024 2:54 pm
Forum: General
Topic: If then in a calculation
Replies: 2
Views: 40

Re: If then in a calculation

One for the first is

Xyz = (Xyz +1) % 10

Which will cycle back to 0 when Xyz reaches 10 - xyz = 0..9
by mnfisher
Thu May 02, 2024 8:53 pm
Forum: Projects - Embedded
Topic: PIC Random Nunber
Replies: 6
Views: 64

Re: PIC Random Nunber

The issue with Random() is that the resultant sequence will be the same on every run. Great idea from Iain to use a 'genuinely random number (possibly as a seed) - for example current time in ms or a floating pin.. You can do this with a C Block and srand(FCL_SEED); Where .seed is the value you want...
by mnfisher
Thu May 02, 2024 7:31 pm
Forum: Projects - Embedded
Topic: PIC Random Nunber
Replies: 6
Views: 64

Re: PIC Random Nunber

Flowcode had random() and you could use something like:

500+(random() % 3500) to generate time between 500 and 4000 then delay in ms...

Martin
by mnfisher
Mon Apr 29, 2024 9:16 pm
Forum: General
Topic: Esp32 Tasks - communication and control
Replies: 0
Views: 82

Esp32 Tasks - communication and control

A work in progress. The esp32 makes it easy to have multiple tasks performing different functions. For example a task could update an LED display when required. There are several options to communicate data to a task - for example to change the LED colour. For example there are queues, semaphores an...
by mnfisher
Mon Apr 29, 2024 8:12 pm
Forum: Projects - Embedded
Topic: COMPONENT MACRO RESET TIMER
Replies: 3
Views: 80

Re: COMPONENT MACRO RESET TIMER

Something is going wrong with the PrintNumber - which will only show a 16 bit value. I did a few things. 1) I removed the ResetTimer and Added 'true' to the StartTimer to reset it. 2) I added an .x = GetRawCount into the loop in main (to check the value was actually changing) 3) Then - I added a con...