MakerWorld
Biology
Ver Modelo
UV meter
0
Descargas
0
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 sampleIndex
¿Has impreso este modelo? Inicia sesión y comparte tu make.
Inicia sesión para dejar un comentario
Iniciar sesiónAún no hay comentarios – ¡sé el primero!