Robotics by Angel

Welcome to Robotics by Angel! 🤖
Dive into the exciting world of robotics, electronics, and innovation. From Arduino builds to smart automation projects, I create tutorials, demos, and experiments that bring tech ideas to life. Whether you’re a beginner curious about coding or a maker ready to upgrade your skills, you’ll find inspiration here.

Expect videos on:

DIY robotics projects

Arduino, ESP32 & microcontroller builds

Sensors, motors & automation tutorials

Creative tech experiments

Join the journey, build something amazing, and let’s make robots move! 🚀
#Robotics #Electronics #TechInnovation #FutureTech #TechDIY #Arduino #ESP32 #ESP8266 #Microcontrollers #ArduinoProjects #Makers #DIYRobotics #MakerMovement #Innovation #Automation #Sensors #Motors #SmartTech #IOTProjects #STEM #LearnElectronics #CodingForBeginners #TechExperiments #RoboticsForBeginners


Robotics by Angel

Code for DINO GAME

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Ρύθμιση της διεύθυνσης LCD σε 0x27.
LiquidCrystal_I2C lcd(0x27, 16, 2);

// Σχεδιασμός χαρακτήρων
byte DINO_PIE_DERE_PART_1[8] = {B00000, B00000, B00010, B00010, B00011, B00011, B00001, B00001};
byte DINO_PIE_DERE_PART_2[8] = {B00111, B00111, B00111, B00100, B11100, B11100, B11000, B00000};
byte DINO_PIE_IZQU_PART_1[8] = {B00000, B00000, B00010, B00010, B00011, B00011, B00001, B00000};
byte DINO_PIE_IZQU_PART_2[8] = {B00111, B00111, B00111, B00100, B11100, B11100, B11000, B01000};
byte DOS_RAMAS_PART_1[8] = {B00000, B00100, B00100, B10100, B10100, B11100, B00100, B00100};
byte DOS_RAMAS_PART_2[8] = {B00100, B00101, B00101, B10101, B11111, B00100, B00100, B00100};

// Μεταβλητές
int columna_dino1 = 1, columna_dino2 = 2;
unsigned long reloj = 0;
int periodo = 100, flag = 1;
int fila_rama = 1, columna_rama = 15, periodo2 = 130;
unsigned long reloj2 = 0;
int d = 0;
unsigned long reloj3 = 0;
int periodo3 = 100, puntos = 0, punto2 = 0, numerorandom = 0;
int boton = 11;
int buzzer = 10;

void setup() {
pinMode(boton, INPUT);
pinMode(buzzer, OUTPUT);

// ΔΙΟΡΘΩΣΗ: Αλλαγή από lcd.init() σε lcd.begin()
lcd.begin();
lcd.backlight();

lcd.createChar(2, DINO_PIE_DERE_PART_1);
lcd.createChar(3, DINO_PIE_DERE_PART_2);
lcd.createChar(4, DINO_PIE_IZQU_PART_1);
lcd.createChar(5, DINO_PIE_IZQU_PART_2);
lcd.createChar(6, DOS_RAMAS_PART_1);
lcd.createChar(7, DOS_RAMAS_PART_2);

lcd.setCursor(0,0);
lcd.print("Dino Game Start!");
delay(2000);
lcd.clear();
}

void loop() {
if (millis() > reloj + periodo) {
reloj = millis();
flag = (flag == 1) ? 2 : 1;
}

if (millis() > reloj2 + periodo2) {
reloj2 = millis();
lcd.setCursor(columna_rama, fila_rama); lcd.print(" ");
columna_rama--;

if (columna_rama < 0) {
columna_rama = 15;
if (periodo2 > 80) periodo2 -= 1;
numerorandom = random(1, 3);
}

fila_rama = 1;
lcd.setCursor(columna_rama, 1);
lcd.write(byte(numerorandom == 1 ? 6 : 7));
}

// Jumping Logic
if (digitalRead(boton) == HIGH) {
if (d == 0) {
lcd.setCursor(columna_dino1, 1); lcd.print(" ");
tone(buzzer, 600, 50);
}
d = 1;
lcd.setCursor(columna_dino1, 0); lcd.write(byte(flag == 1 ? 2 : 4));
lcd.setCursor(columna_dino2, 0); lcd.write(byte(flag == 1 ? 3 : 5));
} else {
if (d == 1) {
lcd.setCursor(columna_dino1, 0); lcd.print(" ");
}
d = 0;
lcd.setCursor(columna_dino1, 1); lcd.write(byte(flag == 1 ? 2 : 4));
lcd.setCursor(columna_dino2, 1); lcd.write(byte(flag == 1 ? 3 : 5));
}

// Collision
if (d == 0 && (columna_rama == columna_dino1 || columna_rama == columna_dino2) && fila_rama == 1) {
tone(buzzer, 200, 300);
lcd.clear();
lcd.setCursor(3, 0); lcd.print("GAME OVER");
delay(3000);
lcd.clear();
columna_rama = 15;
periodo2 = 130;
puntos = 0; punto2 = 0;
}

if (millis() > reloj3 + periodo3) {
reloj3 = millis();
puntos++;
if (puntos == 100) { puntos = 0; punto2++; }
lcd.setCursor(13, 1); lcd.print(puntos);
lcd.setCursor(13, 0); lcd.print(punto2);
}
}

15 hours ago | [YT] | 0

Robotics by Angel

Code for Arduino radar with laser targeting and cannon:

// Ultrasonic Sensor pins
const int trigPin = 10;
const int echoPin = 11;

// Servo pins
const int sweepServoPin = 12; // Servo for sweeping
const int cannonServoPin = 13; // Servo for the toy cannon trigger

// Laser pin
const int laserPin = 2;

// Variables for duration and distance
long duration;
int distance;

Servo mySweepServo; // Servo object for sweeping
Servo myCannonServo; // Servo object for the cannon trigger
int pos = 15; // Start angle for sweeping servo
int direction = 1; // Sweep direction (1 = forward, -1 = backward)

unsigned long lastFireTime = 0;
const unsigned long fireCooldown = 2000; // 2 seconds cooldown between shots

void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(laserPin, OUTPUT);
Serial.begin(9600);
mySweepServo.attach(sweepServoPin);
myCannonServo.attach(cannonServoPin);
myCannonServo.write(0);
}

void loop() {
distance = calculateDistance();

// If object detected within 10 cm
if (distance > 0 && distance <= 10) {
digitalWrite(laserPin, HIGH);

// Fire if cooldown passed
if (millis() - lastFireTime > fireCooldown) {
fireCannon();
lastFireTime = millis();
}

} else {
digitalWrite(laserPin, LOW);
}

// Sweeping motion
mySweepServo.write(pos);
delay(30);
pos += direction;
if (pos >= 165 || pos <= 15) direction = -direction;

// Send data to Processing
Serial.print(pos);
Serial.print(",");
Serial.print(distance);
Serial.print(".");
}

// Function to calculate distance
int calculateDistance() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);
distance = duration * 0.034 / 2;
return distance;
}

// Function to fire cannon
void fireCannon() {
myCannonServo.write(0);
delay(300);
myCannonServo.write(180);
delay(300);
myCannonServo.write(0); // reset
}

1 week ago (edited) | [YT] | 1

Robotics by Angel

For those asked here is the circuit diagram for the Arduino radar with laser targeting and cannon.

If you want to watch the video: www.youtube.com/shorts/zk9Yo0...

1 week ago (edited) | [YT] | 1

Robotics by Angel

Interested in automation? Watch this video.

3 months ago | [YT] | 2

Robotics by Angel

Watch all the parts at the radar evolution playlist!

3 months ago (edited) | [YT] | 2

Robotics by Angel

Complete guide to make a traffic light system using arduino.

3 months ago (edited) | [YT] | 2

Robotics by Angel

Did you watch it?

3 months ago | [YT] | 2