ihacklab
Published © GPL3+

Simple 1,000+ Arduino Projects for Beginners

Sounds too much to be true, but with only 4 components and 4 simple sketch, you can build 1,024+ projects in just a day. Believe it or not!

BeginnerProtip11,153
Simple 1,000+ Arduino Projects for Beginners

Things used in this project

Story

Read more

Schematics

Block Diagram

Schematic Diagram

Code

Let there be Lights

Arduino
This code "Let there be Lights" is the iHackLab equivalent of "Hello World".
 /*
  This project turns On all the LEDs once at the same time
 */

// Setup pins 4 to 12
void setup() 
{
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
}

// Turn on all LEDs once
void loop() 
{
  digitalWrite(4, HIGH);          // switch on pin 4 
  digitalWrite(5, HIGH);          // switch on pin 5 
  digitalWrite(6, HIGH);          // switch on pin 6 
  digitalWrite(7, HIGH);          // switch on pin 7 
  digitalWrite(8, HIGH);          // switch on pin 8 
  digitalWrite(9, HIGH);          // switch on pin 9 
  digitalWrite(10, HIGH);         // switch on pin 10 
  digitalWrite(11, HIGH);         // switch on pin 11
  digitalWrite(12, HIGH);         // switch on pin 12
}





// This project is part of the ihacklab Manual
// Copies are welcome to be shared or distributed publicly 
// as long proper citations are observed. 
// Please cite as follows: 
// Biotronics: The Silver Species, Joey Lawsin, 1988, USA.

Credits

ihacklab
12 projects • 22 followers
Contact

Comments

Please log in or sign up to comment.