@jjlmoya/utils-hardware 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/category/index.ts +3 -1
- package/src/entries.ts +7 -1
- package/src/index.ts +2 -0
- package/src/tests/locale_completeness.test.ts +1 -1
- package/src/tests/tool_validation.test.ts +1 -1
- package/src/tool/mobileSensorTest/bibliography.astro +14 -0
- package/src/tool/mobileSensorTest/bibliography.ts +24 -0
- package/src/tool/mobileSensorTest/component.astro +241 -0
- package/src/tool/mobileSensorTest/entry.ts +29 -0
- package/src/tool/mobileSensorTest/i18n/de.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/en.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/es.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/fr.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/id.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/it.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ja.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ko.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/nl.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/pl.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/pt.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/ru.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/sv.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/tr.ts +186 -0
- package/src/tool/mobileSensorTest/i18n/zh.ts +186 -0
- package/src/tool/mobileSensorTest/index.ts +11 -0
- package/src/tool/mobileSensorTest/logic.ts +39 -0
- package/src/tool/mobileSensorTest/mobile-sensor-test.css +460 -0
- package/src/tool/mobileSensorTest/seo.astro +15 -0
- package/src/tool/mobileSensorTest/ui.ts +31 -0
- package/src/tool/usbPowerBudgetCalculator/bibliography.astro +14 -0
- package/src/tool/usbPowerBudgetCalculator/bibliography.ts +16 -0
- package/src/tool/usbPowerBudgetCalculator/component.astro +266 -0
- package/src/tool/usbPowerBudgetCalculator/entry.ts +29 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/de.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/en.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/es.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/fr.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/id.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/it.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ja.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ko.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/nl.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/pl.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/pt.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/ru.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/sv.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/tr.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/i18n/zh.ts +169 -0
- package/src/tool/usbPowerBudgetCalculator/index.ts +11 -0
- package/src/tool/usbPowerBudgetCalculator/logic.ts +81 -0
- package/src/tool/usbPowerBudgetCalculator/seo.astro +15 -0
- package/src/tool/usbPowerBudgetCalculator/ui.ts +32 -0
- package/src/tool/usbPowerBudgetCalculator/usb-power-budget-calculator.css +484 -0
- package/src/tools.ts +3 -1
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { UsbPowerBudgetCalculatorUI } from '../ui';
|
|
4
|
+
import { bibliography } from '../bibliography';
|
|
5
|
+
|
|
6
|
+
const slug = 'usb-vermogensbudget-calculator';
|
|
7
|
+
const title = 'USB Vermogensbudget Calculator';
|
|
8
|
+
const description = 'Controleer of een USB-poort, lader, hub, kabel of USB-C PD-profiel je apparaten veilig kan voeden na reservemarge en kabelspanningsval.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Hoe weet ik of een USB-poort mijn apparaat kan voeden?',
|
|
13
|
+
answer: 'Vergelijk het totale apparaatwattage met het USB-bronwattage, reserveer vervolgens marge en schat de kabelspanningsval. Een opstelling kan falen, zelfs wanneer het nominale wattage hoog lijkt als de kabel lang, dun of hoge stroom voert bij 5 volt.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: 'Waarom is kabellengte belangrijk voor USB-voeding?',
|
|
17
|
+
answer: 'Stroom die door koper vloeit, creëert spanningsval. Lange kabels en dunne geleiders hebben meer weerstand, dus het apparaat kan minder spanning ontvangen dan de lader levert. Dit is vooral belangrijk voor Raspberry Pi-boards, harde schijven, LED-strips, docks en busgevoede hubs.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: 'Welke reservemarge moet ik gebruiken?',
|
|
21
|
+
answer: 'Gebruik minimaal 20 procent voor normale elektronica, 30 procent voor motoren, drives, radio\'s of boards met piekbelastingen, en meer als de adapterkwaliteit onbekend is of het apparaat continu moet draaien.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: 'Kan dit USB-C PD-onderhandelingstests vervangen?',
|
|
25
|
+
answer: 'Nee. De calculator controleert het elektrische budget. Het verifieert niet of een lader, kabel-e-marker, apparaat of hub daadwerkelijk een specifiek Power Delivery-profiel onderhandelt.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Kies een bronprofiel', text: 'Selecteer een veelvoorkomend USB- of USB-C PD-profiel, of bewerk spanning en stroom handmatig.' },
|
|
31
|
+
{ name: 'Beschrijf de kabel', text: 'Voer kabellengte en geleiderdikte in. Dunne draden met hoge AWG-nummers veroorzaken meer spanningsval.' },
|
|
32
|
+
{ name: 'Voeg de belasting toe', text: 'Voer één apparaatbelasting in watt in en het aantal apparaten dat dezelfde bron deelt.' },
|
|
33
|
+
{ name: 'Lees de status', text: 'Gebruik de status, kabelval, eindspanning, benutting en marge om te beslissen of de opstelling veilig is.' },
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
37
|
+
'@context': 'https://schema.org',
|
|
38
|
+
'@type': 'FAQPage',
|
|
39
|
+
mainEntity: faqData.map((item) => ({
|
|
40
|
+
'@type': 'Question',
|
|
41
|
+
name: item.question,
|
|
42
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
43
|
+
})),
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const howToSchema: WithContext<HowTo> = {
|
|
47
|
+
'@context': 'https://schema.org',
|
|
48
|
+
'@type': 'HowTo',
|
|
49
|
+
name: title,
|
|
50
|
+
description,
|
|
51
|
+
step: howToData.map((step, i) => ({
|
|
52
|
+
'@type': 'HowToStep',
|
|
53
|
+
position: i + 1,
|
|
54
|
+
name: step.name,
|
|
55
|
+
text: step.text,
|
|
56
|
+
})),
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
60
|
+
'@context': 'https://schema.org',
|
|
61
|
+
'@type': 'SoftwareApplication',
|
|
62
|
+
name: title,
|
|
63
|
+
description,
|
|
64
|
+
applicationCategory: 'UtilityApplication',
|
|
65
|
+
operatingSystem: 'All',
|
|
66
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
|
|
67
|
+
inLanguage: 'nl',
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const content: ToolLocaleContent<UsbPowerBudgetCalculatorUI> = {
|
|
71
|
+
slug,
|
|
72
|
+
title,
|
|
73
|
+
description,
|
|
74
|
+
faq: faqData,
|
|
75
|
+
howTo: howToData,
|
|
76
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
77
|
+
bibliography,
|
|
78
|
+
seo: [
|
|
79
|
+
{ type: 'title', text: 'USB-vermogen is een budget, geen label', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Een USB-lader met 15 W, 45 W of 100 W beschrijft wat de bron onder de juiste omstandigheden kan bieden. Je apparaat ziet alleen het resultaat na protocolonderhandeling, stroomlimieten, kabelweerstand, connectorkwaliteit, hubverliezen en belastingspieken. Deze calculator richt zich op de praktische elektrische vraag: is er na kabelval en reservemarge genoeg vermogen over voor de hardware die je wilt gebruiken?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'USB 2.0 standaardstroom', value: '0,5 A' },
|
|
88
|
+
{ label: 'USB-C standaardmaximum bij 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Aanbevolen reserve', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Hoe het resultaat te interpreteren', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Status', 'Betekenis', 'Beste volgende stap'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Veilig', 'De belasting past binnen de broncapaciteit na de gekozen reserve en de geschatte apparaatspanning blijft gezond.', 'Gebruik de opstelling, maar houd warmte in de gaten als de adapter klein of ingesloten is.'],
|
|
98
|
+
['Krap', 'De belasting ligt dicht bij de gereserveerde limiet of de kabelval wordt betekenisvol.', 'Verkort de kabel, kies dikkere geleiders, verlaag de belasting of ga naar een hoger vermogensprofiel.'],
|
|
99
|
+
['Over budget', 'De belasting overschrijdt het bruikbare bronvermogen of de apparaatspanning is waarschijnlijk te laag.', 'Gebruik een sterkere lader, actieve hub, kortere kabel of een apparaat dat een hogere USB-C PD-spanning onderhandelt.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Als het wattage voldoende is maar het apparaat toch reset',
|
|
106
|
+
html: '<p>De startstroom kan veel hoger zijn dan het gemiddelde wattage op een apparaatlabel. Een 5 V-voeding verliest sneller spanning dan een 20 V PD-profiel voor hetzelfde wattage omdat het meer stroom moet voeren. Veel goedkope kabels gebruiken dunne stroomgeleiders, zelfs als de buitenmantel er dik uitziet, en busgevoede hubs delen één upstream-budget over elk downstream-apparaat.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'Kabelspanningsval in eenvoudige termen', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'Spanningsval is het verlies dat ontstaat wanneer stroom door kabelweerstand vloeit. USB-voeding heeft twee geleiders in het stroompad, dus de calculator gebruikt de heen-en-teruglengte. Een kabel van één meter is elektrisch twee meter koper voor de stroomlus. Lagere AWG-nummers zijn dikker en meestal beter voor hoge stroombelastingen.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Korte dikke kabel', description: 'Het beste voor Raspberry Pi-boards, SSD-behuizingen, ontwikkelingskits en USB-C-docks die piekstroom trekken.' },
|
|
117
|
+
{ title: 'Lange dunne kabel', description: 'Acceptabel voor sensoren met laag vermogen of langzaam opladen, maar riskant voor drives, LED-belastingen en compute-boards.' },
|
|
118
|
+
{ title: 'Hogere spanning PD', description: 'Verlaagt de stroom voor hetzelfde wattage, wat het kabelverlies vermindert, maar alleen als de bron, kabel en apparaat dit onderhandelen.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Praktische regel',
|
|
124
|
+
html: 'Als de calculator zegt dat de opstelling krap is, behandel het dan als een veldwaarschuwing. USB-storingen verschijnen vaak als willekeurige verbroken verbindingen, onderspanningsuitval, langzaam opladen, ruis in audio of opslagfouten voordat ze eruitzien als een duidelijk stroomprobleem.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'Waar deze calculator het beste voor is',
|
|
129
|
+
items: [
|
|
130
|
+
'Het plannen van USB-hubs, single-board computers, externe drives, ontwikkelborden, lampen, ventilatoren en kleine labopstellingen.',
|
|
131
|
+
'Het vergelijken van USB 2.0-, USB 3.x-, USB-C- en USB Power Delivery-bronprofielen.',
|
|
132
|
+
'Inschatten of een kabel te lang of te dun is voor een belasting.',
|
|
133
|
+
'Een verstandige reserve kiezen voordat je een lader of actieve hub koopt.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'USB-bronprofiel',
|
|
139
|
+
metricUnits: 'Metriek',
|
|
140
|
+
imperialUnits: 'US',
|
|
141
|
+
voltageLabel: 'Bronspanning (V)',
|
|
142
|
+
currentLabel: 'Bronstroom (A)',
|
|
143
|
+
cableLengthLabel: 'Kabellengte',
|
|
144
|
+
wireGaugeLabel: 'Stroomdraaddikte',
|
|
145
|
+
deviceLoadLabel: 'Belasting per apparaat (W)',
|
|
146
|
+
devicesLabel: 'Apparaten',
|
|
147
|
+
headroomLabel: 'Reserve (%)',
|
|
148
|
+
sourcePower: 'Bronvermogen',
|
|
149
|
+
requiredPower: 'Benodigd vermogen',
|
|
150
|
+
cableDrop: 'Kabelval',
|
|
151
|
+
deviceVoltage: 'Apparaatspanning',
|
|
152
|
+
headroom: 'Reserve',
|
|
153
|
+
utilization: 'Benutting',
|
|
154
|
+
safeStatus: 'Vermogensbudget ziet er veilig uit',
|
|
155
|
+
tightStatus: 'Vermogensbudget is krap',
|
|
156
|
+
overStatus: 'Over budget of risico op spanningsval',
|
|
157
|
+
safeAdvice: 'De belasting past met de gekozen reserve. Gebruik een kwaliteitskabel en controleer warmte tijdens lange gebruiksperiodes.',
|
|
158
|
+
tightAdvice: 'Je zit dicht bij de limiet. Verkort de kabellengte, gebruik dikkere geleiders, verlaag de belasting of kies een sterker profiel.',
|
|
159
|
+
overAdvice: 'Deze opstelling zal waarschijnlijk spanningsdaling of throttling ervaren. Gebruik een actieve hub, sterkere adapter of een USB-C PD-profiel met hogere spanning.',
|
|
160
|
+
busLane: 'USB-bron',
|
|
161
|
+
loadLane: 'Apparaatbelasting',
|
|
162
|
+
cableLane: 'val',
|
|
163
|
+
boardEyebrow: 'Live USB-stroompad',
|
|
164
|
+
sourceSocket: 'Voedingsaansluiting',
|
|
165
|
+
deviceSocket: 'Hardwarebelasting',
|
|
166
|
+
energyFlow: 'energiestroom',
|
|
167
|
+
reservedLabel: 'bruikbaar na reserve',
|
|
168
|
+
},
|
|
169
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { UsbPowerBudgetCalculatorUI } from '../ui';
|
|
4
|
+
import { bibliography } from '../bibliography';
|
|
5
|
+
|
|
6
|
+
const slug = 'kalkulator-budzetu-zasilania-usb';
|
|
7
|
+
const title = 'Kalkulator Budżetu Zasilania USB';
|
|
8
|
+
const description = 'Sprawdź, czy port USB, ładowarka, hub, kabel lub profil USB-C PD może bezpiecznie zasilać Twoje urządzenia po uwzględnieniu marginesu rezerwy i spadku napięcia na kablu.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Skąd mam wiedzieć, czy port USB może zasilić moje urządzenie?',
|
|
13
|
+
answer: 'Porównaj całkowitą moc urządzenia z mocą źródła USB, uwzględnij margines bezpieczeństwa i oszacuj spadek napięcia na kablu. Konfiguracja może zawieść, nawet gdy nominalna moc wygląda na wysoką, jeśli kabel jest długi, cienki lub przewodzi wysoki prąd przy 5 woltach.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: 'Dlaczego długość kabla ma znaczenie przy zasilaniu USB?',
|
|
17
|
+
answer: 'Prąd płynący przez miedź powoduje spadek napięcia. Długie kable i cienkie przewodniki mają większą rezystancję, więc urządzenie może otrzymać niższe napięcie niż zapewnia ładowarka. Jest to szczególnie ważne w przypadku płytek Raspberry Pi, dysków twardych, taśm LED, stacji dokujących i hubów zasilanych z magistrali.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: 'Jaki margines rezerwy powinienem zastosować?',
|
|
21
|
+
answer: 'Użyj co najmniej 20 procent dla normalnej elektroniki, 30 procent dla silników, napędów, radiotelefonów lub płytek z obciążeniami impulsowymi, a więcej, jeśli jakość adaptera jest nieznana lub urządzenie musi działać nieprzerwanie.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: 'Czy może to zastąpić testy negocjacji USB-C PD?',
|
|
25
|
+
answer: 'Nie. Kalkulator sprawdza budżet elektryczny. Nie weryfikuje, czy ładowarka, e-marker kabla, urządzenie lub hub rzeczywiście negocjują określony profil Power Delivery.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Wybierz profil źródła', text: 'Wybierz typowy profil USB lub USB-C PD lub ręcznie edytuj napięcie i prąd.' },
|
|
31
|
+
{ name: 'Opisz kabel', text: 'Wprowadź długość kabla i przekrój przewodu. Cienkie przewody o wysokim AWG powodują większy spadek napięcia.' },
|
|
32
|
+
{ name: 'Dodaj obciążenie', text: 'Wprowadź obciążenie jednego urządzenia w watach i liczbę urządzeń współdzielących to samo źródło.' },
|
|
33
|
+
{ name: 'Odczytaj status', text: 'Użyj statusu, spadku na kablu, napięcia końcowego, wykorzystania i marginesu, aby zdecydować, czy konfiguracja jest bezpieczna.' },
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
37
|
+
'@context': 'https://schema.org',
|
|
38
|
+
'@type': 'FAQPage',
|
|
39
|
+
mainEntity: faqData.map((item) => ({
|
|
40
|
+
'@type': 'Question',
|
|
41
|
+
name: item.question,
|
|
42
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
43
|
+
})),
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const howToSchema: WithContext<HowTo> = {
|
|
47
|
+
'@context': 'https://schema.org',
|
|
48
|
+
'@type': 'HowTo',
|
|
49
|
+
name: title,
|
|
50
|
+
description,
|
|
51
|
+
step: howToData.map((step, i) => ({
|
|
52
|
+
'@type': 'HowToStep',
|
|
53
|
+
position: i + 1,
|
|
54
|
+
name: step.name,
|
|
55
|
+
text: step.text,
|
|
56
|
+
})),
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
60
|
+
'@context': 'https://schema.org',
|
|
61
|
+
'@type': 'SoftwareApplication',
|
|
62
|
+
name: title,
|
|
63
|
+
description,
|
|
64
|
+
applicationCategory: 'UtilityApplication',
|
|
65
|
+
operatingSystem: 'All',
|
|
66
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
|
|
67
|
+
inLanguage: 'pl',
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const content: ToolLocaleContent<UsbPowerBudgetCalculatorUI> = {
|
|
71
|
+
slug,
|
|
72
|
+
title,
|
|
73
|
+
description,
|
|
74
|
+
faq: faqData,
|
|
75
|
+
howTo: howToData,
|
|
76
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
77
|
+
bibliography,
|
|
78
|
+
seo: [
|
|
79
|
+
{ type: 'title', text: 'Zasilanie USB to budżet, nie etykieta', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Ładowarka USB oznaczona jako 15 W, 45 W lub 100 W opisuje, co źródło może zaoferować w odpowiednich warunkach. Twoje urządzenie widzi tylko wynik po negocjacji protokołu, limitach prądowych, rezystancji kabla, jakości złącza, stratach w hubie i skokach obciążenia. Ten kalkulator koncentruje się na praktycznym pytaniu elektrycznym: po spadku na kablu i marginesie rezerwy, czy pozostało wystarczająco dużo mocy dla sprzętu, który chcesz uruchomić?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Prąd domyślny USB 2.0', value: '0,5 A' },
|
|
88
|
+
{ label: 'Maksimum domyślne USB-C przy 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Zalecana rezerwa', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Jak interpretować wynik', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Status', 'Znaczenie', 'Najlepszy następny krok'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Bezpieczny', 'Obciążenie mieści się w mocy źródła po wybranej rezerwie, a szacowane napięcie urządzenia pozostaje prawidłowe.', 'Używaj konfiguracji, ale zwracaj uwagę na ciepło, jeśli adapter jest mały lub zabudowany.'],
|
|
98
|
+
['Napięty', 'Obciążenie jest blisko limitu z rezerwą lub spadek na kablu staje się znaczący.', 'Skróć kabel, wybierz grubsze przewody, zmniejsz obciążenie lub przejdź na wyższy profil mocy.'],
|
|
99
|
+
['Przekroczony budżet', 'Obciążenie przekracza użyteczną moc źródła lub napięcie po stronie urządzenia jest prawdopodobnie zbyt niskie.', 'Użyj mocniejszej ładowarki, aktywnego huba, krótszego kabla lub urządzenia negocjującego wyższe napięcie USB-C PD.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Gdy waty są wystarczające, ale urządzenie wciąż się resetuje',
|
|
106
|
+
html: '<p>Prąd rozruchowy może być znacznie wyższy niż średnia moc wydrukowana na etykiecie urządzenia. Zasilacz 5 V traci napięcie szybciej niż profil PD 20 V dla tej samej mocy, ponieważ musi przewodzić więcej prądu. Wiele tanich kabli używa cienkich przewodów zasilających, nawet gdy zewnętrzna powłoka wygląda solidnie, a huby zasilane z magistrali dzielą jeden budżet upstream na wszystkie urządzenia downstream.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'Spadek napięcia na kablu w prostych słowach', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'Spadek napięcia to strata powstająca, gdy prąd płynie przez rezystancję kabla. Zasilanie USB ma dwa przewody w ścieżce zasilania, więc kalkulator używa długości w obie strony. Kabel o długości jednego metra to elektrycznie dwa metry miedzi dla pętli zasilania. Niższe numery AWG są grubsze i zazwyczaj lepsze dla obciążeń o wysokim prądzie.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Krótki gruby kabel', description: 'Najlepszy dla płytek Raspberry Pi, obudów SSD, zestawów deweloperskich i stacji dokujących USB-C pobierających prąd impulsowy.' },
|
|
117
|
+
{ title: 'Długi cienki kabel', description: 'Akceptowalny dla czujników niskiej mocy lub powolnego ładowania, ale ryzykowny dla napędów, obciążeń LED i płytek obliczeniowych.' },
|
|
118
|
+
{ title: 'Wyższe napięcie PD', description: 'Zmniejsza prąd dla tej samej mocy, co obniża straty na kablu, ale tylko jeśli źródło, kabel i urządzenie to negocjują.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Praktyczna zasada',
|
|
124
|
+
html: 'Jeśli kalkulator mówi, że konfiguracja jest napięta, potraktuj to jako ostrzeżenie terenowe. Awarie USB często pojawiają się jako losowe rozłączenia, spadki napięcia, wolne ładowanie, zaszumiony dźwięk lub błędy pamięci masowej, zanim wyglądają jak oczywisty problem z zasilaniem.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'Do czego ten kalkulator nadaje się najlepiej',
|
|
129
|
+
items: [
|
|
130
|
+
'Planowanie hubów USB, komputerów jednopłytkowych, napędów zewnętrznych, płytek deweloperskich, świateł, wentylatorów i małych zestawów laboratoryjnych.',
|
|
131
|
+
'Porównywanie profili źródłowych USB 2.0, USB 3.x, USB-C i USB Power Delivery.',
|
|
132
|
+
'Szacowanie, czy kabel jest zbyt długi lub zbyt cienki dla danego obciążenia.',
|
|
133
|
+
'Wybór rozsądnej rezerwy przed zakupem ładowarki lub aktywnego huba.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'Profil źródła USB',
|
|
139
|
+
metricUnits: 'Metryczne',
|
|
140
|
+
imperialUnits: 'US',
|
|
141
|
+
voltageLabel: 'Napięcie źródła (V)',
|
|
142
|
+
currentLabel: 'Prąd źródła (A)',
|
|
143
|
+
cableLengthLabel: 'Długość kabla',
|
|
144
|
+
wireGaugeLabel: 'Przekrój przewodu zasilającego',
|
|
145
|
+
deviceLoadLabel: 'Obciążenie na urządzenie (W)',
|
|
146
|
+
devicesLabel: 'Urządzenia',
|
|
147
|
+
headroomLabel: 'Margines rezerwy (%)',
|
|
148
|
+
sourcePower: 'Moc źródła',
|
|
149
|
+
requiredPower: 'Wymagana moc',
|
|
150
|
+
cableDrop: 'Spadek na kablu',
|
|
151
|
+
deviceVoltage: 'Napięcie urządzenia',
|
|
152
|
+
headroom: 'Rezerwa',
|
|
153
|
+
utilization: 'Wykorzystanie',
|
|
154
|
+
safeStatus: 'Budżet zasilania wygląda bezpiecznie',
|
|
155
|
+
tightStatus: 'Budżet zasilania jest napięty',
|
|
156
|
+
overStatus: 'Przekroczony budżet lub ryzyko spadku napięcia',
|
|
157
|
+
safeAdvice: 'Obciążenie mieści się z wybranym marginesem. Używaj kabla dobrej jakości i sprawdzaj ciepło podczas długiej pracy.',
|
|
158
|
+
tightAdvice: 'Jesteś blisko limitu. Zmniejsz długość kabla, użyj grubszych przewodów, zmniejsz obciążenie lub wybierz mocniejszy profil.',
|
|
159
|
+
overAdvice: 'Ta konfiguracja prawdopodobnie będzie doświadczać spadków napięcia lub dławienia. Użyj aktywnego huba, mocniejszego adaptera lub profilu USB-C PD o wyższym napięciu.',
|
|
160
|
+
busLane: 'Źródło USB',
|
|
161
|
+
loadLane: 'Obciążenie urządzenia',
|
|
162
|
+
cableLane: 'spadek',
|
|
163
|
+
boardEyebrow: 'Ścieżka zasilania USB na żywo',
|
|
164
|
+
sourceSocket: 'Gniazdo zasilania',
|
|
165
|
+
deviceSocket: 'Obciążenie sprzętowe',
|
|
166
|
+
energyFlow: 'przepływ energii',
|
|
167
|
+
reservedLabel: 'dostępne po rezerwie',
|
|
168
|
+
},
|
|
169
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { UsbPowerBudgetCalculatorUI } from '../ui';
|
|
4
|
+
import { bibliography } from '../bibliography';
|
|
5
|
+
|
|
6
|
+
const slug = 'calculadora-orcamento-energia-usb';
|
|
7
|
+
const title = 'Calculadora de Orçamento de Energia USB';
|
|
8
|
+
const description = 'Verifique se uma porta USB, carregador, hub, cabo ou perfil USB-C PD pode alimentar seus dispositivos com segurança após a margem de reserva e a queda de tensão do cabo.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Como sei se uma porta USB pode alimentar meu dispositivo?',
|
|
13
|
+
answer: 'Compare a potência total do dispositivo com a potência da fonte USB, reserve uma margem de segurança e estime a queda de tensão do cabo. Uma configuração pode falhar mesmo quando os watts nominais parecem altos se o cabo for longo, fino ou transportar alta corrente a 5 volts.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: 'Por que o comprimento do cabo importa para a alimentação USB?',
|
|
17
|
+
answer: 'A corrente fluindo pelo cobre cria queda de tensão. Cabos longos e condutores finos têm mais resistência, então o dispositivo pode receber menos tensão do que o carregador fornece. Isso é especialmente importante para placas Raspberry Pi, discos rígidos, fitas de LED, docks e hubs alimentados por barramento.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: 'Qual margem de reserva devo usar?',
|
|
21
|
+
answer: 'Use pelo menos 20 por cento para eletrônicos normais, 30 por cento para motores, unidades, rádios ou placas com cargas de rajada, e mais se a qualidade do adaptador for desconhecida ou o dispositivo precisar funcionar continuamente.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: 'Isso pode substituir os testes de negociação USB-C PD?',
|
|
25
|
+
answer: 'Não. A calculadora verifica o orçamento elétrico. Ela não verifica se um carregador, e-marker de cabo, dispositivo ou hub realmente negocia um perfil Power Delivery específico.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Escolha um perfil de fonte', text: 'Selecione um perfil USB ou USB-C PD comum ou edite a tensão e corrente manualmente.' },
|
|
31
|
+
{ name: 'Descreva o cabo', text: 'Informe o comprimento do cabo e a bitola do condutor. Fios finos de AWG alto causam mais queda de tensão.' },
|
|
32
|
+
{ name: 'Adicione a carga', text: 'Informe uma carga de dispositivo em watts e o número de dispositivos compartilhando a mesma fonte.' },
|
|
33
|
+
{ name: 'Leia o status', text: 'Use o status, queda do cabo, tensão final, utilização e margem para decidir se a configuração é segura.' },
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
37
|
+
'@context': 'https://schema.org',
|
|
38
|
+
'@type': 'FAQPage',
|
|
39
|
+
mainEntity: faqData.map((item) => ({
|
|
40
|
+
'@type': 'Question',
|
|
41
|
+
name: item.question,
|
|
42
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
43
|
+
})),
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const howToSchema: WithContext<HowTo> = {
|
|
47
|
+
'@context': 'https://schema.org',
|
|
48
|
+
'@type': 'HowTo',
|
|
49
|
+
name: title,
|
|
50
|
+
description,
|
|
51
|
+
step: howToData.map((step, i) => ({
|
|
52
|
+
'@type': 'HowToStep',
|
|
53
|
+
position: i + 1,
|
|
54
|
+
name: step.name,
|
|
55
|
+
text: step.text,
|
|
56
|
+
})),
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
60
|
+
'@context': 'https://schema.org',
|
|
61
|
+
'@type': 'SoftwareApplication',
|
|
62
|
+
name: title,
|
|
63
|
+
description,
|
|
64
|
+
applicationCategory: 'UtilityApplication',
|
|
65
|
+
operatingSystem: 'All',
|
|
66
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
|
|
67
|
+
inLanguage: 'pt',
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const content: ToolLocaleContent<UsbPowerBudgetCalculatorUI> = {
|
|
71
|
+
slug,
|
|
72
|
+
title,
|
|
73
|
+
description,
|
|
74
|
+
faq: faqData,
|
|
75
|
+
howTo: howToData,
|
|
76
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
77
|
+
bibliography,
|
|
78
|
+
seo: [
|
|
79
|
+
{ type: 'title', text: 'A energia USB é um orçamento, não um rótulo', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Um carregador USB marcado como 15 W, 45 W ou 100 W descreve o que a fonte pode oferecer nas condições certas. Seu dispositivo só vê o resultado após a negociação do protocolo, limites de corrente, resistência do cabo, qualidade do conector, perdas do hub e picos de carga. Esta calculadora foca na pergunta elétrica prática: após a queda do cabo e a margem de reserva, ainda há energia suficiente para o hardware que você deseja usar?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Corrente padrão USB 2.0', value: '0,5 A' },
|
|
88
|
+
{ label: 'Máximo padrão USB-C a 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Reserva recomendada', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Como interpretar o resultado', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Status', 'Significado', 'Melhor próximo passo'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Seguro', 'A carga se encaixa na capacidade da fonte após a reserva selecionada e a tensão estimada do dispositivo permanece saudável.', 'Use a configuração, mas fique atento ao calor se o adaptador for pequeno ou fechado.'],
|
|
98
|
+
['Apertado', 'A carga está próxima do limite reservado ou a queda do cabo está se tornando significativa.', 'Encurte o cabo, escolha condutores mais grossos, reduza a carga ou mude para um perfil de potência mais alto.'],
|
|
99
|
+
['Acima do orçamento', 'A carga excede a potência útil da fonte ou a tensão no dispositivo provavelmente está muito baixa.', 'Use um carregador mais forte, hub alimentado, cabo mais curto ou um dispositivo que negocie uma tensão USB-C PD mais alta.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Quando os watts são suficientes mas o dispositivo ainda reinicia',
|
|
106
|
+
html: '<p>A corrente de partida pode ser muito maior que a potência média impressa na etiqueta de um dispositivo. Uma fonte de 5 V perde tensão mais rapidamente que um perfil PD de 20 V para a mesma potência porque precisa transportar mais corrente. Muitos cabos baratos usam condutores de potência finos mesmo quando a capa externa parece substancial, e hubs alimentados por barramento compartilham um orçamento upstream entre todos os dispositivos downstream.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'Queda de tensão do cabo em termos simples', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'Queda de tensão é a perda criada quando a corrente flui através da resistência do cabo. A alimentação USB tem dois condutores no caminho de potência, então a calculadora usa o comprimento de ida e volta. Um cabo de um metro é eletricamente dois metros de cobre para o circuito de potência. Números AWG mais baixos são mais grossos e geralmente melhores para cargas de alta corrente.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Cabo curto e grosso', description: 'Ideal para placas Raspberry Pi, gabinetes SSD, kits de desenvolvimento e docks USB-C que consomem corrente de rajada.' },
|
|
117
|
+
{ title: 'Cabo longo e fino', description: 'Aceitável para sensores de baixa potência ou carregamento lento, mas arriscado para unidades, cargas de LED e placas de computação.' },
|
|
118
|
+
{ title: 'PD de tensão mais alta', description: 'Reduz a corrente para a mesma potência, o que diminui a perda no cabo, mas apenas se a fonte, o cabo e o dispositivo negociarem isso.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Regra prática',
|
|
124
|
+
html: 'Se a calculadora disser que a configuração está apertada, trate como um aviso de campo. Falhas USB geralmente aparecem como desconexões aleatórias, quedas de tensão, carregamento lento, áudio com ruído ou erros de armazenamento antes de parecerem um problema claro de energia.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'Para que esta calculadora é mais adequada',
|
|
129
|
+
items: [
|
|
130
|
+
'Planejar hubs USB, computadores de placa única, unidades externas, placas de desenvolvimento, luzes, ventiladores e pequenas montagens de laboratório.',
|
|
131
|
+
'Comparar perfis de fonte USB 2.0, USB 3.x, USB-C e USB Power Delivery.',
|
|
132
|
+
'Estimar se um cabo é muito longo ou muito fino para uma carga.',
|
|
133
|
+
'Escolher uma reserva sensata antes de comprar um carregador ou hub alimentado.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'Perfil de fonte USB',
|
|
139
|
+
metricUnits: 'Métrico',
|
|
140
|
+
imperialUnits: 'EUA',
|
|
141
|
+
voltageLabel: 'Tensão da fonte (V)',
|
|
142
|
+
currentLabel: 'Corrente da fonte (A)',
|
|
143
|
+
cableLengthLabel: 'Comprimento do cabo',
|
|
144
|
+
wireGaugeLabel: 'Bitola do fio de potência',
|
|
145
|
+
deviceLoadLabel: 'Carga por dispositivo (W)',
|
|
146
|
+
devicesLabel: 'Dispositivos',
|
|
147
|
+
headroomLabel: 'Margem de reserva (%)',
|
|
148
|
+
sourcePower: 'Potência da fonte',
|
|
149
|
+
requiredPower: 'Potência necessária',
|
|
150
|
+
cableDrop: 'Queda do cabo',
|
|
151
|
+
deviceVoltage: 'Tensão do dispositivo',
|
|
152
|
+
headroom: 'Margem',
|
|
153
|
+
utilization: 'Utilização',
|
|
154
|
+
safeStatus: 'Orçamento de energia parece seguro',
|
|
155
|
+
tightStatus: 'Orçamento de energia está apertado',
|
|
156
|
+
overStatus: 'Acima do orçamento ou risco de queda de tensão',
|
|
157
|
+
safeAdvice: 'A carga se encaixa com a margem selecionada. Use um cabo de qualidade e verifique o calor durante longas execuções.',
|
|
158
|
+
tightAdvice: 'Você está próximo do limite. Reduza o comprimento do cabo, use condutores mais grossos, diminua a carga ou selecione um perfil mais forte.',
|
|
159
|
+
overAdvice: 'Esta configuração provavelmente sofrerá quedas de tensão ou limitação. Use um hub alimentado, adaptador mais forte ou um perfil USB-C PD de tensão mais alta.',
|
|
160
|
+
busLane: 'Fonte USB',
|
|
161
|
+
loadLane: 'Carga do dispositivo',
|
|
162
|
+
cableLane: 'queda',
|
|
163
|
+
boardEyebrow: 'Caminho de energia USB ao vivo',
|
|
164
|
+
sourceSocket: 'Tomada de fonte',
|
|
165
|
+
deviceSocket: 'Carga de hardware',
|
|
166
|
+
energyFlow: 'fluxo de energia',
|
|
167
|
+
reservedLabel: 'utilizável após reserva',
|
|
168
|
+
},
|
|
169
|
+
};
|