@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 = 'calculadora-presupuesto-energia-usb';
|
|
7
|
+
const title = 'Calculadora de Presupuesto de Energía USB';
|
|
8
|
+
const description = 'Comprueba si un puerto USB, cargador, hub, cable o perfil USB-C PD puede alimentar tus dispositivos de forma segura tras considerar el margen de reserva y la caída de tensión del cable.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: '¿Cómo sé si un puerto USB puede alimentar mi dispositivo?',
|
|
13
|
+
answer: 'Compara la potencia total del dispositivo con la potencia de la fuente USB, reserva un margen de seguridad y estima la caída de tensión del cable. Una configuración puede fallar incluso cuando los vatios nominales parecen altos si el cable es largo, fino o transporta alta corriente a 5 voltios.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: '¿Por qué importa la longitud del cable para la alimentación USB?',
|
|
17
|
+
answer: 'La corriente que fluye por el cobre crea una caída de tensión. Los cables largos y los conductores finos tienen más resistencia, por lo que el dispositivo puede recibir menos tensión de la que proporciona el cargador. Esto es especialmente importante para placas Raspberry Pi, discos duros, tiras LED, docks y hubs autoalimentados por bus.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: '¿Qué margen de reserva debo usar?',
|
|
21
|
+
answer: 'Usa al menos un 20 por ciento para electrónica normal, un 30 por ciento para motores, unidades, radios o placas con cargas de ráfaga, y más si la calidad del adaptador es desconocida o el dispositivo debe funcionar de forma continua.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: '¿Puede esto reemplazar las pruebas de negociación USB-C PD?',
|
|
25
|
+
answer: 'No. La calculadora verifica el presupuesto eléctrico. No verifica si un cargador, e-marker de cable, dispositivo o hub negocia realmente un perfil de Power Delivery específico.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Elige un perfil de fuente', text: 'Selecciona un perfil USB o USB-C PD común, o edita la tensión y corriente manualmente.' },
|
|
31
|
+
{ name: 'Describe el cable', text: 'Introduce la longitud del cable y el calibre del conductor. Los cables finos de alto AWG causan más caída de tensión.' },
|
|
32
|
+
{ name: 'Añade la carga', text: 'Introduce una carga de dispositivo en vatios y el número de dispositivos que comparten la misma fuente.' },
|
|
33
|
+
{ name: 'Lee el estado', text: 'Usa el estado, la caída del cable, la tensión final, la utilización y el margen para decidir si la configuración es 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: 'es',
|
|
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: 'La energía USB es un presupuesto, no una etiqueta', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Un cargador USB marcado como 15 W, 45 W o 100 W describe lo que la fuente puede ofrecer en condiciones ideales. Tu dispositivo solo ve el resultado tras la negociación del protocolo, los límites de corriente, la resistencia del cable, la calidad del conector, las pérdidas del hub y los picos de carga. Esta calculadora se centra en la pregunta eléctrica práctica: tras la caída del cable y el margen de reserva, ¿queda suficiente energía para el hardware que quieres usar?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Corriente predeterminada USB 2.0', value: '0,5 A' },
|
|
88
|
+
{ label: 'Máximo predeterminado USB-C a 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Reserva recomendada', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Cómo interpretar el resultado', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Estado', 'Significado', 'Mejor paso siguiente'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Seguro', 'La carga encaja dentro de la capacidad de la fuente tras la reserva seleccionada y la tensión estimada del dispositivo se mantiene saludable.', 'Usa la configuración, pero vigila el calor si el adaptador es pequeño o está encerrado.'],
|
|
98
|
+
['Ajustado', 'La carga está cerca del límite reservado o la caída del cable empieza a ser significativa.', 'Acorta el cable, elige conductores más gruesos, reduce la carga o pasa a un perfil de mayor potencia.'],
|
|
99
|
+
['Sobrepresupuesto', 'La carga supera la potencia útil de la fuente o la tensión en el dispositivo probablemente sea demasiado baja.', 'Usa un cargador más potente, un hub alimentado, un cable más corto o un dispositivo que negocie una tensión USB-C PD más alta.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Cuando los vatios son suficientes pero el dispositivo aún se reinicia',
|
|
106
|
+
html: '<p>La corriente de arranque puede ser mucho mayor que la potencia media impresa en la etiqueta del dispositivo. Una fuente de 5 V pierde tensión más rápido que un perfil PD de 20 V para la misma potencia porque debe transportar más corriente. Muchos cables baratos usan conductores de potencia finos incluso cuando la cubierta exterior parece gruesa, y los hubs autoalimentados por bus comparten un presupuesto de subida entre todos los dispositivos conectados.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'Caída de tensión del cable en términos simples', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'La caída de tensión es la pérdida creada cuando la corriente fluye a través de la resistencia del cable. La alimentación USB tiene dos conductores en el camino de potencia, por lo que la calculadora usa la longitud de ida y vuelta. Un cable de un metro equivale eléctricamente a dos metros de cobre para el bucle de potencia. Los números AWG más bajos son más gruesos y generalmente mejores para cargas de alta corriente.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Cable corto y grueso', description: 'Ideal para placas Raspberry Pi, carcasas SSD, kits de desarrollo y docks USB-C que consumen corriente de ráfaga.' },
|
|
117
|
+
{ title: 'Cable largo y fino', description: 'Aceptable para sensores de bajo consumo o carga lenta, pero arriesgado para unidades, cargas LED y placas de computación.' },
|
|
118
|
+
{ title: 'PD de mayor tensión', description: 'Reduce la corriente para la misma potencia, lo que disminuye la pérdida del cable, pero solo si la fuente, el cable y el dispositivo lo negocian.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Regla práctica',
|
|
124
|
+
html: 'Si la calculadora dice que la configuración está ajustada, trátalo como una advertencia de campo. Los fallos USB a menudo aparecen como desconexiones aleatorias, caídas de tensión, carga lenta, audio con ruido o errores de almacenamiento antes de parecer un problema claro de alimentación.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'Para qué sirve mejor esta calculadora',
|
|
129
|
+
items: [
|
|
130
|
+
'Planificar hubs USB, ordenadores de placa única, unidades externas, placas de desarrollo, luces, ventiladores y pequeñas configuraciones de laboratorio.',
|
|
131
|
+
'Comparar perfiles de fuente USB 2.0, USB 3.x, USB-C y USB Power Delivery.',
|
|
132
|
+
'Estimar si un cable es demasiado largo o demasiado fino para una carga.',
|
|
133
|
+
'Elegir una reserva sensata antes de comprar un cargador o hub alimentado.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'Perfil de fuente USB',
|
|
139
|
+
metricUnits: 'Métrico',
|
|
140
|
+
imperialUnits: 'EE. UU.',
|
|
141
|
+
voltageLabel: 'Tensión de fuente (V)',
|
|
142
|
+
currentLabel: 'Corriente de fuente (A)',
|
|
143
|
+
cableLengthLabel: 'Longitud del cable',
|
|
144
|
+
wireGaugeLabel: 'Calibre del cable de potencia',
|
|
145
|
+
deviceLoadLabel: 'Carga por dispositivo (W)',
|
|
146
|
+
devicesLabel: 'Dispositivos',
|
|
147
|
+
headroomLabel: 'Margen de reserva (%)',
|
|
148
|
+
sourcePower: 'Potencia de fuente',
|
|
149
|
+
requiredPower: 'Potencia requerida',
|
|
150
|
+
cableDrop: 'Caída del cable',
|
|
151
|
+
deviceVoltage: 'Tensión del dispositivo',
|
|
152
|
+
headroom: 'Margen',
|
|
153
|
+
utilization: 'Utilización',
|
|
154
|
+
safeStatus: 'El presupuesto de energía parece seguro',
|
|
155
|
+
tightStatus: 'El presupuesto de energía está ajustado',
|
|
156
|
+
overStatus: 'Sobrepresupuesto o riesgo de caída de tensión',
|
|
157
|
+
safeAdvice: 'La carga encaja con el margen seleccionado. Usa un cable de calidad y comprueba el calor en funcionamientos largos.',
|
|
158
|
+
tightAdvice: 'Estás cerca del límite. Reduce la longitud del cable, usa conductores más gruesos, baja la carga o selecciona un perfil más potente.',
|
|
159
|
+
overAdvice: 'Es probable que esta configuración sufra caídas de tensión o limitación. Usa un hub alimentado, un adaptador más potente o un perfil USB-C PD de mayor tensión.',
|
|
160
|
+
busLane: 'Fuente USB',
|
|
161
|
+
loadLane: 'Carga del dispositivo',
|
|
162
|
+
cableLane: 'caída',
|
|
163
|
+
boardEyebrow: 'Ruta de energía USB en vivo',
|
|
164
|
+
sourceSocket: 'Conector de fuente',
|
|
165
|
+
deviceSocket: 'Carga de hardware',
|
|
166
|
+
energyFlow: 'flujo de energía',
|
|
167
|
+
reservedLabel: 'utilizable tras reserva',
|
|
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 = 'calculateur-budget-alimentation-usb';
|
|
7
|
+
const title = 'Calculateur de Budget d\'Alimentation USB';
|
|
8
|
+
const description = 'Vérifiez si un port USB, chargeur, hub, câble ou profil USB-C PD peut alimenter vos appareils en toute sécurité après marge de réserve et chute de tension du câble.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Comment savoir si un port USB peut alimenter mon appareil?',
|
|
13
|
+
answer: 'Comparez la puissance totale de l\'appareil avec la puissance de la source USB, réservez une marge de sécurité et estimez la chute de tension du câble. Une configuration peut échouer même lorsque les watts nominaux semblent élevés si le câble est long, fin ou transporte un courant élevé à 5 volts.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: 'Pourquoi la longueur du câble est-elle importante pour l\'alimentation USB?',
|
|
17
|
+
answer: 'Le courant traversant le cuivre crée une chute de tension. Les câbles longs et les conducteurs fins ont plus de résistance, de sorte que l\'appareil peut recevoir moins de tension que ce que fournit le chargeur. Ceci est particulièrement important pour les cartes Raspberry Pi, les disques durs, les bandes LED, les docks et les hubs alimentés par bus.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: 'Quelle marge de réserve dois-je utiliser?',
|
|
21
|
+
answer: 'Utilisez au moins 20 pour cent pour l\'électronique normale, 30 pour cent pour les moteurs, les lecteurs, les radios ou les cartes avec des charges en rafale, et plus si la qualité de l\'adaptateur est inconnue ou si l\'appareil doit fonctionner en continu.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: 'Cela peut-il remplacer les tests de négociation USB-C PD?',
|
|
25
|
+
answer: 'Non. Le calculateur vérifie le budget électrique. Il ne vérifie pas si un chargeur, un e-marker de câble, un appareil ou un hub négocie réellement un profil Power Delivery spécifique.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Choisir un profil source', text: 'Sélectionnez un profil USB ou USB-C PD courant, ou modifiez la tension et le courant manuellement.' },
|
|
31
|
+
{ name: 'Décrire le câble', text: 'Entrez la longueur du câble et le calibre du conducteur. Les fils fins à AWG élevé causent plus de chute de tension.' },
|
|
32
|
+
{ name: 'Ajouter la charge', text: 'Entrez une charge d\'appareil en watts et le nombre d\'appareils partageant la même source.' },
|
|
33
|
+
{ name: 'Lire le statut', text: 'Utilisez le statut, la chute du câble, la tension finale, l\'utilisation et la marge pour décider si la configuration est sûre.' },
|
|
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: 'fr',
|
|
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: 'L\'alimentation USB est un budget, pas une étiquette', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Un chargeur USB marqué 15 W, 45 W ou 100 W décrit ce que la source peut offrir dans les bonnes conditions. Votre appareil ne voit que le résultat après la négociation du protocole, les limites de courant, la résistance du câble, la qualité du connecteur, les pertes du hub et les pics de charge. Ce calculateur se concentre sur la question électrique pratique: après la chute du câble et la marge de réserve, reste-t-il assez de puissance pour le matériel que vous voulez faire fonctionner?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Courant par défaut USB 2.0', value: '0,5 A' },
|
|
88
|
+
{ label: 'Maximum par défaut USB-C à 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Réserve recommandée', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Comment interpréter le résultat', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Statut', 'Signification', 'Meilleure étape suivante'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Sûr', 'La charge tient dans la capacité de la source après la réserve choisie et la tension estimée de l\'appareil reste saine.', 'Utilisez la configuration, mais surveillez la chaleur si l\'adaptateur est petit ou enfermé.'],
|
|
98
|
+
['Juste', 'La charge est proche de la limite réservée ou la chute du câble devient significative.', 'Raccourcissez le câble, choisissez des conducteurs plus épais, réduisez la charge ou passez à un profil de puissance supérieur.'],
|
|
99
|
+
['Dépassement', 'La charge dépasse la puissance utile de la source ou la tension côté appareil est probablement trop basse.', 'Utilisez un chargeur plus puissant, un hub alimenté, un câble plus court ou un appareil qui négocie une tension USB-C PD plus élevée.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Quand les watts suffisent mais que l\'appareil redémarre quand même',
|
|
106
|
+
html: '<p>Le courant de démarrage peut être bien supérieur à la puissance moyenne imprimée sur l\'étiquette d\'un appareil. Une alimentation 5 V perd de la tension plus rapidement qu\'un profil PD 20 V pour la même puissance car elle doit transporter plus de courant. De nombreux câbles bon marché utilisent des conducteurs de puissance fins même lorsque la gaine extérieure semble épaisse, et les hubs alimentés par bus partagent un budget amont entre tous les appareils aval.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'La chute de tension du câble en termes simples', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'La chute de tension est la perte créée lorsque le courant traverse la résistance du câble. L\'alimentation USB a deux conducteurs dans le chemin de puissance, le calculateur utilise donc la longueur aller-retour. Un câble d\'un mètre représente électriquement deux mètres de cuivre pour la boucle d\'alimentation. Les numéros AWG plus bas sont plus épais et généralement meilleurs pour les charges à courant élevé.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Câble court et épais', description: 'Idéal pour les cartes Raspberry Pi, les boîtiers SSD, les kits de développement et les docks USB-C qui consomment du courant en rafale.' },
|
|
117
|
+
{ title: 'Câble long et fin', description: 'Acceptable pour les capteurs basse consommation ou la charge lente, mais risqué pour les lecteurs, les charges LED et les cartes de calcul.' },
|
|
118
|
+
{ title: 'PD à tension plus élevée', description: 'Réduit le courant pour la même puissance, ce qui diminue la perte du câble, mais seulement si la source, le câble et l\'appareil le négocient.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Règle pratique',
|
|
124
|
+
html: 'Si le calculateur indique que la configuration est juste, traitez-le comme un avertissement de terrain. Les pannes USB apparaissent souvent comme des déconnexions aléatoires, des baisses de tension, une charge lente, un bruit audio ou des erreurs de stockage avant de ressembler à un problème d\'alimentation clair.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'À quoi ce calculateur est le mieux adapté',
|
|
129
|
+
items: [
|
|
130
|
+
'Planifier des hubs USB, des ordinateurs monocarte, des lecteurs externes, des cartes de développement, des lumières, des ventilateurs et de petites configurations de laboratoire.',
|
|
131
|
+
'Comparer les profils source USB 2.0, USB 3.x, USB-C et USB Power Delivery.',
|
|
132
|
+
'Estimer si un câble est trop long ou trop fin pour une charge.',
|
|
133
|
+
'Choisir une réserve raisonnable avant d\'acheter un chargeur ou un hub alimenté.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'Profil source USB',
|
|
139
|
+
metricUnits: 'Métrique',
|
|
140
|
+
imperialUnits: 'US',
|
|
141
|
+
voltageLabel: 'Tension source (V)',
|
|
142
|
+
currentLabel: 'Courant source (A)',
|
|
143
|
+
cableLengthLabel: 'Longueur du câble',
|
|
144
|
+
wireGaugeLabel: 'Calibre du fil d\'alimentation',
|
|
145
|
+
deviceLoadLabel: 'Charge par appareil (W)',
|
|
146
|
+
devicesLabel: 'Appareils',
|
|
147
|
+
headroomLabel: 'Marge de réserve (%)',
|
|
148
|
+
sourcePower: 'Puissance source',
|
|
149
|
+
requiredPower: 'Puissance requise',
|
|
150
|
+
cableDrop: 'Chute du câble',
|
|
151
|
+
deviceVoltage: 'Tension appareil',
|
|
152
|
+
headroom: 'Marge',
|
|
153
|
+
utilization: 'Utilisation',
|
|
154
|
+
safeStatus: 'Le budget d\'alimentation semble sûr',
|
|
155
|
+
tightStatus: 'Le budget d\'alimentation est juste',
|
|
156
|
+
overStatus: 'Dépassement ou risque de chute de tension',
|
|
157
|
+
safeAdvice: 'La charge convient avec la marge choisie. Utilisez un câble de qualité et vérifiez la chaleur pendant les longues sessions.',
|
|
158
|
+
tightAdvice: 'Vous êtes proche de la limite. Réduisez la longueur du câble, utilisez des conducteurs plus épais, diminuez la charge ou choisissez un profil plus puissant.',
|
|
159
|
+
overAdvice: 'Cette configuration risque de subir des baisses de tension ou de l\'étranglement. Utilisez un hub alimenté, un adaptateur plus puissant ou un profil USB-C PD à tension plus élevée.',
|
|
160
|
+
busLane: 'Source USB',
|
|
161
|
+
loadLane: 'Charge appareil',
|
|
162
|
+
cableLane: 'chute',
|
|
163
|
+
boardEyebrow: 'Chemin d\'alimentation USB en direct',
|
|
164
|
+
sourceSocket: 'Prise source',
|
|
165
|
+
deviceSocket: 'Charge matérielle',
|
|
166
|
+
energyFlow: 'flux d\'énergie',
|
|
167
|
+
reservedLabel: 'utilisable après réserve',
|
|
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-anggaran-daya-usb';
|
|
7
|
+
const title = 'Kalkulator Anggaran Daya USB';
|
|
8
|
+
const description = 'Periksa apakah port USB, pengisi daya, hub, kabel, atau profil USB-C PD dapat memberi daya perangkat Anda dengan aman setelah memperhitungkan ruang cadangan dan penurunan tegangan kabel.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Bagaimana cara mengetahui apakah port USB dapat memberi daya perangkat saya?',
|
|
13
|
+
answer: 'Bandingkan total watt perangkat dengan watt sumber USB, sisakan ruang cadangan dan perkirakan penurunan tegangan kabel. Pengaturan dapat gagal bahkan ketika watt nominal terlihat tinggi jika kabel panjang, tipis, atau membawa arus tinggi pada 5 volt.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
question: 'Mengapa panjang kabel penting untuk daya USB?',
|
|
17
|
+
answer: 'Arus yang mengalir melalui tembaga menciptakan penurunan tegangan. Kabel panjang dan konduktor tipis memiliki lebih banyak resistansi, sehingga perangkat mungkin menerima lebih sedikit tegangan dari yang disediakan pengisi daya. Ini sangat penting untuk papan Raspberry Pi, hard drive, strip LED, dock, dan hub bertenaga bus.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
question: 'Ruang cadangan apa yang harus saya gunakan?',
|
|
21
|
+
answer: 'Gunakan setidaknya 20 persen untuk elektronik normal, 30 persen untuk motor, drive, radio, atau papan dengan beban lonjakan, dan lebih banyak lagi jika kualitas adaptor tidak diketahui atau perangkat harus berjalan terus-menerus.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
question: 'Bisakah ini menggantikan pengujian negosiasi USB-C PD?',
|
|
25
|
+
answer: 'Tidak. Kalkulator memeriksa anggaran listrik. Ini tidak memverifikasi apakah pengisi daya, e-marker kabel, perangkat, atau hub benar-benar menegosiasikan profil Power Delivery tertentu.',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const howToData = [
|
|
30
|
+
{ name: 'Pilih profil sumber', text: 'Pilih profil USB atau USB-C PD umum, atau edit tegangan dan arus secara manual.' },
|
|
31
|
+
{ name: 'Jelaskan kabel', text: 'Masukkan panjang kabel dan ukuran konduktor. Kabel tipis dengan AWG tinggi menyebabkan lebih banyak penurunan tegangan.' },
|
|
32
|
+
{ name: 'Tambahkan beban', text: 'Masukkan satu beban perangkat dalam watt dan jumlah perangkat yang berbagi sumber yang sama.' },
|
|
33
|
+
{ name: 'Baca status', text: 'Gunakan status, penurunan kabel, tegangan akhir, utilisasi, dan ruang cadangan untuk memutuskan apakah pengaturan aman.' },
|
|
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: 'id',
|
|
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: 'Daya USB adalah anggaran, bukan label', level: 2 },
|
|
80
|
+
{
|
|
81
|
+
type: 'paragraph',
|
|
82
|
+
html: 'Pengisi daya USB bertanda 15 W, 45 W, atau 100 W menjelaskan apa yang dapat ditawarkan sumber dalam kondisi yang tepat. Perangkat Anda hanya melihat hasilnya setelah negosiasi protokol, batas arus, resistansi kabel, kualitas konektor, kerugian hub, dan lonjakan beban. Kalkulator ini berfokus pada pertanyaan listrik praktis: setelah penurunan kabel dan margin cadangan, apakah masih ada cukup daya untuk perangkat keras yang ingin Anda jalankan?',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'stats',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Arus default USB 2.0', value: '0,5 A' },
|
|
88
|
+
{ label: 'Maksimum default USB-C pada 5 V', value: '3 A' },
|
|
89
|
+
{ label: 'Cadangan yang direkomendasikan', value: '20%+' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ type: 'title', text: 'Cara menafsirkan hasil', level: 3 },
|
|
93
|
+
{
|
|
94
|
+
type: 'table',
|
|
95
|
+
headers: ['Status', 'Arti', 'Langkah selanjutnya terbaik'],
|
|
96
|
+
rows: [
|
|
97
|
+
['Aman', 'Beban sesuai dengan kapasitas sumber setelah cadangan yang dipilih dan tegangan perangkat yang diperkirakan tetap sehat.', 'Gunakan pengaturan, tetapi perhatikan panas jika adaptor kecil atau tertutup.'],
|
|
98
|
+
['Sempit', 'Beban mendekati batas yang dicadangkan atau penurunan kabel mulai berarti.', 'Pendekkan kabel, pilih konduktor yang lebih tebal, kurangi beban, atau pindah ke profil daya yang lebih tinggi.'],
|
|
99
|
+
['Melebihi anggaran', 'Beban melebihi daya sumber yang dapat digunakan atau tegangan di sisi perangkat kemungkinan terlalu rendah.', 'Gunakan pengisi daya yang lebih kuat, hub bertenaga, kabel yang lebih pendek, atau perangkat yang menegosiasikan tegangan USB-C PD yang lebih tinggi.'],
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'diagnostic',
|
|
104
|
+
variant: 'warning',
|
|
105
|
+
title: 'Ketika watt cukup tetapi perangkat masih mereset',
|
|
106
|
+
html: '<p>Arus awal bisa jauh lebih tinggi daripada watt rata-rata yang tercetak pada label perangkat. Catu daya 5 V kehilangan tegangan lebih cepat daripada profil PD 20 V untuk watt yang sama karena harus membawa lebih banyak arus. Banyak kabel murah menggunakan konduktor daya tipis bahkan ketika jaket luar terlihat tebal, dan hub bertenaga bus berbagi satu anggaran hulu di setiap perangkat hilir.</p>',
|
|
107
|
+
},
|
|
108
|
+
{ type: 'title', text: 'Penurunan tegangan kabel secara sederhana', level: 3 },
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
html: 'Penurunan tegangan adalah kerugian yang terjadi ketika arus mengalir melalui resistansi kabel. Daya USB memiliki dua konduktor di jalur daya, jadi kalkulator menggunakan panjang pulang-pergi. Kabel satu meter secara elektrik adalah dua meter tembaga untuk loop daya. Nomor AWG yang lebih rendah lebih tebal dan biasanya lebih baik untuk beban arus tinggi.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'comparative',
|
|
115
|
+
items: [
|
|
116
|
+
{ title: 'Kabel pendek tebal', description: 'Terbaik untuk papan Raspberry Pi, enclosure SSD, kit pengembangan, dan dock USB-C yang menarik arus lonjakan.' },
|
|
117
|
+
{ title: 'Kabel panjang tipis', description: 'Dapat diterima untuk sensor daya rendah atau pengisian lambat, tetapi berisiko untuk drive, beban LED, dan papan komputasi.' },
|
|
118
|
+
{ title: 'PD tegangan lebih tinggi', description: 'Mengurangi arus untuk watt yang sama, yang menurunkan kerugian kabel, tetapi hanya jika sumber, kabel, dan perangkat menegosiasikannya.' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'tip',
|
|
123
|
+
title: 'Aturan praktis',
|
|
124
|
+
html: 'Jika kalkulator mengatakan pengaturannya sempit, perlakukan sebagai peringatan lapangan. Kegagalan USB sering muncul sebagai pemutusan acak, penurunan tegangan, pengisian lambat, audio berisik, atau kesalahan penyimpanan sebelum terlihat seperti masalah daya yang jelas.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'summary',
|
|
128
|
+
title: 'Untuk apa kalkulator ini paling cocok',
|
|
129
|
+
items: [
|
|
130
|
+
'Merencanakan hub USB, komputer papan tunggal, drive eksternal, papan pengembangan, lampu, kipas, dan pengaturan lab kecil.',
|
|
131
|
+
'Membandingkan profil sumber USB 2.0, USB 3.x, USB-C, dan USB Power Delivery.',
|
|
132
|
+
'Memperkirakan apakah kabel terlalu panjang atau terlalu tipis untuk suatu beban.',
|
|
133
|
+
'Memilih cadangan yang masuk akal sebelum membeli pengisi daya atau hub bertenaga.',
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
ui: {
|
|
138
|
+
profileLabel: 'Profil sumber USB',
|
|
139
|
+
metricUnits: 'Metrik',
|
|
140
|
+
imperialUnits: 'AS',
|
|
141
|
+
voltageLabel: 'Tegangan sumber (V)',
|
|
142
|
+
currentLabel: 'Arus sumber (A)',
|
|
143
|
+
cableLengthLabel: 'Panjang kabel',
|
|
144
|
+
wireGaugeLabel: 'Ukuran kabel daya',
|
|
145
|
+
deviceLoadLabel: 'Beban per perangkat (W)',
|
|
146
|
+
devicesLabel: 'Perangkat',
|
|
147
|
+
headroomLabel: 'Cadangan (%)',
|
|
148
|
+
sourcePower: 'Daya sumber',
|
|
149
|
+
requiredPower: 'Daya yang diperlukan',
|
|
150
|
+
cableDrop: 'Penurunan kabel',
|
|
151
|
+
deviceVoltage: 'Tegangan perangkat',
|
|
152
|
+
headroom: 'Cadangan',
|
|
153
|
+
utilization: 'Utilisasi',
|
|
154
|
+
safeStatus: 'Anggaran daya terlihat aman',
|
|
155
|
+
tightStatus: 'Anggaran daya sempit',
|
|
156
|
+
overStatus: 'Melebihi anggaran atau risiko penurunan tegangan',
|
|
157
|
+
safeAdvice: 'Beban sesuai dengan cadangan yang dipilih. Gunakan kabel berkualitas dan periksa panas selama pengoperasian lama.',
|
|
158
|
+
tightAdvice: 'Anda mendekati batas. Kurangi panjang kabel, gunakan konduktor yang lebih tebal, turunkan beban, atau pilih profil yang lebih kuat.',
|
|
159
|
+
overAdvice: 'Pengaturan ini kemungkinan akan mengalami penurunan tegangan atau pelambatan. Gunakan hub bertenaga, adaptor yang lebih kuat, atau profil USB-C PD tegangan yang lebih tinggi.',
|
|
160
|
+
busLane: 'Sumber USB',
|
|
161
|
+
loadLane: 'Beban perangkat',
|
|
162
|
+
cableLane: 'penurunan',
|
|
163
|
+
boardEyebrow: 'Jalur daya USB langsung',
|
|
164
|
+
sourceSocket: 'Soket sumber',
|
|
165
|
+
deviceSocket: 'Beban perangkat keras',
|
|
166
|
+
energyFlow: 'aliran energi',
|
|
167
|
+
reservedLabel: 'dapat digunakan setelah cadangan',
|
|
168
|
+
},
|
|
169
|
+
};
|