<?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>Wilcoxon PC420V vibration sensor with a Raspberry Pi 5</title><link>/products/raspberry-pi/raspberrypi_projects/b/blog/posts/wilcoxon-pc420v-vibration-sensor-with-a-raspberry-pi-5</link><description>Vibration analysis is important for any industrial process, as it provides us with a lot of information about the mechanical state of the machines we use. It also allows us to use their signals as interlocks in PLC programming, etc. Therefore, one of</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Wilcoxon PC420V vibration sensor with a Raspberry Pi 5</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/wilcoxon-pc420v-vibration-sensor-with-a-raspberry-pi-5</link><pubDate>Mon, 22 Jul 2024 14:47:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:967494fb-2dde-4f04-8d2b-f69d0143c622</guid><dc:creator>kmikemoo</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nice project.&amp;nbsp; What will be its application?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28186&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wilcoxon PC420V vibration sensor with a Raspberry Pi 5</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/wilcoxon-pc420v-vibration-sensor-with-a-raspberry-pi-5</link><pubDate>Mon, 22 Jul 2024 09:34:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:967494fb-2dde-4f04-8d2b-f69d0143c622</guid><dc:creator>michaelkellett</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;My first thought was:&lt;/p&gt;
&lt;p&gt;If you use the &amp;#39;Insert&amp;#39; then &amp;#39;code&amp;#39; functions you may be able to preserve the indentation on your code, without which Python is rather hard to follow.&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:e690ff4f-9f9f-4b07-874c-2cf117094d7e:type=text&amp;text=%20%20%20%20freq%20%3D%20list%28range%28101%29%29%0A%20%20%20%20ampl%20%3D%20list%28range%28101%29%29%0A%20%20%20%20%0A%20%20%20%20for%20step%20in%20range%280%2C101%29%3A%0A%20%20%20%20%20%20%20%20message%20%3D%20%22%3ASOUR2%3AAPPL%3ASIN%20%7B%3A.2f%7D%2C5%2C0%2C0%5Cn%22.format%28fs%29%0A%20%20%20%20%20%20%20%20siggen.sendall%28bytes%28message%2C%20%27UTF-8%27%29%29%0A%20%20%20%20%20%20%20%20freq%5Bstep%5D%20%3D%20fs%0A%20%20%20%20%20%20%20%20%23print%28%22Frequency%3A%20%7B%3A.2f%7D%20%5Ct%22.format%28fs%29%29%0A%20%20%20%20%20%20%20%20print%28%22%3ASOUR2%3AAPPL%3ASIN%20%7B%3A.2f%7D%2C5%2C0%2C0%5Cn%22.format%28fs%29%29%0A%20%20%20%20%20%20%20%20fs%20%3D%20fs%20%2A%20sm%0A%20%20%20%20%20%20%20%20time.sleep%281%29%0A%20%20%20%20%20%20%20%20message%20%3D%20%22MEAS%3AVOLT%3ADC%3F%20AUTO%5Cn%22%0A%20%20%20%20%20%20%20%20hpdmm.sendall%28bytes%28message%2C%20%27UTF-8%27%29%29%0A%20%20%20%20%20%20%20%20rpy%20%3D%20%20%28hpdmm.recv%281024%29%29%0A%20%20%20%20%20%20%20%20res%20%3D%20float%28rpy%29%0A%20%20%20%20%20%20%20%20ampl%5Bstep%5D%20%3D%20res%0A%20%20%20%20%20%20%20%20print%20%28%22DMM%20reading%20%7B%3A.4f%7D%5Ct%22.format%28res%29%29%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20hpdmm.close%28%29%0A%20%20%20%20siggen.close%28%29%20%0A]&lt;/p&gt;
&lt;p&gt;It still looks wrong in the window while your are editing but it looks OK when posted..&lt;/p&gt;
&lt;p&gt;(The actual code is just the first example with formatting I found - not relevant to your blog !)&lt;/p&gt;
&lt;p&gt;The ADS 1115 isn&amp;#39;t the ideal ADC for this work. It has a very nasty frequency response curve (page 12 of the data sheet) so at 860 s/s the response is about -3dB @ 400Hz but only - 18dB at 2kHz. (figures obtained by scaling from the graph on page 12).&lt;/p&gt;
&lt;p&gt;So you need an anti aliasing filter because out of band signals will be aliased back into the low frequency range.&lt;/p&gt;
&lt;p&gt;You could get some filtering in your differential amplifier..&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t understand your current to speed function - the sensor is an accelerometer so I feel that there should be a&amp;nbsp; double integrator somewhere but I didn&amp;#39;t spot it.&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28186&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Wilcoxon PC420V vibration sensor with a Raspberry Pi 5</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/wilcoxon-pc420v-vibration-sensor-with-a-raspberry-pi-5</link><pubDate>Sat, 20 Jul 2024 18:03:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:967494fb-2dde-4f04-8d2b-f69d0143c622</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nicely done.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28186&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>