1 of 44

ECOTHINGS PROJECT

1

Leopoldo Armesto

Universitat Politècnica de València

PR3D2023

VII Jornada de Programación, Robótica e Impresión 3D

2 of 44

PRESENTATION OUTLINE

  • Motivation and Background
  • About the Project
    • Who we are, aims, project results, and additional activities.
    • Preliminary ideas.
  • Smart house
    • Livingroom, bedroom and kitchen: 3D CAD models, 3D printing models, electronics, connection diagrams, laser cutting parts, etc…
  • Block programming with Facilino
    • About the new version of Facilino
    • Communication blocks with Facilino
  • App Inventor 2 Extension
  • Bedroom light control

2

3 of 44

MOTIVATION AND BACKGROUND

  • The number of Internet of Things connected devices grows exponentially.

3

  • The number of industrial robot installations keeps growing.

4 of 44

MOTIVATION AND BACKGROUND

  • The Educational System is becoming outdated:
    • Not helping to develop natural skills as a consequence of using a content-based curriculum.
    • Summative assessment rather than formative assessment.
    • Soft skills are needed on our daily basis.
  • Digital Technology:
    • There’s a hinge between digital technology and access to it, particularly for groups at risk of social exclusion.
    • There’s a hinge between digital technology and the majority of the society in understanding it.
  • STEAM Projects:
    • Help students to work with materials that they have never used so far.
    • Help to understand real-life problems from a holistic point of view.
    • Integrate students with complementary skills, reinforcing both their weakest and strongest skills.

4

5 of 44

WHO WE ARE? PARTNERS

5

Universitat Politècnica de Valencia: Public University (Spain)

Colegio Santiago Apóstol: Private Primary School (Spain)

STANDO LTD: Private company (Cyprus)

Wyliodrin SRL: Private company (Romania)

Turan Erdogan Yilmaz Fen Lisesi: Public Secondary and High School (Turkey)

6 of 44

AIMS

  • Innovative educational approach based on the STEAM philosophy.
  • Improving the target students’ soft skills: communication, collaboration, critical thinking, assertivity, creativity and resilience.
  • Design and implement pilot projects aimed at reducing the impact of our daily lives on climate change.
  • Provide implementation guidelines that will include both the technological and pedagogical aspects.
  • Improve the digital skills of the students involved, by utilising video editing and website back-end usageof the project, in order to ensure replicability.
  • Make all of the above available to students belonging to families at serious risks of social exclusion.

6

7 of 44

PROJECT RESULTS

  • PR1: Internet of things prototype aimed at students with risk of social exclusion
  • PR2: Block Programming Tool Development for Low-cost IoT Electronics
  • PR3: Implementation Guidelines and Pedagogical Methodologies for Primary and Secondary Schools.
  • PR4: E-learning platform with multimedia contents.

7

8 of 44

ADDITIONAL ACTIVITIES

  • Learning & Training Teaching Activities:
    • LTTA1: School partners receive training about IoT, 3D printing, laser cutting techonologies. Also receive training in block programming tools for IoT.
    • LTTA2: Turkish school visits Spanish school. Implementation of Vygotsky’s Theory of Social Learning.
  • Multiplier Events: Each partner will have a multiplier event by the end of the project.

8

9 of 44

WEBSITE & SOCIAL NETWORKS

9

ecothings.webs.upv.es

https://www.facebook.com/profile.php?id=100077496976464

https://instagram.com/ecothingsproject?igshid=MzMyNGUyNmU2YQ==

10 of 44

PRELIMINARY IDEAS

Low-cost prototype of a passive house with a living room, bedroom and kitchen

10

11 of 44

SMART HOUSE

Low-cost prototype of a passive house with a living room, bedroom and kitchen

11

https://github.com/ecothingsproject/smart_house

https://www.tinkercad.com/users/2TqR7TZEqHV

SOLIDWORKS

TINKERCAD

12 of 44

SMART HOUSE

Sensors and actuators

12

13 of 44

LIVING ROOM

3D CAD model

13

Nailed it!

3D Printing parts

14 of 44

LIVING ROOM ELECTRONICS

Connection Diagram

14

Component

PIN NAME

ESP32 PIN

Arduino Shield

NTC Sensor

Analog Input

36

A4

Resistors 120Ω

Digital Output

26

D2

FAN

Digital Output

17

D4

Living Room Servo

Digital Output

25

D3

TFT Screen

TFT_CLK

18

D13

TFT_SDA

23

D11

TFT_CS

13

D9

TFT_RST

5

D10

TFT_RS

27

D6

TinkerCAD Circuit

15 of 44

BEDROOM

3D CAD model

15

Nailed it!

3D Printing parts

16 of 44

BEDROOM ELECTRONICS

Connection Diagram

16

TinkerCAD Circuit

Component

PIN NAME

ESP32 PIN

Arduino Shield

LDR Sensor

Analog Input

39

A5

MIC Sensor

Analog Input/Digital Input

35

A2

PIR Sensor

Digital Input

2

A0

Bedroom Servo

Digital Output

4

A1

RGB LED Strip

Digital Output

12

D8

17 of 44

KITCHEN

3D CAD model

17

Nailed it!

3D Printing parts

18 of 44

KITCHEN ELECTRONICS

Connection Diagram

18

TinkerCAD Circuit

Component

PIN NAME

ESP32 PIN

Arduino Shield

Gas Sensor

Analog Input/Digital Input

34

A3

Buzzer

Digital Output

15

D5

Flame Sensor

Digital Input

19

D12

Kitchen Servo

Digital Output

14

D7

19 of 44

LASER CUTTING PARTS

4mm plywood

19

1mm methacrylate

20 of 44

BLOCK PROGRAMMING WITH FACILINO

  • A Block programming tool based on Blockly aimed to develop STEAM projects.
  • Targeted on pupils at secondary schools, but it is also widely used by adult people with few or no programming skills.
  • Hardware abstraction: It can be used to program Arduino (ATMEGA), ESP8266, ESP32 and Raspberry Pi Pico processors.
  • Complex coding can be conceptualized on a block.
  • Main drawback: Large programs are difficult to maintain (as usual in other block programming tools).

20

21 of 44

FACILINO’S HIGHLIGHTS

  • Hosted at UPV servers.
  • Totally free software.
  • Web browser front-end.
  • User’s account.
  • Project’s dashboard.
  • Facilino OTA Server.
  • Block simplification and feature extension.
  • Block filters.
  • Tutorial and Project-related exercises.
  • Translation tool.
  • Over-the-Air (OTA).
  • Documentation.

21

22 of 44

FACILINO’S PROJECTS

Select processor (board)

Select Facilino version

22

Select Project Type

23 of 44

FACILINO PROGRAMMING OPTIONS

23

OTA (Over-the-Air)

LOCAL

LOCAL NETWORK

24 of 44

FACILINO BLOCK CATEGORIES

24

Functions

Control

Logic

Math

Variables

Text

Basic I/O

Screen

Communication

Sound

Distance

Light

Movement

System

Environment

Web Interface

25 of 44

GENERIC AND HW-SPECIFIC TUTORIALS

25

26 of 44

PROJECT-BASED TUTORIALS

26

27 of 44

SET LED EXAMPLE

27

28 of 44

FACILINO’S COMMUNICATION BLOCKS

Classic Bluetooth

28

WiFi

Web Server (Access Point)

Web Server (Station)

Access Point

Web-Client (Station)

App (Station)

App (Station)

Web-Client (Station)

Bluetooth Low-Energy

29 of 44

FACILINO’S COMMUNICATION BLOCKS

Classic Bluetooth Commands

  • A single byte is sent by an App to control the device. The transmitted datum is indeed the command. Case of use: to remotely control a robot

29

Commands

CMDs

Cancel repetition

0

Expressions (Angry, Happy, Sad, Love, Stunned)

1-5

Music notes

10-17

Motion (forward, backward, left, right, stop)

21-25

Gripper movements (open/close fingers)

31-36

Miscelaneous (line tracking, obstacle avoidance, black/white)

41-44

Arm movemnts (rise/down arms)

51-56

Command

30 of 44

FACILINO’S COMMUNICATION BLOCKS

Classic Bluetooth implementing a Telegram structure

  • Telegram structure:

    • Allows bi-directional communication and more complex data transmission.

30

STX

CMD

LENGTH

DATA0

DATAN-1

END

Telegrams

CMD

Length

Data

Digital Write

0x02

2

Pin number, value

Analog Write

0x05

2

Pin number, value

Servo

0x10

2

Pin number, angle

Servo 360º

0x11

2

Pin number, speed

Buzzer Tone

0x20

5

Pin number, Freq.(2), Duration (2)

Buzzer Melody

0x21

Variable

Pin number, Melody (variable)

LED Matrix 8x8

0x50

11

CLK,DIN,CS pin numbers, expression(8)

LED Strip

0x60

Variable

Pin number, RGB data(3xn)

Sensors:

App » Device » App

Actuators:

App » Device

31 of 44

FACILINO’S COMMUNICATION BLOCKS

HTTP REST API

  • The device implements a web server receiving HTTP requests implementing a basic REST API and the server responds with a json file:

DigitalWrite/pin/value » DigitalWrite/12/1

DigitalRead/pin » DigitalRead/9

  • Facilino’s Blocks are like the ones proposed for Bluetooth telegrams:

31

32 of 44

APP INVENTOR EXTENSION

APP INVENTOR

  • MIT tool to develop Android Apps based on Blockly.
  • Widely used in secondary schools in ICT courses.
  • Accepts development of extensions developed in Java to create customized blocks.

32

Bluetooth (Classic)

    • Bluetooth Client
    • DI, DO, AI, AO, Boolean, Integer, Float, String, Temperature, etc..

Bluetooth (BLE)

    • Bluetooth Client
    • DI, DO, AI, AO, Boolean, Integer, Float, String, Temperature, etc..

Web

    • WebClient
    • DI, DI, AI, AO, Boolean, Integer, Float, String, Temperature, etc..

33 of 44

APP INVENTOR EXTENSION

33

Bluetooth Classic example

Web example

34 of 44

APP INVENTOR EXTENSION

Block Instructions to read from “sensors”:

  • The App sends a read request and when the response is received a “Received” event is thrown to notify the user of the availability of data.

34

35 of 44

APP INVENTOR EXTENSION

Block Instructions to set values to ”actuators”:

  • The App sends a request, and the user is notified only when an error occurs:

35

36 of 44

BEDROOM LIGHT CONTROL

  • App sets:
    • Save energy mode (boolean #0)
    • Light color (integer #0)
    • Light brightness (integer #1).
  • App request data:
    • LDR sensor connected to A5 (measures ambient light) Analog input
    • PIR sensor connected to A0 (detects motion inside the room) Digital input.
  • App handles connection and disconnection from bluetooth device.

36

37 of 44

BEDROOM LIGHT CONTROL

37

Handling Connection and Disconnection (App inventor code)

Setting a Bluetooth device (Facilino code):

38 of 44

BEDROOM LIGHT CONTROL

38

Sending “actuator” variables (App Inventor code):

39 of 44

BEDROOM LIGHT CONTROL

39

Decoding Telegrams (Facilino code):

40 of 44

BEDROOM LIGHT CONTROL

40

Reading from sensors (App Inventor code):

41 of 44

BEDROOM LIGHT CONTROL

41

Energy Save Mode (Facilino code):

42 of 44

PASSIVE HOUSE LOGIC

Logic Table

42

Temperatures

Heater

Fan

Window

Room<Ground<Setpoint<Outside

Off

Off

Open

Room<Ground<Outside<Setpoint

On

Off

Closed

Room<Setpoint<Ground<Outside

Off

Off

On

Room<Setpoint<Outside<Ground

Off

Off

Open

Room<Outside<Ground<Setpoint

On

Off

Closed

Room<Outside<Setpoint<Ground

Off

On

Off

Ground<Room<Setpoint<Outside

Off

Off

On

Ground<Room<Outside<Setpoint

On

Off

Off

Ground<Setpoint<Room<Outside

Off

On

Closed

Ground<Setpoint<Outside<Room

Off

On

Closed

Ground<Outside<Room<Setpoint

On

Off

Closed

Ground<Outside<Setpoint<Room

Off

Off

Open

Setpoint<Room<Ground<Outside

Off

Off

Closed

Setpoint<Room<Outside<Ground

Off

Off

Closed

Setpoint<Ground<Room<Outside

Off

On

Closed

Setpoint<Ground<Outside<Room

Off

On

Closed

Setpoint<Outside<Room<Ground

Off

Off

Open

Setpoint<Outside<Ground<Room

Off

Off

Open

Outside<Room<Ground<Setpoint

On

Off

Closed

Outside<Room<Setpoint<Ground

Off

On

Closed

Outside<Ground<Room<Setpoint

Off

Off

Closed

Outside<Ground<Setpoint<Room

Off

Off

Open

Outside<Setpoint<Room<Ground

Off

Off

Open

Outside<Setpoint<Ground<Room

Off

Off

Open

  • Room Temperature: NTC Sensor.
  • Ground Temperature: Assumed to be constant at 19ºC.
  • Setpoint Temperature: Specified by the user.
  • Outside Temperature: Obtained from OpenWeather (web).

Temperatures

Actuators

  • Heater: Consumes high energy.
  • Fan: Consumes medium energy.
  • Window: Consumes low energy.

43 of 44

UPCOMMING MULTIPLIER EVENT

43

3rd May 2024

  • For educational professionals including primary, lower secondary and
  • upper secondary levels.
  • The aim is to disseminate the project results in terms of proposed prototype and
  • tools developed as well as the pedagogical guidelines developed, e-learning platform and MOOC.
  • Practical demonstration with the proposed tools.

Pre sign-up form

44 of 44

ECOTHINGS PROJECT

44

Leopoldo Armesto

Universitat Politècnica de València

PR3D2023

VII Jornada de Programación, Robótica e Impresión 3D