Batmonitor » History » Version 4
Txinto Vaz, 11/12/2014 11:19 PM
1 | 1 | Txinto Vaz | h1. Construction of a BATmonitor |
---|---|---|---|
2 | 1 | Txinto Vaz | |
3 | 1 | Txinto Vaz | {{>toc}} |
4 | 1 | Txinto Vaz | |
5 | 1 | Txinto Vaz | Present mini-project will develop a Battery monitor using an Arduino Uno R3 and the uCANca tools. |
6 | 1 | Txinto Vaz | |
7 | 1 | Txinto Vaz | To build a testable circuit, we will implement a solution like this one: |
8 | 1 | Txinto Vaz | |
9 | 1 | Txinto Vaz | http://arduino.cc/en/Tutorial/ReadAnalogVoltage |
10 | 1 | Txinto Vaz | |
11 | 1 | Txinto Vaz | After we have played with the potentiomenter, the idea is to switch the input to monitor the battery level of a robot or toy controlled by the Arduino. |
12 | 1 | Txinto Vaz | |
13 | 1 | Txinto Vaz | h2. Project creation |
14 | 1 | Txinto Vaz | |
15 | 1 | Txinto Vaz | We will create a project called BatMonitor in uCANca. |
16 | 1 | Txinto Vaz | |
17 | 1 | Txinto Vaz | !Bat01.png! |
18 | 1 | Txinto Vaz | |
19 | 1 | Txinto Vaz | And add ourselves as team member (as contributor). |
20 | 1 | Txinto Vaz | |
21 | 1 | Txinto Vaz | !Bat02.png! |
22 | 1 | Txinto Vaz | |
23 | 1 | Txinto Vaz | Add the main function of the system: Monitor the battery voltage value. |
24 | 1 | Txinto Vaz | |
25 | 1 | Txinto Vaz | !Bat03.png! |
26 | 1 | Txinto Vaz | |
27 | 1 | Txinto Vaz | !Bat04.png! |
28 | 1 | Txinto Vaz | |
29 | 1 | Txinto Vaz | Add the secondary function of the system: Discretize battery voltage values into different battery ranges. |
30 | 1 | Txinto Vaz | |
31 | 1 | Txinto Vaz | !Bat05.png! |
32 | 1 | Txinto Vaz | |
33 | 1 | Txinto Vaz | Add a diagnostics function on battery: Warn (and register) battery low levels. |
34 | 2 | Txinto Vaz | |
35 | 2 | Txinto Vaz | !Bat06.png! |
36 | 3 | Txinto Vaz | |
37 | 3 | Txinto Vaz | And another diagnostic function for battery high: Warn (and register) battery high levels. |
38 | 3 | Txinto Vaz | |
39 | 3 | Txinto Vaz | !Bat07.png! |
40 | 3 | Txinto Vaz | |
41 | 3 | Txinto Vaz | As summary: |
42 | 3 | Txinto Vaz | |
43 | 3 | Txinto Vaz | !Bat08.png! |
44 | 4 | Txinto Vaz | |
45 | 4 | Txinto Vaz | To make the system more testable, we will introduce a function that uses the LED to inform of the current situation of the system: |
46 | 4 | Txinto Vaz | |
47 | 4 | Txinto Vaz | !Bat09.png! |