-1

The circuit includes components like an optical waveguide, optical fiber, optical ring resonator, photodiode, optical modulator, and photonic crystal. I would like to create the diagram without annotations or arrows—just the shapes representing the components.

I previously received your help on a similar design, and I tried to adapt the code they provided for my current schematic. However, I’m having trouble replicating the layout and level of detail.

result

\documentclass[10pt,border=3mm,tikz]{standalone}
    \usetikzlibrary{shapes, arrows, calc, 3d}
    
    \begin{document}
    \begin{tikzpicture}
    
    % Define colors
    \definecolor{myblue}{HTML}{2E7CAA}
    \definecolor{myred}{HTML}{E72B22}
    \definecolor{mygreen}{HTML}{5DA429}
    \definecolor{mypurple}{HTML}{C29DE5}
    \definecolor{mygray}{HTML}{D1D6D9}
    
    % Optical fiber
    \draw[fill=mygray] (0,0) rectangle (0.8,0.4);
    \draw[fill=white] (0.3,0.1) rectangle (0.5,0.3);
    
    % Optical waveguide (horizontal)
    \draw[fill=myblue] (0.8,0.15) rectangle (5,0.25);
    
    % Laser
    \draw[fill=myred] (5,0.25) rectangle (6,0.75);
    
    % Optical ring resonator
    \draw[thick,fill=mygreen] (3,1.2) circle (0.5);
    
    % Photonic crystal
    \draw[fill=mypurple] (1,1.5) rectangle (2,2);
    
    % Photodiode
    \draw[fill=mygreen] (0.5,2) rectangle (1.5,2.5);
    
    % Optical modulator
    \draw[fill=myblue] (4.5,1) rectangle (5.5,1.5);
    
    % Input coupler (approximation as a square)
    \draw[fill=myred] (4.5,2) rectangle (5.2,2.7);

    \end{tikzpicture}
\end{document}

I’ve been unable to replicate the precise layout and positioning of the components. Could you provide any guidance on how to draw smooth paths for the waveguides and connections between components? I’d appreciate any help or advice on how to take this diagram closer to the original!

enter image description here

9
  • 1
    No I don't have access to EDA tools. I am a final-year master's student currently working on my thesis and seeking assistance with LaTeX. I am relatively new to LaTeX and need help reproducing a specific design for my thesis. Your guidance would be greatly appreciated. Commented yesterday
  • 1
    Thank you. // Yesterday you had a similar question, with a nice answer using \pic elements. If you adopt it, you can, right away, create all cuboid structures. That would be a much better starting point for your question: how to add the cylinder (jack) and the circular structures.
    – MS-SPO
    Commented yesterday
  • 1
    @MS-SPO what are eda tools?
    – cfr
    Commented yesterday
  • 1
    how many of these pictures do you have to draw and how complicated do they get? unless the answer is very few and fairly simple, you would be far better investing your efforts in learning an alternative way to draw them. there are open source programmes you can use to draw 3d images. tikz is great for schematics, but it is bad for both realism and 3d generally. of course, it can be done, but that doesn't make it a sensible approach.
    – cfr
    Commented yesterday
  • 1
    @cfr: EDA means Electronic Design Automation. Synonyms are also CAD tools, layout tools and often any other specialized tool name, like Verilog (digital design synthesis). Common exaggerated conotation is „we do glorious gorgeous complicated electronics and semiconductor stuff, your unworthiness“ … Well, more Hybris than substance ;)
    – MS-SPO
    Commented yesterday

0

You must log in to answer this question.

Browse other questions tagged .