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

Arduino/Genuino 101 BLE Thermometer With TMP102 and Blynk
Easy
  • 357
  • 7

Full instructions

Here is how to make an Arduino/Genuino 101 Bluetooth Low Energy thermometer with TMP102 and Blynk.

Piezo Tunes
Easy
  • 13
  • 1

Full instructions

In this project, you're going to learn how you can play your own melody with a Piezo speaker, using code generated by Circuito.io

Simple Arduino-based thermometer
Easy
  • 18
  • 1

Full instructions

Cool thermometer using sugru and circuito.io

Simple Digital Arduino Clock Without RTC
Easy
  • 1,325
  • 8

Protip

A simple Arduino Uno Clock without RTC module for beginners.

Looking under the hood of the Arduino IDE
Easy
  • 274
  • 2

Protip

Did you ever wonder what happens between the time you click on "Upload" and your sketch starts running? Here's how you can find out...

Red Balloon
Easy
  • 51
  • 1

Full instructions

This is a great project you can make with your kids to raise their awareness to air pollution.

ProjectsCommunitiesContestsLiveFree StoreBlogAdd projectSign up / Login
Respect project