跳到主要内容

Grove - Mini Fan

The Grove - Mini Fan module is a DC motor driver based on the AVR Atmega168 microcontroller. The module also provides a breakout through which you can change the microcontroller code. For example, the code can be changed so that the module can be used to drive a servomotor. By default, the module is set up to run the DC motor that is included in your mixer pack. The soft-leaved fan also included in the pack can be attached to the motor to make a fun project with kids. Being soft-leaved, the fan is completely safe and there is no chance of any injury even if it is moving at a high speed.

Features


  • User friendly output module that triggers a DC motor into operation based on signal received from an input sensor or switching module

  • Used in conjunction with DC motor included with the pack

  • JST 2.0 Interface used to connect to the motor

  • DC motor comes with a colorful soft-leaved fan accessory (as shown in the picture)

  • On-board micro-controller can be re-programmed to change module operation

  • Micro-controller runs Arduino Compatible code

  • Change code to drive Servo motors instead of DC motors

  • Uses Standard 4-pin Grove Cables to connect to other Grove modules

  • Note:for latest version(v1.1), the output voltage for motor is updated to 3.3 volts.

Interface Function


① UartSBee Interface: Use this interface to change the microcontroller code. Use a [UartSBee](/UartSBee_V4) module to connect to the microcontroller using the Uart interface.
② JST 2.0 Interface: Used to connect to a 3.3 volts DC motor(only 3.3 volts)
③ Grove Interface
④ ICSP Interface
⑤ Atmega168 Microcontroller
⑥ Servo Interface

Usage


Follow these steps to build a sample circuit using this module:

1.First connect the DC motor to the Grove - Mini Fan module using the JST2.0 two-wire interface.

2.Connect the Mini Fan module to the output side of your circuit (to the right of the power module). On the input side of the circuit, you may use a range of sensor based input modules (Grove - Light Sensor, Grove - Sound Sensor, Grove - Button or Grove - Slide Potentiometer).

3.Power up the circuit.

4.The DC motor starts to rotate when the input module supplies a trigger:

  • If using with a momentary switch like the one on the Grove - Button module, simply press the button to turn ON the motor.

  • If using with a Grove - Slide Potentiometer, move the slider from the GND position to VCC and see the speed of the motor increase as the supplied voltage increases. Attach the soft-leaved fan and you have a variable speed personal fan that you can run at whichever speed you desire to fight the heat!

  • If using with a Grove - Light Sensor connected directly to the input side of the circuit, you should see that the motor runs in bright light and stops in the dark:

  • If you want the motor to run only in the dark, add a Grove - NOT module between the light sensor and the power module.
  • If using with a Grove - Sound Sensor, you should see that the motor runs on detecting sound. Again, if you want to reverse the function, or in other words, if you want that the motor should be ON at all times except when there is a sound, add a Grove - NOT module between the sound sensor and the power module.

You can use either the Grove - USB Power module or the Grove - DC Jack Power module for the Grove circuit.

For building a circuit that controls a servomotor using a potentiometer, follow the steps below:

  1. Open the code directly to the path: \libraries\Servo\examples\Knob

  2. Upload your code to the on-board MCU. Ensure that you select the correct board type and COM port when uploading.

  3. Now you should be able to control your servomotor with a potentiometer

Play with Codecraft

Hardware

Step 1. Connect a Grove - Mini Fan to port D2, and connect a Grove - Light Sensor to port A0 of a Base Shield.

Step 2. Plug the Base Shield to your Seeeduino/Arduino.

Step 3. Link Seeeduino/Arduino to your PC via an USB cable.

Software

Step 1. Open Codecraft, add Arduino support, and drag a main procedure to working area.

备注
If this is your first time using Codecraft, see also [Guide for Codecraft using Arduino](https://wiki.seeedstudio.com/Guide_for_Codecraft_using_Arduino/).

Step 2. Drag blocks as picture below or open the cdc file which can be downloaded at the end of this page.

cc

Upload the program to your Arduino/Seeeduino.

提示
When the code finishes uploaded, cover the light of the Light Sensor with your hand and the fan will turn on.

Availability


This Grove module is available as part of the following Grove Kit Series:

  • Grove Mixer Pack V2

Alternatively, it can be bought stand-alone at the Seeed Studio Bazaar.

Schematic Online Viewer

Resources


Projects

Grove Mini Fan Controller + TI LaunchPad: Power a mini fan with PWM using Seeed Grove and TI LaunchPad.

Tech Support

if you have any technical issue. submit the issue into our forum.


Loading Comments...