Posts

How to create a vertex at the intersection of two edges with tkz-graph?

Image
1 0 I want to draw But I don't know how to create v_6 which is the intersection of Edge(v_3)(v_5) & Edge(v_1)(v_4) and v_7 is the intersection of Edge(v_3)(v_5) & Edge(v_2)(v_4) . Here the code for the pentagram documentclass{standalone} usepackage{tikz,tkz-graph,tkz-berge} %usetikzlibrary{positioning,fit,patterns} begin{document} begin{tikzpicture}[rotate=90] GraphInit[vstyle=Classic] tikzset{VertexStyle/.append style={minimum size=3pt, inner sep=3pt}} Vertices[Math,Lpos=90,unit=2]{circle}{v_1,v_2,v_3,v_4,v_5} Edges(v_1,v_2,v_3,v_4,v_5,v_1) Edges(v_1,v_3,v_5,v_2,v_4,v_1) %WE[Math,Lpos=90,unit=2.75](v_1){v_7} % Brutal %SOEA[Math,Lpos=0,unit=.5](v_7){v_6} end{tikzpicture} end{document} tikz-pgf graphs intersections tkz-graph ...

Turn on a microcontroller using a high-side Mosfet switch

Image
2 I am using a P-Channel Mosfet to control the power of an STM32F103VETE ARM microcontroller (MCU1). The source of the Mosfet is connected to 3.3 V and the drain goes to the MCU1 Vdd pins. The gate of the Mosfet is controlled by another microcontroller (STM32F030RET (MCU2)) which is directly connected to 3.3 V net. Now the problem is that I can't turn off MCU1: When I put a Logic 1 on the gate of the Mosfet, that makes its Vgs = 0 but I still get 2.4 V at the drain of the Mosfet which is enough to turn on MCU1. When I put a Logic 0 on the gate of the Mosfet, its Vgs = -3.3 V, it turns on properly and I can read 3.3 V at the drain. Can anyone please help me to solve this? What can cause such a problem? Here is the schematic of the circuit I have used: "POWER_ON" is the signal from MCU2. The Mos...