How to use _P218_SlowPWM.ino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
remicade
Normal user
Posts: 2
Joined: 21 Jul 2019, 19:07

How to use _P218_SlowPWM.ino

#1 Post by remicade » 21 Jul 2019, 19:17

Hi All,
I would like to use the _P218_SlowPWM.ino for a smoker which is now electrically heated by a relay.
This is working o.k. but with a PI control loop it will be even beter.

First hurdle is to compile a bin file with the _P218_SlowPWM.ino included.
I have tried several options but this P218 doesn show up in the devices...

Second hurdle will be the control from and to Domoticz....That is for later.

Is there a bin file available in which the _P218_SlowPWM.ino and _P120_Thermocouple.ino are already in?
Where to find?

Thanks for now. any help is usefull.
Paul

remicade
Normal user
Posts: 2
Joined: 21 Jul 2019, 19:07

Re: How to use _P218_SlowPWM.ino

#2 Post by remicade » 17 Aug 2019, 10:02

Hi all....
Can somebody at least tell me step by step how to add P218_SlowPWM.ino as an extra feature?
For one or another reason I do not figure out how to do this...
Yes, I did read and tried sveral webpages about this.
Thanks anyway!
Paul

TD-er
Core team member
Posts: 1650
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to use _P218_SlowPWM.ino

#3 Post by TD-er » 28 Aug 2019, 09:22

Well thanks to the spammer your topic came up again.

The plugins from the playground are not all up-to-date with the current state of the core code in the main repository.

One thing you need to do (apart from copying the .ino file of the plugin into the main repo code) is to add it to your selection of plugins and controllers in the define_plugin_sets.h file.

For example add it to the "normal" selection which is using the "PLUGIN_SET_STABLE" set.
So look for PLUGIN_SET_STABLE in that file and add your own "USES_P218" there

Make sure the .ino file is also having the

Code: Select all

#ifdef USES_P218
at the first line and

Code: Select all

#endif
at the last line of the file.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests