Skip navigation
2013

It's just a little project I've made to learn more about IR remote's and how i could use that for control some devices such as LED's. all the code and info here:

http://randomnerdtutorials.com/arduino-ir-remote-control/

 

All the information and code for this project can be found here:

http://randomnerdtutorials.com/arduino-control-servo-with-visual-basic/

thanks

 

All the information and code for this project can be found here! I hope you guys enjoy!

http://randomnerdtutorials.com/arduino-control-dc-motor-via-bluetooth/

jreeve17

Arduino Harlem Shake

Posted by jreeve17 Feb 23, 2013

Hey guys, I was bored so I decided to make the LEDs on my Arduino do the Harlem Shake. Hope you enjoy!

This is my latest arduino shield that I made to experiment.

 

It is based on the 74ls151 input multiplexer, you can add more to eatch input that you need turning it in to an 8 bit input.

 

Here are some pictured and a basic schematic and code to read it.

 

Note, the resistor stripe is connecting the inputs to ground for use with switches, remove them to have a true digital input.

 

Have fun using it its very usefull, I know I will.

I am using a 12v/8amp power source to supply three servos, two steppers, three dc motors, and twenty LEDs.  A DC to DC converter will provide step down, 6v source for the servos, but the DC motors are a problem. I have tried an SN754410NESN754410NE, connecting it as described in http://www.uduino.com/tutorials/11, but the chip overheats immediately.  Assuming the current was beyond specs, I used an LM317 in current limiting mode, bringing it down to about one amp with the same results - very hot, very fast. Power supply continues to be an ongoing puzzle. Any advise would be appreciated.  

Hey guys, I have this cool output miltiplier that can hold memory and be expanded to any size tha uses shift registers and D type flip flops but I am having trouble finding something to use it for.

Any body got any idea on what to apply it?.

Im thinking robotics but Im not shure, I attache a video sample of the multiplier and the schematic in case anyone wants to build it and send feedback.

 

Here is a test code for the miltiplier, common pin is the arduino negative.

 

#include<Streaming.h>

 

int data = 3; //Declare data pin//

int clk = 4; //Declare clock pin//

int buf = 5; //Declare buffer enable pin//

 

int c = 1; //Declare counter variable//

int i = 1; //Declare intial position variable//

int s = 24; //Declare stop position variable//

int d = 1; //Declare data variable//

int t = 20 ; //Declare time variable//

 

void setup() {

  pinMode(data, OUTPUT); //Set data pin to output//

  pinMode(clk, OUTPUT); //Set clock pin to output//

  pinMode(buf, OUTPUT); //Set buffer enable pin to output//

 

  Serial.begin(9600); //Start serial port transmition//

}

 

void loop() {

  for(d=i; d<=s; d++) { //Increase data variable//

    Input(); //Call for sequence run//

    Serial << "Data Place is: " << d << endl; //Print data to serial port//

    digitalWrite(buf, HIGH); //Set buffer enable to 1//

    digitalWrite(buf, LOW); //Set buffer enable to 0//

  }

 

  for(d=s; d>=i; d--) { //Decrease data variable//

    Input(); //Call for sequence run//

    Serial << "Data Place is: " << d << endl; //Print data to serial port//

    digitalWrite(buf, HIGH); //Set buffer enable to 1//

    digitalWrite(buf, LOW); //Set buffer enable to 0//

  }

}

 

void Data() { //Data print routine//

    if(c==d) { //When counter equals data position//

      digitalWrite(data, HIGH); //set data pin to 1//

    }

    else { //On data and conter not match//

      digitalWrite(data, LOW); //Set data pin to 0//

    }

}

 

void Input() { //Buffer run routine//

  for( c=1; c<=s; c++) { //Increase counter to last position//

    Data(); //Call for data print routine//

    digitalWrite(clk, HIGH); //Set clock pin to 1//

    delay(t); //Delay betwen steps//

    digitalWrite(clk, LOW); //Set clock pin to 0//

  }

  c=1; //Return counter to 1//

}

Filter Blog

By date: By tag: