<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — code for smooth fading of led]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=585&amp;type=atom" />
	<updated>2018-09-21T10:36:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=585</id>
		<entry>
			<title type="html"><![CDATA[Re: code for smooth fading of led]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1815#p1815" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>david wrote:</cite><blockquote><p>Hello,<br />I don&#039;t seam to be able do get a smooth fading of a led from off to fully on using the slider. i use a wemos d1 mini. Is this not possible to do? if so, what code can i implement for this?</p></blockquote></div><p>The interface is not as fast as it could be, so new values come in in larger jumps than is desirable.</p><p>You could try implementing a first-order filtering or smoothing algorithm, the maths is simple...</p><p>FV=FV+C(NV-FV)</p><p>Where:<br />FV= Filtered value<br />C= constant (range 0-1) The smaller the number the more dampening.<br />NV= New Value</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-09-21T10:36:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1815#p1815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[code for smooth fading of led]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1814#p1814" />
			<content type="html"><![CDATA[<p>Hello,<br />I don&#039;t seam to be able do get a smooth fading of a led from off to fully on using the slider. i use a wemos d1 mini. Is this not possible to do? if so, what code can i implement for this?</p>]]></content>
			<author>
				<name><![CDATA[david]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=459</uri>
			</author>
			<updated>2018-09-21T08:04:25Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1814#p1814</id>
		</entry>
</feed>
