V-tech world.

V-tech world.

Share

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

14/11/2024

You can follow Us on YouTube Now 🎥

Get ready for something special...
Subscribe today and join us in our world of exciting content



https://youtube.com/-tech_would?si=XpX6-ST8g__YdC4z

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

30/10/2024

RGB LED with IR Remote Control: We use the same RGB LED as discussed in the last lesson. For full videos and a step-by-step guide, you can follow us on YouTube soon.
, ,
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/

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

22/10/2024

design smart room with alarm for unwanted movements and phone application for control.
, ,
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/

Want your business to be the top-listed Engineering Company in Lagos?
Click here to claim your Sponsored Listing.

Website

Address


Lagos