senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. Messung der Wassertemperatur

Messung der Wassertemperatur

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
TimestampChannel1 â–¾Create GraphTemperaturUnit x-axissUnit y-axisCLabel x-axisZeitLabel y-axisTemperaturstyleLine â–¾x-axis valuey-axis valueCreate experimentTitleWassertemperaturDescriptionMesswerte des WasserthermometersWith graphs:Initialise Phyphox device with name:'Dein Wunschname'Water TemperaturePort:A â–¾Index:0 â–¾send to channel:1 â–¾Send valuesInterval: Intervall2000msArduino 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 Wed May 28 2025 16:45:09 GMT+0000 (Coordinated Universal Time)
#include <phyphoxBle.h>
#include <OneWire.h> // http://librarymanager/All#OneWire
#include <DallasTemperature.h> // http://librarymanager/All#DallasTemperature
const long intervalIntervall = 2000;
long time_startIntervall = 0;
long time_actualIntervall = 0;
#define ONE_WIRE_BUS 1
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float getWaterTemp(int index){
  sensors.requestTemperatures();
  return sensors.getTempCByIndex(index);
}
void setup() {
  sensors.begin();
  PhyphoxBLE::start("'Dein Wunschname'");
  PhyphoxBleExperiment experiment;
  experiment.setTitle("Wassertemperatur");
  experiment.setCategory("senseBox Experimente");
<>
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_phyphox_init" id="gXnrf@@(Ma_*_}jl$GBt">
        <field name="devicename">'Dein Wunschname'</field>
        <next>
          <block type="sensebox_phyphox_experiment" id="u^NjD#rIkuzd$5Fz8w;l">
            <field name="title">Wassertemperatur</field>
            <field name="description">Messwerte des Wasserthermometers</field>
            <statement name="view">
              <block type="sensebox_phyphox_graph" id="a4nr%_X3ZwAuqLBo56@m">
                <field name="label">Temperatur</field>
                <field name="unitx">s</field>
                <field name="unity">C</field>
                <field name="labelx">Zeit</field>
                <field name="labely">Temperatur</field>
                <field name="style">line</field>
                <value name="channel0">
                  <block type="sensebox_phyphox_timestamp" id="cO6S!);g|%oAMXYsmm}v"></block>
                </value>
                <value name="channel1">
                  <block type="sensebox_phyphox_channel" id="=rF@WvaU+~W1feO}GSh*">
                    <field name="channel">1</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>

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