Compare commits
3 Commits
b9718589ae
...
55ef22bd17
Author | SHA1 | Date | |
---|---|---|---|
55ef22bd17 | |||
bcddc48b77 | |||
0cd610da2e |
@ -1,16 +0,0 @@
|
|||||||
/* Cette fonction est exécutée au démarrage du microcontrolleur */
|
|
||||||
void setup() {
|
|
||||||
/* La led embarquée est définie comme une sortie du microcontrolleur */
|
|
||||||
pinMode(LED_BUILTIN, OUTPUT);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Cette fonction est appellée après la fonction « setup ».
|
|
||||||
* Quand elle se termine, elle est à nouveau appellée, et ce à l’infini.
|
|
||||||
*/
|
|
||||||
void loop() {
|
|
||||||
/* On fait clignoter la led pendant une seconde */
|
|
||||||
digitalWrite(LED_BUILTIN, HIGH);
|
|
||||||
delay(500);
|
|
||||||
digitalWrite(LED_BUILTIN, LOW);
|
|
||||||
delay(500);
|
|
||||||
}
|
|
BIN
projets/projet_biere/circuit.png
Normal file
BIN
projets/projet_biere/circuit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
36
projets/projet_biere/sujet.tex
Normal file
36
projets/projet_biere/sujet.tex
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\documentclass[11pt,a4paper]{../../template_cours}
|
||||||
|
\usepackage{listings}
|
||||||
|
|
||||||
|
\usepackage{minted}
|
||||||
|
|
||||||
|
\title{Projet pluridisciplinaire — Le brassage de la bière}
|
||||||
|
\author{Adrian Amaglio}
|
||||||
|
\def\thesequence{Données structurées, web}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
Durée : 3h
|
||||||
|
|
||||||
|
%
|
||||||
|
% https://pimylifeup.com/raspberry-pi-temperature-sensor/
|
||||||
|
\section{Microcontrolleur programmable}
|
||||||
|
Nous travaillerons sur un raspberry pi pour récupérer les valeurs des capteurs.
|
||||||
|
|
||||||
|
\begin{exercice}
|
||||||
|
Connectez le capteur de température et la résistance au raspberry pi comme sur le shéma suivant :
|
||||||
|
\includegraphics[width=\textwidth]{circuit.png}
|
||||||
|
\end{exercice}
|
||||||
|
|
||||||
|
\begin{exercice}
|
||||||
|
Récupérez le fichier python à cette adresse : \url{https://git.jean-cloud.net/adrian/cours-snt/raw/branch/master/projet_bière/main.py}
|
||||||
|
\\
|
||||||
|
et exécutez-le sur votre raspberry pi.
|
||||||
|
Vérifiez qu’il affiche bien la valeur de la température chaque seconde
|
||||||
|
\end{exercice}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Mesure de la température}
|
||||||
|
% En vrai on peut aussi mesurer la pression et le pH
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
@ -21,6 +21,7 @@ TODO:
|
|||||||
To bundle everything in one place.
|
To bundle everything in one place.
|
||||||
This docker image is not a pretty one, we should split those services into several containers.
|
This docker image is not a pretty one, we should split those services into several containers.
|
||||||
But that would be harder to run, so forget that.
|
But that would be harder to run, so forget that.
|
||||||
|
Also, as this is poorly tested, the docker system make sure the environment is stable.
|
||||||
|
|
||||||
# Instructions
|
# Instructions
|
||||||
## Install docker
|
## Install docker
|
||||||
@ -30,7 +31,7 @@ CF the interweb TODO
|
|||||||
```
|
```
|
||||||
docker build . -t pythonsandbox
|
docker build . -t pythonsandbox
|
||||||
```
|
```
|
||||||
or pull the image
|
or pull it
|
||||||
```
|
```
|
||||||
TODO: send image to hub
|
TODO: send image to hub
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user