Introduction: Ecuadorian Piggy Bank

Greetings!

I'm Valeria Dorado, an educator from the captivating landscapes of the Andean mountain range in Ecuador.

Picture this: my spirited group of students and I have embarked on a thrilling robotics journey through a virtual connection led by an inspiring Spanish teacher living in France. Isn't it incredible how our paths intertwine across borders? Now, brace yourself for the unveiling of our latest project—it's bound to spark joy and curiosity. Dive in and relish the magic!

Picture this: my spirited group of students (Stiven, Josthyn, Nelson, Analia, Alison) and I have embarked on a thrilling robotics journey through a virtual connection led by an inspiring Spanish teacher living in France. Isn't it incredible how our paths intertwine across borders? Now, brace yourself for the unveiling of our latest project—it's bound to spark joy and curiosity. Dive in and relish the magic!


Hello, guambra! We are an enthusiastic group of Ecuadorian students who jumped into the adventure of robotics. Would you believe we've only had 4 classes, but here we are, ready to conquer this contest thanks to our passion for technology!

Inspired by Mark Twain's philosophy of "They didn't know it was impossible, so they did it", we decided to go beyond the imaginable. How about mixing our robotics knowledge with the incredible richness of our culture and the amazing landscapes of Ecuador?

Sounds epic, doesn't it?

This project is our tribute to our roots, to the beautiful province of Carchi and the magic of our people. Imagine a home that when you open it transports you to a landscape full of myths and fantasy , all inside a piggy bank! Crazy, isn't it?

But that's not the end of it. We've added an interactive touch with a coin-collecting mechanism. And that's not all!

This ingenious design gives you a panoramic view of the iconic PALUZ WATERFALL , one of the area's most iconic destinations. Isn't it mind-blowing?

So, get ready to dive into the most intrepid details of our project. From the intricate mechanisms to the magical representation of our Ecuadorian culture, we invite you to an exciting technological journey that fuses the traditional with the modern! Join us and be part of this creative revolution!

Supplies

COMPONENTS USED IN THE PROJECT

- 7 Servo SG90

- 1 Touch sensor

- 1-Ultrasonic HC-SR04 4pin sensor

- 1-Power supply for breadboard 5V 3.3V MB-102

- 1 9V battery

- 1 Arduino Nano

- 1 Protoboard

- Cables

Step 1: Construction of the House

1)Start by building a triplex house with dimensions of 20 cm high, 38 cm wide and 21 cm long, including a 6 cm high drawer to house the components of the mechanism.

Step 2: The House Embellishment

Embellish the house with cultural elements and grass from the Andes, providing an authentic touch to the structure.

2)For the mechanism we must do the following:

-Place a sensor at the top of the house to trigger the movement of the servomotors.

Step 3: Goblin's Hand

Inside the box, install an ice cream stick ladder that supports the first servomotor responsible for moving the goblin's hand out of the box.

Step 4: Touch Sensor

In the center of the goblin's hand we will place a touch sensor that has the functionality to go inside the box when it receives a coin.

Step 5: Coin Paddle

Include another servomotor, and in one of its shafts, attach a paddle that will allow the coin to be removed when it is inside the box.

Step 6: Door and Witch

At the front of the house, place two servomotors that will allow opening and closing doors, this process starts after the goblin's hand has received the coin.

Finally, place the servomotor "witch" in a position above the house to create a friendly interaction, such as a greeting gesture.


This is the code we have used:


#include <Servo.h>

 

#define trigPin 5

#define echoPin 4

int touchSensorPin = 10;

 

Servo puerta;

Servo puerta2;

Servo palanca;

Servo mano;

Servo bruja; // Nuevo servo llamado "bruja"

 

void setup() {

 pinMode(trigPin, OUTPUT);

 pinMode(echoPin, INPUT);

 puerta.attach(9);

 puerta2.attach(2);

 palanca.attach(7); // Nuevo servomotor palanca en el pin D7

 mano.attach(8);

 bruja.attach(3); // Nuevo servo "bruja" en el pin D12

 Serial.begin(9600);

}

 

void loop() {

 long duration, distance;

 

 digitalWrite(trigPin, LOW);

 delayMicroseconds(2);

 digitalWrite(trigPin, HIGH);

 delayMicroseconds(10);

 digitalWrite(trigPin, LOW);

 duration = pulseIn(echoPin, HIGH);

 distance = (duration / 2) / 29.1;

 Serial.println(distance);

 

 if (distance < 30) {

  mano.write(50);

  Serial.println("Saco la mano");

  waitForTouch();

  mano.write(0);

  Serial.println("Meto la mano");

  delay(500);

 

  puerta.write(90);

  puerta2.write(90);

  palanca.write(90); // Abrir todos los servomotores

  bruja.write(70);  // Mueve "bruja" al mismo tiempo que las puertas

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  bruja.write(70);

  delay(500);

  bruja.write(120);

  delay(500);

  Serial.println("Abro las puertas");

 

  delay(6000);

 

  puerta.write(0);

  puerta2.write(180);

  palanca.write(180); // Cerrar todos los servomotores

  bruja.write(120);  // Mueve "bruja" al mismo tiempo que las puertas

  Serial.println("Cierro las puertas");

 } else {

  mano.write(0);

  delay(500);

  puerta.write(0);

  puerta2.write(180);

  palanca.write(180); // Asegúrate de que el tercer servomotor esté cerrado

  bruja.write(120);   // Detiene "bruja" si no se cumple la condición

 }

 delay(500);

}

 

void waitForTouch() {

 while (digitalRead(touchSensorPin) == LOW) {

  delay(100);

  Serial.println("Espero a que toque");

 }

}

 

Step 7: Your Turn!

Our robot has taken shape to give a representation of our culture and diversity.

If you like these designs and cultural projects do not hesitate to make them and expose your Ecuadorian creativity!

Robotics Contest

Participated in the
Robotics Contest