******* Please visit https://proteshea.com/control-dc-fan-with-n-channel-mosfet-and-arduino-uno/ for a complete list of materials needed for this
project. ******* If you haven’t read our Getting Started Guide for the Arduino Uno Rev3, please read that first. Otherwise, continue reading. In this tutorial, we’ll be connecting an N-channel MOSFET to source current to a brushless DC fan. The fan requires 200mA at +5V which is over the max current
that an Arduino Uno Rev3 (Uno) pin can source. If you consult the datasheet for the ATmega328, the max current per pin is 40mA. Going over the maximum current limit can damage the microcontroller so make sure you determine the load current before connecting any device to an Uno pin. A MOSFET can be used for amplifying or switching signals – in this example, we’ll be using it as a switch. It consists of 3 terminals: gate, source, and drain (pinout is below). The N-channel MOSFET is a voltage-controlled device. There are two types of N-channel MOSFETs: enhancement- and depletion-type. An enhancement type MOSFET is normally off when the gate-source voltage is 0V, so a voltage must be applied to the gate for current to flow through the drain-source channel.
A depletion-type MOSFET is normally on when the gate-source voltage is 0V, and thus current flows through the drain-source channel until a positive voltage is applied at the gate. The 2N7000 N-channel MOSFET is enhancement-type so we must set the Arduino output pin high to provide power to the DC fan. The maximum current that a MOSFET can source varies, but the one I am using can source 200mA. Some MOSFETs can source up to 30-50A, and as a result, the size increases to be able to handle
that amount of current. NOTE: You’ll want to add a series resistor between the Uno output pin and the Gate of the MOSFET. This will limit the current to the gate since the Uno can only source a max of 40mA and the Gate may try to pull more than that. We recommend using a 220Ω resistor to limit the current to ~23mA. I’m using a breadboard instead of Modulus since almost everybody has a breadboard. First, let’s
place the N-channel MOSFET onto the breadboard – make sure that each lead has its own node. Tie the source pin to GND, the gate to Uno pin 2, and the drain to the black wire on the fan. The red wire of the fan gets connected to the positive rail on the breadboard. If you haven’t mounted the Uno onto the prototyping area of the FuelCan, go ahead and do that. I placed the breadboard in the bottom storage compartment to limit the length of the jumper wires. We need to supply +5V and GND to the power and ground rails on the breadboard. Use the provided banana jack to test-lead clip cables to do so. You will need two male header pins to mount the test-lead clips to the breadboard side. Plug the Type A side of the USB cable into the USB1 receptacle and the Type B side into the Uno’s receptacle. Power up the FuelCan with the AC-DC power adapter. SoftwareOnce the wiring is complete and the FuelCan is powered up, we can now load the sketch onto the Uno. It is quite simple compared to the previous projects. All the code does is toggle Uno pin 2 from low to high with a 5 second delay in between. When the pin is high, the fan turns on, and when the pin is low, the fan turns off. CodeSchematicscircuit_schematic_LIpuLQMNZS.pngSimilar projects you might like
여러 유형의 트랜지스터가 있습니다. 이러한 전자 장치는 오늘날의 전자 장치에 매우 중요하며 진공관 기반 전자 장치에서 훨씬 더 안정적이고 에너지 효율적인 고체 기반 전자 장치로의 전환에 돌파구를 나타 냈습니다. 사실로, MOSFET 대부분의 칩 또는 집적 회로에 사용되지만 다른 많은 애플리케이션의 인쇄 회로 기판에서도 찾을 수 있습니다. 글쎄, 어때? 중요한 반도체 장치, 저는 우리가 많은 회로를 만들 수있게하고 여러면에서 우리 삶을 향상시킨이 과학 및 공학 작업에 대해 알아야 할 모든 것을 여러분에게 제시 할 것입니다. 색인
트랜지스터 란?
단어 트랜지스터는 전송 저항에서 온다, 그리고 그것은 1951 년에 발명되었지만, 유럽에서는 미국인들이 첫 번째 디자인을 제시하기 전에 이미 특허와 개발이 있었지만 이것은 또 다른 이야기이지만 ... 그 당시에는 대체 할 수있는 고체 상태, 반도체에 기반한 장치를 찾고있었습니다. 당시의 컴퓨터 및 기타 전자 장치를 구성하는 조잡하고 신뢰할 수없는 진공 밸브. 라스 밸브 또는 진공관 그것은 기존의 전구와 유사한 구조를 가지고 있기 때문에 또한 소손되었습니다. 기계가 계속 작동하려면 자주 교체해야했습니다. 또한 가열되어 비효율로 인해 열 형태로 많은 양의 에너지를 낭비했다는 의미입니다. 따라서 그들은 전혀 실용적이지 않았고 교체가 절실했습니다. 글쎄, AT & T Bell Labs, Williams Shockley, John Bardeen 및 Walter Brattain 그들은 반도체 장치를 만드는 일에 착수했습니다. 진실은 그들이 열쇠를 찾는 데 어려움을 겪었다는 것입니다. 이 프로젝트는 유럽에서 비슷한 것이 개발되고 있다는 것이 알려 졌기 때문에 비밀로 유지되었습니다. 하지만 제 XNUMX 차 세계 대전이 끝나고 주인공들은 전투에 나섰습니다. 돌아 오는 길에 그들은 신비롭게도 이미 해결책을 찾았습니다. El 첫 번째 프로토 타입 그들이 만든 것은 매우 조잡했고 심각한 디자인 문제를 제시했습니다. 그중 연속으로 제조하는 것은 복잡하고 복잡했습니다. 또한 금을 더 비싸게 만드는 부분을 사용했고, 팁이 반도체 크리스탈과의 접촉을 멈추는 경우가있어서 작동을 멈추고 다시 밀착 시켜야만했다. 진실은이 발명품으로 거의 해결되지 않았지만 조금씩 개선되어 새로운 유형이 등장했습니다. 그들은 이미 전자 부품을 가지고 고체 이하 라디오, 알람, 자동차, 컴퓨터, 텔레비전 등의 크기를 줄이기 위해 부품 및 작동
트랜지스터는 XNUMX 개의 핀 또는 접점으로 구성되며 세 영역 차별화 된 반도체. 바이폴라에서 이러한 영역을 이미 터,베이스 및 컬렉터라고합니다. 반면에 MOSFET과 같은 단 극형에서는 일반적으로 소스, 게이트 및 드레인이라고합니다. 핀을 잘 식별하고 혼동하지 않도록 데이터 시트 나 카탈로그를 잘 읽어야합니다. 관련 기사 : 2N2222 트랜지스터 : 알아야 할 모든 것 La 도어 또는베이스 마치 스위치처럼 작동하여 다른 두 끝 사이의 전류 흐름을 열거 나 닫습니다. 이것이 작동하는 방식입니다. 이를 바탕으로 두 가지 기본 기능에 사용할 수 있습니다.
트랜지스터의 유형
MOSFET 기호 N 및 P 일단 기본 동작과 그 역사를 살펴보면, 시간이 지남에 따라 특정 유형의 응용 분야에 최적화 된 트랜지스터를 개선하고 만들었습니다. 차례로 여러 유형이있는이 두 가족:
라스 차이점은 반도체 영역의 내부 아키텍처에 기반합니다. 마다… Un MOSFET 나중에 보게 되겠지만 Arduino를 사용하는 특정 회로에 유용 할 수있는 큰 부하를 처리 할 수 있습니다. 사실, 그것의 장점은 현대 전자 제품에 매우 유용합니다. 증폭기 또는 전자 제어 스위치로 작동 할 수 있습니다. 구입하는 각 MOSFET 유형에 대해 속성을 보려면 데이터 시트를 읽어야한다는 것을 이미 알고 있습니다. 모두 동일하지는 않기 때문입니다. 다음 중 하나의 차이점 채널 N 및 P 입니다 :
본 제품의 아주 싼 품목, 그래서 당신은 큰 비용없이 그들 중 좋은 소수를 살 수 있습니다. 예를 들어, 다음은 전문점에서 구입할 수있는 몇 가지 광고입니다.
더 높은 출력을 위해 사용한다면 가열 될 것이므로 그것을 식히는 방열판 약간… Arduino와 통합
MOSFET은 신호를 제어하는 데 매우 실용적입니다. arduino 보드, 따라서 방법과 유사한 방식으로 게재 할 수 있습니다. 릴레이 모듈, 기억한다면. 실제로 MOSFET 모듈은 Arduino 용으로도 판매됩니다. 제품이 없습니다., 가장 인기있는 것 중 하나입니다. 이 모듈을 사용하면 이미 트랜지스터가 작은 PCB에 장착되어 사용하기가 더 쉽습니다. 그러나 Arduino와 함께 사용할 수있는 유일한 것은 아닙니다. IRF520, IRF540, IRF9.2의 경우 28A에 비해 각각 14 및 530A의 공칭 전류를 허용합니다. 많은 MOSFET 모델을 사용할 수 있지만 모두가 Arduino와 같은 프로세서에서 직접 사용하는 것이 권장되는 것은 아닙니다. 출력의 전압 및 강도 제한으로 인해. IRF530N 모듈을 사용하는 경우 예, 보드에 SIG로 표시된 커넥터를 보드의 핀 중 하나와 연결할 수 있습니다. Arduino UNO, 같은 D9. 그런 다음 GND 및 Vcc를 Arduino 보드의 해당 항목 (이 경우 GND 및 5v)에 연결하여 전원을 공급합니다. 로로 코디 고 이 간단한 계획을 조절하는 간단한 방법은 다음과 같습니다. 출력 부하를 5 초마다 통과 시키거나 통과시키지 않는 것입니다 (이 계획의 경우 모터 일 수 있지만 원하는대로 할 수 있습니다 .. .) : onst int pin = 9; //Pin donde está conectado el MOSFET void setup() { pinMode(pin, OUTPUT); //Definir como salida para controlar el MOSFET } void loop(){ digitalWrite(pin, HIGH); // Lo pone en HIGH delay(5000); // Espera 5 segundos o 5000ms digitalWrite(pin, LOW); // Lo pone en LOW delay(5000); // Espera otros 5s antes de repetir el bucle } |