FF Module

From RepRap
Revision as of 12:28, 14 December 2014 by Traumflug (talk | contribs)
Jump to: navigation, search


Template:FF Module

Crystal Clear action run.png
FF_Module

Release status: working

[[image:|center|190px]]

Description
Sound & RGB Led
License
Creative-Commons 3.0 CC BY-SA
Author
Contributors
Based-on
[[]]
Categories
CAD Models
External Link

This 'module' allows you to add sounds and control an RGB Led to your 3D Printer or any other project based on Arduino board.

It's called module but it's a complete Arduino project because it uses an Arduino as microcontroller.

The Sound part and the Led part are independents.

It's controlled by Marlin firmware. Acts simulating to be an BlinkM and uses M150 Gcode.

The Led part is based on Micah Riddell design of Amblone: http://fritzing.org/projects/uln2003a-amblone-v2/

HARDWARE

Hardware needed:

Arduino Board

The core of the module can be any Arduino board. We need SDA/SCL comunication, 4 digital I/O and 3 PWM pins. All working at 5v.

(Not an Arduino board working at 3.3v)

I use an Arduino UNO.

Sound module (WTV020-SD-16P)

For play the sound, the modules control is an WTV020-SD-16P (easy to find in Ebay & cheap).

Micro SD card

The WTV020 use a Micro SD card to store sounds. The card must be of 1GB or less (some people are using 2GB but specs says 1GB max.) Not all cards are compatible with the module. I buy cards from http://www.embeddedadventures.com/ for ensure compatibility. The card must be formated in FAT16 mode.

Loud Speaker

8Ω Speaker is conected to the WTV020 to play sounds.

ULN2003A

Used to pass PWM output to RGB Led.

Resistors (1/4W)

1 470Ω 1/4W (Busy Led)

2 4.7KΩ 1/4W (SDA,SCL lines)

3 1.5KΩ 1/4W (Voltage divider) (*) R1

3 2.2KΩ 1/4W (Voltage divider) (*) R2

3 1KΩ 1/4W (Voltage divider) (*) R2

(*) This resistors are used as a voltage divider to down the 5v output of Arduino I/O pins to 3.4v in my case (1.5k to pin, 3.2k (2.2k+1k in series) to Ground).

You can use 1.8K to pin and 3.3K to ground to simplify, and you will obtain 3.24v . You will need 3 of each.

RGB Led Strip

12v RGB LED strip, common positive, that can be manually controlled.

Others

Female/Male pins, protoboard, cables, solder ... to create an Arduino Shield containing the Hardware.

Shield

SPCB

We need to make a PCB Shield for our Arduino board. In this example, it's for Arduino Uno.

On the Upper Left, A4 & A5 Analog pins are connected, with a 4.7K resistor in every pin, to a 3 pins header. The other pin is connected to GND. This will be our connection to the printer board.

In the center of the shield are 2 female 8 pin header to insert the WWTV020-SD-16P sound module.




SOFTWARE

Converting sounds to AD4 format

The WTV020 play sounds in .ad4 format. To convert your .mp3 sounds to .ad4 you can use SOMO Tool from 4dsystems (http://www.4dsystems.com.au/product/SOMO_14D/). You have a good guide of how to do in the same page.

Once converted, rename sounds like:

0001.ad4

0002.ad4

0003.ad4

...

Copy to the Micro SD card and put the card in the WTV020 slot.

Arduino

Load file Media:FF Module V1.ino to your Arduino as usualy.

Marlin

To enable the M150 Code, find the following line in Configuration.h:

//define BlinkM/CyzRgb Support

//#define BLINKM

And uncomment

//#define BLINKM

Load Marlin to your Printer control board.





Extras

SPBox

Speaker Box: http://www.thingiverse.com/thing:488096

Arduino Uno mount: http://www.thingiverse.com/thing:239837

Clone-Wars-logo.png

Proyecto Clone Wars