<?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/" >

<channel><title><![CDATA[
	
	Dare2Tech
	
	 - Electronics]]></title><link><![CDATA[http://www.dare2tech.com/electronics]]></link><description><![CDATA[Electronics]]></description><pubDate>Tue, 07 Apr 2020 12:34:48 -0700</pubDate><generator>Weebly</generator><item><title><![CDATA[PIC32 Remote Control Car]]></title><link><![CDATA[http://www.dare2tech.com/electronics/pic32-remote-control-car]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/pic32-remote-control-car#comments]]></comments><pubDate>Sat, 08 Aug 2015 12:08:56 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/pic32-remote-control-car</guid><description><![CDATA[(function(jQuery) {function init() { wSlideshow.render({elementID:"947338932644072030",nav:"thumbnails",navLocation:"bottom",captionLocation:"bottom",transition:"fade",autoplay:"0",speed:"5",aspectRatio:"auto",showControls:"true",randomStart:"false",images:[{"url":"5/3/1/0/53105635/7554629.jpg","width":"400","height":"300"},{"url":"5/3/1/0/53105635/5290149.jpg","width":"400","height":"300"},{"url":"5/3/1/0/53105635/7578244.jpg","width":"400","height":"300"}]}) }jQuery ? jQuery(init) : document.o [...] ]]></description><content:encoded><![CDATA[<div><div style="height:20px;overflow:hidden"></div><div id='947338932644072030-slideshow'></div><div style="height:20px;overflow:hidden"></div></div><div class="paragraph" style="text-align:left;">This is a short overview of the components used to make yourself a remote controlled car using a PIC32 microcontroller.<br><br>Have you ever wanted to make and control your own car, see below for the components used. In the future I will go over an in depth tutorial with schematics of the connections.<br><br>Items used:<br><ul><li>PIC32 microcontroller</li></ul><ul><li>Power source</li></ul><ul><li>L293D Push-Pull 4-Channel Driver</li></ul><ul style=""><li style="">XL6009 Step-up module</li><li style="">Four Arduino wheels</li><li style="">Breadboard</li><li style="">Several jumper wires</li><li style="">Some rubber bands</li><li style="">Some cardboard</li><li style="">My PIC32BTN Android application</li><li style="">HC-05 Bluetooth Module<br></li></ul><br>Most of the items used I found on eBay for fairly cheap. The power source I used was a 5 volt 10,000 mAh power bank that was then boosted to 6 volts using the step-up module which would power the car for several hours of fun. Seen in the video and photos I used my MAKEmicro32 microcontroller board seen plugged in the breadboard.<br><br>See my contact page to request the code I used or if you would like me to put together the in depth tutorial with schematics for a guide to connect everything together.<br><br><br></div><div><div id="187343970738453646" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><iframe width="400" height="255" src="https://www.youtube.com/embed/wE_dRujDSW4" frameborder="0" allowfullscreen=""></iframe></div></div><div><div id="707193904263181022" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[PIC32 Pull-Up and Pull-Down(*)    Internal Resistors]]></title><link><![CDATA[http://www.dare2tech.com/electronics/pic32-pull-up-and-pull-down-internal-resistors]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/pic32-pull-up-and-pull-down-internal-resistors#comments]]></comments><pubDate>Sat, 01 Aug 2015 12:10:51 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/pic32-pull-up-and-pull-down-internal-resistors</guid><description><![CDATA[Click the above photos for details.Have you ever used a resistor with a button on a breadboard so you can use the button to control something when the button was pressed or not pressed, with internal resistors on the input of your microcontroller you can avoid needing that resistor on the breadboard. This is a simple tutorial to demonstrate the use of an internal pull-up resistor seen on the left button in photo and an internal pull-down resistor seen on right button in photo that are internally [...] ]]></description><content:encoded><![CDATA[<div><div style="height: 20px; overflow: hidden;"></div><div id='577189475117452165-gallery' class='imageGallery' style='line-height: 0px; padding: 0; margin: 0'><div id='577189475117452165-imageContainer0' style='float:left;width:49.95%;margin:0;'><div id='577189475117452165-insideImageContainer0' style='position:relative;margin:5px;'><div class='galleryImageHolder' style='position:relative; width:100%; padding:0 0 75.08%;'><div class='galleryInnerImageHolder'><a href='http://www.dare2tech.com/uploads/5/3/1/0/53105635/7646459_orig.jpg' rel='lightbox[gallery577189475117452165]' onclick='if (!window.lightboxLoaded) return false' title='This is a simplified schematic version of the board seen in the next picture. The internal pull-up resistor is seen on the left button and the internal pull-down resistor is seen on the right button. '><img src='http://www.dare2tech.com/uploads/5/3/1/0/53105635/7646459.jpg' class='galleryImage' style='position:absolute;border:0;width:80.94%;top:0%;left:9.53%'></a></div></div></div></div><div id='577189475117452165-imageContainer1' style='float:left;width:49.95%;margin:0;'><div id='577189475117452165-insideImageContainer1' style='position:relative;margin:5px;'><div class='galleryImageHolder' style='position:relative; width:100%; padding:0 0 75.08%;'><div class='galleryInnerImageHolder'><a href='http://www.dare2tech.com/uploads/5/3/1/0/53105635/33621_orig.jpg' rel='lightbox[gallery577189475117452165]' onclick='if (!window.lightboxLoaded) return false' title='This is the board used with the code example file attached below. When the button is pressed the LED on the same side as the button will either turn on or off depending on which internal resistor is being used. You can alter the code so that each button acts the same even though they are at different logic levels.'><img src='http://www.dare2tech.com/uploads/5/3/1/0/53105635/33621.jpg' class='galleryImage' style='position:absolute;border:0;width:29.65%;top:0%;left:35.17%'></a></div></div></div></div><span style='display: block; clear: both; height: 0px; overflow: hidden;'></span></div><div style="height: 20px; overflow: hidden;"></div></div><div class="paragraph" style="text-align:center;">Click the above photos for details.<br></div><div><div style="height: 0px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 10px; overflow: hidden; width: 100%;"></div></div><div class="paragraph" style="text-align:left;">Have you ever used a resistor with a button on a breadboard so you can use the button to control something when the button was pressed or not pressed, with internal resistors on the input of your microcontroller you can avoid needing that resistor on the breadboard. This is a simple tutorial to demonstrate the use of an internal pull-up resistor seen on the left button in photo and an internal pull-down resistor seen on right button in photo that are internally available on a PIC32 microcontroller input pin, this example demonstrates them being used with a button to turn on or off an LED on each side of the microcontroller.<br><br>Example internal pull-up resistor code:<br>&nbsp; pinMode(3, INPUT_PULLUP);<br><br>Example internal pull-down resistor code:<br>&nbsp; pinMode(17, INPUT_PULLDOWN);<br><br>To read the current value on the input use:<br>&nbsp; digitalRead(3);<br>&nbsp; or<br>&nbsp; digitalRead(17);<br><br>See the attached file for the complete code example using each one, an internal pull-up and an internal pull-down resistor. The way the code is written is that when the input pin reads high (3.3 volts) the LED is on and when the input pin reads low (0 volts) the LED is off.<br><br>Note (*) : Some of the PIC32 microcontroller versions only support internal pull-up resistors on I/O pins, so be sure to reference the datasheet if you are trying to use internal pull-down resistors on input pins. This code example is using a PIC32MX250F128B microcontroller which has both pull-up and pull-down internal resistors available to be used. Checking the datasheet for the PIC32MZ and PIC32MX1XX/2XX microcontroller versions, they have pull-up and pull-down internal resistors available.<br></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/pic32_internal_pullup_pulldown_example.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>pic32_internal_pullup_pulldown_example.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>1 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/pic32_internal_pullup_pulldown_example.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div id="546570346326121059" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[PIC32 using Transistor as Switch LED]]></title><link><![CDATA[http://www.dare2tech.com/electronics/pic32-using-transistor-as-switch-led]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/pic32-using-transistor-as-switch-led#comments]]></comments><pubDate>Tue, 30 Jun 2015 23:39:56 GMT</pubDate><category><![CDATA[PIC32]]></category><category><![CDATA[Transistors]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/pic32-using-transistor-as-switch-led</guid><description><![CDATA[Click to enlarge imageA microcontroller pin has a limited amount of current you can supply which is typically enough to light up one LED at a time. For instance the PIC32MX250F128B microcontroller the absolute maximum current drawn by any I/O pin is 15mA referencing the datasheet. By using a transistor you can increase this amount significantly, the PN2222A is capable of sinking up to 450mA and the IRLU024NPBF is capable of sinking 15A. You can even control higher voltages then your microcontrol [...] ]]></description><content:encoded><![CDATA[<div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a href='http://www.dare2tech.com/uploads/5/3/1/0/53105635/3520507_orig.png' rel='lightbox' onclick='if (!lightboxLoaded) return false'><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/3520507_orig.png" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%">Click to enlarge image</div></div></div><div class="paragraph" style="text-align:left;">A microcontroller pin has a limited amount of current you can supply which is typically enough to light up one LED at a time. For instance the PIC32MX250F128B microcontroller the absolute maximum current drawn by any I/O pin is 15mA referencing the datasheet. By using a transistor you can increase this amount significantly, the PN2222A is capable of sinking up to 450mA and the <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> is capable of sinking 15A. You can even control higher voltages then your microcontroller pin could normally handle as well.<br><br>This example will demonstrate using two different transistors to switch on and off several LED's from one I/O pin. This example is sinking around 200mA of current for the eight LED's connected to each transistor. The setup used in this demo draws under 6mA of current from the microcontroller pin when using a PN2222A transistor and basically 0mA using a <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF. I purchased the transistors from Tayda Electronics, making the&nbsp;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""></span></span></span></span></span></span></span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> sixty-five cents</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> and the PN2222A five cents each.<br><br>Items used:<br>1 &nbsp; PIC32MX250F128B microcontroller board<br>9&nbsp;&nbsp; White LED's with 220ohm resistors<br>2&nbsp;&nbsp; 830 point Breadboards<br>2&nbsp;&nbsp; 470 OHM resistor (one for each transistor)<br>1&nbsp;&nbsp; PN2222A transistor<br>1&nbsp;&nbsp; <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> transistor<br>Some black 22AWG solid wire<br>Some red 22AWG solid wire<br>A few jumper wires<br><br>PN2222A pinout photo can be found here:<br><a target="_blank" title="" style="" href="http://bit.ly/1C6FxQz"><span style="">http://</span>bit.ly/1C6FxQz</a><br><br><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> pinout photo can be found here:<br><a target="_blank" title="" style="" href="http://bit.ly/1eYSJg0"><span style="">http://</span>bit.ly/1eYSJg0</a><br><br>See the video below for a demo of it being controlled by a PIC32 microcontroller and a simplified version of the circuit schematic connections to each of the different transistors used.<br><br>Direct video link: <a title="" target="_blank" href="https://youtu.be/6XEnEG-1PdQ">https://youtu.be/6XEnEG-1PdQ<br></a></div><div><div id="708406809415410255" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><iframe width="400" height="255" src="https://www.youtube.com/embed/6XEnEG-1PdQ" frameborder="0" allowfullscreen=""></iframe></div></div><div><div id="437733919757465582" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[Bluetooth HC-05 or HC-06 Tutorial with PIC32]]></title><link><![CDATA[http://www.dare2tech.com/electronics/bluetooth-hc-05-or-hc-06-tutorial-with-pic32]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/bluetooth-hc-05-or-hc-06-tutorial-with-pic32#comments]]></comments><pubDate>Sun, 21 Jun 2015 03:43:03 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/bluetooth-hc-05-or-hc-06-tutorial-with-pic32</guid><description><![CDATA[This is a simple starter tutorial to work with a Bluetooth module (HC-05 or HC-06) using the PIC32BLUE Android application (you can use PIC32BLUE+ and/or PIC32BTN apps instead too depending on which example code you are using that is attached below).  Materials used: 1) One Microcontroller (PIC32MX250F128B) 2) One Bluetooth module 3) Four jumper wires (male to female) 4) Power source (10,000 mAh power bank battery pack 5volts) 5) Android phone/tablet with PIC32BLUE installed (device must have Bl [...] ]]></description><content:encoded><![CDATA[<div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/1736024_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style="">This is a simple starter tutorial to work with a Bluetooth module (HC-05 or HC-06) using the PIC32BLUE Android application (you can use PIC32BLUE+ and/or PIC32BTN apps instead too depending on which example code you are using that is attached below).</span> <span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">Materials used:</span><br><span style=""></span><br><span style=""></span> <span style="">1) One Microcontroller (PIC32MX250F128B)</span><br><span style=""></span><br><span style=""></span> <span style="">2) One Bluetooth module</span><br><span style=""></span><br><span style=""></span> <span style="">3) Four jumper wires (male to female)</span><br><span style=""></span><br><span style=""></span> <span style="">4) Power source (10,000 mAh power bank battery pack 5volts)</span><br><span style=""></span><br><span style=""></span> <span style="">5) Android phone/tablet with PIC32BLUE installed (device must have Bluetooth capability)</span><br><span style=""></span><br><span style=""></span>&nbsp; <span style=""></span><br><span style=""></span> <span style="">Important note, the Bluetooth module power source and inputs should be at 3.3 volts only. VCC on the Bluetooth module should be connected to 3.3 volts and GND should be connected to ground seen in the photo.</span><br><span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">The power bank is optional and can be switched out with power source and the jumper wire connection style may vary depending on the connectors available on your microcontroller board to make the necessary connections.</span><br><span style=""></span><br><span style=""></span> <span style="">Connections between the microcontroller pins to the stepper motor PCB are as follows:</span><br><span style=""></span><br><span style=""></span> <span style="">Bluetooth Module &lt;----to----&gt; PIC32 Microcontroller Pin</span><br><span style=""></span><br><span style=""></span> <span style=""><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> RXD<span style="">&nbsp;&nbsp;</span> &lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> TX</span><br><span style=""></span><br><span style=""></span> <span style=""><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> TXD<span style="">&nbsp;&nbsp;</span> &lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> RX</span><br><span style=""></span><br><span style=""></span> <span style="">Note: RX means receive and TX means transmit, so the Bluetooth module will transmit to the microcontrollers receive pin and vice versa.</span><br><span style=""></span><br><span style=""></span> <span style="">Note2: You may want to change the code attached in this post to use a different serial port, so you will want to replace the word &ldquo;Serial&rdquo; in the code to either Serial0 or Serial1, etc according to the pins you would like to connect to.</span><br><span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">A quick and easy way of replacing all of the &lsquo;Serial&rsquo; words with a few quick steps is the following:</span><br><span style=""></span><br><span style=""></span> <span style="">When in MPIDE with the code sketch opened, hold down the &ldquo;ctrl&rdquo; (control) key on your keyboard then press the &ldquo;F&rdquo; key, a pop-up will show, you can then type the word Serial inside the &ldquo;Find:&rdquo; section and type the word Serial0 (or whichever one you wanted to use) into the &ldquo;Replace with:&rdquo; section, once both sections have what you wanted to change click on the &ldquo;Replace All&rdquo; button and all the changes have been made throughout the code example.</span><br><span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">The connections will vary according to the microcontroller board you are using so be sure to check your datasheet or board&rsquo;s manual for pinouts to ensure you are connecting to the correct pins. You can also navigate to where you have the MPIDE folder installed on your computer then follow the following file path below to see all of the available board folders then select the folder for your current board and reference the Board_Defs.h file, scrolling down in that file until you see the &ldquo;Serial Port Declarations&rdquo;. Note: as soon as the softwareSerial library is added into MPIDE I will be sure to update this post with an example using softwareSerial for an easier connection/wiring example with consistent pin number connections between board selections.</span><br><span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">Windows file path example below once inside the MPIDE folder on your computer:</span><br><span style=""></span><br><span style=""></span> <span style="">***\hardware\pic32\variants\...</span><br><span style=""></span><span style=""></span><span style=""></span><br><span style=""></span><br><span style=""></span> <span style="">For using the DP32 board settings I used the following connections and changed the provided code to use Serial0 :</span><br><span style=""></span><br><span style=""></span> <span style="">Bluetooth Module &lt;----to----&gt; PIC32 Microcontroller Pin</span><br><span style=""></span><br><span style=""></span> <span style=""><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> RXD<span style="">&nbsp;&nbsp;</span> &lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> 14</span><br><span style=""></span><br><span style=""></span> <span style=""><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> TXD<span style="">&nbsp;&nbsp;</span> &lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> <span style="">&nbsp;</span>6</span><span style=""></span><br><br>Five different code examples attached below. Be sure to read through them and choose which one fits your needs the best. They are listed as the easiest first to the hardest last.<br><span style=""></span></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_simple_echo_with_delay.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>hc05_or_hc06_simple_echo_with_delay.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>0 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_simple_echo_with_delay.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_simple_echo_without_delay.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>hc05_or_hc06_simple_echo_without_delay.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>0 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_simple_echo_without_delay.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_with_delay_toggle_led_simple.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>hc05_or_hc06_with_delay_toggle_led_simple.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>0 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_with_delay_toggle_led_simple.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_delay_toggle_leds.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>hc05_or_hc06_delay_toggle_leds.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>1 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_delay_toggle_leds.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_without_delay_toggle_leds.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>hc05_or_hc06_without_delay_toggle_leds.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>1 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/hc05_or_hc06_without_delay_toggle_leds.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div id="899439097179831275" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[Stepper motor (28BYJ-48) Tutorial]]></title><link><![CDATA[http://www.dare2tech.com/electronics/-stepper-motor-28byj-48-introduction]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/-stepper-motor-28byj-48-introduction#comments]]></comments><pubDate>Sat, 13 Jun 2015 04:16:38 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/-stepper-motor-28byj-48-introduction</guid><description><![CDATA[This is a simple starter tutorial for the 28BYJ-48 stepper motors as seen in the pictures above which may come with different looking PCB’s, but function the same. Materials used: 1) One Microcontroller (PIC32MX250F128B) 2) One 28BYJ-48 stepper motor with ULN2003 PCB 3) Four jumper wires (male to female) 4) Two jumper wires (female to female) 5) Power source (10,000 mAh power bank battery pack 5volts) The power bank is optional and can be switched out with any 5 volt power source and the jumpe [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;">This is a simple starter tutorial for the 28BYJ-48 stepper motors as seen in the pictures above which may come with different looking PCB&rsquo;s, but function the same.<br><span style=""></span><br><span style=""></span> Materials used:<br><span style=""></span><br><span style=""></span> 1) One Microcontroller (PIC32MX250F128B)<br><span style=""></span><br><span style=""></span> 2) One 28BYJ-48 stepper motor with ULN2003 PCB<br><span style=""></span><br><span style=""></span> 3) Four jumper wires (male to female)<br><span style=""></span><br><span style=""></span> 4) Two jumper wires (female to female)<br><span style=""></span><br><span style=""></span> 5) Power source (10,000 mAh power bank battery pack 5volts)<br><span style=""></span><br><span style=""></span> The power bank is optional and can be switched out with any 5 volt power source and the jumper wire connection style may vary depending on the connectors available on your microcontroller board to make the necessary connections. You will want to be sure that the power source can provide well over 200mA or 0.2amps since it will be required for the stepper motor and your microcontroller current requirements.<br><span style=""></span><br><span style=""></span> For the code examples attached I used the digital pins 13,12,11,10. You can use any digital pin, just make sure you change it accordingly in the code example attached if you do. This was put together using MPIDE for PIC32 microcontrollers, but the code will work with Arduino or similar microcontrollers as well.<br><span style=""></span><br><span style=""></span> Connections between the microcontroller pins to the stepper motor PCB are as follows:<br><span style=""></span><br><span style=""></span> Stepper motor PCB &lt;----to----&gt; PIC32 Microcontroller Pin<br><span style=""></span><br><span style=""></span> <span style="">&nbsp;&nbsp;&nbsp;</span> <span style="">&nbsp;&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;</span>IN1 <span style="">&nbsp;&nbsp;</span>&lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> 13<br><span style=""></span><br><span style=""></span> <span style="">&nbsp;&nbsp;&nbsp;</span> <span style="">&nbsp;</span><span style="">&nbsp;&nbsp;&nbsp;</span><span style="">&nbsp;</span>IN2<span style="">&nbsp;</span> <span style="">&nbsp;</span>&lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> 12<br><span style=""></span><br><span style=""></span> <span style="">&nbsp;&nbsp;&nbsp;</span> <span style="">&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;&nbsp;</span><span style="">&nbsp;</span>IN3<span style="">&nbsp;&nbsp;</span> &lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> 11<br><span style=""></span><br><span style=""></span> <span style="">&nbsp;&nbsp;&nbsp;</span> <span style="">&nbsp;&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;</span>IN4<span style="">&nbsp;</span> <span style="">&nbsp;</span>&lt;--------------wire------------&gt;<span style="">&nbsp;&nbsp;</span> 10<br><span style=""></span><br><span style=""></span> <span style="">&nbsp;&nbsp;&nbsp;</span><br><span style=""></span><br><span style=""></span> The plus sign on the stepper PCB will be connected to 5 volts (red wire in front on photos) and the minus sign will be connected to ground (black wire in front on photos). Also, depending on the stepper motor PCB the plus sign and minus sign might be located behind or in front of the pin connectors.<br><span style=""></span><br><span style=""></span> On the stepper motor PCB make sure that there is a jumper on the two pins closest to the resistors as seen in the photo near the 5 volt input connection. Sometimes depending who you purchase the stepper motor from, the jumper might be missing, the jumper is needed in order for it to function (the black jumper/connector seen in photo).<br><span style=""></span><br><span style=""></span> If you&rsquo;re interested in a detailed video explanation of how stepper motors work, I recommend this one: <a target="_blank" title="" style="" href="http://bit.ly/1MeFP7N">http://bit.ly/1MeFP7N</a><br><span style=""></span><br><span style=""></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:right"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/2389652_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_simple.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>stepper_motor_tutorial_simple.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>2 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_simple.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_forward_then_backward.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>stepper_motor_forward_then_backward.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>2 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_forward_then_backward.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_no_delay.pde"><img src="//www.weebly.com/weebly/images/file_icons/file.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>stepper_motor_tutorial_no_delay.pde</b></td></tr><tr style="display: none;"><td>File Size:</td><td>2 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pde</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/stepper_motor_tutorial_no_delay.pde" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div class="paragraph" style="text-align:left;">Direct video link: <a target="_blank" href="https://youtu.be/EOM6aipshaI">https://youtu.be/EOM6aipshaI</a></div><div><div id="958554448430695270" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><iframe width="400" height="255" src="https://www.youtube.com/embed/EOM6aipshaI" frameborder="0" allowfullscreen=""></iframe></div></div><div><div id="168412227101165330" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[chipKIT Pi (or DP32) vs Uno digitalWrite Frequency]]></title><link><![CDATA[http://www.dare2tech.com/electronics/chipkit-pi-or-dp32-vs-uno-digitalwrite-frequency]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/chipkit-pi-or-dp32-vs-uno-digitalwrite-frequency#comments]]></comments><pubDate>Mon, 08 Jun 2015 03:11:36 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/chipkit-pi-or-dp32-vs-uno-digitalwrite-frequency</guid><description><![CDATA[If anyone has ever wondered what the max frequency for the chipKIT Pi (or chipKIT DP32) is compared to the Arduino UNO using digitalWrite(), check out the differences below: This was taken using the Analog Discovery™ using WaveForms™. The PIC32 is on top and the Uno is on the bottom in the image.PIC32 frequency on average is roughly around 403.23 kHz (PIC32MX250F128B).UNO frequency on average is roughly around 128.87 kHz (ATmega328).The PIC32 has roughly a 3.13 times faster frequency than th [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">If anyone has ever wondered what the max frequency for the chipKIT Pi (or chipKIT DP32) is compared to the Arduino UNO using digitalWrite(), check out the differences below: <span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/5958965_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">This was taken using the Analog Discovery&trade; using WaveForms&trade;. The PIC32 is on top and the Uno is on the bottom in the image.<br><br>PIC32 frequency on average is roughly around 403.23 kHz (PIC32MX250F128B).<br><br>UNO frequency on average is roughly around 128.87 kHz (ATmega328).<br><br>The PIC32 has roughly a 3.13 times faster frequency than the UNO using the digitalWrite() function.<br><br>This test used the following code segment below for both:<br><br>#define pin_Toggle 13<br><br>void setup() {<br>&nbsp; pinMode(pin_Toggle, OUTPUT);<br>}<br><br>void loop() {<br>&nbsp; while(1)<br>&nbsp; {<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, HIGH);<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, LOW);<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, HIGH);<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, LOW);<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, HIGH);<br>&nbsp; &nbsp; digitalWrite(pin_Toggle, LOW);<br>&nbsp; }<br>}</span></span></span></span></span></span></span></span></span></span></div><div><div id="752071721652018231" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[Pinout Printout chipKIT PI and DP32 - PIC32MX250F128B]]></title><link><![CDATA[http://www.dare2tech.com/electronics/pinout-printout-chipkit-pi-and-dp32-pic32mx250f128b]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/pinout-printout-chipkit-pi-and-dp32-pic32mx250f128b#comments]]></comments><pubDate>Mon, 01 Jun 2015 02:00:31 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/pinout-printout-chipkit-pi-and-dp32-pic32mx250f128b</guid><description><![CDATA[Here is a printout that I put together to be able to tape on top of your microcontroller to display the pin numbers according to your board settings chosen while programming, either the chipKIT Pi or the DP32 (both use the same microcontroller).This is also perfect for people that are building their own DIY PIC32 board found in this link below:http://chipkit.net/diy-chipkit-board/Your can print them on one page or print them double sided selecting 'flip on long edge' so you can just cut the pape [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">Here is a printout that I put together to be able to tape on top of your microcontroller to display the pin numbers according to your board settings chosen while programming, either the chipKIT Pi or the DP32 (both use the same microcontroller).<br><br>This is also perfect for people that are building their own DIY PIC32 board found in this link below:<br><a title="" style="" href="http://chipkit.net/diy-chipkit-board/">http://chipkit.net/diy-chipkit-board/</a><br><br>Your can print them on one page or print them double sided selecting 'flip on long edge' so you can just cut the paper in half saving paper. The chipKIT Pi version is on the first page and the DP32 version is on the second page. Print it out, cut it, and tape it on.<br><br>If requested I can put this together for other boards and/or I can make a colored version that I am currently working on to help decipher PWM pins, analog pins, voltage inputs, and ground.<br><br>Printout Key:<br>R = MCLR<br>V = VDD = 3.3v<br>G = VSS = GND<br>C1 = OSC1 = crystal oscillator<br>C2 = OSC2 = crystal oscillator<br>T = Tantalum capacitor 10uF (positive side)<br>B = VBUS</span></span></span></span></span></span></span></span></span><br><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">L = Bootload LED output (blinks when in bootloader mode)<br>P = Program/Bootload button input pin<br><br>Hope someone finds this useful.<br><br>See the image attached below as an example and the PDF file to print as well.<br></span></span></span></span></span></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/9929556.jpg?358" alt="Pinout Printout chipKIT PI and DP32 - PIC32MX250F128B" style="width:358;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div style="margin: 10px 0 0 -10px"><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/pinout_pic32_three_boards_makemico32_&amp;_dp32_&amp;_chipkit_pi.pdf"><img src="//www.weebly.com/weebly/images/file_icons/pdf.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;"></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b>pinout_pic32_three_boards_makemico32_&amp;_dp32_&amp;_chipkit_pi.pdf</b></td></tr><tr style="display: none;"><td>File Size:</td><td>101 kb</td></tr><tr style="display: none;"><td>File Type:</td><td>pdf</td></tr></table><a href="http://www.dare2tech.com/uploads/5/3/1/0/53105635/pinout_pic32_three_boards_makemico32_&amp;_dp32_&amp;_chipkit_pi.pdf" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></div><div><div id="342623629297245542" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[Change 14 pins all at once - pic32]]></title><link><![CDATA[http://www.dare2tech.com/electronics/change-14-pins-all-at-once-pic32]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/change-14-pins-all-at-once-pic32#comments]]></comments><pubDate>Mon, 01 Jun 2015 00:08:49 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/change-14-pins-all-at-once-pic32</guid><description><![CDATA[Most of the time you would simply toggle one pin at a time on a microcontroller, but each pin takes its own small amount of time to be turned on. Using the code below you can change the state of 14 pins at the same time with a max frequency of 5Mhz all at one time.If you want the fastest way to turn on a pin see the following code below. This simultaneously turns on 14 pins and then off 14 pins using a PIC32MX250F128B microcontroller.// PIC32MX250B128F microcontroller//using DP32 board setting i [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">Most of the time you would simply toggle one pin at a time on a microcontroller, but each pin takes its own small amount of time to be turned on. Using the code below you can change the state of 14 pins at the same time with a max frequency of 5Mhz all at one time.<br><br>If you want the fastest way to turn on a pin see the following code below. This simultaneously turns on 14 pins and then off 14 pins using a PIC32MX250F128B microcontroller.<br><br><br>// PIC32MX250B128F microcontroller<br>//using DP32 board setting in MPIDE or UECIDE<br><br>void setup() {&nbsp;&nbsp;&nbsp;<br>&nbsp; delay(2500);&nbsp;<br>&nbsp; // sets pins 0-8 as outputs and turned low<br>&nbsp; for(int i = 0; i&lt;9; i++)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; pinMode(i, OUTPUT);<br>&nbsp;&nbsp;&nbsp; digitalWrite(i, LOW);&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp; }<br>&nbsp; // sets pins 11-14 as outputs and turned low<br>&nbsp; for (int i =11; i&lt;15; i++)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; pinMode(i, OUTPUT);<br>&nbsp;&nbsp;&nbsp; digitalWrite(i, LOW);<br>&nbsp; }<br>&nbsp; // pin 17<br>&nbsp; pinMode(17, OUTPUT);<br>&nbsp; digitalWrite(17,LOW);<br><br>}<br><br>void loop() {<br>&nbsp; while(true)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; LATB |= 0xEFBF;<br>&nbsp;&nbsp;&nbsp; LATB &amp;= 0x0000;<br>&nbsp; }<br>}<br></span></span></span></span></span></span></span></span></span></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">Below is a screenshot using a logic analyzer to see all 14 pins changing at the same time on the PIC32MX250F128B microcontroller.&nbsp; This was taken using the</span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">Analog Discovery&trade; using</span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">WaveForms&trade;</span></span></span></span></span></span></span>.<br></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/6893031_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/5103610_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div id="744339986163410556" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[tip120 transistor pinout]]></title><link><![CDATA[http://www.dare2tech.com/electronics/tip120-transistor-pinout]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/tip120-transistor-pinout#comments]]></comments><pubDate>Sat, 30 May 2015 02:28:33 GMT</pubDate><category><![CDATA[Transistors]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/tip120-transistor-pinout</guid><description><![CDATA[This is the pinout for the TIP120 transistor using a transistor tester.An example showing how to use it as a switch with an LED coming soon.Disclaimer - About Page [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">This is the pinout for the TIP120</span></span></span></span></span></span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">transistor using a transistor tester.</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/815202.jpg" alt="tip120 transistor pinout" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/1198329_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">An example showing how to use it as a switch with an LED coming soon.</span></span></span></span></span></span></span></span><br></span></span></span></div><div><div id="383843583827925979" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[PN2222A transistor pinout]]></title><link><![CDATA[http://www.dare2tech.com/electronics/pn2222a-transistor-pinout]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/pn2222a-transistor-pinout#comments]]></comments><pubDate>Sat, 30 May 2015 02:19:07 GMT</pubDate><category><![CDATA[Transistors]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/pn2222a-transistor-pinout</guid><description><![CDATA[This is the pinout for the PN2222A transistor using a transistor tester.An example showing how to use it as a switch with an LED coming soon. Disclaimer - About Page [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">This is the pinout for the</span></span></span></span></span></span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">PN2222A</span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">transistor using a transistor tester.</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/7385383.jpg?343" alt="PN2222A transistor pinout" style="width:343;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:right"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/8540151_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style=""><span style=""><span style="">An example showing how to use it as a switch with an LED coming soon.<br></span></span></span></span></span></span></span></span> <span style=""><span style=""><span style=""></span></span></span></span></span></span></span></span></span></div><div><div id="896453463460662868" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[IRLU024NPBF transistor pinout]]></title><link><![CDATA[http://www.dare2tech.com/electronics/irlu024npbf-transistor-pinout]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/irlu024npbf-transistor-pinout#comments]]></comments><pubDate>Sat, 30 May 2015 02:17:35 GMT</pubDate><category><![CDATA[Transistors]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/irlu024npbf-transistor-pinout</guid><description><![CDATA[This is the pinout for the IRLU024NPBF transistor using a transistor tester.An example showing how to use it as a switch with an LED coming soon.Disclaimer - About Page [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">This is the pinout for the</span></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""><span style="">IRLU024NPBF transistor using a transistor tester.</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/5093430_orig.jpg" alt="IRLU024NPBF transistor pinout" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/8037116_orig.jpg" alt="Picture" style="width:auto;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style=""><span style="">An example showing how to use it as a switch with an LED coming soon.</span></span></span></span></span></span><br></span></span></span></div><div><div id="938009230783628269" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[IRF520N TRANSISTOR PINOUT ]]></title><link><![CDATA[http://www.dare2tech.com/electronics/irf520n-transistor-pinout]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/irf520n-transistor-pinout#comments]]></comments><pubDate>Sat, 30 May 2015 02:10:22 GMT</pubDate><category><![CDATA[Transistors]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/irf520n-transistor-pinout</guid><description><![CDATA[This is the pinout for the IRF520N transistor using a transistor tester.An example showing how to use it as a switch with an LED coming soon.Disclaimer - About Page [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">This is the pinout for the IRF520N transistor using a transistor tester.<br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/989553.jpg?254" alt="IRF520N TRANSISTOR PINOUT " style="width:254;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div><div class="wsite-image wsite-image-border-none" style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"><a><img src="http://www.dare2tech.com/uploads/5/3/1/0/53105635/2928969.jpg?402" alt="Picture" style="width:402;max-width:100%"></a><div style="display:block;font-size:90%"></div></div></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);">An example showing how to use it as a switch with an LED coming soon.</span></span></span></span><span style=""><span style=""><span style=""></span></span></span></span></span></span></div><div><div id="382496567576663417" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item><item><title><![CDATA[Ways to Toggle digital pin]]></title><link><![CDATA[http://www.dare2tech.com/electronics/ways-to-toggle-digital-pin]]></link><comments><![CDATA[http://www.dare2tech.com/electronics/ways-to-toggle-digital-pin#comments]]></comments><pubDate>Tue, 26 May 2015 19:51:26 GMT</pubDate><category><![CDATA[PIC32]]></category><guid isPermaLink="false">http://www.dare2tech.com/electronics/ways-to-toggle-digital-pin</guid><description><![CDATA[﻿There are many different ways to toggle a digital pin on a PIC32 microcontroller using MPIDE or UECIDE.I will be going over a few different ways available and then going over the details for each if there is any interest in a complete code example to run.﻿﻿1)&nbsp;&nbsp;&nbsp; digitalWrite(14, HIGH);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; digitalWrite(14, LOW);2)&nbsp;&nbsp;&nbsp; LATA |= 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LATA &amp;= ~1;3)&nbsp;&nbsp;&nbsp; LATAbits.LATA1 = 1;&nbsp;&nbs [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span class="rangySelectionBoundary" style="line-height: 0; display: none;" id="selectionBoundary_1432672711637_06794788108614602">&#65279;</span>There are many different ways to toggle a digital pin on a PIC32 microcontroller using MPIDE or UECIDE.<br><br>I will be going over a few different ways available and then going over the details for each if there is any interest in a complete code example to run.<br><br><br><span class="rangySelectionBoundary" style="line-height: 0; display: none;" id="selectionBoundary_1432672711637_9935339592661335">&#65279;</span></span></span></span></span></span></span></span></span></span></span></span></span></div><div class="paragraph" style="text-align:left;"><span style='text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);'><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span style="text-decoration:none; font-style:normal; font-weight:400; color:rgb(255, 255, 255);"><span class="rangySelectionBoundary" style="line-height: 0; display: none;" id="selectionBoundary_1432672716843_46171327544296137">&#65279;</span>1)&nbsp;&nbsp;&nbsp; digitalWrite(14, HIGH);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; digitalWrite(14, LOW);<br><br>2)&nbsp;&nbsp;&nbsp; LATA |= 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LATA &amp;= ~1;<br><br>3)&nbsp;&nbsp;&nbsp; LATAbits.LATA1 = 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LATAbits.LATA1 = 0;<br><br>4)&nbsp;&nbsp;&nbsp; digitalWrite(14, ~digitalRead(14));<br><br>5)&nbsp;&nbsp;&nbsp; digitalWrite(14, !digitalRead(14));<br><br>6)&nbsp;&nbsp;&nbsp; LATAINV =1;<br><br>7)&nbsp;&nbsp;&nbsp; LATASET=1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LATACLR=1;<br><br>Do you have a favorite way to access a digital pin or another way not listed?<br><br>Feel free to leave a comment below.<br></span></span></span></span></span></span> <span style=""><span style=""><span style=""><span style=""><span style=""><span style=""></span></span></span></span></span></span></span></span></span></span></span></span></div><div><div id="929632801129089534" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><a href="http://www.dare2tech.com/about.html">Disclaimer - About Page</a></div></div><div><div style="height: 20px; overflow: hidden; width: 100%;"></div><hr class="styled-hr" style="width:100%;"><div style="height: 20px; overflow: hidden; width: 100%;"></div></div>]]></content:encoded></item></channel></rss>