-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.dox
71 lines (55 loc) · 2.56 KB
/
MainPage.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
@mainpage Wav player.
### Description
Simple wav playing device implementation - based on atmega32.
Supports only 8bit/8khz/mono wav files (16bit/44khz/stereo is a standard now),
because of the hardware limitations.
Device use SD-card through SPI interface, supporting FAT16/32 filesystem.
Uses popular library fat-fs: http://elm-chan.org/fsw/ff/00index_e.html.
In addition device use 1.8 tft screen with resolution 128x160:
https://www.displayfuture.com/Display/datasheet/controller/ST7735.pdf.
It's managed by the library
https://github.com/cpldcpu/uTFT-ST7735.
To convert digital data from microcontroller do analog format, device is using r2r resistor ladder DAC (digital to analog converter).
https://en.wikipedia.org/wiki/Resistor_ladder.
To keep voltage constant and to supply enough current for headphones or speakers device is using 4 amplifiers:
http://www.ti.com/lit/ds/symlink/tlc271.pdf
Device has 3 tactile switches on board to navigate in filesystem or choosing song to play. One can also pause/resume/stop playing.
Volume can be regulated using included potentiometer.
### Building a project
```
mkdir build && cd build
cmake ..
make
```
Will result in building executable, which can be uploaded to device.
```
make hex
make upload
```
After building a project will result in uploading code to the device.
```
mkdir docs && cd docs
cmake ..
make doc
```
Will result in build documentation.
### Stages of the project
\htmlonly <style>div.image img[src="../../img/breadboard.jpg"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/breadboard.jpg)
\htmlonly <style>div.image img[src="../../img/schematic.png"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/schematic.png)
\htmlonly <style>div.image img[src="../../img/wiring.png"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/wiring.png)
\htmlonly <style>div.image img[src="../../img/holes1.jpg"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/holes1.jpg)
\htmlonly <style>div.image img[src="../../img/holes2.jpg"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/holes2.jpg)
\htmlonly <style>div.image img[src="../../img/soldered.jpg"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/soldered.jpg)
\htmlonly <style>div.image img[src="../../img/final.jpg"]{height:600px;}</style> \endhtmlonly
![Caption text](../../img/final.jpg)
\htmlonly
<iframe width="1066.6px" height="600px" src="https://drive.google.com/file/d/1iT-4YKIE1FJc3enfdM5dxz9eFDfapBPV/preview" style="display:block; margin: 0 auto;" allowfullscreen></iframe>
\endhtmlonly
**/