<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Smarter Life Challenge - Brainwaves based appliance controller - Update 5</title><link>/challenges-projects/design-challenges/smarter-life/b/blog/posts/smarter-life-challenge---brainwaves-based-appliance-controller---update-5</link><description>This was a “bumpy” weekend; it started quite good: I built an active Butterworth second order low pass filter using one of the opamps inside PsoC4. I put together all external components and configured the PsoC opamp to route the output off-chi...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Smarter Life Challenge - Brainwaves based appliance controller - Update 5</title><link>https://community.element14.com/challenges-projects/design-challenges/smarter-life/b/blog/posts/smarter-life-challenge---brainwaves-based-appliance-controller---update-5</link><pubDate>Tue, 17 Dec 2013 07:13:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:afc322ec-7b77-415a-ab0a-e0c93fe289c9</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Cosmin,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I really liked your project idea and the by looking at your updates, I am quite certain that you will be able to get your idea working on PSoC 4.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I was going through your this post I figured out that you need comparators in your design. I think i can help you with this, PSoC 4 has two OpAmps which can also be configured as Comparators, apart from this PSoC 4 also have a pair of Low power comparators (LPComp), you can use them to create a window detector, the only problem is these comparators can only generate an interrupt and cant provide a hardware output, but this can be be easily dealt inside PSoC 4 by using the interrupt to set a Control register which can be virtually used as a comparator output.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;There is one more trick to get a window comparator, in this trick use the ADC, the ADC in PSoC 4 can generate an interrupt when the input is outside a window or within a window, you can use this interrupt as a virtual comparator. Moreover you can change the window levels at run time if use ADC.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Let me know if you need any further information.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Rahul&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16630&amp;AppID=105&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Smarter Life Challenge - Brainwaves based appliance controller - Update 5</title><link>https://community.element14.com/challenges-projects/design-challenges/smarter-life/b/blog/posts/smarter-life-challenge---brainwaves-based-appliance-controller---update-5</link><pubDate>Tue, 26 Nov 2013 22:19:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:afc322ec-7b77-415a-ab0a-e0c93fe289c9</guid><dc:creator>vsluiter</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nice post, Cosmin&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Glad you shared that debugging process, could save others a lot of time. Have you contacted your Cypress contact to see whether they can tell you how that happened?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I really like that you&amp;#39;re showing your &amp;#39;mess&amp;#39; of electronics to us. Each engineer has his own style, and you already got to a very nice result!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Have you thought about using the PSOC5 on the same board? I guess it has more analog peripherals!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16630&amp;AppID=105&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Smarter Life Challenge - Brainwaves based appliance controller - Update 5</title><link>https://community.element14.com/challenges-projects/design-challenges/smarter-life/b/blog/posts/smarter-life-challenge---brainwaves-based-appliance-controller---update-5</link><pubDate>Mon, 25 Nov 2013 20:46:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:afc322ec-7b77-415a-ab0a-e0c93fe289c9</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good update.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I appreciate your perserverence in tracking down the problem.&amp;nbsp; I would not have thought that the PSOC IDE had a built in optimizer.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That said, I am not surprised.&amp;nbsp; Everytime I use a new software assembler and compiler I have to find out what interesting artifacts they put into the final code.&lt;/p&gt;&lt;p&gt;In this instance, have them play with the hardware as well is very useful information.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16630&amp;AppID=105&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>