Skip navigation

Arduino – LED Cube 3x3x3

Posted by RuiPT Aug 17, 2013

Hi guys,

with this tutorial you'll learn how to create your own LED Cube in just a few minutes!

Visit This page for All resources prsented in this video. (Schematics, Arduino Code, LED Cube DEMO etc)



Thanks so much for reading,

I hope you found this tutorial helpful,

best regards,

Rui Santos


P.S. Visit My wesbite

Please, help needed by Mechanical engineer new to Arduino. I have been trying with no sucess to bring together the (analog) output of a AM3X accelermoeter module with the debounce output (digital) of two tilt switches. I'm trying to get an output after debounce on one tilt switch is high and the other low (digital) and the gyro is in a set (greater/lower) output, and then the same in the opposite direction (tilt). This is for a small mechanical project. I'm really finding it hard to get the electronics sorted out (hours and hours of trying). I have managed to get the two individual (gyro, tilt switch) sketches to work seperatly, but can not get them to work together. Any help would be greatfully received. Sorry if this is an easy task I'm a newbe to electronics.Thank! Bootneck.

Arduino code



byte relayPin[4] = {2,7,8,10};


//D2 -> RELAY1

//D7 -> RELAY2

//D8 -> RELAY3

//D10 -> RELAY4


void setup(){

  for(int i = 0; i < 4; i++)  pinMode(relayPin[i],OUTPUT);



// an sample to switch the 4 relays


void loop(){


  int i;

  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],HIGH);


  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],LOW);












I was written below c# code for my arduino code.But the C# code was getting error.



The c#  was not connected to my arduino hardware. How to solve this issue.



Please help me to solve this problem.





C# code

private void button1_Click(object sender, EventArgs e)



            serialPort1.PortName = "COM25";

            serialPort1.BaudRate = 9600;


            Byte[] data = new byte[4];

            data[0] = 2;

            data[1] = 3;

            data[2] = 8;

            data[3] = 10;

            serialPort1.Write(data, 0, serialPort1.BytesToWrite);


Filter Blog

By date: By tag: