senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. Photosynthese_mitSD

Photosynthese_mitSD

Sensors
WIFI
ESPNOW
Ethernet
SD
LED
LED Matrix
Display
openSenseMap
LoRa
Aktivierung
Lora Message
TTN Mapper
Cayenne LPP
Bluetooth
Phyphox
Webserver
MQTT
Logic
Loops
Text
Time
Time control
RTC
NTP
Math
Audio
Variables
Functions
Advanced
Serial
Input/Output
Motors
Watchdog
Zeit in s;Beleuchtungsstaerke in lux;Temperatur in °C;CO2-Konzentration in ppmcreate text with Write Data to SD-Cardlinebreak✓Open a file from SD-CardCO2.txt ▾Create file on SD-CardfilenameCO2.txt ▾Initialize Displaycurrent elapsed Time (milliseconds)1800000≤ ▾Zeit in s: current elapsed Time (milliseconds)1000÷ ▾  Beleuchtungsstaerke in lux: Light Visible + UVValue:Illuminance in Lux ▾  Temperatur in °C: CO2 Sensor (Sensirion SCD30)Value:Temperature in °C ▾  CO2-Konzentration in ppm: CO2 Sensor (Sensirion SCD30)Value:CO2 in ppm ▾create text withShow Text/NumberFont colorWhite ▾Fontsize1x-Coordinates0y-Coordinates10Valuecurrent elapsed Time (milliseconds)1000÷ ▾;Light Visible + UVValue:Illuminance in Lux ▾;CO2 Sensor (Sensirion SCD30)Value:Temperature in °C ▾;CO2 Sensor (Sensirion SCD30)Value:CO2 in ppm ▾create text with Write Data to SD-Cardlinebreak✓Open a file from SD-CardCO2.txt ▾Print on displayClear DisplayInterval: Interval10000msMessung abgeschlossen.Show Text/NumberFont colorWhite ▾Fontsize2x-Coordinates0y-Coordinates0Valuewait forever (end program)Print on displayClear DisplayifdoelseArduino run first:Arduino loop forever:
1113000100500100500100TitleUnitTitleUnit01505050150000000latitudelongitudealtitudepDOPfixType10110110001000000000101197011100110022010090
{ }
Arduino Source Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by senseBox Blockly on Fri May 30 2025 10:39:25 GMT+0000 (Coordinated Universal Time)
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h> // http://librarymanager/All#Adafruit_GFX_Library
#include <Adafruit_SSD1306.h> // http://librarymanager/All#Adafruit_SSD1306
#include <SD.h>
#include <LTR329.h>
#include <SparkFun_SCD30_Arduino_Library.h> // http://librarymanager/All#SparkFun_SCD30_Arduino_Library
const long intervalInterval = 10000;
long time_startInterval = 0;
long time_actualInterval = 0;
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
File CO2;
bool lightsensortype = 0; //0 for tsl - 1 for ltr
//settings for LTR sensor
LTR329 LTR;
unsigned char gain = 1;
unsigned char integrationTime = 0;
unsigned char measurementRate = 3;
<>
XML Blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<xml xmlns="https://developers.google.com/blockly/xml" board="null">
  <block type="arduino_functions" id="QWW|$jB8+*EL;}|#uA" deletable="false" x="27" y="16">
    <statement name="SETUP_FUNC">
      <block type="sensebox_display_beginDisplay" id="XmtbR5f-#7[fS}b,-#}G">
        <next>
          <block type="sensebox_sd_create_file" id="[xQaixZu=FNLP6Z$NLG@">
            <field name="Filename">CO2</field>
            <field name="extension">txt</field>
            <next>
              <block type="sensebox_sd_open_file" id="f#+$Gpt}.beyBZ@ayWrK">
                <field name="Filename">CO2</field>
                <field name="extension">txt</field>
                <statement name="SD">
                  <block type="sensebox_sd_write_file" id="XnG`;2%mlzJb#big^@Gk">
                    <field name="linebreak">TRUE</field>
                    <value name="DATA">
                      <block type="text_join" id="xlZnU@J2p.HN)/bU=4Sa" inline="false">
                        <mutation items="7"></mutation>
                        <value name="ADD0">
                          <block type="text" id="P^|wn;%0ch0e];y7;QR}">
                            <field name="TEXT">Zeit in s</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="text" id="*2R[e{G#EK;6QIG/z+]@">
                            <field name="TEXT">;</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="e/R@+ksZ`k:_F`O|v)g2">
                            <field name="TEXT">Beleuchtungsstaerke in lux</field>

Information about the Block

Select a Block to show the hint

This website uses cookies to enhance the user experience.
Impressum

|

Privacy

|

News

|

sensebox.de
Menu
    Blockly
    Tutorials
    Gallery
    Code Editor

    Login
    FAQ
    Settings

Which board are you using?

senseBox MCU

senseBox MCU-S2

senseBox MCU:mini

Here you can access the old blockly Version for the Arduino UNO or the senseBox MCU