96 lines
2 KiB
Markdown
96 lines
2 KiB
Markdown
# THE CUP
|
|
|
|
Le micro-controller qui collecte des infos depuis une carte rfid et qui l'envoie à un serveur
|
|
|
|
## INSTALL
|
|
|
|
Adafruit Huzzah Feather ESP32
|
|
|
|
|
|
```
|
|
sudo usermod -a -G uucp <username>
|
|
reboot
|
|
```
|
|
|
|
|
|
# Adapter à ESP32 C6
|
|
Tools -> Board Manager -> Adafruit Huzzah Feather ESP8266
|
|
|
|
Pour serial port, indiquer 115200 baud
|
|
|
|
|
|
1- Install Arduino core for ESP8266 WiFi chip
|
|
|
|
Avec git version pour corriger le bug https://github.com/esp8266/Arduino/pull/9034
|
|
|
|
Instructions : https://arduino-esp8266.readthedocs.io/en/latest/installing.html#using-git-version
|
|
Installer dans le répertoire sketchbook (par defaut ~/Arduino)
|
|
|
|
2- Install libraries
|
|
|
|
Edit - Include Library - Manage Libraries
|
|
WifiManager
|
|
|
|
---
|
|
|
|
Install board esp32
|
|
|
|
# Composants utilisés
|
|
|
|
Lipo ...
|
|
|
|
[Led 5mm-4pin-YB-Cathode](https://fr.aliexpress.com/item/1005006151369157.html?spm=a2g0o.order_list.order_list_main.29.7a3f5e5bWRmuK8&gatewayAdapt=glo2fra)
|
|
Voltage : 3V
|
|
Max forward current : 20mA
|
|
Max forward voltage : 3.2V
|
|
|
|
Question à poser à Jonathan
|
|
|
|
- en sortie de mon pin, j'ai 3.3V
|
|
ma led a un max forward current à 20mA
|
|
je compte mettre une resistance de U=RI R = U/I soit 3.3/0.020 = 165ohms
|
|
pour mesurer l'intensité que j'ai juste avant la led, je pose où mes sondes ?
|
|
|
|
https://ledcalculator.org/fr/?power=3.3&ledforward=3.1&ledcurrentrating=10&numberofleds=1&output=wiring
|
|
|
|
|
|
[LED RGB](https://fr.aliexpress.com/item/1005006151369157.html?spm=a2g0o.order_list.order_list_main.29.7a3f5e5bWRmuK8&gatewayAdapt=glo2fra#nav-specification)
|
|
Red : 2.1V 200ohm 6mA trouver entre 200 et 300ohm
|
|
Blue : 3.1V
|
|
Green: 3.1V
|
|
|
|
# Upload
|
|
|
|
Entrer en bootload mode :
|
|
Presser bouton BOOT, puis reset, puis relacher reset, puis relacher button
|
|
ne plus alimenter le rfid ou alors via 3.3V pin
|
|
upload depuis arduino ide
|
|
si besoin changer le cablage
|
|
appuyer sur reset
|
|
|
|
[RFID-RC1522]
|
|
3V3
|
|
RST
|
|
GND
|
|
IRQ
|
|
MISO
|
|
MOSI
|
|
SCK
|
|
SDA (SS)
|
|
|
|
Livebox-7E90
|
|
6NzLbLVNEQnbCq3HCh
|
|
|
|
|
|
# A acheter
|
|
|
|
- fil
|
|
- esp32
|
|
- cartes
|
|
- sockets femelles
|
|
|
|
|
|
|
|
21h39 debut batterie pleine
|
|
13:42 4.102V 89.6%
|
|
16h -> -0.1 V
|