Digital ChallengeWorkshop · Arduino × Processing
Workshop ed.Erasmus+ · High school · 2026

Five labs.
One serial
line.

Wire a sensor. Stream a number. Draw it. A Digital Challenge workshop that treats Arduino and Processing as one instrument.

Labs
5
Exercises
28
Quiz Qs
27
Benches
7
Live contract9600 8N1
USB serial · 9600 8N1
24.5,61↵
temp
24.5
hum
61

Every lab in this workshop is the same handshake: Arduino prints a line, Processing splits it, the screen becomes an instrument.

analogRead()/serialEvent()/map()/pulseIn()/Servo.write()/split()/Ohm’s law/Voltage dividers/Polar plots/Hysteresis/CSV/Calibration/analogRead()/serialEvent()/map()/pulseIn()/Servo.write()/split()/Ohm’s law/Voltage dividers/Polar plots/Hysteresis/CSV/Calibration/
Curriculum

The five benches

Climate, light, distance, resistance, soil. Each lab is a dossier: theory, wiring from the handbook, cleaned firmware, exercises, quiz.

All exercises
From the handbook

Circuit plates

Every figure is lifted from Workshop_Tutorial_Arduino_with_Processing_Digital_Chalange.docx — the same photos students see on paper.

DHT11 climate
DHT11 climateL01
LDR divider
LDR dividerL02
HC-SR04 sonar
HC-SR04 sonarL03
SG90 servo
SG90 servoL03
Ohm meter
Ohm meterL04
Soil probe
Soil probeL05
How to run a lesson

Forty-five minutes, four moves.

  1. 01
    Wire

    Build the circuit from the plate. Trust the pin table if a figure is incomplete.

  2. 02
    Print

    Open Serial Monitor. Confirm the contract (one line, numbers, newline).

  3. 03
    Draw

    Close the Monitor. Run Processing. Change the COM index if the list lies.

  4. 04
    Prove

    Do two exercises and the quiz. Mark them done — progress stays in this browser.

Corrections vs the original file
Lab 01 · Wiring figure

The original Tinkercad figure shows the DHT11 floating above the board — DATA is not drawn to pin 2.

Follow the pin table: VCC→5V, GND→GND, DATA→D2. Use a 10 kΩ pull-up on a bare 3-pin sensor.

Lab 01 · Processing

The original sketch used HTML entities (`'`) and read serial inside `draw()`.

Use a real newline character and `serialEvent()` with `bufferUntil('\n')`.

Lab 03 · Servo sweep

Blocking `for` loops meant STOP was ignored until a full 0–180–0 sweep finished.

One `servo.write()` per `loop()`, check serial every step.

Lab 03 · pulseIn

`pulseIn()` with no timeout can freeze for about 1 s when there is no echo.

Always pass a timeout, e.g. `pulseIn(echoPin, HIGH, 30000)`.

Lab 04 · Formula

The handbook text used two opposite Ohm-meter formulas. The diagram labels unknown on the 5 V side.

R_x = R_known × (V_in / V_A0 − 1). Code, wiring table and figure now match.

Lab 05 · Sensor type

The text says “capacitive v1.2”; the figure shows a two-prong resistive probe.

Either sensor works on A0. Capacitive probes last longer in wet soil; resistive probes rust. Calibrate dry / damp / wet for *your* probe.

Consortium
Cirkuliranje
Matematička gimnazija
Liceul Teoretic „Grigore Moisil”
Partner school
Asociația One Source