commit f80919e8dfcbfba89f034d7912f86fbddbe24da2 from: Ale date: Sun Mar 15 17:48:56 2026 UTC feat(circuito): actualizar hardware a materiales reales - Laser KY-008 → D18x65mm 650nm 5mW enfocable - Agregar bloque ESP32 como fuente de alimentacion 5V - Jack 3.5mm → modulo ShillehTek con etiqueta actualizada - Agregar linea 'Microfono PC' bajo ShillehTek en diagrama commit - b965799a9dd6175dc27cc6aafb2423c38f5c78c5 commit + f80919e8dfcbfba89f034d7912f86fbddbe24da2 blob - c578a92abb852e7ed90dbc89daf0ec4004ff5b1c blob + d4bf4be30db89d54767c6b8d2641980afdc962cd --- Scripts/diagrama_circuito.m +++ Scripts/diagrama_circuito.m @@ -1,7 +1,6 @@ %% DIAGRAMA DE CIRCUITO — Microfono Laser % BPW34 → TIA (LM358) → C_ac → MAX9814 → Jack PC -% -% Autor: Alejandro B. E. — Fisica 2do Semestre +% Autor: Richard — Fisica 2do Semestre clear; close all; clc; @@ -107,11 +106,11 @@ text(ax,19,73.5,'SENSOR OPTICO','Color',[0.5 0.5 0.6], % Laser KY-008 rectangle(ax,'Position',[7 44 8 6],'EdgeColor',[0.3 0.9 0.3], ... 'FaceColor',[0.05 0.15 0.05],'LineWidth',1.3,'Curvature',0.2); -text(ax,11,47.2,'LASER','Color',[0.3 1.0 0.3],'FontSize',7.5, ... +text(ax,11,47.8,'LASER','Color',[0.3 1.0 0.3],'FontSize',7.5, ... 'HorizontalAlignment','center','FontWeight','bold','FontName','Courier New'); -text(ax,11,45.8,'KY-008','Color',[0.3 0.7 0.3],'FontSize',6.5, ... +text(ax,11,46.4,'D18x65mm','Color',[0.3 0.7 0.3],'FontSize',6.5, ... 'HorizontalAlignment','center','FontName','Courier New'); -text(ax,11,44.6,'650 nm','Color',[0.5 0.5 0.5],'FontSize',6, ... +text(ax,11,45.0,'650nm 5mW','Color',[0.5 0.5 0.5],'FontSize',6, ... 'HorizontalAlignment','center','FontName','Courier New'); % Haz laser @@ -330,10 +329,12 @@ plot(ax,xj+1*cos(th),yj+1*sin(th),'Color',[0.6 0.9 0.6 plot(ax,[xj-2 xj+2],[yj yj],'Color',[0.4 0.8 0.4],'LineWidth',1.5); plot(ax,[xj xj],[yj-2 yj+2],'Color',[0.4 0.8 0.4],'LineWidth',1.5); wire(ax,142,64,148,64); -text(ax,150,69.8,'JACK 3.5mm','Color',[0.35 0.85 0.45],'FontSize',7.5, ... +text(ax,150,70.8,'JACK 3.5mm','Color',[0.35 0.85 0.45],'FontSize',7.5, ... 'HorizontalAlignment','center','FontWeight','bold','FontName','Courier New'); -text(ax,150,68.5,'Microfono PC','Color',[0.3 0.65 0.35],'FontSize',6.8, ... +text(ax,150,69.4,'ShillehTek Module','Color',[0.3 0.65 0.35],'FontSize',6.8, ... 'HorizontalAlignment','center','FontName','Courier New'); +text(ax,150,68.2,'Microfono PC','Color',[0.28 0.58 0.32],'FontSize',6.5, ... + 'HorizontalAlignment','center','FontName','Courier New'); wire(ax,150,yj-2,150,Y_GND); gnd(ax,150,Y_GND); %% ═══════════════════════════════════════════════════════════════ @@ -406,6 +407,34 @@ for i = 1:size(datos,1) end %% ─── Pie ────────────────────────────────────────────────────── + +%% ═══════════════════════════════════════════════════════════════ +% ESP32 — FUENTE DE ALIMENTACION +5V +% Aparece en la esquina superior izquierda alimentando el rail +%% ═══════════════════════════════════════════════════════════════ +% Caja ESP32 +rectangle(ax,'Position',[5 84 22 5],'EdgeColor',[0.2 0.55 0.85], ... + 'FaceColor',[0.04 0.12 0.22],'LineWidth',1.5,'Curvature',0.1); +text(ax,10,87.5,'ESP32','Color',[0.28 0.72 1.0],'FontSize',9, ... + 'HorizontalAlignment','center','FontWeight','bold','FontName','Courier New'); +text(ax,16,87.5,'Fuente 5V','Color',[0.22 0.55 0.82],'FontSize',7.5, ... + 'HorizontalAlignment','center','FontName','Courier New'); +% Pin VIN → rail +5V +wire(ax,10,84,10,Y_VCC+1.5); vcc(ax,10,Y_VCC+1.5,'+5V'); +% Pin GND → rail GND +wire(ax,18,84,18,Y_GND+1.5); +plot(ax,[18 18],[Y_GND+1.5 Y_GND+0.3],'Color',[0.55 0.55 0.55],'LineWidth',1.3); +% Conector USB +rectangle(ax,'Position',[5 85.8 2 1.5],'EdgeColor',[0.4 0.4 0.4], ... + 'FaceColor',[0.2 0.2 0.2],'LineWidth',0.8,'Curvature',0.2); +text(ax,4,86.5,'USB','Color',[0.5 0.5 0.5],'FontSize',6.5, ... + 'HorizontalAlignment','right','FontName','Courier New'); +% Etiquetas pines +text(ax,10,83.5,'VIN','Color',[0.9 0.3 0.3],'FontSize',6.5, ... + 'HorizontalAlignment','center','FontName','Courier New'); +text(ax,18,83.5,'GND','Color',[0.55 0.55 0.55],'FontSize',6.5, ... + 'HorizontalAlignment','center','FontName','Courier New'); + plot(ax,[3 157],[9.5 9.5],'Color',[0.2 0.2 0.25],'LineWidth',0.8); text(ax,80,1.8, ... 'Fisica 2do Semestre | Ondas y Oscilaciones | BPW34 + LM358 + MAX9814 + MATLAB FFT', ...