Compare commits
No commits in common. "55ef22bd171374c3b5288394f9cbe08295aec05e" and "b9718589aed96029d2b90b1946c610d94ed9670b" have entirely different histories.
55ef22bd17
...
b9718589ae
16
projet_bière/test_arduino.c
Normal file
16
projet_bière/test_arduino.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/* 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);
|
||||||
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 46 KiB |
@ -1,36 +0,0 @@
|
|||||||
\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}
|
|
@ -20,8 +20,7 @@ TODO:
|
|||||||
## A docker image
|
## A docker image
|
||||||
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
|
||||||
@ -31,7 +30,7 @@ CF the interweb TODO
|
|||||||
```
|
```
|
||||||
docker build . -t pythonsandbox
|
docker build . -t pythonsandbox
|
||||||
```
|
```
|
||||||
or pull it
|
or pull the image
|
||||||
```
|
```
|
||||||
TODO: send image to hub
|
TODO: send image to hub
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user