Thingiverse
UV meter
par KORN3L73
1
Téléchargements
1
Likes
0
Makes
My girlfriend got sunburned in a tanning salon because new tubes had been installed in the machine without informing customers. Therefore, I designed and built a measuring device using an Arduino Nano controller and a UV light sensor. The instrument displays the raw measured value and the corresponding UV index on a small OLED screen.
This makes it possible to check the intensity of the tanning bed before starting a session. This is the first version, developed according to her request, and the program is still under development. In the meantime, I am providing the basic source code below.
#include
#include
#include
#include
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
const int uvPin = A0;
// Időzítés
const unsigned long sampleInterval = 500; // 0,5 másodperc
unsigned long lastSampleTime = 0;
// Súlyozott mozgóátlag (2 másodperc = 4 minta)
int samples[4] = {0, 0, 0, 0};
int samp
This makes it possible to check the intensity of the tanning bed before starting a session. This is the first version, developed according to her request, and the program is still under development. In the meantime, I am providing the basic source code below.
#include
#include
#include
#include
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
const int uvPin = A0;
// Időzítés
const unsigned long sampleInterval = 500; // 0,5 másodperc
unsigned long lastSampleTime = 0;
// Súlyozott mozgóátlag (2 másodperc = 4 minta)
int samples[4] = {0, 0, 0, 0};
int samp
Vous avez imprimé ce modèle ? Connectez-vous et partagez votre make !
Connectez-vous pour laisser un commentaire
Se connecterPas encore de commentaires – soyez le premier !