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