<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IR Shield Archives - GHOST BOX HACKS</title>
	<atom:link href="https://www.ghostboxhacks.com/category/irshield/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ghostboxhacks.com/category/irshield/</link>
	<description>Are you Tech Enough?</description>
	<lastBuildDate>Thu, 13 Jul 2023 20:31:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://www.ghostboxhacks.com/wp-content/uploads/ghostboxhacks_favicon32.png</url>
	<title>IR Shield Archives - GHOST BOX HACKS</title>
	<link>https://www.ghostboxhacks.com/category/irshield/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Arduino Powered IR Illuminator!</title>
		<link>https://www.ghostboxhacks.com/arduino-powered-ir-illuminator/</link>
		
		<dc:creator><![CDATA[Bill Chappell]]></dc:creator>
		<pubDate>Wed, 11 Jun 2014 16:26:17 +0000</pubDate>
				<category><![CDATA[IR Shield]]></category>
		<category><![CDATA[Projects]]></category>
		<guid isPermaLink="false">http://www.ghostboxhacks.com/webpress/?p=83</guid>

					<description><![CDATA[<p>Download Sample IR Code</p>
<p>The post <a href="https://www.ghostboxhacks.com/arduino-powered-ir-illuminator/">Arduino Powered IR Illuminator!</a> appeared first on <a href="https://www.ghostboxhacks.com">GHOST BOX HACKS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter"><a href="https://www.ghostboxhacks.com/wp-content/uploads/irshield.jpg"><img fetchpriority="high" decoding="async" width="300" height="300" src="https://www.ghostboxhacks.com/wp-content/uploads/irshield-300x300.jpg" alt="irshield" class="wp-image-84" srcset="https://www.ghostboxhacks.com/wp-content/uploads/irshield-300x300.jpg 300w, https://www.ghostboxhacks.com/wp-content/uploads/irshield-150x150.jpg 150w, https://www.ghostboxhacks.com/wp-content/uploads/irshield-100x100.jpg 100w, https://www.ghostboxhacks.com/wp-content/uploads/irshield.jpg 720w" sizes="(max-width: 300px) 100vw, 300px" /></a></figure></div>


<h2 class="wp-block-heading"><a href="https://www.ghostboxhacks.com/wp-content/uploads/shield.zip">Download Sample IR Code</a></h2>



<ul class="wp-block-list">
<li>Bellow is the sample code to power the IR shield.</li>



<li>The sample flashes from Channel 1 to 2 to 3 and varies the intensity of the LEDs as well.</li>



<li>The ability to set the intensity is crucial. All too often we see images that are wiped out from to strong IR.</li>



<li>By changing the value of &#8220;y&#8221; in the sample you can change the intensity of the LEDs.</li>



<li>By turning the channels on and off you can create a strobe effect.</li>



<li>Stay Safe: These are very powerful IR &#8220;infrared&#8221; LEDs. Though no warnings have been issued, be safe and avoid looking at them directly.</li>
</ul>



<pre class="wp-block-code"><code>========================================================================================================
/*
GhostBoxHack.com 
IR Shield Sample Code
*/

// Define the pins used to power and run the shield

int ch1 = 3; // LEDS 1&amp;2
int ch2 = 5; // LEDS 3&amp;4
int ch3 = 6; // LEDS 5&amp;6
int x = 100; // Delay in ms
int y = 0;   // PWM duty cycle
int pwr = 9; // Main Power control

void setup(void)
// Tell the Arduino how to use the pins
{
   pinMode(3, OUTPUT);      // sets the digital pin as output
   pinMode(5, OUTPUT);      // sets the digital pin as output
   pinMode(6, OUTPUT);      // sets the digital pin as output
   pinMode(9, OUTPUT);      // sets the digital pin as output
}

// Strobe and change intensity
void loop()
{
  analogWrite(pwr, y);
  digitalWrite(ch1, HIGH);   // sets the LED on
  delay(x);                      // waits for a second
  digitalWrite(ch1, LOW);  // sets the LED off
  delay(x);                     // waits for a second
  digitalWrite(ch2, HIGH); // sets the LED on
  delay(x);                    // waits for a second
  digitalWrite(ch2, LOW); // sets the LED off
  delay(x);                    // waits for a second
  digitalWrite(ch3, HIGH); // sets the LED on
  delay(x);                    // waits for a second
  digitalWrite(ch3, LOW); // sets the LED off
  delay(x);                   // waits for a second
  x--;
  y++;
 if (x &lt; 1) x = 100 ; 
 if (y &gt; 75) y = 0;
}</code></pre>
<p>The post <a href="https://www.ghostboxhacks.com/arduino-powered-ir-illuminator/">Arduino Powered IR Illuminator!</a> appeared first on <a href="https://www.ghostboxhacks.com">GHOST BOX HACKS</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
