(Mise à jour pour être en accord avec la nouvelle version de la source de la page) |
(update property name) |
||
Ligne 1 : | Ligne 1 : | ||
− | {{ | + | {{Tuto Details |
|Main_Picture=Pet_that_lights_up_upon_interaction_6.PNG | |Main_Picture=Pet_that_lights_up_upon_interaction_6.PNG | ||
|Licences=Attribution (CC BY) | |Licences=Attribution (CC BY) | ||
Ligne 14 : | Ligne 14 : | ||
|IsTranslation=1 | |IsTranslation=1 | ||
}} | }} | ||
− | {{ | + | {{Introduction |
|Introduction= | |Introduction= | ||
}} | }} | ||
− | {{ | + | {{Materials |
|Step_Picture_00=Pet_that_lights_up_upon_interaction_sheep_box_connected_pet.svg | |Step_Picture_00=Pet_that_lights_up_upon_interaction_sheep_box_connected_pet.svg | ||
|Material=For this activity, you will need to laser cut your own pet. The .svg file is available for download [https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view?usp=sharing here]. | |Material=For this activity, you will need to laser cut your own pet. The .svg file is available for download [https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view?usp=sharing here]. | ||
|Tools= | |Tools= | ||
− | |ExternalAttachmentsLinks={{ | + | |ExternalAttachmentsLinks={{ExternalAttachmentsLinks |
|ExternalAttachmentsLinks=https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view | |ExternalAttachmentsLinks=https://drive.google.com/file/d/1AHXk4zxDN0U7YNiMKVyBzvakh8pY8MH9/view | ||
}} | }} | ||
}} | }} | ||
− | {{ | + | {{Separator}} |
− | {{ | + | {{Tuto Step |
|Step_Title=Install Arduino IDE | |Step_Title=Install Arduino IDE | ||
|Step_Content=You will need to use Arduino IDE to code and upload the firmware onto your ESP32 board. | |Step_Content=You will need to use Arduino IDE to code and upload the firmware onto your ESP32 board. | ||
Ligne 32 : | Ligne 32 : | ||
Download the software by visiting [https://www.arduino.cc/en/Main/Software? Arduino IDE] > Scroll down until you see the “Download the Arduino IDE” section and choose the version based upon your operating system (e.g. If you have Windows 7, choose “Windows Installer” / if you have Windows 10, choose “Windows app”) > On the next page choose “Just download” and run the installation files. | Download the software by visiting [https://www.arduino.cc/en/Main/Software? Arduino IDE] > Scroll down until you see the “Download the Arduino IDE” section and choose the version based upon your operating system (e.g. If you have Windows 7, choose “Windows Installer” / if you have Windows 10, choose “Windows app”) > On the next page choose “Just download” and run the installation files. | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Prepare the ESP32 board on your computer | |Step_Title=Prepare the ESP32 board on your computer | ||
|Step_Content=Follow the [https://github.com/espressif/arduino-esp32/blob/master/README.md#installation-instructions instructions provided on GitHub] for your Operating System. For example, if you have Windows 7 or 10, choose “Instructions for Windows” / if you have a MacBook, choose “Instructions for Mac” | |Step_Content=Follow the [https://github.com/espressif/arduino-esp32/blob/master/README.md#installation-instructions instructions provided on GitHub] for your Operating System. For example, if you have Windows 7 or 10, choose “Instructions for Windows” / if you have a MacBook, choose “Instructions for Mac” | ||
Ligne 39 : | Ligne 39 : | ||
|Step_Picture_00=Pet_that_lights_up_upon_interaction_Capture.PNG | |Step_Picture_00=Pet_that_lights_up_upon_interaction_Capture.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Check that the board is correctly configured | |Step_Title=Check that the board is correctly configured | ||
|Step_Content=Launch Arduino IDE and select “ESP32 Dev Module” from the Tools menu > Board. | |Step_Content=Launch Arduino IDE and select “ESP32 Dev Module” from the Tools menu > Board. | ||
Ligne 85 : | Ligne 85 : | ||
|Step_Picture_01=Pet_that_lights_up_upon_interaction_5.PNG | |Step_Picture_01=Pet_that_lights_up_upon_interaction_5.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Wiring the LED and the touch sensor to the ESP32 | |Step_Title=Wiring the LED and the touch sensor to the ESP32 | ||
|Step_Content=Connect a male/female jumper wire to D4 on of the board. D4 is by default connected to the internal touch sensor. | |Step_Content=Connect a male/female jumper wire to D4 on of the board. D4 is by default connected to the internal touch sensor. | ||
Ligne 96 : | Ligne 96 : | ||
|Step_Picture_00=Pet_that_lights_up_upon_interaction_6.PNG | |Step_Picture_00=Pet_that_lights_up_upon_interaction_6.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Place the electronic board inside the pet | |Step_Title=Place the electronic board inside the pet | ||
|Step_Content=Place all the parts inside the pet, and connect the internal touch sensor to the aluminum tail. | |Step_Content=Place all the parts inside the pet, and connect the internal touch sensor to the aluminum tail. | ||
Ligne 102 : | Ligne 102 : | ||
|Step_Picture_01=Pet_that_lights_up_upon_interaction_8.PNG | |Step_Picture_01=Pet_that_lights_up_upon_interaction_8.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Programming on tuniot | |Step_Title=Programming on tuniot | ||
|Step_Content=Let’s create a program that registers the values recorded by the touch sensor. | |Step_Content=Let’s create a program that registers the values recorded by the touch sensor. | ||
Ligne 111 : | Ligne 111 : | ||
|Step_Picture_00=Pet_that_lights_up_upon_interaction_tuniot.PNG | |Step_Picture_00=Pet_that_lights_up_upon_interaction_tuniot.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title=Programming on Arduino IDE | |Step_Title=Programming on Arduino IDE | ||
|Step_Content=To upload the code on Arduino IDE, click on the “Copy Arduino code into clipboard” button. | |Step_Content=To upload the code on Arduino IDE, click on the “Copy Arduino code into clipboard” button. | ||
Ligne 123 : | Ligne 123 : | ||
|Step_Picture_01=Pet_that_lights_up_upon_interaction_serial_monitor.PNG | |Step_Picture_01=Pet_that_lights_up_upon_interaction_serial_monitor.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
|Step_Title= | |Step_Title= | ||
|Step_Content= | |Step_Content= | ||
|Step_Picture_00=Musical_e-textile_bag_eu_flag_co_funded_pos_rgb_right.jpg | |Step_Picture_00=Musical_e-textile_bag_eu_flag_co_funded_pos_rgb_right.jpg | ||
}} | }} | ||
− | {{ | + | {{Notes |
|Notes=This tutorial has been developed as part of the iTech project, co-financed by the Erasmus + Programme of the European Union. | |Notes=This tutorial has been developed as part of the iTech project, co-financed by the Erasmus + Programme of the European Union. | ||
Ligne 137 : | Ligne 137 : | ||
For more details, contact info@digijeunes.com | For more details, contact info@digijeunes.com | ||
}} | }} | ||
− | {{ | + | {{Tuto Status |
|Complete=Published | |Complete=Published | ||
}} | }} |
Auteur Digijeunes | Dernière modification 9/12/2019 par Clementflipo
Pet_that_lights_up_upon_interaction_6.PNG en none Creation 1
For this activity, you will need to laser cut your own pet. The .svg file is available for download here.
You will need to use Arduino IDE to code and upload the firmware onto your ESP32 board.
Download the software by visiting Arduino IDE > Scroll down until you see the “Download the Arduino IDE” section and choose the version based upon your operating system (e.g. If you have Windows 7, choose “Windows Installer” / if you have Windows 10, choose “Windows app”) > On the next page choose “Just download” and run the installation files.
Follow the instructions provided on GitHub for your Operating System. For example, if you have Windows 7 or 10, choose “Instructions for Windows” / if you have a MacBook, choose “Instructions for Mac”
For the “Instructions for Windows” section, you can ignore the following step.
Launch Arduino IDE and select “ESP32 Dev Module” from the Tools menu > Board.
Fetch the Blink example from File > Examples > 01.Basics > Blink.
write int LED_BUILTIN = 2; at the top of the code
/*
ESP 32 Blink
Turns on an LED on for one second, then off for one second, repeatedly.
The ESP32 has an internal blue LED at D2 (GPIO 02)
*/
int LED_BUILTIN = 2;
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Finally, upload the code by using the right arrow (→) button at the top right corner of the window, by choosing Sketch > Upload or by pressing Ctrl+U on the keyboard.
Connect a male/female jumper wire to D4 on 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.
Place all the parts inside the pet, and connect the internal touch sensor to the aluminum tail.
Let’s create a program that registers the values recorded by the touch sensor.
For that we need to reach: http://easycoding.tn/esp32/demos/code/
Choose the appropriate blocks to create the code displayed below.
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, below the “X” button), you should see the values recorded by the touch sensor.
You may need to adjust the value in the code (in our code we set the threshold to 30) so that the LED goes on whenever the tail is touched.
This tutorial has been developed as part of the iTech project, co-financed by the Erasmus + Programme of the European Union.
Project number: 2017-1-FR02-KA205-012764
EU disclaimer: The content of this publication does not reflect the official opinion of the European Union. Responsibility for the information and views expressed in the therein lies entirely with the author(s).
For more details, contact info@digijeunes.com
Published
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #