Final project :Neon Light

Neon light flickers back and forth at the same frequency, and the lights increase and darken intermittently. As shown in the video below, the brightness of Neon light changes from light to dark and then to light every other lamp. This is controlled by the basic resistance.

For this project, I used :

1.Arduino Uno

2. 7 x Red LED

3. 4 x 1k ohm and 3 x 100 ohm

4. 8 x M-M Jumpers

5. Breadboard

6. Arduino IDE

The final Connection and effect situation:


This is the Video about my final effect situation: https://centriafi-my.sharepoint.com/:v:/g/personal/mengqi_yang_cou_fi/ETqsx9OrOJBIuVKDRePzdQIBudWIAOLWnwXWhFP9_Gej_w?e=gaJeJE


Here is so of the basic code I used :

set up all the LEDs as OUTPUT

pinMode(led_1, OUTPUT); p

inMode(led_2, OUTPUT);

pinMode(led_3, OUTPUT);

pinMode(led_4, OUTPUT);

pinMode(led_5, OUTPUT);

pinMode(led_6, OUTPUT);

pinMode(led_7, OUTPUT); }

1 digitalWrite(led_1, HIGH); digitalWrite(led_2, LOW); digitalWrite(led_3, LOW); digitalWrite(led_4, LOW); digitalWrite(led_5, LOW); digitalWrite(led_6, LOW); digitalWrite(led_7, LOW); delay(100);

2 digitalWrite(led_1, LOW); digitalWrite(led_2, HIGH); digitalWrite(led_3, LOW); digitalWrite(led_4, LOW); digitalWrite(led_5, LOW); digitalWrite(led_6, LOW); digitalWrite(led_7, LOW); delay(100);

3 digitalWrite(led_1, LOW); digitalWrite(led_2, LOW); digitalWrite(led_3, HIGH); digitalWrite(led_4, LOW); digitalWrite(led_5, LOW); digitalWrite(led_6, LOW); digitalWrite(led_7, LOW); delay(100);

3 digitalWrite(led_1, LOW); digitalWrite(led_2, LOW); digitalWrite(led_3, HIGH); digitalWrite(led_4, LOW); digitalWrite(led_5, LOW); digitalWrite(led_6, LOW); digitalWrite(led_7, LOW); delay(100);

2 digitalWrite(led_1, LOW); digitalWrite(led_2, HIGH); digitalWrite(led_3, LOW); digitalWrite(led_4, LOW); digitalWrite(led_5, LOW); digitalWrite(led_6, LOW); digitalWrite(led_7, LOW); delay(100);

Lesson 33 Controlling the stepper motor with rotary encoder

Different from the last lab, we use the rotary encoder to control the stepper motor, the steeper motor will rolate at the same frequency and direction as the rotary encoder.

We used the following components:

1 x Elegoo Uno R3

1 x 830 tie-points breadboard

1 x rotary encoder module

1 x ULN2003 stepper motor driver module

1 x Stepper motor

1 x Power supply module

1 x 9V1A adapter

9 x F-M wires

1 x M-M wires


The final connection:

Lesson 32 controlling stepper motor with remote

In the lad, we use the remote to control the stepper motor with two different buttons to control stepper motor run different ways.

We used the following components:

1 X Elegoo Uno R3

1 X 830 tie-points breadboard

1 X IR receiver module

1 X IR remote

1 X ULN2003 stepper motor driver module

1 X Stepper motor

1 X Power supply module

1 X 9V1A Adapter

9 X F-M wires / 1 X M-M

We add a receiver and a remote from last lab. We use the following code, these could help the remote to control the run way of the stepper motor.

The code give remote could control the stepper motor with two buttons. When push the VOL+, the stepper motor goes right way, and if we push the VOL-, then the stepper motor goes left way.

The final connection situation.

Lesson 31 Stepper Motor

In this lab, we successfully run the stepper motor in two ways with same slow frequency.

At first, we used the following components:

1 X Elegoo Uno R3

1 X 830 tie-points breadboard

1 X UlN2003 stepper motor driver module

1 X Steeper motor

1 X 9V1A Adapter

1 X Power supply module

6 X F-M wires

1 X M-M wire

After finished the connection, we upload the following code:

This code could help the stepper motor run with two different ways slowly.

The successful lab connection after upload code:

The stepper motor is moving.

Lesson 29 DC Motor

From this lab, we try to control the small DC motor with an uno R3 and a transistor, first,we use the following components:

1 X Elegoo Uno R3,

1 X 830 tie-points breadboard

1 X L293D IC

1 X Fan blade and 3-6v motor

1 X M-M wires (Male to male jumper wires)

1 X Power Supply Module

1 X 9V1A adapter

We used the following code

The code control the DC motor with different speed and frequency.

The finally connect situation pictures

Lesson 14- IR Receiver Module

The materials we used: 1 elegoo Uno R3, IR receiver module, IR remote, 53f-m DuPont wires.

The uno is connected with the Ir receiver module with the help of 3 f-m dupont wires. there are 3 connections to the IR receiver. the connections are Signal, voltage and ground.

with the original code, we could display the following results with IR remote.
Later, we changed some of the code and displayed the following result. we found out that the remote should be pointed to the IR receiver otherwise it would display “other button” or nothing at all.

Lesson 12- DHT11 Temperature and humidity sensor.

The materials we used: 1 elegoo uno R3, 1 DHT11 temperature and humidity module and 3 f-m dupont wires.

The uno is connected with the DHT11 temperature and humidity module with the help of 3 f-m dupont wires. for the connections, voltage, ground and signal; these can be connected to any pin of the uno.
with the given code the temperature and humidity was tested in every 5000 ms.
when you covered up the module, there was a change in temperature as well as in humidity.

Lesson 18- Water Level detection Sensor Module

The materials we used: 1 elegoo uno R3, 3 f-m dupont wires and 1 water level detection sensor module.

the uno is connected to the water level sensor module with the help of f-m dupont wires. power supply is connected to 5V of uno, ground electrode is connected to GND, signal output is connected to the ports AO.
we used the wet tissue for the moister, and tested the sensor with it.
with the original code we tested the moister, and serial monitor shows the moister. And with the applied pressure the moister level was higher.

Lesson 17 – HC-SR501 PIR Sensor

The materials we used: 1 elegoo uno R3, HC-SR501 PIR motion sensor and 3 f-m dupont wires.

The uno is connected with the HC-SR501 with the help of f-m dupont wires. We connect the PIR to 5V and ground to ground. then connect the output in digital pin.
for the experiment we added a Led. with the motion the led was on.
the original code which shows the led was connected to the port 13.