Things used in this project

Hardware components:
Ard nano
Arduino 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 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

E74b21d8aa0973b46c29c28bf83f093a
Dante Roumega

Im 18 and I love electrical engineering

Contact

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

Guess the Number With Arduino KeyPad
Easy
  • 51
  • 3

Full instructions

A simple and funnies project with an Arduino UNO and the famous keypad shield. Arduino selects a random number, you guess the number.

Control a 7 Segment Display with a keypad!
Easy
  • 70
  • 2

Full instructions

In this project I'll show you a simple way to control a 7 Segment Display with a keypad!

Potentiometer with RGB LED
Easy
  • 33
  • 2

This uses potentiometers to control a RGB LED.

Using 9 Axes Motion Shield with Arduino
Easy
  • 13
  • 1

Protip

The Arduino 9 Axes Motion Shield allows your Arduino to measure movement: orientation, acceleration and magnetic field.

Launch Pad Count Down Sequence Display
Easy
  • 70
  • 2

Work in progress

A 7 Segment Display of a Countdown from 9 to 0 for a Launch Pad Control Panel.

Know the Temp of Your Home From Anywhere with Arduino Cloud!
Easy
  • 1,934
  • 11

Full instructions

Ever wanted to know the temperature of your home from somewhere? Here's an easy way to do it with Arduino Cloud and the Yun Shield!

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog