3

I know the qustion in little strange, but i need to connect between these three antennas by wireless channel (with distance d as a name) and (what is the possible options) also whats is the possible options for antennas or nodes (another shape in latex). so i can put it in the paper and thanks qus

\documentclass[12pt,a4paper]{article}
\usepackage{circuitikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes,arrows}
\tikzset{block/.style = {draw, fill=white, rectangle,
              minimum height=3em, minimum width=2cm},
    input/.style = {coordinate},
    output/.style = {coordinate},
    pinstyle/.style = {pin edge={to-,t,black}}
    radiation/.style={{decorate,decoration={expanding waves,angle=90,segment   length=4pt}}}

}
%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
  \begin{tikzpicture}[auto, node distance=2cm,>=latex']
\node[block](tx){Base Station};
\node[antenna] at (tx.east) {};
\node[block,below  = 2cm of tx](ttx){GSM900 Tower};
\node[antenna] at (ttx.east) {};
\node[block,right = 5cm of tx](rx){Sensor Node};
\node[antenna,xscale=-1] at (rx.west) {};
\end{tikzpicture}
\end{document} 

Note: is saw this code in this website but i changed it

6

Something like this?

enter image description here

\documentclass[border=3mm]{standalone}
\usepackage{circuitikz}
\usetikzlibrary{arrows,calc,positioning,quotes}% added "calc" and "quotes"
\tikzset{%
    block/.style = {draw, fill=white, rectangle, minimum height=3em, minimum width=2cm},
    input/.style = {coordinate},
   output/.style = {coordinate},
 pinstyle/.style = {pin edge={to-,t,black}}
radiation/.style = {{decorate,decoration={expanding waves,angle=90,segment   length=4pt}}},
   zigzag/.style = {% added for solution
    to path={ -- ($(\tikztostart)!.55!-9:(\tikztotarget)$) --
                 ($(\tikztostart)!.45!+9:(\tikztotarget)$) -- (\tikztotarget)
             \tikztonodes},sharp corners}
        }

\begin{document}
  \begin{tikzpicture}[auto, node distance=2cm,>=latex']
\node[block](tx){Base Station};
\node[antenna] (ant1) at (tx.east) {};
\node[block,below  = 2cm of tx](ttx){GSM900 Tower};
\node[antenna] (ant2) at (ttx.east) {};
\node[block,right = 5cm of tx](rx){Sensor Node};
\node[antenna,xscale=-1] (ant3) at (rx.west) {};
% added as solution
\coordinate (A1) at ($(ant1)+(0.5,2)$);
\coordinate (A2) at ($(ant2)+(0.5,2)$);
\coordinate (A3) at ($(ant3)+(-0.5,2)$);
\draw[draw=red,very thick,shorten >=1mm,->] (A1) to [zigzag,"$d$"] (A3);
\draw[draw=red,very thick,shorten >=1mm,->] (A2) to [zigzag,"$d$"] (A3);
\end{tikzpicture}
\end{document} 
  • Red alert by lightning? – cfr Aug 13 '16 at 1:42
  • urgent message to sensor .... :-) – Zarko Aug 13 '16 at 6:30
7

Another wireless option

enter image description here

\documentclass[12pt,a4paper]{article}
\usepackage{circuitikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes,arrows,decorations.pathreplacing}
\tikzset{block/.style = {draw, fill=white, rectangle,
              minimum height=3em, minimum width=2cm},
    input/.style = {coordinate},
    output/.style = {coordinate},
    pinstyle/.style = {pin edge={to-,t,black}},
    radiation/.style={decorate,decoration={expanding waves,angle=12,segment length=4pt}}
}
%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
  \begin{tikzpicture}[auto, node distance=2cm,>=latex']
\node[block](tx){Base Station};
\node[antenna] at (tx.east) {};
\node[block,below  = 2cm of tx](ttx){GSM900 Tower};
\node[antenna] at (ttx.east) {};
\node[block,right = 5cm of tx](rx){Sensor Node};
\node[antenna,xscale=-1] at (rx.west) {};

\draw[radiation] ([shift={(1cm,2cm)}]tx.east)-- node [above=5mm] {d} ([shift={(-1cm,2cm)}]rx.west);

\draw[radiation] ([shift={(1cm,2cm)}]ttx.east)--node [below right=8mm] {d}([shift={(-1cm,2cm)}]rx.west);
\end{tikzpicture}
\end{document} 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.