AP3400 MOSFET - Discovery

Introduction

One of the things I want to be able to achieve is fault injection. To do so I need to be able to perform power cuts at precise moments. The best way I found in documentation achieve this goal is by using MOSFETs that are electrical components that act like switches.

So I got my hand on several of these tiny components and made some tests to understand how it is working.

The process

Step 1 : Solder the MOSFET to a board

MOSFETs are really tiny components when dealing with low Amps and Volts as you can see in the specs and on the following photos

AP3400 Datasheet
AP3400 under surface microscope

I decided to solder it to a small board so it would be easier to then connect it on testing installation. Originally tried using some soldering paste, it went quite bad as once liquified the solder would get in the small holes of the board.

It then decided to apply some flux and used regular solder to get the chip into place on the board

AP3400 once soldered still into flux
AP3400 soldered and cleaned from flux

Now that the chip is soldered to the board, it’s time to test it’s connectivity to make sure the solder was properly made (which I doubted at this time)

Testing the pins for proper soldering

Step 2 : Wire the chip

It got to work first try, perfect. now that we have the chip on a board I decided to add some wires to each pins for further operations

MOSFET now wired for testing

Step 3 : Let’s test

Now that I have a chip that I can easily use for testing, I decided to go with a basic LED blinking setup as follow :

Test schematic

The Arduino UNO would be loaded with the following script that makes the LED turn HIGH or LOW every 1 second

void setup(){
  pinMode(5, OUTPUT);
}

void loop(){
  digitalWrite(5, HIGH);   
  delay(1000);                       
  digitalWrite(5, LOW);   
  delay(1000);                       
}

Here is a pic of the real setup (quite messy, not super stable)

Actual test setup

It can be seen on the photo that there is an oscilloscope probe on the circuit. I installed it for debug as the LED initially wasn’t blinking. I wanted to make sur the signal was pushed from the Arduino UNO using my DSO

DSO screen showing the 1Sec period signal going HIGH and LOW

After a bit of tweacking, I found that one of the resistors where not properly held on the breadboard so I changed the position and everything now works fine

Sources

https://datasheet.lcsc.com/lcsc/1912111437_ALLPOWER-ShenZhen-Quan-Li-Semiconductor-AP3400_C353070.pdf
LED brightness with PWM and MOSFET
PWM A simple example using a MOSFET to change the intensity of some LEDs. For my Tardis tissue box cover, I used a mosfet for the first time. Let's see how I used it ! I bought some 2N7000. Their are cheap, and they can handle 200mA, ore than enough for my day-to-day use.
https://www.iot-experiments.com/led-brightness-with-pwm-and-mosfet/