FF Module
English • العربية • български • català • čeština • Deutsch • Ελληνικά • español • فارسی • français • hrvatski • magyar • italiano • română • 日本語 • 한국어 • lietuvių • Nederlands • norsk • polski • português • русский • Türkçe • українська • 中文(中国大陆) • 中文(台灣) • עברית • azərbaycanca • |
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/
Contents
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
We need to make a PCB Shield for our Arduino board. In this example, it's for Arduino Uno.
The Gerber files to manufacture the PCB:
Solder all components as marked in the figure.
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.
Example sounds: File:Sonidos.zip
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.
Connecting & Wiring
Put the shield on an Arduino UNO:
and wire Power (+12v 1A) to JP7. Note: Red wire is positive and Black GND.
Insert the micro-SD with Sounds in the module:
Conect the Speaker respecting polarity:
Put a 4 wires cable in JP5:
Note: Black wire is Common Positive in this photo.
And connect this cable to RGB LED strip:
Now, pay attention to JP3:
Conect 3 wires from this connector ...
to your Printer Control Board I2C port.
For example, on RAMPS board, the I2C port is near the endstops:
Sanguinololu:
Extras
Speaker Box: http://www.thingiverse.com/thing:488096
Arduino Uno mount: http://www.thingiverse.com/thing:239837
Proyecto Clone Wars |