issue108:python
                Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| issue108:python [2016/04/30 18:13] – créée auntiee | issue108:python [2016/05/12 15:00] (Version actuelle) – andre_domenech | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | Welcome back. This month will be a hodgepodge of information. The main reason is that there are some important advances in tech and you will need time to get some parts for the next few articles. | + | **Welcome back. This month will be a hodgepodge of information. The main reason is that there are some important advances in tech and you will need time to get some parts for the next few articles. | 
| In the near future, we will be adding the Arduino into our toolbox. I suggest starting off with the UNO or a UNO clone which can be purchased for less than $30 US (£22). We will also need some sensors to really get going. While these are optional and you can just read the article, building these projects are more than half the fun. So, with that said, here is a list of parts… | In the near future, we will be adding the Arduino into our toolbox. I suggest starting off with the UNO or a UNO clone which can be purchased for less than $30 US (£22). We will also need some sensors to really get going. While these are optional and you can just read the article, building these projects are more than half the fun. So, with that said, here is a list of parts… | ||
| Ligne 13: | Ligne 13: | ||
| • Toy/Hobby motor 6 VDC | • Toy/Hobby motor 6 VDC | ||
| • L293D or SN754410 Motor Control Chip | • L293D or SN754410 Motor Control Chip | ||
| - | • 4 AA Battery Holder and Batteries. | + | • 4 AA Battery Holder and Batteries.** | 
| - | This will pretty much get you going for the next few months. Of course, you could get more and explore on your own. Most everything on the list is less than $10 US. If you shop the internet diligently, you can get very good prices on everything really inexpensively. We’ll leave this for now, but for next time, you will need the DS18B20 temperature sensor and a 4.7K resistor as well as a breadboard and jumpers if you don’t already have one. | + | Bienvenue. Je vais vous donner plein d' | 
| + | |||
| + | Dans un futur proche, nous ajouterons l' | ||
| + | |||
| + | • Un capteur digital de température One Wire – DS18B20. | ||
| + | |||
| + | • Un capteur simple de température et d' | ||
| + | |||
| + | • Un afficheur LCD 16x2. | ||
| + | |||
| + | • Des résistances de 4,7 et 10 kΩ 0,25W (3 ou 4 de chaque). | ||
| + | |||
| + | • Une grande plaque d' | ||
| + | |||
| + | • Des potentiomètres de 10 kΩ (2 ou 3). | ||
| + | |||
| + | • Des connecteurs mâles-femelles (du Pi vers la plaque d' | ||
| + | |||
| + | • Des connecteurs mâles-mâles (de l' | ||
| + | |||
| + | • Des connecteurs mâles-mâles (de la plaque d' | ||
| + | |||
| + | • Un moteur de jouet ou de modélisme 6V CC. | ||
| + | |||
| + | • Un circuit de contrôle de moteurs L293D ou SN754410. | ||
| + | |||
| + | • Un support pour 4 piles AA et les piles correspondantes. | ||
| + | |||
| + | **This will pretty much get you going for the next few months. Of course, you could get more and explore on your own. Most everything on the list is less than $10 US. If you shop the internet diligently, you can get very good prices on everything really inexpensively. We’ll leave this for now, but for next time, you will need the DS18B20 temperature sensor and a 4.7K resistor as well as a breadboard and jumpers if you don’t already have one. | ||
| Recently, there has been a great stir on the Internet about the Amazon Echo / Alexa device software being ported to run on the Raspberry Pi. The biggest reason for the excitement is that currently the Echo / Alexa is available only in the US and many people in the UK and other countries have been waiting, not so patiently, for it. This gives them a chance to enjoy the technology. | Recently, there has been a great stir on the Internet about the Amazon Echo / Alexa device software being ported to run on the Raspberry Pi. The biggest reason for the excitement is that currently the Echo / Alexa is available only in the US and many people in the UK and other countries have been waiting, not so patiently, for it. This gives them a chance to enjoy the technology. | ||
| - | There are at least two projects currently working on getting Echo on the Pi. The first uses Java. You can find the code and instructions at https:// | + | There are at least two projects currently working on getting Echo on the Pi. The first uses Java. You can find the code and instructions at https:// | 
| - | The second project uses Python and is located at https:// | + | Cela vous suffira fort bien pour les prochains mois. Bien sûr, vous pouvez en acquérir plus et faire vos propres découvertes. La plupart des éléments de cette liste coûtent moins de 10 $. Si vous faites vos achats sur Internet avec soin, vous pouvez tout obtenir à très bon prix. Laissons cela pour le moment, mais, pour la prochaine fois, vous aurez besoin du capteur de température DS18B20 et d'une résistance de 4,7 kΩ ainsi que d'une plaque d' | 
| - | If you decide to try either projects, PLEASE use a blank SD card and not one that has something you want to keep. Load the Raspbian or NOOBS OS from scratch. That way, if something goes wrong, you can just reload the OS and start fresh. | + | Il y a eu beaucoup de bruit sur Internet récemment disant que le logiciel Alexa de l' | 
| - | There are some things you need to know before you attempt to do this project. All of the information below pertains to the java version, but some can be considered to apply to both projects… | + | Il y a au moins deux projets qui travaillent à porter Echo sur le Pi. Le premier utilise Java. Les codes et les instructions se trouvent à : https:// | 
| + | |||
| + | **The second project uses Python and is located at https:// | ||
| + | |||
| + | If you decide to try either projects, PLEASE use a blank SD card and not one that has something you want to keep. Load the Raspbian or NOOBS OS from scratch. That way, if something goes wrong, you can just reload the OS and start fresh.** | ||
| + | |||
| + | Le second projet utilise Python et se trouve à : https:// | ||
| + | |||
| + | Si vous décidez d' | ||
| + | |||
| + | **There are some things you need to know before you attempt to do this project. All of the information below pertains to the java version, but some can be considered to apply to both projects… | ||
| • You need to have a USB microphone. Headphone based microphones have issues. I’m using a Logitech webcam with built in microphone and it works well. | • You need to have a USB microphone. Headphone based microphones have issues. I’m using a Logitech webcam with built in microphone and it works well. | ||
| • You will also need a set of speakers or headphones attached to the audio out jack. Many people have had lots of issues with bluetooth audio devices. | • You will also need a set of speakers or headphones attached to the audio out jack. Many people have had lots of issues with bluetooth audio devices. | ||
| Ligne 31: | Ligne 69: | ||
| • Some of the features that the actual Echo / Alexa have don’t currently work. | • Some of the features that the actual Echo / Alexa have don’t currently work. | ||
| • Things like location, weather, traffic, work correctly only in the USA. In any other country, you will get information for Seattle, Washington, USA | • Things like location, weather, traffic, work correctly only in the USA. In any other country, you will get information for Seattle, Washington, USA | ||
| - | • The only supported language currently is English. According to what I was able to find out from my research is that, once the device is being sold in a given country, they will add support for that country' | + | • The only supported language currently is English. According to what I was able to find out from my research is that, once the device is being sold in a given country, they will add support for that country' | 
| - | • When you start the app, you have to run two processes. The second one will create a GUI box which has a long URL string that you must copy and paste into a web browser. Once that gets to Amazon properly, then you must click the [OK] button on the screen. You will be presented with a screen that has a [Start Listening] button and some multimedia buttons. To “wake” Alexa up, you click the ‘start listening’ button and, after you hear the “ding”, speak your question or command. When finished, you can click that button again to have it stop listening and process your command, or you can let it timeout (about 5 seconds) then it will start processing. Many people are working on headless operation (no monitor) and a physical button connected to a GPIO pin, and some are actually working on the “wake” word option. You can find more information in the issues section. | + | |
| + | Il y a un certain nombre de choses que vous devez savoir avant de commencer ce projet. Toutes les informations ci-dessous concernent la version java mais certaines peuvent s' | ||
| + | |||
| + | • Vous avez besoin d'un microphone USB. Les micros de casques posent problème. J' | ||
| + | |||
| + | • Vous aurez également besoin d'un ensemble de hauts-parleurs - ou un casque - reliés à la prise jack de sortie audio. De nombreuses personnes rencontrent des difficultés avec des équipements audio bluetooth. | ||
| + | |||
| + | • Vous aurez besoin d'un bouton-poussoir pour que l' | ||
| + | |||
| + | • Certaines fonctions de l' | ||
| + | |||
| + | • Des choses comme les lieux, le temps, la circulation ne fonctionnent que pour les USA. Dans tout autre pays, vous récupérerez les informations de Seattle, État de Washington, USA. | ||
| + | |||
| + | • Le seul langage supporté à l' | ||
| + | |||
| + | **• When you start the app, you have to run two processes. The second one will create a GUI box which has a long URL string that you must copy and paste into a web browser. Once that gets to Amazon properly, then you must click the [OK] button on the screen. You will be presented with a screen that has a [Start Listening] button and some multimedia buttons. To “wake” Alexa up, you click the ‘start listening’ button and, after you hear the “ding”, speak your question or command. When finished, you can click that button again to have it stop listening and process your command, or you can let it timeout (about 5 seconds) then it will start processing. Many people are working on headless operation (no monitor) and a physical button connected to a GPIO pin, and some are actually working on the “wake” word option. You can find more information in the issues section. | ||
| • You should (read MUST) use a decent quality SD card. My suggestion is to get nothing less than a Class 10 card that is no smaller than 16 Gig. | • You should (read MUST) use a decent quality SD card. My suggestion is to get nothing less than a Class 10 card that is no smaller than 16 Gig. | ||
| • As soon as you boot into the new operating system for the first time, run a ‘sudo raspi-config’. Be sure to enlarge the file system to take in the entire card. Be sure to turn SSH on. You will need to reboot here. Next you should then do a ‘sudo apt-get update’ and then a ‘sudo apt-get dist-upgrade’ so you are at the latest software revisions. | • As soon as you boot into the new operating system for the first time, run a ‘sudo raspi-config’. Be sure to enlarge the file system to take in the entire card. Be sure to turn SSH on. You will need to reboot here. Next you should then do a ‘sudo apt-get update’ and then a ‘sudo apt-get dist-upgrade’ so you are at the latest software revisions. | ||
| Ligne 38: | Ligne 91: | ||
| • If you have any problems, check the issues section. More than likely someone has already had the same problem and there might be a fix. | • If you have any problems, check the issues section. More than likely someone has already had the same problem and there might be a fix. | ||
| • Print the web page with the instructions and work off the print. This way, you can check off those steps you have already completed. Especially helpful if you get interrupted. | • Print the web page with the instructions and work off the print. This way, you can check off those steps you have already completed. Especially helpful if you get interrupted. | ||
| - | • You can find more information, | + | • You can find more information, | 
| + | |||
| + | • Quand vous démarrez l' | ||
| + | |||
| + | • Vous devez (ABSOLUMENT) utiliser une carte SD de bonne qualité. Je suggère d' | ||
| + | |||
| + | • Dès que vous démarrerez sur le nouvel OS pour la première fois, lancez un sudo raspi-config. Assurez-vous bien d' | ||
| + | |||
| + | • Quelques étapes vous demandent d' | ||
| + | |||
| + | • Si vous rencontrez quelque souci que ce soit, regardez la section des problèmes. Il est fort probable que quelqu' | ||
| + | |||
| + | • Imprimez la page Internet comportant les instructions et travaillez à partir de là. De cette façon vous pourrez cocher les tâches effectuées. Particulièrement utile si vous êtes interrompu. | ||
| + | |||
| + | • Vous trouverez plus d' | ||
| + | |||
| + | **I think that’s enough for this month, but next month, we will turn our RPi into a thermometer. The neat thing about using the DS18B20 sensor is that you have more of them on a single line. This way, you could use one in the living room, one outside, etc. We’ll use these sensors later on with the Arduino and be able to use the arduino as a remote device so we don’t have to try to run a long cable and change the resistance to a point that it won’t work. | ||
| + | |||
| + | Until next month, enjoy checking out the Alexa project, and, if you try it / them, hope you have success.** | ||
| - | I think that’s enough for this month, but next month, we will turn our RPi into a thermometer. The neat thing about using the DS18B20 | + | Je pense que cela suffit pour ce mois-ci ; le mois prochain, nous transformerons notre RPi en thermomètre. Une des particularités intéressantes du capteur | 
| - | Until next month, enjoy checking out the Alexa project, and, if you try it / them, hope you have success. | + | Jusqu' | 
issue108/python.1462032800.txt.gz · Dernière modification : 2016/04/30 18:13 de auntiee
                
                