Introduction: Build a Fan With LEGO and Faya-nugget

As a kid, I dreamed to build everything with LEGO, especially those could move and even form a robot. Sadly back in late 90's, the first generation Mindstorm was just way too expensive for me.

When I first met Arduino, I soon realized this could be a great alternative for Mindstorm controller. It even offers more possibility with the expandability. The remaining problem is how to put electronics and bricks together. So I decide to design some extension boards for Arduino to connect to LEGO painlessly, which is faya-nugget.

Here, I am going to show you how to build a controllable mini cooling fan with LEGO and faya-nugget.

Also, there's something we need to prepare for this project :D

1. fayaduino Uno (or you already have Uno)
2.faya-nugget stepper motor

3.faya-nugget DC motor

4.faya-nugget Joystick

5.Some Jump wires

6.2hours free time!

Step 1: Get Started Wiring

/*

Wiring: Module Pin ==> Arduino Pin

Firstly, the Stepper Motor module pins :

A ==> D11

B ==> D10

Ā (A-Bar) ==> D9

B (B-bar) ==> D8

Secondly, pins for 3V DC Motor :

(Caution) We use PWM for fan speed control, If you want to change the pin, please make sure you use a PWM pin.

3V motor SIG ==> D3

Finally, the Joystick!

Joystick

VRX ==> V0

VRY ==> V1

*/

Step 2: Wires Close Up

Step 3: Connect the Power Cords

All faya-nugget board has two power port (voltage-in and ground), the white tiny connectors as seen in the images, they are all parallel so you can connect them in the way you like.

Step 4: Power Up!

Final step of wiring, connect 5V (red) and GND (black) on Arduino board to any faya-nugget power port, and make sure every single board gets powered.

Step 5: Code Uploading

Give your creation a soul, use Arduino IDE to upload the code to your Arduino board.

If you are not sure what to do, you might want to check out Arudino's starter guide first:

http://arduino.cc/en/Guide/HomePage

Step 6: Stack the Bricks and Boards

In anyway you would like to! this is the best part, I will let you enjoy the moment.

Step 7: Work With Technic for Sure.

Step 8: Voilà!

You can get faya-nuggets on MCM Electronics: http://goo.gl/AVW2Im

I hope you enjoy this Instructable, and maybe you can share some idea with me too, Ciao!

Comments

author
MichaelRazi_ (author)2015-05-15

I actually have a question, can you show me where exactly to connect all the power cords? I cant really see the videos that you posted on this site, since I'm at school and its blocked. Possibly a picture?

author
wellywelly (author)MichaelRazi_2015-05-17

hi Michael !

I take some photo related to the power cords!

Each faya-nugget have two white connector for power connection !

You need to find a cords like the third picture to connect to Arduino main board :D

IMG_0771.JPGIMG_0772.JPGIMG_0773.JPG
author
MichaelRazi_ (author)2015-05-13

I just wanted to say thank you for making this awesome project! I will be actually be making this for a school project myself, once again THANK YOU <3

author
wellywelly (author)MichaelRazi_2015-05-13

You're very welcome :D

author
halj1991 (author)2015-04-29

can you please list all the needed parts to make this project

author
wellywelly (author)halj19912015-04-29

sure~ no problem !

1. fayaduino Uno (or you already have Uno)

2.faya-nugget stepper motor

3.faya-nugget DC motor

4.faya-nugget Joystick

5.Some Jump wires

6.2hours free time :D

author
halj1991 (author)wellywelly2015-04-30

thank you, I didn't see it previously.

author
seamster (author)2015-03-31

Very cool!

About This Instructable

2,130views

36favorites

More by wellywelly:Build a Haunted House with Lego & faya-nuggetBuild a Tiny Electronic Keyboard with LEGO and faya-nuggetBuild a Fan with LEGO and faya-nugget
Add instructable to: