(Cette version a été marquée pour être traduite) |
(update property name) |
||
Ligne 1 : | Ligne 1 : | ||
− | {{ | + | {{Tuto Details |
|Main_Picture=Create_a_wooden_pet_that_connects_with_Facebook_italiano_ter.PNG | |Main_Picture=Create_a_wooden_pet_that_connects_with_Facebook_italiano_ter.PNG | ||
|Licences=Attribution (CC BY) | |Licences=Attribution (CC BY) | ||
Ligne 15 : | Ligne 15 : | ||
|IsTranslation=0 | |IsTranslation=0 | ||
}} | }} | ||
− | {{ | + | {{Introduction |
|Introduction=<translate><!--T:2--> In this tutorial we will create a wooden pet that connects with Facebook. It will post a message of your choice on your own timeline whenever its tail is touched.</translate> | |Introduction=<translate><!--T:2--> In this tutorial we will create a wooden pet that connects with Facebook. It will post a message of your choice on your own timeline whenever its tail is touched.</translate> | ||
}} | }} | ||
− | {{ | + | {{Materials |
|Material=<translate><!--T:3--> | |Material=<translate><!--T:3--> | ||
* 1 x ESP32 board with power cable | * 1 x ESP32 board with power cable | ||
Ligne 26 : | Ligne 26 : | ||
* 1 x 250 kohm resistor (or similar)</translate> | * 1 x 250 kohm resistor (or similar)</translate> | ||
|Tools=<translate><!--T:4--> * 1 Pc with Arduino IDE installed</translate> | |Tools=<translate><!--T:4--> * 1 Pc with Arduino IDE installed</translate> | ||
− | |Tuto_Attachments={{ | + | |Tuto_Attachments={{Tuto Attachments |
|Attachment=sheepboxconnected.svg | |Attachment=sheepboxconnected.svg | ||
}} | }} | ||
− | |ExternalAttachmentsLinks={{ | + | |ExternalAttachmentsLinks={{ExternalAttachmentsLinks |
|ExternalAttachmentsLinks=https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view?usp=sharing | |ExternalAttachmentsLinks=https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view?usp=sharing | ||
}} | }} | ||
}} | }} | ||
− | {{ | + | {{Separator}} |
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:5--> Set up an account on adafruit.io</translate> | |Step_Title=<translate><!--T:5--> Set up an account on adafruit.io</translate> | ||
|Step_Content=<translate><!--T:6--> | |Step_Content=<translate><!--T:6--> | ||
Ligne 44 : | Ligne 44 : | ||
|Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_2.PNG | |Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_2.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:8--> Install arduino IDE</translate> | |Step_Title=<translate><!--T:8--> Install arduino IDE</translate> | ||
|Step_Content=<translate><!--T:9--> Download [https://www.arduino.cc/en/Main/Software arduino.cc/en/Main/Software]</translate> | |Step_Content=<translate><!--T:9--> Download [https://www.arduino.cc/en/Main/Software arduino.cc/en/Main/Software]</translate> | ||
|Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_Arduino_Software.png | |Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_Arduino_Software.png | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:10--> Prepare the ESP32 board on your computer</translate> | |Step_Title=<translate><!--T:10--> Prepare the ESP32 board on your computer</translate> | ||
|Step_Content=<translate><!--T:11--> | |Step_Content=<translate><!--T:11--> | ||
Ligne 71 : | Ligne 71 : | ||
|Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_3.PNG | |Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_3.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:17--> Check that the board is correctly configured</translate> | |Step_Title=<translate><!--T:17--> Check that the board is correctly configured</translate> | ||
|Step_Content=<translate><!--T:44--> | |Step_Content=<translate><!--T:44--> | ||
Ligne 84 : | Ligne 84 : | ||
|Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_4.PNG | |Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_4.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:18--> Wiring the led and the touch sensor to the ESP32</translate> | |Step_Title=<translate><!--T:18--> Wiring the led and the touch sensor to the ESP32</translate> | ||
|Step_Content=<translate><!--T:47--> | |Step_Content=<translate><!--T:47--> | ||
Ligne 102 : | Ligne 102 : | ||
|Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_6.PNG | |Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_6.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:19--> Place the electronic inside the pet</translate> | |Step_Title=<translate><!--T:19--> Place the electronic inside the pet</translate> | ||
|Step_Content=<translate><!--T:52--> The Wooden pet needs to be laser cut. Download the cutting pattern for laser cutter : [[:Fichier:Sheepboxconnected.svg|sheepboxconnected.svg]]</translate> | |Step_Content=<translate><!--T:52--> The Wooden pet needs to be laser cut. Download the cutting pattern for laser cutter : [[:Fichier:Sheepboxconnected.svg|sheepboxconnected.svg]]</translate> | ||
Ligne 108 : | Ligne 108 : | ||
|Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_8.PNG | |Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_8.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:20--> Programming on Tuniot</translate> | |Step_Title=<translate><!--T:20--> Programming on Tuniot</translate> | ||
|Step_Content=<translate><!--T:53--> | |Step_Content=<translate><!--T:53--> | ||
Ligne 118 : | Ligne 118 : | ||
|Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_9.PNG | |Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_9.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:21--> Install Adafruit_MQTT.h and Adafruit_MQTT_Client.h libraries on Arduino IDE</translate> | |Step_Title=<translate><!--T:21--> Install Adafruit_MQTT.h and Adafruit_MQTT_Client.h libraries on Arduino IDE</translate> | ||
|Step_Content=<translate><!--T:22--> Sketch > Include Library > Manage Libraries…</translate> | |Step_Content=<translate><!--T:22--> Sketch > Include Library > Manage Libraries…</translate> | ||
|Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_11.PNG | |Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_11.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:23--> Programming on arduino IDE</translate> | |Step_Title=<translate><!--T:23--> Programming on arduino IDE</translate> | ||
|Step_Content=<translate><!--T:24--> | |Step_Content=<translate><!--T:24--> | ||
Ligne 139 : | Ligne 139 : | ||
|Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_13.PNG | |Step_Picture_01=Create_a_wooden_pet_that_connects_with_Facebook_13.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:28--> Create an applet on IFTTT</translate> | |Step_Title=<translate><!--T:28--> Create an applet on IFTTT</translate> | ||
|Step_Content=<translate><!--T:29--> | |Step_Content=<translate><!--T:29--> | ||
Ligne 168 : | Ligne 168 : | ||
|Step_Picture_05=Create_a_wooden_pet_that_connects_with_Facebook_18.PNG | |Step_Picture_05=Create_a_wooden_pet_that_connects_with_Facebook_18.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:36--> Complete the applet on IFTTT</translate> | |Step_Title=<translate><!--T:36--> Complete the applet on IFTTT</translate> | ||
|Step_Content=<translate><!--T:37--> | |Step_Content=<translate><!--T:37--> | ||
Ligne 186 : | Ligne 186 : | ||
|Step_Picture_03=Create_a_wooden_pet_that_connects_with_Facebook_21.PNG | |Step_Picture_03=Create_a_wooden_pet_that_connects_with_Facebook_21.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=<translate><!--T:41--> Final</translate> | |Step_Title=<translate><!--T:41--> Final</translate> | ||
|Step_Content=<translate><!--T:42--> In this case, the message that will be posted on your Facebook timeline is “Don’t touch my tail!”</translate> | |Step_Content=<translate><!--T:42--> In this case, the message that will be posted on your Facebook timeline is “Don’t touch my tail!”</translate> | ||
|Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_24.PNG | |Step_Picture_00=Create_a_wooden_pet_that_connects_with_Facebook_24.PNG | ||
}} | }} | ||
− | {{ | + | {{Notes |
|Notes=<translate><!--T:43--> This tutorial has been developed as part of the [http://www.digijeunes.com/projets/itech/ I TECH] project, co-financed by the Erasmus + program of the European Commission. For more info contact us on info@digijeunes.com.</translate> | |Notes=<translate><!--T:43--> This tutorial has been developed as part of the [http://www.digijeunes.com/projets/itech/ I TECH] project, co-financed by the Erasmus + program of the European Commission. For more info contact us on info@digijeunes.com.</translate> | ||
}} | }} | ||
− | {{ | + | {{Tuto Status |
|Complete=Published | |Complete=Published | ||
}} | }} |
Auteur Simone Ferrecchia DIGIJEUNES | Dernière modification 9/12/2019 par Clementflipo
Internetofthings, adafruit.io, ESP32, Facebook, Arduino Create_a_wooden_pet_that_connects_with_Facebook_italiano_ter.PNG en none Creation 0
Once you ve set up an account on adafruit.io, go on creating a new Feed.
Create a new feed and name it, for example, “touchsensor”.
Follow the instructions provided on github for your OS
If you have troubles following the instructions for windows, you may find some help below.
To find the Sketch directory, click File > Preferences, on arduino IDE.
The process of cloning existing repository may take a tomatically.
Launch Arduino IDE. Go to Tools > Board and select “ESP32 Dev Module”.
Fetch the Blink example on File > Examples > Basics > Blink.
Upload the code by clicking on the arrow pointing to the right.
We will connect an Led to the board so that we will know when the tail actually gets touched.
Connect a male/female jumper wire to D4 of the board. D4 is by default connected to the internal touch sensor.
Connect D2 (by default connected to the board’s internal led) to the positive leg of the Led, using a male to female jumper wire.
Connect the negative leg of the Led to GND on the board, using a male/female jumper wire.
If needed, use some tape to secure the jumper wires to the Led.
The Wooden pet needs to be laser cut. Download the cutting pattern for laser cutter : sheepboxconnected.svg
Complete the fields “ssid” and “password” with the name of your wi-fi connection and its password respectively
The “User Name” and “Key” are available on your adafruit.io page.
Sketch > Include Library > Manage Libraries…
To upload the code on Arduino IDE, click on the “copy arduino code into clipboard” button.
Then paste the code onto Arduino IDE, and upload it to the ESP32.
if you click on Serial Monitor (top right of the Arduino IDE screen), you should see the value recorded by the touch sensor (see image below).
It means that your ESP32 is connected to the internet, and that it’s sending the value recorded by the internal touch sensor on-line, on adafruit.io
Click on My Applets.
Choose New Applet.
Click on THIS (see image below).
Search for Adafruit.
Choose Monitor a feed on Adafruit IO.
Configure it as follows (see image below)
And Click on Create trigger.
Click on THAT
Choose Facebook.
Choose Create a status message.
Type your message and click on Create action.
In this case, the message that will be posted on your Facebook timeline is “Don’t touch my tail!”
This tutorial has been developed as part of the I TECH project, co-financed by the Erasmus + program of the European Commission. For more info contact us on info@digijeunes.com.
Published
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #