説明
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 AdafruitSSD1306 display(SCREENWIDTH, SCREENHEIGHT, &Wire, OLEDRESET); 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 = 0; bool bufferFilled = false; // Súlyok (régi → új) const int weights[4] = {1, 2, 3, 4}; void setup() { if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { while (true); } // 👋 Bejelentkezési képernyő display.clearDisplay(); display.setTextColor(SSD1306_WHITE); display.setTextSize(1); display.setCursor(0, 0); display.println("Hi"); display.setTextSize(2); display.setCursor(0, 12); display.println("Vanda"); display.display(); delay(2000); } void loop() { unsigned long currentMillis = millis(); // 📥…
About this model
UV meter is a 無料 3D model in the その他 category, shared by the Cults3D community. You can download it for 3D printing and reuse it in your own projects under the terms of its original license.
File formats
- STL — The most common mesh format for 3D printing — ready to slice and print on almost any printer.
The files for this model are hosted on Cults3D. Use the button above to open the original page and download it.