14.11.2012 Views

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.7. Hardware Architecture 37<br />

With <strong>the</strong> appropriate selection <strong>of</strong> resistor R1 and R2 based on <strong>the</strong> above<br />

information, Vo will be suitable for <strong>the</strong> analog port on microcontroller. The<br />

divider is used to input to <strong>the</strong> microcontroller a signal proportional to <strong>the</strong><br />

voltage provided by <strong>the</strong> battery, so to check its charge. Note that a fully<br />

charged battery can <strong>of</strong>ten be up to 20% more <strong>of</strong> its rated value and a fully<br />

discharged battery 20% below its rated value. For example, a 7.2 V battery<br />

fully charged can be 8.4 V, and fully discharged 5 V. The voltage divider<br />

circuit allows to read <strong>the</strong> battery level from <strong>the</strong> microcontroller pinsdirectly,<br />

that will be used in order to monitor battery charging level changes.<br />

Figure 3.16: The schematics <strong>of</strong> voltage divider and voltage regulator circuit<br />

From <strong>the</strong> Figure 3.16, <strong>the</strong> pin V out is used in order to monitor <strong>the</strong> battery<br />

life, which is placed on <strong>the</strong> left side <strong>of</strong> schematics. The divided voltage<br />

is read from <strong>the</strong> analog input <strong>of</strong> <strong>the</strong> microcontroller. The voltage regulator<br />

circuit which is placed on <strong>the</strong> right part <strong>of</strong> <strong>the</strong> schematics is used to power<br />

<strong>the</strong> STLCam board with 5 V through <strong>the</strong> USB port. It can be also used in<br />

order to make <strong>the</strong> connection with <strong>the</strong> PC, to transmit some data, which<br />

we use for debug purposes.

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

Saved successfully!

Ooh no, something went wrong!