V-tech world.

V-tech world. Ready to see how tech is changing the world?

Join us we're always looking for new ways to integrate technology into our daily lives.



Good morning, tech lovers!Today, we'll talk about something new that you might not have heard about before. Ever wondere...
11/11/2024

Good morning, tech lovers!

Today, we'll talk about something new that you might not have heard about before. Ever wondered how to expand your Arduino digital output pins?

The shift register is an electronic device that allows you to sequentially shift data in and out, enabling you to control multiple devices with fewer pins.

How it works:
It uses a cascade of flip-flops where the output of one flip-flop is connected to the input of the next. They share a single clock signal, which causes the data stored in the system to shift from one location to the next.

the popular shift register offers 8 output pins ( 74HC595 )
It has 16 pins:
- Pins 1 to 7: Outputs Q1 to Q7
- Pin 8: GND
- Pin 9: Not Q7
- Pin 10: Reset (activated by LOW)
- Pin 11: Latch input
- Pin 12: Clock input
- Pin 13: Enable (activated by LOW)
- Pin 14: Data input
- Pin 15: Q0 output
- Pin 16: VCC (3.3 to 5 V)

For example, I used the shift register to control 8 LEDs with just 3 outputs from the Arduino.

We need:
- 1x Shift register 74HC595
- 1x Test board
- 1x Arduino UNO
- 15x Connecting wires
- 8x 220 ohm resistor

_Steps:

1. Connect the pins to the Arduino:
- VCC (Shift Register) --> 5V DC
- Clock pin (Shift Register) --> Arduino pin 2 (any digital pin)
- Latch pin (Shift Register) --> Arduino pin 3 (any digital pin)
- Data pin (Shift Register) --> Arduino pin 4 (any digital pin)
- Q0 to Q7 pins (Shift Register) --> Anodes of LEDs
- GND (Shift Register) --> Arduino GND
- Enable pin (Shift Register) --> GND
- Clear pin (Shift Register) --> 5V DC
- Cathode pins of LEDs --> GND

: Don't forget to put the resistors between anodes of LEDs and Shift Register outputs.

2. Code for Programming:
Open the Arduino IDE and write this code:

clock 2
latch 3
data 4

void setup() {
pinMode(clock, OUTPUT);
pinMode(latch, OUTPUT);
pinMode(data, OUTPUT);
}

void loop() {

//on all leds.
digitalWrite(latch, LOW);
shiftOut(data, clock, LSBFIRST, B11111111);
digitalWrite(latch, HIGH);
delay(2000)
// off all leds.
digitalWrite(latch, LOW);
shiftOut(data, clock, LSBFIRST, B00000000);
digitalWrite(latch, HIGH);
delay(2000);

}



Done by ENG. Wajed

Hello, my friends! It's learning time.Today, we'll talk about something we see every day but might not know much about: ...
07/11/2024

Hello, my friends! It's learning time.

Today, we'll talk about something we see every day but might not know much about: the 7-segment display. It's an electronic component that shows numbers from 0 to 9.

How it works:
The display consists of 7 LED segments arranged in a shape. When we need to display a number, we light up the appropriate segments. There are two types of this display: common cathode and common anode. This means we can connect the common pin to either 5V or 0V, depending on the type. For a common anode 7-segment display, we turn on an LED by writing "LOW" to its pin.

Example: Displaying the number 3 on a common cathod 7-segment display.

We need:
- 1x 7-segment display
- 1x Test board
- 1x Arduino UNO
- 8x Connecting wires
- 1x 220Ω resistor

Steps:

1. Connect the pins to the Arduino:
- Common pin of the 7-seg display --> 5V DC
- Pin a --> Arduino pin 2 (any digital pin)
- Pin b --> Arduino pin 3 (any digital pin)
- Pin c --> Arduino pin 4 (any digital pin)
- Pin d --> Arduino pin 5 (any digital pin)
- Pin e --> Arduino pin 6 (any digital pin)
- Pin f --> Arduino pin 7 (any digital pin)
- Pin g --> Arduino pin 8 (any digital pin)

2. Code for Programming:
Open the Arduino IDE and write this code:

```
a 2
b 3
c 4
d 5
e 6
f 7
g 8

void setup() {
pinMode(a, OUTPUT);
pinMode(b, OUTPUT);
pinMode(c, OUTPUT);
pinMode(d, OUTPUT);
pinMode(e, OUTPUT);
pinMode(f, OUTPUT);
pinMode(g, OUTPUT);
}

void loop() {
digitalWrite(a, HIGH);
digitalWrite(b, HIGH);
digitalWrite(c, HIGH);
digitalWrite(d, HIGH);
digitalWrite(e, LOW);
digitalWrite(f, LOW);
digitalWrite(g, HIGH);
}
```

Happy learning!


By Eng. Wajed

06/11/2024

Continuing from our last two posts, automatically control in your room lights using an LDR and a Relay.

How It Works:

LDR Detects light intensity.
Relay Controls the power to the light based on the LDR reading.

When the LDR detects low light levels (night) -> the relay turns the light on.

When the LDR detects high light levels (day)-> the relay turns the light off.



by: Eng. Wajed
for music row
Memories by LiQWYD | https://soundcloud.com/liqwyd/
Music promoted by https://www.chosic.com/free-music/all/
Creative Commons CC BY 3.0
https://creativecommons.org/licenses/by/3.0/

Good afternoon, my friends.I know it’s the weekend, but why not take a moment to learn something new? Today, we’re divin...
03/11/2024

Good afternoon, my friends.
I know it’s the weekend, but why not take a moment to learn something new? Today, we’re diving into the world of "Relays."
When you need to turn something on or off that operates at a high voltage, you can't connect it directly to your microcontroller because you might end up destroying it. So, what can you do in this situation? Use a Relay..
A Relay is an electrically operated switch that uses electromagnetic induction to control a much larger electric current. It works through a coil of wire that becomes a temporary magnet when electricity flows through it, allowing you to safely switch high-voltage devices.
--
For example, let's say we need to control a PS5 in the kids' room. When you allow them to play, you connect the PS5 to power using a Relay.

We need:
- Relay module x1
- Test board x1
- Arduino UNO x1
- Connected wires x3

// First Step: Connect the Pins with Arduino
- ( + ) Relay leg --> 5V DC
- ( - ) Relay leg --> GND
- ( S ) Relay leg --> Pin 3 (any digital pin in Arduino)
On the Other Side of the Relay, We have 3 points: Normal Open (NO), Common (COM), and Normal Close (NC).
- Connect the neutral wire to the Common point.
- Connect the Normal Open to the PS5's neutral power wire.

// Second Step: The Code for Programming

Open the Arduino IDE and write this code:
-------------------------------------------------
Relay 3
char command = 0;

void setup() {
pinMode(Relay, OUTPUT);
Serial.begin(9600);
}

void loop() {
if (Serial.available() > 0) {
command = Serial.read();
}
if (command == 'O') {
digitalWrite(Relay, HIGH);
} else {
digitalWrite(Relay, LOW);
}
}
-------------------------------------------------

In this example, we can turn on the PS5 in the kids' room if we send "O" to the microcontroller; any other command will turn the PS5 off.

Happy learning, and enjoy your weekend.
//-- the end --//

.
.

By Eng. Wajed

Good evening, everybody! How’s your day going? It’s time for learning. Now we will learn about the LDR. It's a kind of r...
31/10/2024

Good evening, everybody! How’s your day going? It’s time for learning. Now we will learn about the LDR. It's a kind of resistor that changes its resistance based on the amount of light it receives.
How does this happen?
The LDR consists of a layer of cadmium sulfide (CdS) or cadmium selenide (CdSe), both of which are sensitive to light in the same spectrum range as the human eye or photographic film can see.

For example, we can use the LDR in a project to turn on the light when night comes. We need:

Relay module x1

10KΩ resistor x1

LDR x1

Test board x1

Arduino UNO x1

Connected wires x6

First Step: Connect the Pins with Arduino
LDR leg --> 5V

LDR leg --> Pin A0 (any pin with analog inputs)

Resistor leg --> GND

Resistor leg --> Between A0 and LDR leg

Relay + --> 5V

Relay - --> GND

Relay S --> Pin 4 in Arduino

Second Step: The Code for Programming
Open the Arduino IDE and write this code:

res A0
relay 4
int value = 0;

void setup() {
pinMode(res, INPUT);
pinMode(relay, OUTPUT);
}

void loop() {
value = analogRead(res);
delay(10);
if (value > 9) {
digitalWrite(relay, HIGH);
} else {
digitalWrite(relay, LOW);
}
}





..By Eng. Wajed

Hello, my friends.Are you ready for learning? Today we are going to learn about the RGB LED. If you want to add red, blu...
28/10/2024

Hello, my friends.
Are you ready for learning?
Today we are going to learn about the RGB LED.
If you want to add red, blue, green, or any color to your project, you can use just one LED. This LED has four legs (RED, GND, GREEN, BLUE), and you can control the color concentration to create new colors.

To use this item, we need to learn about PWM pins. PWM, or "Pulse Width Modulation," is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. Why do we need the analog output? Because, for example, to make the RGB LED glow red, we should output three values (red, green, blue) (255, 0, 0). This way, we can control the light in different colors.

For example, we will design a traffic light using one LED. We need:

220Ω resistor x3

RGB LED x1

Test board x1

Arduino UNO x1

Connected wires x4

First Step: Connect the Pins with Arduino
Red leg --> Pin 3 (any pin with PWM)

Green leg --> Pin 5 (any pin with PWM)

Blue leg --> Pin 6 (any pin with PWM)

Don't forget to connect the resistor between Arduino and the LED legs.

Second Step: The Code for Programming
Open the Arduino IDE and write this code:

red 3
green 5
blue 6

void setup() {
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
}

void loop() {
analogWrite(red, 255);
analogWrite(green, 0);
analogWrite(blue, 0);
delay(5000);

analogWrite(red, 0);
analogWrite(green, 0);
analogWrite(blue, 255);
delay(500);

analogWrite(red, 0);
analogWrite(green, 255);
analogWrite(blue, 0);
delay(3000);
}

.
.


By Eng.Wajed

Hello, my friends. I hope you are having a great day.Today we are going to learn about one of the most famous sensors in...
24/10/2024

Hello, my friends. I hope you are having a great day.
Today we are going to learn about one of the most famous sensors in the technology world: the IR sensor.
it uses infrared technology to detect objects.

How does it do this?
It involves two diodes:
1-Emitter
2-Receiver
The infrared rays go from the emitter. If there is an object in front of the sensor, the emitted rays collide with the object and are reflected back to the receiver. This is interpreted as a change in the electrical voltage, and we can detect this change as a signal that there is something in front of the sensor.

Now, let's see how we can use this sensor with an Arduino Uno.
we need. Arduino Uno , LED, IR sensor, test board and connecting wires .
First Step: Connect the Pins
Sensor { VCC } --> Arduino Uno { 3.3V or 5V }

Sensor { GND } --> Arduino Uno { GND }

Sensor { OUT } --> Arduino Uno { any digital pin, here I use pin 3 }

LED { anode } --> Arduino Uno { pin 13 }

LED { cathode } --> Arduino Uno { GND }

Second Step: The Code for Programming
Open the Arduino IDE and write this code:
______________________________________
sensorpin 2
ledpin 13

void setup() {
pinMode(sensorpin, INPUT);
pinMode(ledpin, OUTPUT);
}

void loop() {
if (digitalRead(sensorpin) == LOW)
digitalWrite(ledpin, HIGH);
else
digitalWrite(ledpin, LOW);
}
_________________________________________

As we see, this sensor gives us a signal (0) when it detects something and (1) when nothing is detected. In this example, we used a sensor that lights up an LED if there is an object in front of it and turns off the LED if there is not.
.
.


By Eng.Wajed

Address

Lagos

Website

Alerts

Be the first to know and let us send you an email when V-tech world. posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share