issue86:arduino
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue86:arduino [2014/10/30 15:35] – créée andre_domenech | issue86:arduino [2014/12/21 16:54] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | It’s now time to break out the LCD screen and get some off-computer display going on. | + | **It’s now time to break out the LCD screen and get some off-computer display going on. |
- | I have to be honest and admit that it took me about five tries to get the LCD screen to work properly. The example code in the Arduino IDE explicitly states that the LCD needs only about 6 wires. Rubbish! It requires about 12 of the 16 used as it (obviously) requires power, ground, and at least one wire to a potentiometer (pot) or PWM pin to control the screen brightness. After about two tries I was getting a bit frustrated and ended up just pulling all the wires out and starting again. Fifth time lucky! I finally got a “Hello World!” message and could brighten/ | + | I have to be honest and admit that it took me about five tries to get the LCD screen to work properly. The example code in the Arduino IDE explicitly states that the LCD needs only about 6 wires. Rubbish! It requires about 12 of the 16 used as it (obviously) requires power, ground, and at least one wire to a potentiometer (pot) or PWM pin to control the screen brightness. After about two tries I was getting a bit frustrated and ended up just pulling all the wires out and starting again. Fifth time lucky! I finally got a “Hello World!” message and could brighten/ |
- | Humidity Sensor | + | C'est le moment de découvrir l' |
- | I’d previously tinkered with my humidity sensor. That took a bit of investigating to get some decent code as the code with the sensor kit wouldn’t even compile. I eventually found some code here: http:// | + | Je dois être honnête et admettre qu'il m'a fallu 5 essais avant que l' |
- | Assemble! | + | **Humidity Sensor |
+ | |||
+ | I’d previously tinkered with my humidity sensor. That took a bit of investigating to get some decent code as the code with the sensor kit wouldn’t even compile. I eventually found some code here: http:// | ||
+ | |||
+ | Capteur d' | ||
+ | |||
+ | Avant ça, j' | ||
+ | | ||
+ | |||
+ | **Assemble! | ||
With those two working (independently) it was time to try and combine the code (and parts) into one board, and create a digital thermometer. It was easier than I had expected. I opened the humidity sensor code and simply copied over the LCD include, initialisation line, and included the humidity variables in the lcd.print commands – and voila! | With those two working (independently) it was time to try and combine the code (and parts) into one board, and create a digital thermometer. It was easier than I had expected. I opened the humidity sensor code and simply copied over the LCD include, initialisation line, and included the humidity variables in the lcd.print commands – and voila! | ||
Ligne 16: | Ligne 25: | ||
As you can see, the degrees Centigrade ('C) isn’t displaying quite properly. A kind Redditor messaged me the code shown left (which I haven’t tested as yet). | As you can see, the degrees Centigrade ('C) isn’t displaying quite properly. A kind Redditor messaged me the code shown left (which I haven’t tested as yet). | ||
- | Here is a cool tool that allows you to create your own custom characters: http:// | + | Here is a cool tool that allows you to create your own custom characters: http:// |
+ | |||
+ | Assemblage ! | ||
+ | |||
+ | Avec ces deux fonctions en état de marche (indépendamment), | ||
+ | |||
+ | Mon code (pour votre plaisir) se trouve ici : http:// | ||
+ | |||
+ | Comme vous pouvez le voir, l' | ||
+ | |||
+ | Voici un outil sympa qui vous permet de créer vos propres caractères personnalisés : http:// |
issue86/arduino.1414679706.txt.gz · Dernière modification : 2014/10/30 15:35 de andre_domenech