{"id":14366,"date":"2016-07-01T10:16:39","date_gmt":"2016-07-01T17:16:39","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=14366"},"modified":"2021-06-16T14:08:27","modified_gmt":"2021-06-16T21:08:27","slug":"adding-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/adding-a-raspberry-pi\/","title":{"rendered":"Adding a Raspberry Pi to the Xbox Cooling System"},"content":{"rendered":"<p>In a<a href=\"https:\/\/digilent.com\/blog\/thermistor-fan-control-using-labview\/\"> previous blog\u00a0post<\/a>\u00a0I talked about my problems with my Xbox 360 overheating and the fan control project that I was using to try and correct the problem (seen below).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14358\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-600x450.jpeg\" alt=\"new\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-600x450.jpeg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-768x576.jpeg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-1024x768.jpeg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-800x600.jpeg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/05\/new-1200x900-cropped.jpeg 1200w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>It occurred to me that this would be an excellent opportunity to use the new <a href=\"https:\/\/digilent.com\/shop\/raspberry-pi-2\/\">Raspberry Pi<\/a> LabVIEW Application released with <a href=\"http:\/\/www.instructables.com\/id\/Using-a-Raspberry-Pi-to-Control-a-WF32-With-LabVIE\/\">LINX 3.0<\/a>. I decided to recreate my project so I could place my fans and servo in my entertainment center with my chipKIT\u00a0<a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32<\/a>,\u00a0then have my Raspberry Pi control it over WiFi. A picture of my project is shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14498\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FL4WKCEIOZ562MR.MEDIUM-600x450.jpg\" alt=\"FL4WKCEIOZ562MR.MEDIUM\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FL4WKCEIOZ562MR.MEDIUM-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FL4WKCEIOZ562MR.MEDIUM.jpg 620w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>As you can see, this project is split into two different circuits. The first circuit (shown below) allows a <a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32 <\/a>to monitor temperature using a thermistor while controlling two fans and a servo.\u00a0The fans will automatically turn on if a certain temperature is reached and the servo will turn 90 degrees.\u00a0This helps regulate the temperature of any device in an entertainment center without running your fans continuously, which reduces the life of your fans and wastes electricity.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14496\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FVAI24GIOZ521YT.LARGE_-600x450.jpg\" alt=\"FVAI24GIOZ521YT.LARGE\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FVAI24GIOZ521YT.LARGE_-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FVAI24GIOZ521YT.LARGE_-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FVAI24GIOZ521YT.LARGE_.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FVAI24GIOZ521YT.LARGE_-800x600.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The second circuit (shown below) is used to control the first circuit.\u00a0One of the switches will be an on\/off switch; the <a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32 <\/a>circuit will only work when it is switched on. The other switch allows the user to alternate between automatic and manual control of the first circuit. If a user knows\u00a0that they are about to generate heat, they can flip this switch on to change to manual fan control. Once this switch is moved, the fans will turn on\u00a0successively. On the second click, the servo will turn on and begin to move. Then on the third click, the fans will turn\u00a0off again\u00a0and the servo will return to its starting position.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14497\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FDECCHZIOZ55YAO.LARGE_-600x450.jpg\" alt=\"FDECCHZIOZ55YAO.LARGE\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FDECCHZIOZ55YAO.LARGE_-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FDECCHZIOZ55YAO.LARGE_-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FDECCHZIOZ55YAO.LARGE_.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/FDECCHZIOZ55YAO.LARGE_-800x600.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Both of these circuits are controlled using <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW <\/a>(Block diagram and Control panel are shown below). There are several steps you must take to allow the Raspberry Pi to control The <a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32 <\/a>over WiFi. The first step is to connect the <a href=\"https:\/\/digilent.com\/shop\/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers\/\">WF32 <\/a>to WiFi using the <a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\">LINX <\/a>Firmware Wizard. Next, you will need to setup your Raspberry Pi and \u00a0install <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW <\/a>on it. Finally, you will need to deploy a startup executable for this VI it will run without being controlled by a computer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14502\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/F8I71WQIP08X8CN.LARGE_-600x263.jpg\" alt=\"F8I71WQIP08X8CN.LARGE\" width=\"600\" height=\"263\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/F8I71WQIP08X8CN.LARGE_-600x263.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/F8I71WQIP08X8CN.LARGE_-768x336.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/F8I71WQIP08X8CN.LARGE_.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/F8I71WQIP08X8CN.LARGE_-800x350.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14505\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Raspberrypi-WF32__Fan__Controlp-550x600.png\" alt=\"Raspberrypi-WF32__Fan__Controlp\" width=\"540\" height=\"589\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Raspberrypi-WF32__Fan__Controlp-550x600.png 550w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Raspberrypi-WF32__Fan__Controlp.png 741w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/p>\n<p>My Instructable &#8220;<a href=\"http:\/\/www.instructables.com\/id\/Using-a-Raspberry-Pi-to-Control-a-WF32-With-LabVIE\/\">Using a Raspberry Pi to control a WF32 with LabVIEW<\/a>&#8221; will take you through these steps and help you make a fully functioning entertainment cooling system using the Raspberry Pi and LabVIEW. Check out my other blog post &#8220;<a href=\"https:\/\/digilent.com\/blog\/setting-up-a-raspberry-pi-to-control-a-wf32-with-labview\/\">Setting up a Raspberry pi to control a WF32 with LabVIEW<\/a>&#8220;, which gives you detailed instructions on how to use a Raspberry Pi to control a <a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-with-chipkit-wf32\/\">WF32<\/a>.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-14366 jlk' data-task='like' data-post_id='14366' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-14366 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-14366 jlk' data-task='unlike' data-post_id='14366' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-14366 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-14366 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Austin continues his noble quest to cool his Xbox with the addition of a Raspberry Pi!<\/p>\n","protected":false},"author":42,"featured_media":15125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4327],"tags":[],"ppma_author":[4493],"class_list":["post-14366","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/feat.jpg","jetpack_sharing_enabled":true,"authors":[{"term_id":4493,"user_id":42,"is_guest":0,"slug":"astanton","display_name":"Austin Stanton","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/0cc9db2caf6344c8f78ea46c21570f33a954c45596addf479125043e52431de0?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=14366"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14366\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/15125"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=14366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=14366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=14366"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=14366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}