105
edits
No edit summary |
(info) |
||
Line 54: | Line 54: | ||
====== Embedded systems ====== | ====== Embedded systems ====== | ||
In the project, were implemented two systems of sensors and actuators controlled by Arduino boards, and programmed in Visual Studio Code and Arduino programs. | In the project, were implemented two systems of sensors and actuators controlled by Arduino boards, and programmed in Visual Studio Code and Arduino programs. | ||
[[File:Imagen de WhatsApp 2025-01-09 a las 12.58.12 ce313d3b.jpg|alt=Sketch 2, Lemon tree archive, Dania González Sanabria|thumb| | |||
[[File:Imagen de WhatsApp 2025-01-09 a las 12.58.12 ce313d3b.jpg|alt=Sketch 2, Lemon tree archive, Dania González Sanabria|thumb|685x685px|<small>Sketch 2, Moving Branches, 1rst system. Lemon tree archive, Dania González Sanabria</small>]] | |||
<u>1rts System:</u> | |||
<u>1rts | |||
For the moving branch, it was set a system with an HC-SR04 Ultrasonic Distance Sensor controlling a 15 kg Digital Servo Motor, through an Arduino Nano and a connective board. | For the moving branch, it was set a system with an HC-SR04 Ultrasonic Distance Sensor controlling a 15 kg Digital Servo Motor, through an Arduino Nano and a connective board. | ||
Line 64: | Line 63: | ||
When the spectator approaches 65 cm of the branches, the servo motor starts to turn from 0 to 18 degrees, making the branches, attached to it, start to move. If the spectator approaches at a closer distance (50 cm), the servo motor turns from 0 to 40 degrees, making the branches move a little bit more. | When the spectator approaches 65 cm of the branches, the servo motor starts to turn from 0 to 18 degrees, making the branches, attached to it, start to move. If the spectator approaches at a closer distance (50 cm), the servo motor turns from 0 to 40 degrees, making the branches move a little bit more. | ||
The Servo Motor received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity and connected to the 2nd | The Servo Motor received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity and connected to the board of the 2nd System. | ||
Line 71: | Line 70: | ||
[[File:Imagen de WhatsApp 2025-02-22 a las 18.10.54 bab076a4.jpg|left|thumb|446x446px|<small>1st System board setting</small>]] | |||
Devices for <u>1rts System:</u> | |||
* Arduino Nano | * Arduino Nano | ||
* Connective board | * Connective board | ||
Line 79: | Line 79: | ||
* Connection cables | * Connection cables | ||
(Written code is at the end of the page) | |||
Line 86: | Line 87: | ||
<u>2nd System:</u> | |||
The terrarium had a humidifier system inside. It was made with a Capacitive Soil Moisture Sensor connected to an Arduino Nano and a connective board. When the soil got drier (over value 400 read by that sensor, whose values are approximately this: wet is < 400, dry is > 400), a 5V Relay Module also connected to the board, activated a 5V Humidifier made with a piezoelectric. When the soil got humid again (under value 400) the humidifier stopped until the soil got dry again. The relay and humidifier received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity. [[File:Imagen de WhatsApp 2025-02-22 a las 03.09.15 5fec5717.jpg|alt=Sketch 3, Lemon tree archive, Dania González Sanabria|thumb|1095x1095px|<small>Sketch 3, Terrarium, 2nd System, Lemon tree archive, Dania González Sanabria</small>]] | |||
The terrarium had a humidifier system inside. It was made with a Capacitive Soil Moisture Sensor connected to an Arduino Nano and a connective board. When the soil got drier (over value 400 read by that sensor, whose values are approximately this: wet is < 400, dry is > 400), a 5V Relay Module also connected to the board, activated a 5V Humidifier made with a piezoelectric. When the soil got humid again (under value 400) the humidifier stopped until the soil got dry again. The relay and humidifier received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity. [[File:Imagen de WhatsApp 2025-02-22 a las 03.09.15 5fec5717.jpg|alt=Sketch 3, Lemon tree archive, Dania González Sanabria|thumb|1095x1095px|<small>Sketch 3, Lemon tree archive, Dania González Sanabria</small>]] | |||
Line 113: | Line 113: | ||
[[File:Imagen de WhatsApp 2025-02-22 a las 18.10.54 b6eb9130.jpg|thumb|449x449px|<small>2nd System board setting</small>]] | |||
< | Devices for <u>2nd System:</u> | ||
<u>2nd | |||
* Arduino Nano | * Arduino Nano | ||
Line 131: | Line 123: | ||
* MB-102 3.3V/5V Power Module | * MB-102 3.3V/5V Power Module | ||
* Connection cables | * Connection cables | ||
(Written code is at the end of the page) | |||
edits