Page 4
Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
1. 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.
4. 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. // demo of Grove - MOSFET // use pin 6 to control a motor int motorPin = 6;...
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);...
Page 10
# 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"...
Need help?
Do you have a question about the Grove MOSFET and is the answer not in the manual?
Questions and answers