1. Home
  2. /
  3. Hydruino
  4. /
  5. Servo Sweep

Servo Sweep - Hydruino Typing CST Test

Loading…

Servo Sweep — Hydruino Code

Moves a servo connected to pin 9 back and forth.

#include <Hydruino.h>
#include <Servo.h>

Servo myServo

void setup() {
	myServo.attach(9)
}

void loop() {
	for(int pos=0; pos<=180; pos++) {
		myServo.write(pos)
		delay(15)
	}
	for(int pos=180; pos>=0; pos--) {
		myServo.write(pos)
		delay(15)
	}
}

Hydruino Language Guide

Hydruino is an educational platform combining Arduino-compatible microcontroller programming with hands-on hydraulic and robotic systems. It allows learners to control actuators, sensors, and fluidic systems through simple programming interfaces.

Primary Use Cases

  • ▸Teaching Arduino programming in a hands-on manner
  • ▸Building hydraulic robotic models and experiments
  • ▸Integrating electronics with fluidic/mechanical systems
  • ▸STEM classroom projects and competitions
  • ▸Exploring real-world automation concepts safely

Notable Features

  • ▸Arduino-compatible microcontroller integration
  • ▸Control of hydraulic pumps, valves, and actuators
  • ▸Sensor input handling (pressure, flow, proximity, etc.)
  • ▸Visual or text-based coding interface for programming
  • ▸Modular design for robotics and automation projects

Origin & Creator

Hydruino was developed by educational tech enthusiasts to merge Arduino microcontroller programming with hydraulic/mechanical experimentation for STEM education.

Industrial Note

Mainly used in STEM education, robotics clubs, and maker workshops. Rarely used in industrial hydraulic automation outside educational prototyping.

More Hydruino Typing Exercises

Hello World LED Blink with HydruinoButton Press LED ControlPWM LED Brightness FadeTraffic Light SimulationBuzzer Tone ExampleButton Controlled BuzzerPotentiometer LED BrightnessRGB LED CycleMorse Code with LED

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher