(update property name) |
|||
(6 révisions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | {{ | + | {{Tuto Details |
− | |Main_Picture=Musical_e- | + | |Main_Picture=Musical_e-textile_bag_IMG_1452.JPG |
|Licences=Attribution (CC BY) | |Licences=Attribution (CC BY) | ||
− | |Description=<translate>This tutorial requires an e-textile bag which includes a piezo speaker.</translate> | + | |Description=<translate><!--T:23--> This tutorial requires an e-textile bag which includes a piezo speaker.</translate> |
|Area=Clothing and Accessories, Electronics | |Area=Clothing and Accessories, Electronics | ||
|Type=Technique | |Type=Technique | ||
Ligne 15 : | Ligne 15 : | ||
|IsTranslation=0 | |IsTranslation=0 | ||
}} | }} | ||
− | {{ | + | {{Introduction |
− | |Introduction=<translate>In this tutorial you will learn how to make sounds with a piezo speaker mounted on the e-textile bag.</translate> | + | |Introduction=<translate><!--T:24--> |
+ | In this tutorial you will learn how to make sounds with a piezo speaker mounted on the e-textile bag. | ||
+ | |||
+ | |||
+ | <!--T:53--> | ||
+ | Une version française de ce tutoriel est également disponible [https://drive.google.com/file/d/17vUKg5dgwaiRDr_i6ee-7gOye30j51PO/view?usp=sharing en ligne] / A French version of this tutorial is available [https://drive.google.com/file/d/17vUKg5dgwaiRDr_i6ee-7gOye30j51PO/view?usp=sharing online.]</translate> | ||
}} | }} | ||
− | {{ | + | {{Materials |
|Material=<translate></translate> | |Material=<translate></translate> | ||
|Tools=<translate></translate> | |Tools=<translate></translate> | ||
}} | }} | ||
− | {{ | + | {{Separator}} |
− | {{ | + | {{Tuto Step |
− | |Step_Title=<translate>Prepare the board and the bag</translate> | + | |Step_Title=<translate><!--T:25--> Prepare the board and the bag</translate> |
− | |Step_Content=<translate>Connect one end of the micro USB cable to the computer, the other end to the Arduino Leonardo board. | + | |Step_Content=<translate><!--T:26--> |
+ | Connect one end of the micro USB cable to the computer, the other end to the Arduino Leonardo board. | ||
+ | <!--T:27--> | ||
Connect the positive side of the piezo speaker patch to pin 13 on the Arduino leonardo | Connect the positive side of the piezo speaker patch to pin 13 on the Arduino leonardo | ||
+ | <!--T:28--> | ||
Connect the negative leg of the piezo speaker patch to GND on the board. You can use either of the 3 GND pins available on the board.</translate> | Connect the negative leg of the piezo speaker patch to GND on the board. You can use either of the 3 GND pins available on the board.</translate> | ||
|Step_Picture_00=Musical_e-textile_bag_image.png | |Step_Picture_00=Musical_e-textile_bag_image.png | ||
|Step_Picture_01=Musical_e-textile_bag_t725.png | |Step_Picture_01=Musical_e-textile_bag_t725.png | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
− | |Step_Title=<translate>Set up the board on mBlock</translate> | + | |Step_Title=<translate><!--T:29--> Set up the board on mBlock</translate> |
− | |Step_Content=<translate>Before you can start programming your Arduino, you will need to set it up on [http://www.mblock.cc/software/mblock/mblock3/ mBlock]. | + | |Step_Content=<translate><!--T:30--> |
+ | Before you can start programming your Arduino, you will need to set it up on [http://www.mblock.cc/software/mblock/mblock3/ mBlock]. | ||
+ | <!--T:31--> | ||
Choose the version depending on your operating system (e.g. If you have a MacBook, choose “Mac OS” / if you have Windows 10, choose “Windows 7 and above”). | Choose the version depending on your operating system (e.g. If you have a MacBook, choose “Mac OS” / if you have Windows 10, choose “Windows 7 and above”). | ||
+ | <!--T:32--> | ||
Download mBlock 3, not the latest version (mBlock 5). Download and run the installation files and then open mBlock. | Download mBlock 3, not the latest version (mBlock 5). Download and run the installation files and then open mBlock. | ||
+ | <!--T:33--> | ||
Select the Arduino Leonardo board from the “Boards” menu. | Select the Arduino Leonardo board from the “Boards” menu. | ||
+ | <!--T:34--> | ||
Then connect to your Arduino board (the COM port number varies based upon your computer’s USB plugs - when you choose the correct one to which your Arduino Leonardo is connected to, the ON and TX led lights on the board will turn solid green, and orange respectively).</translate> | Then connect to your Arduino board (the COM port number varies based upon your computer’s USB plugs - when you choose the correct one to which your Arduino Leonardo is connected to, the ON and TX led lights on the board will turn solid green, and orange respectively).</translate> | ||
|Step_Picture_00=Musical_e-textile_bag_mblock.png | |Step_Picture_00=Musical_e-textile_bag_mblock.png | ||
|Step_Picture_01=Musical_e-textile_bag_mblock2.PNG | |Step_Picture_01=Musical_e-textile_bag_mblock2.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
− | |Step_Title=<translate>Coding on mBlock</translate> | + | |Step_Title=<translate><!--T:35--> Coding on mBlock</translate> |
− | |Step_Content=<translate>On mBlock, you will need to create a simple code to have your piezo speaker patch play some notes. | + | |Step_Content=<translate><!--T:36--> |
+ | On mBlock, you will need to create a simple code to have your piezo speaker patch play some notes. | ||
+ | <!--T:37--> | ||
The code should look exactly like this. | The code should look exactly like this. | ||
+ | <!--T:38--> | ||
You need to drag and drop each block from the “Scripts” section on the middle to the blank area on the right hand side. | You need to drag and drop each block from the “Scripts” section on the middle to the blank area on the right hand side. | ||
+ | <!--T:39--> | ||
You will find each block in the following subsections: | You will find each block in the following subsections: | ||
# When <space> key pressed - “Events” subsection | # When <space> key pressed - “Events” subsection | ||
Ligne 61 : | Ligne 78 : | ||
Note the you can change small details to make your own personal code. For example you can change the length of each note or change the notes altogether. | Note the you can change small details to make your own personal code. For example you can change the length of each note or change the notes altogether. | ||
+ | <!--T:40--> | ||
When you are done coding, click on “Upgrade Firmware” in the Connect menu (at which point both the RX and the TX led lights on the board will flash orange). | When you are done coding, click on “Upgrade Firmware” in the Connect menu (at which point both the RX and the TX led lights on the board will flash orange). | ||
+ | <!--T:41--> | ||
Do this only once. You can now modify your code without having to Upgrade the Firmware each time.</translate> | Do this only once. You can now modify your code without having to Upgrade the Firmware each time.</translate> | ||
|Step_Picture_00=Musical_e-textile_bag_mblock3.PNG | |Step_Picture_00=Musical_e-textile_bag_mblock3.PNG | ||
|Step_Picture_01=Musical_e-textile_bag_mblock4.PNG | |Step_Picture_01=Musical_e-textile_bag_mblock4.PNG | ||
}} | }} | ||
− | {{ | + | {{Tuto Step |
− | |Step_Title=<translate>Coding on Arduino IDE</translate> | + | |Step_Title=<translate><!--T:42--> Coding on Arduino IDE</translate> |
− | |Step_Content=<translate>It’s possible that you will encounter problems connecting your Arduino Leonardo to mBlock. In that case, you may need to use Arduino IDE to code and upload the firmware onto your Arduino Leonardo board. | + | |Step_Content=<translate><!--T:43--> |
+ | It’s possible that you will encounter problems connecting your Arduino Leonardo to mBlock. In that case, you may need to use Arduino IDE to code and upload the firmware onto your Arduino Leonardo board. | ||
+ | <!--T:44--> | ||
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. | ||
+ | <!--T:45--> | ||
Launch Arduino IDE select Arduino Leonardo from the Tools menu > Board. | Launch Arduino IDE select Arduino Leonardo from the Tools menu > Board. | ||
+ | <!--T:46--> | ||
Select the correct port from the Tools menu > Port. | Select the correct port from the Tools menu > Port. | ||
+ | <!--T:47--> | ||
Choose the toneMelody or toneMultiple example from File > Examples > 02.Digital > toneMelody / toneMultiple. | Choose the toneMelody or toneMultiple example from File > Examples > 02.Digital > toneMelody / toneMultiple. | ||
+ | <!--T:48--> | ||
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 | 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 | ||
+ | <!--T:49--> | ||
Alternatively, you can use both tools together in order to easily create code (by using the intuitive interface mBlock offers) and then reliably upload it to the board (by using the strong connection to the board that Arduino IDE offers). | Alternatively, you can use both tools together in order to easily create code (by using the intuitive interface mBlock offers) and then reliably upload it to the board (by using the strong connection to the board that Arduino IDE offers). | ||
+ | <!--T:50--> | ||
In mBlock, you simply need to click on Edit > Arduino Mode and when the new pane opens up on the right-hand side, choose Edit with Arduino IDE. | In mBlock, you simply need to click on Edit > Arduino Mode and when the new pane opens up on the right-hand side, choose Edit with Arduino IDE. | ||
+ | <!--T:51--> | ||
Afterwards, simply follow the same steps as before to upload the code to the board and you should be good to go!</translate> | Afterwards, simply follow the same steps as before to upload the code to the board and you should be good to go!</translate> | ||
|Step_Picture_00=Musical_e-textile_bag_arduino.PNG | |Step_Picture_00=Musical_e-textile_bag_arduino.PNG | ||
Ligne 90 : | Ligne 118 : | ||
|Step_Picture_02=Musical_e-textile_bag_arduino3.PNG | |Step_Picture_02=Musical_e-textile_bag_arduino3.PNG | ||
}} | }} | ||
− | {{ {{ | + | {{Tuto Step |
− | |Notes=<translate>This tutorial has been developed as part of the [http://www.digijeunes.com/projets/itech/ i Tech] project, co-financed by the Erasmus + Programme of the European Union.<!--T: | + | |Step_Title=<translate></translate> |
+ | |Step_Content=<translate></translate> | ||
+ | |Step_Picture_00=Musical_e-textile_bag_eu_flag_co_funded_pos_rgb_right.jpg | ||
+ | }} | ||
+ | {{Notes | ||
+ | |Notes=<translate><!--T:22--> | ||
+ | This tutorial has been developed as part of the [http://www.digijeunes.com/projets/itech/ i Tech] project, co-financed by the Erasmus + Programme of the European Union. | ||
+ | |||
+ | <!--T:54--> | ||
+ | Project number: 2017-1-FR02-KA205-012764 | ||
+ | |||
+ | <!--T:52--> | ||
+ | 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). | ||
+ | <!--T:55--> | ||
For more details, contact info@digijeunes.com</translate> | For more details, contact info@digijeunes.com</translate> | ||
}} | }} | ||
− | {{ | + | {{Tuto Status |
|Complete=Published | |Complete=Published | ||
}} | }} |
Auteur Digijeunes | Dernière modification 9/12/2019 par Clementflipo
circuit, e-textile bag, piezo Musical_e-textile_bag_IMG_1452.JPG en none Technique 0
In this tutorial you will learn how to make sounds with a piezo speaker mounted on the e-textile bag.
Connect one end of the micro USB cable to the computer, the other end to the Arduino Leonardo board.
Connect the positive side of the piezo speaker patch to pin 13 on the Arduino leonardo
Connect the negative leg of the piezo speaker patch to GND on the board. You can use either of the 3 GND pins available on the board.
Before you can start programming your Arduino, you will need to set it up on mBlock.
Choose the version depending on your operating system (e.g. If you have a MacBook, choose “Mac OS” / if you have Windows 10, choose “Windows 7 and above”).
Download mBlock 3, not the latest version (mBlock 5). Download and run the installation files and then open mBlock.
Select the Arduino Leonardo board from the “Boards” menu.
Then connect to your Arduino board (the COM port number varies based upon your computer’s USB plugs - when you choose the correct one to which your Arduino Leonardo is connected to, the ON and TX led lights on the board will turn solid green, and orange respectively).
On mBlock, you will need to create a simple code to have your piezo speaker patch play some notes.
The code should look exactly like this.
You need to drag and drop each block from the “Scripts” section on the middle to the blank area on the right hand side.
You will find each block in the following subsections:
Note the you can change small details to make your own personal code. For example you can change the length of each note or change the notes altogether.
When you are done coding, click on “Upgrade Firmware” in the Connect menu (at which point both the RX and the TX led lights on the board will flash orange).
Do this only once. You can now modify your code without having to Upgrade the Firmware each time.
It’s possible that you will encounter problems connecting your Arduino Leonardo to mBlock. In that case, you may need to use Arduino IDE to code and upload the firmware onto your Arduino Leonardo 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.
Launch Arduino IDE select Arduino Leonardo from the Tools menu > Board.
Select the correct port from the Tools menu > Port.
Choose the toneMelody or toneMultiple example from File > Examples > 02.Digital > toneMelody / toneMultiple.
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
Alternatively, you can use both tools together in order to easily create code (by using the intuitive interface mBlock offers) and then reliably upload it to the board (by using the strong connection to the board that Arduino IDE offers).
In mBlock, you simply need to click on Edit > Arduino Mode and when the new pane opens up on the right-hand side, choose Edit with Arduino IDE.
Afterwards, simply follow the same steps as before to upload the code to the board and you should be good to go!
This tutorial has been developed as part of the i Tech 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 :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #