Tagged with arduino

Arduino + HDD + ESC Progress.

I got everything up and running, thanks to some help from arduino.cc. I was able to spin it up to full speed,  cut the slice in the hard disk plater,  and even get a small POV effect with an RGB led. what's left on the list is a hall effect sensor and some RGB led tape.

Tagged , , ,

Arduino + HDD + ESC

my project for the past two days has been to get a BLDS hard drive motor to spin at 5400rpms I read high and low on how to control these motors and everyone said that a ESC (electronic speed controller) would be the best route to go in. so a made a visit at my local hobby shop that specialize in airplanes and picked up a E-Flite Pro 10A ESC. and it took me 24hour to figure out how to get a steady speed. I'll post schematics and code in a later post after i get it all figured out.

Tagged , ,

Fixed my 3x3x3 led cube

I haven't really done much with my LED Cube since I built it a year ago, so it wound up in my parts box. Despite my best efforts not to smash it, I eventually did. Last night I decided to salvage it and see if I could true it up and make it a perfect square again.

I had to fix a few solder points but it's back up and working again and even adapted my vu meter code to it with a some small changes.

and here are some pictures from when I built it a year ago.

Tagged , ,

Arduino RGB LED + Winamp

Yesterday I saw this posted by majordecibel on the arduino.cc forum. The main difference between mine and his is that i have no hardware. I'm using the same setup as this post except I created a new mod in the SVIS.dll.

the color is on a fade loop, and the brightness is determined by the music. pretty basic code, basic enough that I was able to build it in a few hours. when the delay is below 50ms the color transitions are rough. Also in my code I have it mapped to a min value of  80. this is so that when I have the Arduino unit behind my monitor it doesn't bug the hell out of me.

int blue = 3;
int green = 5;
int red = 6;
int pwr = 11;
long timer;
const long muxInterval = 20;
int mux = 0;
int color[3] = {0,255,255};
int data[10]; 
float percent;
void setup()
  pinMode(blue, OUTPUT);
  pinMode(green, OUTPUT);
  pinMode(red, OUTPUT);
  pinMode(pwr, OUTPUT);
  timer = millis();

void loop(){

 if (Serial.available() > 10) {
 byte i = Serial.read();

 if (int(i) == 255) {
 for (int c = 0; c <= 9; c++){
 data[c] = int(Serial.read());
int total = ((data[2] + data[3]) / 2);
total = map(total,0,255,80,255);
//total = 200;
percent = total / 255.00;

   int redTotal =  ((color[2]*percent));
   int greenTotal = ((color[1]*percent));
   int blueTotal = ((color[0]*percent));

  analogWrite(pwr, total);
  analogWrite(red, color[2]);
  analogWrite(green, color[1]);
  analogWrite(blue, color[0]);

if (millis() - timer > muxInterval) { 
   timer = millis(); mux++; 
   if (mux > 1530){
     mux = 1;
   if (mux >= 1 && mux <= 255) {
     color[2] -= 1;
   if (mux >= 256 && mux <= 510) {
      color[0] += 1;
   if (mux >= 511 && mux <= 765) {
     color[1] -= 1;
   if (mux >= 766 && mux <= 1020) {
     color[2] += 1;
   if (mux >= 1021 && mux <= 1275) {
     color[0] -= 1;
   if (mux >= 1276 && mux <= 1530) {
     color[1] += 1;
Tagged , , ,