<?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>Bohack &#187; Homebrew</title>
	<atom:link href="http://www.bohack.com/category/homebrew/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bohack.com</link>
	<description>Check In and Tune Out!</description>
	<lastBuildDate>Wed, 25 Aug 2010 00:44:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Phone Charger Using A 7805 Voltage Regualtor</title>
		<link>http://www.bohack.com/2010/08/phone-charger-using-a-7805-voltage-regualtor/</link>
		<comments>http://www.bohack.com/2010/08/phone-charger-using-a-7805-voltage-regualtor/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 19:14:41 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Circuit]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=389</guid>
		<description><![CDATA[My plan was to step the voltage down from a 9 volt battery to 5 volts using a 7805 voltage regulator. Two 100uf electrolytic capacitors are used to buffer the voltage for any line noise. They are placed in front of the 7805 and in back. These capacitors are not “required” for use with a 9 volt battery since there is no noise (transformer) that would come from the battery itself. This circuit can be adapted for an old DC transformer so I left them in the schematic. ]]></description>
			<content:encoded><![CDATA[<p>I recently replaced my Blackberry Curve with a Verizon Incredible. I soon found that the battery life was the only thing that wasn’t incredible about the phone. Owning a smart phone like the Incredible, Droid X, Apple iPhone or even a Windows Mobile is a paradox; because the more you use the phone the quicker the battery drains. Newer smart phones make the phone more useable than ever before, which means after a few hours the phone is dead.</p>
<p><span id="more-389"></span><br />
There are a couple ways to tact the problem of battery drain in smart phones. The first is to carry a spare battery around with you. The problem with that is the batteries are expensive, if the contacts touch metal you will start a fire. Also once you’ve discharged both batteries, its back to the battery charger in the car or home to charge two batteries now. Oh and to charge the extra battery you need to put it in the phone, which mean twice as long on the charger.</p>
<p>I recently seen a solar charger for the cell phones, the problem with that is the phone needs to be in the sunlight which also means the extreme heat from the sun. The Incredible suffers from heat charging where if the battery gets too hot it will stop charging and trip the phone out. I overheated my phone a few times while I was travelling in the heat. The Incredible will flash green and orange while on charge to signal overheating.</p>
<p>The last option I seen in an airport is called “The Charging Station”. It is a booth with every adapter known to man and a credit card slot. You buy time to charge your phone; the problem is you need to be tied down to the charging station while it’s being charged.</p>
<p>I knew that I would be using my phone a lot on the last trip I went on, so I wanted to make sure it wouldn’t go dead on my journey. My plan was to make my own Minty Boost from spare parts in my office. A Minty Boost is a small device that uses “AA” batteries and a step up converter, to step the voltage up from 3 volts to 5 volts.</p>
<p><strong>About the Circuit</strong></p>
<p>My plan was to step the voltage down from a 9 volt battery to 5 volts using a 7805 voltage regulator. Two 100uf electrolytic capacitors are used to buffer the voltage for any line noise. They are placed in front of the 7805 and in back. These capacitors are not “required” for use with a 9 volt battery since there is no noise (transformer) that would come from the battery itself. This circuit can be adapted for an old DC transformer so I left them in the schematic. The ceramic 100nf cap is to buffer the voltage during load changes and should be kept in to provide a smooth 5 volt supply.<strong></strong></p>
<p><strong><a href="http://www.bohack.com/wp-content/uploads/2010/08/7805_Phone_Charging-Circuit.jpg"  rel="lightbox[389]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/7805_Phone_Charging-Circuit-300x300-0-img395.jpg" alt="Phone Charging Circuit 7805" title="7805_Phone_Charging Circuit" width="300" height="154" class="alignnone size-medium wp-image-395" /></a></strong></p>
<p><strong>Construction</strong></p>
<p>I didn’t do anything fancy like etching a PCB, I just used some fabrication board and soldered the leads together. I also took apart an old USB hub and desoldered the female USB A-type connector. The USB connector fit nice on the fabrication perf board. I did use some epoxy to firm it up against the 7805, which worked out well because it acted like a heat sink. Of course I packaged the whole thing in an Altoids mint container that I had lying around. I used double stick tape to mount the board in the mint container and used a Dremel to cut the opening square.</p>
<a href="http://www.bohack.com/wp-content/uploads/2010/08/perfboard_fabrication.jpg"  rel="lightbox[389]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/perfboard_fabrication-300x300-0-img402.jpg" alt="Perfboard fabrication and testing before the case" title="perfboard_fabrication" width="300" height="179" class="alignnone size-medium wp-image-402" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2010/08/charging_circuit_fit_into_case.jpg"  rel="lightbox[389]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/charging_circuit_fit_into_case-300x300-0-img400.jpg" alt="Charging Curcuit fit into Altoids Case" title="charging_circuit_fit_into_case" width="300" height="179" class="alignnone size-medium wp-image-400" /></a><br />
<br />
<a href="http://www.bohack.com/wp-content/uploads/2010/08/detailed_topview_of_charging_circuit.jpg"  rel="lightbox[389]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/detailed_topview_of_charging_circuit-300x300-0-img401.jpg" alt="Detailed top view of the charging circuit fit into the Altoids case" title="detailed_topview_of_charging_circuit" width="300" height="179" class="alignnone size-medium wp-image-401" /></a>
<a href="http://www.bohack.com/wp-content/uploads/2010/08/finished_design_with_curve_charging.jpg"  rel="lightbox[389]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/finished_design_with_curve_charging-300x300-0-img403.jpg" alt="Final testing of design with my old curve." title="finished_design_with_curve_charging" width="300" height="179" class="alignnone size-medium wp-image-403" /></a>
<p>Now anytime I’m out and need a quick charge as long as I have the box in my bag, I can always find a 9 volt and charge my iPod or Incredible back up. During the trip I used it with great success and got an average of two full charges out of a 9 volt battery.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2010/08/phone-charger-using-a-7805-voltage-regualtor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Console Cable Wiring</title>
		<link>http://www.bohack.com/2009/11/cisco-console-cable-wiring/</link>
		<comments>http://www.bohack.com/2009/11/cisco-console-cable-wiring/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 15:13:59 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Telco]]></category>
		<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=328</guid>
		<description><![CDATA[Recently I needed to connect to a Cisco router and didn’t have a serial cable on hand. The Cisco routers just like their switches come supplied with a console port built in. This console port is usually a female RJ-45 in the back of the unit and is labeled console. A lot of other manufacturers [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to connect to a Cisco router and didn’t have a serial cable on hand. The Cisco routers just like their switches come supplied with a console port built in. This console port is usually a female RJ-45 in the back of the unit and is labeled console. A lot of other manufacturers also use this method to connect to their equipment; everything from Sun servers to appliance servers.</p>
<p><span id="more-328"></span></p>
<p>Usually I have a plenty of the cables on hand, but I could not find one of these in my box of tricks. I did have the EIA/TIA Serial to RJ-45 adapter, so I just needed the cable. The cable that comes supplied with Cisco equipment is a flat 8 wire telephone cable with two RJ-45 ends. The cable is called a rollover cable because Pin 1 is connected to Pin 8 on the other end and Pin 2 is connected to Pin 7 on the other end. It’ that simple!</p>
<p>It is sometimes called a null modem cable, because the all of the pins are reversed from side to side. The transmit is rolled over to the receive, the Ready To Send or RTS is directly connected to the Clear To Send or CTS, the Data Terminal Ready DTR is connected to the Data Set Ready or DSR, etc… All of the grounds are commonly tied together as well. This is why connecting to a Cisco device requires 9600 baud, 8 bits, No parity, 1 stop bit and no flow control. This is sometimes referred to as 9600,8,N,1.</p>
<p>The diagram below is how to make the rollover cable from simple Cat5 cable if you do not have the 8 wire flat Telco cable on hand that is usually gray in color. Simple crimp them down on each end of the cable as per the diagram. It does not matter which end is connected to the equipment and which end is connected to the EIA/TIA DB-9 RJ-45 connector.</p>
<a href="http://www.bohack.com/wp-content/uploads/2009/11/rollover-cable-wiring.jpg"  rel="lightbox[328]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2009/11/rollover-cable-wiring.jpg" alt="Cisco Rollover Cable Wiring" title="rollover cable wiring" width="668" height="356" class="aligncenter size-full wp-image-329" /></a>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2009/11/cisco-console-cable-wiring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bascom-AVR and the Atmel ATtiny2313</title>
		<link>http://www.bohack.com/2009/05/bascom-avr-and-the-atmel-attiny2313/</link>
		<comments>http://www.bohack.com/2009/05/bascom-avr-and-the-atmel-attiny2313/#comments</comments>
		<pubDate>Sat, 30 May 2009 17:00:33 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=316</guid>
		<description><![CDATA[Back in April I attended the Notacon the hacker-art convention up in Cleveland Ohio. The hardware hacking room had a number of little project kits they were giving out to teach people how to solder. These project kits included the chips, resistors, LEDs, serial connector and everything except the solder. They ran labs and the [...]]]></description>
			<content:encoded><![CDATA[<p>Back in April I attended the <a title="Notacon" href="http://www.notacon.org/" target="_blank">Notacon</a> the hacker-art convention up in Cleveland Ohio. The hardware hacking room had a number of little project kits they were giving out to teach people how to solder. These project kits included the chips, resistors, LEDs, serial connector and everything except the solder. They ran labs and the last day they just wanted to get rid of these project kits. So I grabbed a couple that caught my eye. One kit had an Atmel AVR programmable chip, eight LEDs and sported a 9-pin serial connector. The kit is the Mini-POV3 sold by <a title="adafruit" href="http://www.adafruit.com/" target="_blank">http://www.adafruit.com/</a> for $17.50, it’s all you need to get started with programmable chips!</p>
<p><span id="more-316"></span>So I got home that Sunday and my son and I put the Mini-POV3 kit together, it took all of 30 minutes. It is a persistence of view kit, so when you wave the device it spells a word or words out. This concept unfortunately is not something that a 4 year old can grasp and he is like “Wow, what else does it do?”</p>
<p>The heart of the kit is an Atmel AVR ATtiny2313 8-bit RISC Microcontroller; it has programmable inputs and outputs, 2KB of flash memory and can be programmed in-system. The design was ahead of its time and AVR stands for the two designers’ names “Alf and Vegard&#8217;s Risc”. The kit also comes with a 9-pin Serial connector. So a couple of tasks to program this thing…</p>
<ol>
<li>Build the project (takes about 30 minutes).</li>
<li>Get a straight thru serial cable or directly plug it into the serial port.</li>
<li>Download WinAVR from <a title="SourceForge" href="http://www.sourceforge.net/" target="_blank">http://www.sourceforge.net/</a></li>
<li>Download Bascom-AVR Demo from <a title="Bascom-AVR" href="http://www.mcselec.com/" target="_blank">http://www.mcselec.com/</a></li>
<li>Learn some QBasic and the inner workings of the Atmel AVR.</li>
</ol>
<p>Install the WinAVR program, this program will allow you to program the in-system Microcontroller. When you install it: change the path to “c:\WinAVR” and make sure that it puts the AVR binaries in the global path variable; you will be prompted during the install. Now we need to install the Bascom-AVR program which is the IDE or Integrated Development Environment and the Bascom BASIC to machine code complier. To install the Bascom-AVR program accept all defaults during the install, we will set it up next…</p>
<p>Inside of the Bascom-AVR program click on the ‘Options’ menu item and select ‘Programmer’. This is where we setup the tie between the WinAVR program called AVRDude.exe and the Bascom IDE for one click programming. Although you always have the option to find the BIN file and flash it via command line. Click the pull-down menu for Programmer and select ‘External programmer’ now in the tab below called ‘Other’ set the ‘Program’ to the path of the avrdude.exe; so it should look like this “C:\WinAVR\bin\avrdude.exe”. In the ‘Parameter’ field put “-p t2313 -P com1 -c dasa -U flash:w:{FILE}:a”; which tells avrdude.exe to write to a tiny2313, via comport 1, using direct access (dasa) and write to flash, substitute {FILE} for the filename and program it automatically. You can always Google ‘avrdude man’ for the manual page for the avrdude program or just type mine in.</p>
<a href="http://www.bohack.com/wp-content/uploads/2009/05/bascom-options.jpg"  rel="lightbox[316]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2009/05/bascom-options.jpg" alt="Bascom Options for Programmers" title="bascom-options" width="412" height="298" class="alignnone size-full wp-image-321" /></a>
<p>Now let’s compile and program the equivalent of a hello world application… However if you want to backup the original program drop to a command prompt and type “avrdude -p t2313 -P com1 -c dasa -U flash:r:backup.hex:i” and you can always write it back via “avrdude -p t2313 -P com1 -c dasa -U flash:w:backup.hex:i”. Now open a new project in Bascom-AVR by clicking File-New and type the program in below, then hit ‘F7’ to compile and ‘F4’ to program to the chip. During this process the power switch must be in the ‘On’ position, remember you are programming a single chip computer!</p>
<p>The outcome when disconnected from the serial port is: a sequential lighting of the LEDs in 2 second intervals. Now it is time for you to learn some Bascom BASIC and play with the programming yourself. Start by downloading the Bascom-AVR PDF file and reading it. You can also customize my program to make the lights blink back and forth. Start by changing the timing to 1 second, then set your next goal and learn some of the language. Happy Hacking and visit some of my sponsors for deals on AVR products (I get paid when you visit them).</p>
<pre>'Sequence LEDs
Dim X As Byte
Config PortB = Output
PortB = 0

For X = 0 To 7
 Wait 2
 PortB.X = 1
Next X

End</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2009/05/bascom-avr-and-the-atmel-attiny2313/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
