Line Assist System
This is a circuit that uses a photo resistor and 2 led's to tell wether a person is standing on top of it or not. I believe that this circuit is mainly useful in places such as shops, banks, and any other places that requires people to form a line. This has 2 main systems that make it operate first is the lights system which is what tells us if a person is standing on the photoresistor or not. The other system is the photoresistor system which is the system that will send the data to the lights and tell it if a person has stepped on it or not.
Supplies
Lights
First we will create the light system for our circuit. This system will receive data from the photo resistor, and will turn on either the red or green light based on that data. This light system will include materials such as the breadboard, Arduino, wires, 2 10k Ohm Resistors, and the 2 LED's. We will first start off by making a power, and ground connection from the Arduino to our breadboard by attaching 2 wires from the 5v, and GND pin to the bottom of our breadboard. After that we will add the red, and green led's onto the breadboard and make sure to put the LED's one row down, so that we have space to make a Arduino connection. After doing that we will give the LED's power and ground. I would recommend using the resistor to make the ground connection instead of a wire, so that you don't have to do an extra step. Finally we will connect our lights to the Arduino board, and the pins I have chosen are pin numbers 9, and 10. After completing that step we have finished our light system. If you need extra help you can look at the photo above to help you with building this system.
Photo Resistor System
This systems main purpose is to tell our Arduino wether someone has stepped on the photoresistor or not. To build this we will only need the photoresistor and a 10k Ohm resistor. To build this we will basically wire it exactly the same way as the LED's. We will give the photoresistor a power connection with a wire, and a ground connection with the 10k ohm resistor. We will also add our Arduino connection by using the A0 analog pin, and will connect that pin to the side of the photoresistor that is connected to ground. This will complete our photo resistor system now lets move on to the code.