Friday, 9 September 2016

mains - Problems with a back-to-back MOSFET dimmer for 230VAC


I've been trying, unsuccessfully, to dim a 60W incandescent light bulb with two back-to-back MOSFETs, similar to this web page:


http://easy-electronics4u.blogspot.co.uk/2012/02/switch-ac-loads-using-mosfets-as-relay.html


My circuit looks like this: circuit diagram (there is also a 2A fast blow fuse and a 7D471K MOV on the mains input)


Below is the output from my scope: oscilloscope image



  • Channel 1: Live_230VAC

  • Channel 2: DIM_GPIO

  • Channel 3: Drain of Q5


  • Channel 4: Source of Q5 and Q6


Q6 gets burning hot, Q5 stays cool. The lamp (obviously) flickers as we are only getting every other half wave. Thinking about the circuit, I feel that it will be impossible to get a Vgs voltage that is higher than the voltage at the source pin, since the source pin will see the peak of the 230VAC?


Is there a way (preferably simple & cheap :)) of solving this kind of double MOSFET dimmer?


Edit 1: Added revised schematic as per suggestions from @RoyC for consideration (and so that RoyC doesn't have to click my pasteboard.co link) Rev3



Answer



On the right of the diagram swap live and neutral. This is a safety thing although you should never assume neutral is anywhere near earth it is likely to be lower than live. Now your switch is floating on the neutral line not the live.


The drive voltage for your gates has to float referenced on the source connection between Q5 and Q6. Short out R19.


Remove the bridge rectifier it is not needed instead connect D7 to the point that you have labelled in your current diagram as Neutral_230VAc. The ground end uses the body diode of Q6.


Here is a rough diagram component values same as yours



enter image description here


power - What happens when an FPGA is powered on and left unconfigured?



I am trying to get a general understanding on what happens if you leave an FPGA unprogrammed for a long duration of time.


Suppose you have an FPGA and you leave it unprogrammed for a long period of time (several minutes to hours after power-on), i.e. no bitstream on it, is this bad for the device? Is it recommended to have some bitstream on a powered-on FPGA at all times? What is the general opinion regarding this?


Are the results different on different devices or manufacturers (Xilinx vs. Altera vs. others)?




Additional Info:


I have a custom SoC board which uses a Xilinx Virtex-6 FPGA. I also have a Xilinx ML605 which I use for reference purposes.


Custom board: I power-on the board. I notice that I get a short duration of time to program it using XMD (Xilinx Microprocessor Debugger). If I lose the 20-30 sec window, I have to switch off and switch on the board before trying again. This does not happen with an ML605.


When I try to program the custom board over XMD, I get something like:


Error: Device Reset by JPROGRAM command, failed. INIT_COMPLETE did not go high.


Let me know what you think.




mosfet - Buck converter for Li-Ion 2s battery charger


I'm currently doing a project that requires the charging of a 2s Li-Ion battery.


I have an 18V 10W solar panel that I want to charge my battery using a buck converter. Im controlling the switch and duty cycle with an arduino uno which outputs a 0-5V PWM signal, I have not selected a switch yet as I am having issues trying to get my mosfet switch on and off due to the gate voltage being significantly less than my source voltage.


The way I understand it,


Before the switch the voltage is 18V, after the switch before the inductor the voltage at that node is the same as the battery voltage, 7.2< Vbat <8.2V. Therefore, for mt arduino uno to drive the switch some sort of DC offset needs to be applied to the gate so it varies from below the battery voltage (switch OFF) to above the battery voltage and turn on voltage of the switch ( switch ON).


Is my understanding correct? Does anyone have any suggestions how I can drive my switch without losing too much power?



Basically im struggling to get a PWM signal of 0V - 18V after the switch.


IN CC mode my desired outputs are 1Amp and varying voltage and in CV mode Vout = 8.4V and slowly decreasing current.


Is there some kind of IC driver that I can use?


BUCK CONVERTER from https://www.researchgate.net/publication/291757375_Design_and_Simulation_of_DC-DC_Converters




transistors - Effective transconductance of a CMOS inverter


If we have a CMOS inverter operating in its' linear region, what would be the effective trans conductance of the inverter?




Thursday, 8 September 2016

PH differential instrumentation amplifier


I have a computer engineering background with minimal experience with real EE work. I want to interface to a ph probe and was wondering what the best way to do this is.



It seems to me there are 2 basic options for doing this. The first is fully differential, where the ph probe connects to Vin in the diagram below. The output can then be read from the output of the first 2 stages via differential ADC. Is this correct?? Are there any flaws with connecting a ph probe directly to this circuit??


Second stage can be excluded and is just if you want a single ended signal ended with additional gain


enter image description here


This second design is simply a single ended gain+offset configuration. First stage does some gain, second stage offsets and has a bit more gain.


enter image description here


Which one is ideal for minimizing signal loss/noise? My thought would be that the first circuit would be better at noise rejection since it is differential, and feeding this into a differential ADC, some common mode noise would be rejected.


Are there better configurations for doing this?? I am interested in reading range of 3-10ph only. In this case, is one better than the other?


Some notes on ph probe:



  • Extremely high impedence opamps are required(eg femptaamp input bias current).


  • -420mv is 0ph, 420mv is 14 ph(may have that switched around).




transistors - FM transmitter circuit working?


I am trying to understand FM transmitter circuit working basically on how a signal is imposed on to the carrier signal. I would like to get an acknowledgement on whether my understanding is correct or not. Next, I have got a few questions.


Here is my circuit -


enter image description here


My understanding -


1) The L1 VC1 is basically a tank circuit which is creating a high frequency signal because of storing and releasing of the energy stored inside L1 or VC1 and this process is repeating and changes the polarity each type. Thus, we get a high frequency sinusoidal signal.


2) This L1C1 is connected to a battery voltage - 9V. Thus, it will not have any losses.


3) The amount of potential difference on the antenna point depends on how much transistor is conducting. So, basically, transistor will conduct less if the input signal on the base is less. It will be like a short circuit when the input signal on the base is maximum. Thus, the output collector voltage is changing based on the input signal. This is happening because transistor is conducting differently based on the input signal magnitude.


Here is my diagram on this understanding.



enter image description here


enter image description here


Question - Since Antenna is nothing but a wire with some resistance. But this wire isn't connected to anything. Thus, it is like an open circuit. If it is an open circuit then why does the signal passes to the antenna?




voltage - Would a 9V alkaline power a 12V DC motor?


I am thinking about buying a 12V DC motor but want to keep everything, including the motor, battery, and power switch somewhat compact. I am not very knowledgeable about these kind of things and am curious whether or not my 12V DC motor would run at all on a 9V battery.


This is the motor




arduino - Can I use TI&#39;s cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...