Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to create a picture like the one with TikZ:

enter image description here

I've already created the electrical part using circuitikz. I'd like to add the part on the right (the motor's shaft with arrows), but don't know how to start, actually. Is there a way to draw 3D shapes, maybe? Or should I draw circles and rotate them?

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{circuitikz}
\usepackage{siunitx}

\begin{document}

\begin{figure}
\centering
\begin{circuitikz} \draw
(0,0) to [V, v=$v(t)$, *-*] (0,2) 
    to [R, l=$R_d$] (2,2)
    to [L, l=$L_d$] (4,2)
    to [V, v<=$e(t)$] (4,0) to [generic] (4,2) -- (4,0) -- (0,0);
\end{circuitikz}
\end{figure}

\end{document}

What I have now: What it looks like now

What I'm still missing: What I'm still missing

share|improve this question
2  
Take a look at Drawing simple 3D cylinders in TikZ –  Jake Jun 22 '12 at 13:15
add comment

1 Answer

up vote 12 down vote accepted

This can be best done with cylinders but for the shading effects one can do some manual construction too.

\begin{tikzpicture}
\draw[fill=blue!50](0,0) circle (1 and 2);
\draw[top color=blue!25,bottom color=black,middle color=blue!50] (-0.5,2) arc (90:270:1 and 2) -- ++(0.5,0) arc (-90:-270:1 and 2) -- cycle;
\draw[top color=white,bottom color=black!70] (0,3mm) arc (90:270:1.5mm and 3mm)--++(3cm,0) arc (-90:-270:1.5mm and 3mm)-- cycle;
\draw (3cm,3mm) arc (90:-90:1.5mm and 3mm);
\end{tikzpicture}

enter image description here

share|improve this answer
    
Thank you @percusse. Is there a chance adding those arrows is just as easy... ? –  mmm Jun 22 '12 at 13:32
1  
@mmm It is. Add \draw[-latex,thick] (-1,2) arc (90:170:1 and 2); to the picture to see for an example. –  percusse Jun 22 '12 at 13:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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