Compare commits

...

3 Commits

Author SHA1 Message Date
55ef22bd17 ssh 2021-02-11 15:08:34 +01:00
bcddc48b77 🔥 2021-02-11 15:08:22 +01:00
0cd610da2e bière 2021-02-11 15:07:45 +01:00
5 changed files with 39 additions and 18 deletions

View File

@ -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 à linfini.
*/
void loop() {
/* On fait clignoter la led pendant une seconde */
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View 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 quil 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}

View File

@ -21,6 +21,7 @@ TODO:
To bundle everything in one place.
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.
Also, as this is poorly tested, the docker system make sure the environment is stable.
# Instructions
## Install docker
@ -30,7 +31,7 @@ CF the interweb TODO
```
docker build . -t pythonsandbox
```
or pull the image
or pull it
```
TODO: send image to hub
```