Grove – MOSFET 微型 繼電器 開關模塊

-17%

Grove – MOSFET 微型 繼電器 開關模塊

NT$143 NT$119 未稅

Grove – MOSFET 讓您能夠控制高電壓的專案項目,例如在 您的開發板上控制15VDC或低電壓5V。 MOSFET也是一種開關裝置,但其開關頻率可以達到高達5MHz,比一般普通機械式繼電器的反應要快上多許。有Grove – MOSFET繼電器板子上的有兩個螺絲端子。一端用於控制外部電源,另一端則是其他你想控制的設備。Grove – MOSFET 關閉時MOSFET將通過電源從一端到另一端。但是如果外部電源不存在時,您的設備仍然可以通過 Grove接口借鑒微控制器供電。

尚有庫存

貨號: 103020008(A8-11) 分類: , 標籤: , , , , ,
  • 商品說明
  • 原廠資料
  • 技術文件
  • 評論 (0)

商品說明

Grove – MOSFET 讓您能夠控制高電壓的專案項目,例如在 您的開發板上控制15VDC或低電壓5V。 MOSFET也是一種開關裝置,但其開關頻率可以達到高達5MHz,比一般普通機械式繼電器的反應要快上多許。

有Grove – MOSFET繼電器板子上的有兩個螺絲端子。一端用於控制外部電源,另一端則是其他你想控制的設備。Grove – MOSFET 關閉時MOSFET將通過電源從一端到另一端。但是如果外部電源不存在時,您的設備仍然可以通過 Grove接口借鑒微控制器供電。

 

規格說明
  • 工作電壓: 5V
  • Vin: 5 ~ 15V
  • 繼電器模組: CJQ4435

 

Introduction

Grove – MOSFET enables you to control higher voltage project, say 15VDC, with low voltage, say 5V, on microcontroller. MOSFET is also a kind of switch, but its switching frequency can reach up to 5MHz, much faster than normal mechanical relay. There are two screw terminals on the board. One for outer power source and the other for device you want to control. Grove – MOSFET will pass the power from one end to another when closed. But if outer power source is absent, your device can still draw power from microcontroller via the Grove interface.
Model:ACT00200P

Mosfet 01.jpg

Specification

Working voltage: 5V
Vin: 5 ~ 15V
MOSFET Model: CJQ4435

Interface

MOSFET Interface Function.jpg
Vin: accepts 5V ~ 15V power of which current is less than 2A.
Vout: attach actuators here.

Demonstration

With Arduino

Here we demonstrates how to use Grove – MOSFET to control a motor. We provide power for it with external power source, but if your controlled device needs current smaller than 300mA, Seeeduino can totally support it and no extra power source needed.
Static image.gif

// demo of Grove - MOSFET
// use pin 6 to control a motor

int motorPin = 6;

void setup()
{
    Serial.begin(38400);
    pinMode(motorPin, OUTPUT);
    Serial.println("Grove - MOSFET Test Demo!");
}

void loop()
{
    motorOnThenOffWithSpeed();
    motorAcceleration();
}

void motorOnThenOffWithSpeed()
{
    int onSpeed  = 200;                         // a number between 0 (stopped) and 255 (full speed)
    int onTime   = 2500;
    int offSpeed = 50;                          // a number between 0 (stopped) and 255 (full speed)
    int offTime  = 1000;
    analogWrite(motorPin, onSpeed);
    delay(onTime);
    analogWrite(motorPin, offSpeed);
    delay(offTime);
}

void motorAcceleration()
{
    int delayTime = 50;
    for(int i=0; i<256; i++)
    {
        analogWrite(motorPin, i);
        delay(delayTime);
    }

    for(int i=255; i>=0; i--)
    {
        analogWrite(motorPin, i);
        delay(delayTime);
    }
}

With Raspberry Pi

1.You should have got a raspberry pi and a grovepi or grovepi+.
2.You should have completed configuring the development enviroment, otherwise follow here.
3.Connection

  • Plug the sensor to grovepi socket D6 by using a grove cable.

4.Navigate to the demos’ directory:

   cd yourpath/GrovePi/Software/Python/
  • To see the code
   nano grove_mosfet.py   # "Ctrl+x" to exit #
import time
import grovepi

# Connect the Grove MOSFET to analog port D6
# SIG,NC,VCC,GND
mosfet = 6

grovepi.pinMode(mosfet,"OUTPUT")
time.sleep(1)

while True:
    try:
        # Full speed
        grovepi.analogWrite(mosfet,255)
        print "full speed"
        time.sleep(2)

        # Half speed
        grovepi.analogWrite(mosfet,128)
        print "half speed"
        time.sleep(2)

        # Off
        grovepi.analogWrite(mosfet,0)
        print "off"
        time.sleep(2)

    except KeyboardInterrupt:
        grovepi.analogWrite(mosfet,0)
        break
    except IOError:
        print "Error"

5.Run the demo.

   sudo python grove_mosfet.py

 

Download File Not available

商品評論

目前沒有評論。


只有註冊並且購買過商品的顧客才能撰寫評論