Things used in this project

Hardware components:
Ard nano
Arduino Nano R3
×1
Kingbright wp7113srd d image
5 mm LED: Red
×1
Kingbright wp7113sgd
5 mm LED: Green
×1
09590 01
LED (generic)
×1
Resistor 2K
×1
Cables
×1
Software apps and online services:
Ide web
Arduino IDE
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)
Hy gluegun
Hot glue gun (generic)
Soldering Wire

Schematics

Wiring diagram
Flb6ayeirsb5unr.large

Code

PolyGraph.inoArduino
Paste the code into the arduino ide
void setup()
{
	Serial.begin(9600);
	pinMode(2, OUTPUT);
	pinMode(3, OUTPUT);
	pinMode(4, OUTPUT);
	digitalWrite(2, HIGH);
	delay(500);
	digitalWrite(3, HIGH);
	delay(500);
	digitalWrite(4, HIGH);
	delay(500);
}

void loop()
{
	if (analogRead(A0) > 60)
	{
		digitalWrite(4, HIGH);
	}
	else
	{
		digitalWrite(4, LOW);
	}
	if (analogRead(A0) > 20)
	{
		digitalWrite(2, HIGH);
	}
	else
	{
		digitalWrite(2, LOW);
	}
	if (analogRead(A0) > 45)
	{
		digitalWrite(3, HIGH);
	}
	else
	{
		digitalWrite(3, LOW);
	}

	Serial.println(analogRead(A0));
	delay(20);
}

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Bluetooth-Controlled Car
Easy
  • 245
  • 7

Full instructions

It's a basic 4-wheel drive car which can be controlled by Android phones.

Ambient 2 click board on Arduino101
Easy
  • 95
  • 3

Protip

A short article about testing MikroElektronika Ambient 2 click board on the Arduino 101 microcontroller.

Using short range RF transmissions between two Arduinos
Easy
  • 6
  • 1

Full instructions

A quick tutorial on how to send/receive RF signals to communicate between two Arduino devices (433MHz AM).

Giftduino - The Perfect Arduino Gift Box
Easy
  • 1,151
  • 5

Full instructions

Every Day is a Great Day for a Gift! Design your own Giftduino and give it to someone special :)

Easiest Way to Add A Full Color LCD Display
Easy
  • 5,308
  • 7

Protip

An Arduino library that, abstracts away all the complexity of a CRC based serial communication protocol into a single variable assignment.

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project