loading

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!

<p>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?</p>
<p>hi Michael !</p><p>I take some photo related to the power cords!</p><p>Each faya-nugget have two white connector for power connection !</p><p>You need to find a cords like the third picture to connect to Arduino main board :D</p>
<p>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 &lt;3</p>
<p>You're very welcome :D</p>
<p>can you please list all the needed parts to make this project</p>
<p>sure~ no problem !</p><p>1.<a href="http://www.mcmelectronics.com/product/83-16613" rel="nofollow"> fayaduino Uno</a> (or you already have Uno)</p><p>2.<a href="http://www.mcmelectronics.com/product/83-16578" rel="nofollow">faya-nugget stepper motor</a></p><p>3.<a href="http://www.mcmelectronics.com/product/83-16577" rel="nofollow">faya-nugget DC motor</a></p><p>4.<a href="http://www.mcmelectronics.com/product/83-16571" rel="nofollow">faya-nugget Joystick</a></p><p>5.Some Jump wires</p><p>6.2hours free time :D</p>
<p>thank you, I didn't see it previously. </p>
<p>Very cool! </p>

About This Instructable

2,117views

36favorites

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