Skip to content

Commit

Permalink
doc: split BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Feb 26, 2024
1 parent 08675af commit d2625d4
Showing 1 changed file with 99 additions and 112 deletions.
211 changes: 99 additions & 112 deletions docs/manual/assembly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
.. raw:: html

<script>
function getColumnTotal(colNumber) {
return Array.prototype.slice.call(document.querySelector('tbody').querySelectorAll('td:nth-child(' + colNumber + ')')).slice(1, -1).map(x => (parseFloat(x.innerText) || 0)).reduce((a, b) => a + b, 0);
function calculateTotal(el, colNumber) {
var tbody = el.closest('tbody');
var total = Array.prototype.slice.call(tbody.querySelectorAll('td:nth-child(' + colNumber + ')')).slice(1, -1).map(x => (parseFloat(x.innerText) || 0)).reduce((a, b) => a + b, 0);
el.innerText = total;
}
</script>

.. list-table:: Перелік компонентів
:widths: 5 15 15 25 10 10 10 10 35
.. list-table:: Базовий комплект
:widths: 5 15 15 25 15 10 15
:header-rows: 1

* - К-сть
- Ідентифікатор
- Значення
- Посилання
- Вендор
- Базова ціна
- +Батарея
- +Звук
- Note
- Постачальник
- Ціна
- Примітка

* - 1
- BZ1
Expand All @@ -33,17 +33,13 @@
- mini-tech.com.ua
- 5
-
-
-

* - 1
- C1
- 1uF
- `1uF Capacitor <https://m-teh.com.ua/kondensator-ct4-1uf-50v-x7r-10/>`__
- m-teh.com.ua
- 3
-
-
- Можна комплектувати `з цього набору <https://arduino.ua/prod2798-nabor-mnogosloinih-keramicheskih-kondensatorov-180-sht>`__

* - 2
Expand All @@ -52,39 +48,15 @@
- `22uF Capacitor <https://justas-electronics.com.ua/cm-100n-x7r/>`__
- justas-electronics.com.ua
- 6
-
- 3
- 0.1 uF can be used for v2 alpha. Можна комплектувати `з цього набору <https://arduino.ua/prod2798-nabor-mnogosloinih-keramicheskih-kondensatorov-180-sht>`__

* - 1
- D1
- 1N4001
- `1N4001 Diode <https://voron.ua/uk/catalog/029199--diod_1n4001_v_lente_mic_master_instrument_corporation_do41_do41>`__
- voron.ua
-
-
- 6
- 10 шт в комплекті

* - 1
- J1
- ~
- `USB Type-C to DIP Adapter <https://arduino.ua/prod2783-plata-perehodnik-usb-type-c-na-dip-2-54>`__
- arduino.ua
- 12
-
-
-

* - 1
- J2
- Bat
- `Li-Pol Battery <https://m-teh.com.ua/li-pol-akumuliator-603048p-1000-ma-hod-3.7v-z-plato%D1%96u-zakhystu/?gad_source=1&gclid=CjwKCAiA29auBhBxEiwAnKcSqmJoC5UaOLX_kOIJX7G_EQOqEse5RDJBtxz8IvMHU9rLfGlj-MlgyhoCXgEQAvD_BwE>`__
- m-teh.com.ua
-
- 116
-
-

* - 1
- J3
Expand All @@ -93,17 +65,13 @@
- arduino.ua
- 9
-
-
-

* - 1
- J4
- UART
- `Dual Row Connector <https://arduino.ua/prod1077-konnektor-dvyhryadnii-2h40-pin-papa>`__
- arduino.ua
- 0
-
-
- Та саме деталь, що й J4

* - 1
Expand All @@ -113,57 +81,13 @@
- diyshop.com.ua
- 24
-
-
-

* - 1
- J6
- PCM5102A
- `PCM5102A Audio Module <https://prom.ua/ua/p1401452703-pcm5102a-modul-tsap.html>`__
- prom.ua
-
-
- 299
-

* - 1
- J7
- MAX98357
- `Mono Audio Amplifier Module <https://arduino.ua/prod4112-modyl-aydioysilitelya-mono-3vt-klassa-d-na-max98357>`__
- arduino.ua
-
-
- 92
-

* - 1
- J8
- TP4056
- `TP4056 Charging Module <https://arduino.ua/prod1486-zaryadnii-modyl-tp4056-micro-usb-s-fynkciei-zashhiti-akkymylyatora>`__
- arduino.ua
-
- 16
-
-

* - 1
- Q1
- IRLML6401
- `IRLML6401 MOSFET <https://www.rcscomponents.kiev.ua/product/irlml6401trpbf_34344.html>`__
- rcscomponents.kiev.ua
-
- 4
-
-

* - 1
- Q2
- TP2104
-
-
-
-
-
- Запасне місце для THT-альтернативи Q1

* - 1
Expand All @@ -172,8 +96,6 @@
- `10K Resistor <https://arduino.ua/prod1970-rezistor-10-kom-5-shtyk>`__
- arduino.ua
- 3
-
-
- 5 шт в комплекті

* - 2
Expand All @@ -182,8 +104,6 @@
- `100K Resistor <https://arduino.ua/prod1549-rezistor-100-kom-5-shtyk>`__
- arduino.ua
- 2
-
-
- 5 шт в комплекті

* - 1
Expand All @@ -192,8 +112,6 @@
- `200 Ohm Resistor <https://arduino.ua/prod339-rezistor-200-om-5-shtyk>`__
- arduino.ua
- 2
-
-
- 5 шт в комплекті

* - 1
Expand All @@ -202,8 +120,6 @@
- `33K Resistor <https://justas-electronics.com.ua/rss0125w-33kOm/>`__
- justas-electronics.com.ua
- 2.1
-
-
- 10 шт в комплекті

* - 1
Expand All @@ -212,8 +128,6 @@
- `Button Kit (12mm) <https://arduino.ua/prod2506-komplekt-knopok-12mm-s-kolpachkom-5-cvetov>`__
- arduino.ua
- 27
-
-
- Потрібно ще 2 (в комплекті лише 6)

* - 2
Expand All @@ -223,8 +137,6 @@
- arduino.ua
- 4
-
-
-

* - 1
- SW11
Expand All @@ -233,8 +145,6 @@
- arduino.ua
- 10
-
-
-

* - 1
- SW12
Expand All @@ -243,8 +153,6 @@
- arduino.ua
- 2
-
-
-

* - 1
- U2
Expand All @@ -253,8 +161,6 @@
- arduino.ua
- 176
-
-
-

* - 1
- U2J1
Expand All @@ -263,8 +169,6 @@
- arduino.ua
- 7
-
-
-

* - 1
- U3
Expand All @@ -273,8 +177,6 @@
- kosmodrom.com.ua
- 26
-
-
-

* - 1
- U4
Expand All @@ -283,8 +185,6 @@
- rcscomponents.kiev.ua
- 253
-
-
-

* - Разом
-
Expand All @@ -294,16 +194,103 @@
- .. raw:: html

<div id="total-base"></div>
<script>document.querySelector('#total-base').innerText = getColumnTotal(6);
<script>calculateTotal(document.querySelector('#total-base'), 6);
</script>
-


.. list-table:: Компоненти для батареї
:widths: 5 15 15 25 15 10 15
:header-rows: 1

* - К-сть
- Ідентифікатор
- Значення
- Посилання
- Постачальник
- Ціна
- Примітка

* - 1
- D1
- 1N4001
- `1N4001 Diode <https://voron.ua/uk/catalog/029199--diod_1n4001_v_lente_mic_master_instrument_corporation_do41_do41>`__
- voron.ua
- 6
- 10 шт в комплекті

* - 1
- J2
- Bat
- `Li-Po Battery <https://m-teh.com.ua/li-pol-akumuliator-603048p-1000-ma-hod-3.7v-z-plato%D1%96u-zakhystu/?gad_source=1&gclid=CjwKCAiA29auBhBxEiwAnKcSqmJoC5UaOLX_kOIJX7G_EQOqEse5RDJBtxz8IvMHU9rLfGlj-MlgyhoCXgEQAvD_BwE>`__
- m-teh.com.ua
- 116
-

* - 1
- J8
- TP4056
- `TP4056 Charging Module <https://arduino.ua/prod1486-zaryadnii-modyl-tp4056-micro-usb-s-fynkciei-zashhiti-akkymylyatora>`__
- arduino.ua
- 16
-

* - 1
- Q1
- IRLML6401
- `IRLML6401 MOSFET <https://www.rcscomponents.kiev.ua/product/irlml6401trpbf_34344.html>`__
- rcscomponents.kiev.ua
- 4
-

* - Разом
-
-
-
-
- .. raw:: html

<div id="total-battery"></div>
<script>document.querySelector('#total-battery').innerText = getColumnTotal(7);
<script>calculateTotal(document.querySelector('#total-battery'), 6);
</script>
-

.. list-table:: Компоненти для звуку
:widths: 5 15 15 25 15 10 15
:header-rows: 1

* - К-сть
- Ідентифікатор
- Значення
- Посилання
- Постачальник
- Ціна
- Примітка

* - 1
- J6
- PCM5102A
- `PCM5102A Audio Module <https://prom.ua/ua/p1401452703-pcm5102a-modul-tsap.html>`__
- prom.ua
- 299
-

* - 1
- J7
- MAX98357
- `Mono Audio Amplifier Module <https://arduino.ua/prod4112-modyl-aydioysilitelya-mono-3vt-klassa-d-na-max98357>`__
- arduino.ua
- 92
-

* - Разом
-
-
-
-
- .. raw:: html

<div id="total-sound"></div>
<script>document.querySelector('#total-sound').innerText = getColumnTotal(8);
<script>calculateTotal(document.querySelector('#total-sound'), 6);
</script>
-

0 comments on commit d2625d4

Please sign in to comment.