10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Power</strong> sources<br />

99<br />

Thanks to commonly available electronics, creating a simple power supply for<br />

the Beagles is relatively easy. A power supply based on the 7805 voltage regulator<br />

is shown in Figure 5.1. The 7805 series of chips are easy to use, but are not the most<br />

efficient option available. Because this chip is available from multiple vendors, you<br />

should consult the appropriate datasheet. The two most important items to check are<br />

the minimum input voltage <strong>and</strong> maximum output current.<br />

The minimum input voltage may vary from 6 to 8 V, <strong>with</strong> 7 V being a common<br />

value. A chip capable of delivering 1 A of current is probably sufficient to run a headless<br />

drone. Running a system <strong>with</strong> a touch screen from battery is not recommended.<br />

Keep in mind that the higher the input voltage is above the minimum, the more<br />

energy is wasted as heat.<br />

This is a very simple circuit. The battery or batteries used must supply a voltage<br />

above the minimum required for your 7805. The C1 capacitor is used to smooth the<br />

voltage from the battery during intermittent spikes such as those generated by wireless<br />

transmissions. The C2 capacitor is used to smooth out any voltage ripples coming<br />

from the 7805. The battery should be disconnected when not in use as the 7805<br />

will draw power even <strong>with</strong>out anything connected to the output.<br />

The 7805 is available in several packages. The TO-220 package is one of the more<br />

common options. The TO-220 allows a heat sink to be attached. An entire power supply<br />

is easily created by directly soldering components. A power supply <strong>with</strong> a 3 cent<br />

(3 pennies soldered together) heat sink is shown in Figure 5.2. Once you have tested the<br />

circuit, I recommend you use hot glue (or something similar) to keep things from moving<br />

around, leading to broken circuits <strong>and</strong>/or electrical shorts.<br />

You may wish to consider building the small power supply circuit on a prototyping<br />

pegboard. There are a couple advantages to doing this. First, a 2-pin header can be used<br />

to allow easy switching of batteries from one type to another depending on the situation.<br />

Second, copper on one side of the protoboard could be used as a heat sink for the<br />

7805. Finally, putting the circuit on a board tends to make it more rugged <strong>and</strong> less<br />

prone to damage. A power supply built on a prototyping board is shown in Figure 5.3.<br />

When selecting batteries, the goal is often to find the smallest, lightest, <strong>and</strong><br />

cheapest solution that will do the job. This is not as simple as it may first sound.<br />

It is not always possible to know exactly how long a penetration test will last or<br />

how easy it might be to replace batteries during the test. If you intend to use NiMH<br />

G1<br />

+<br />

-<br />

6 - 9 V<br />

+<br />

C1<br />

120+ uF<br />

IC1<br />

7805T<br />

1<br />

VI VO<br />

GND<br />

2<br />

3<br />

+ C2<br />

120+ uF<br />

X1<br />

1<br />

3<br />

2<br />

2.1 ´ 5.5 mm<br />

FIGURE 5.1<br />

A simple power supply based on the 7805 voltage regulator.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!