ArduinoStudio

Arduino components: what runs where

Every block in the editor, and whether it runs in the browser, over a USB cable, or only through the desktop app.

You can run a sequence three ways:

  • Browser simulator. Press Play with no board and watch the Virtual Board react.
  • USB direct. Plug an Arduino into Chrome, Edge or a Chromebook, with nothing to install.
  • ArduinoStudio Bridge. The desktop app runs the blocks USB direct cant run yet on a real board.

Where each block runs

BlockSimulatorUSB directBridge
Standard LEDWorksWorksWorks
ServoWorksWorksWorks
ButtonWorksWorksLimited
PhotoresistorWorksWorksWorks
RGB LEDLimitedNot yetWorks
DC motorLimitedNot yetWorks
RelayNot yetNot yetLimited
Piezo buzzerNot yetNot yetWorks
ESCLimitedNot yetNot working yet
SwitchWorksWorksLimited
PotentiometerWorksWorksWorks
Proximity sensorLimitedNot yetWorks
IR motion sensorNot yetNot yetNot working yet
JoystickNot yetNot yetNot working yet
ThermometerNot yetNot yetWorks
HygrometerNot yetNot yetNot working yet
BarometerNot yetNot yetLimited
AccelerometerNot yetNot yetWorks
GyroNot yetNot yetNot working yet
IMUNot yetNot yetLimited
CompassNot yetNot yetLimited

Limited means the block runs but part of what it should do is missing. Not yet means that connection doesnt run the block. Not working yet means it tries but doesnt do the job. For blocks USB direct cant run, the Bridge column comes from reading the Bridges code, not from tests on a real board.

Step-by-step guides

Output

Relay

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Limited

Find it: Components › Motion › Relay. State (stays at “on”) and Type (stays at “NO”) show “Coming soon” in the settings panel.

A relay module lets one Arduino pin switch a separate circuit, such as a lamp or a pump, with a mechanical switch.

Part pinArduino
VCC5V
GNDGND
INPin 4

Run the circuit you want to switch through the COM and NO terminals.

Through the Bridge, a Relay block drives IN LOW. Most hobby relay modules switch on at LOW, so they click on and stay on. A module that switches on at HIGH stays off. Pressing Stop drives IN HIGH again. A project the AI assistant built may store State off, which drives IN HIGH.

Test with nothing on COM and NO first: press Play, listen for the click and watch the modules LED.

Mains safety: never wire 110 V or 230 V yourself. Stay within the relays rated current, use an enclosure, and have a qualified electrician wire anything that plugs into the wall.

See the Bridge and the Piezo buzzer.

Piezo buzzer

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Works

Find it: Components › Motion › Piezo. Mode (stays at “tone”) shows “Coming soon” in the settings panel.

A piezo buzzer makes a tone when its pin is switched on and off quickly. Use a passive buzzer: an active buzzer only beeps at its own built-in pitch.

Part pinArduino
+ (long leg)Pin 8
GND

Add a Piezo block and set Frequency in Hz and Duration in ms. Through the Bridge it plays Frequency for Duration, and the sequence waits Duration plus 0.1 seconds before the next block. For a tune, chain Piezo blocks with different Frequency values: 262 Hz is middle C and 440 Hz is the A above it.

Your computer times the tone over the USB cable, so expect it to sound a little rough.

See the Bridge, or start a tune with a push button.

ESC

  • Simulator Limited
  • USB direct Not yet
  • Bridge Not working yet

Find it: Components › Motion › ESC.

An ESC (electronic speed controller) powers a brushless motor from a battery and takes a servo-style signal from the Arduino.

Not recommended yet. Through the Bridge, any Speed of 40% or more sends the minimum throttle signal, so at the default 50% the motor wont spin. Below 40% the throttle comes out about two and a half times the Speed you set, so 30% asks for about 77% throttle. ArduinoStudio has no ESC calibration step.

Part pinArduino
SignalPin 9
GNDGND

The battery connects to the ESC, never to the Arduinos 5V pin. Remove propellers whenever you test.

For a motor you can drive today, see the DC motor guide.

Inputs

Switch

  • Simulator Works
  • USB direct Works
  • Bridge Limited

Find it: Components › Inputs › Switch.

A switch stays on or off after you flip it, unlike a push button that springs back.

Part pinArduino
One side (middle pin on a slide switch)Pin 3
Other side (one outer pin)GND

You dont need a resistor. In the simulator and over USB direct the internal pull-up is on, so a closed switch reads 0, which means on.

Add a Switch block, then a Check (If =, To On/Off, Choose on), then the blocks that should run while its on. Turn on Infinity Loop, because a Check reads the switch once per pass.

The push button guide walks through the same pattern step by step.

Potentiometer

  • Simulator Works
  • USB direct Works
  • Bridge Works

Find it: Components › Inputs › Potentiometer.

A potentiometer is a knob. Turning it gives an analog reading from 0 to 1023.

Part pinArduino
Outer leg5V
Other outer legGND
Middle leg (wiper)A0

Add a Potentiometer block, then a Check (If >, To %, Choose 50), then your actions, with Infinity Loop on. That means continue only while the knob is past halfway.

Use To % on every connection. Through the Bridge, To Custom compares against a second analog pin named by Choose, not against a number. The default To On/Off never passes for an analog reading.

The knob cant set brightness, angle or speed yet.

The photoresistor guide uses the same analog pattern.

Proximity sensor

  • Simulator Limited
  • USB direct Not yet
  • Bridge Works

Find it: Components › Inputs › Proximity. Controller (stays at “GP2Y0A21YK”) shows “Coming soon” in the settings panel.

A Sharp GP2Y0A21YK infrared distance sensor measures roughly 10 to 80 cm and puts out a voltage the Arduino reads on an analog pin.

Part pinArduino
VCC5V
GNDGND
VoA0

HC-SR04, SRF05 and the other sensors in the Controller list arent supported yet.

Through the Bridge: add Proximity, then a Check directly after it (If <, To Custom, Choose 20), then an action. Choose is in centimetres, and the Bridge waits until the reading is closer than that. After 30 seconds the Bridge stops holding up the sequence, but it keeps listening, so the blocks after the Check can still run later, even more than once with Infinity Loop on. Never put an action straight after Proximity: the Bridge always treats the next block as its Check.

In the simulator the same Check compares the raw slider value, not centimetres. See the Bridge and the DC motor guide.

IR motion sensor

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Not working yet

Find it: Components › Inputs › IR Motion.

A PIR motion sensor such as the HC-SR501 notices a warm body moving in front of it.

Part pinArduino
VCC5V
GNDGND
OUTA0

Give it 30 to 60 seconds to settle after power-up. Its two small dials set sensitivity and how long it holds.

Not working yet. The block has an Analog pin setting, but the Bridge listens on digital pin 0 instead, so a sensor wired to A0 never triggers it. No connection can run IR Motion today.

Switch something bigger with a relay, or start with a standard LED.

Joystick

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Not working yet

Find it: Components › Inputs › Joystick.

A thumb joystick is two knobs in one: one analog reading for left and right, one for up and down.

Part pinArduino
+5V5V
GNDGND
VRxA0
VRyA1

Not working yet. Through the Bridge, the sequence carries on as soon as the joystick sends its first reading, without waiting for the stick to move. It also skips the block right after Joystick.

It cant steer, use the sticks position or read the push switch yet.

For a trigger that runs with nothing installed, use a push button.

Environment sensors

Thermometer

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Works

Find it: Components › Sensors › Thermometer. Controller (stays at “LM35”) shows “Coming soon” in the settings panel.

An LM35 is a three-pin temperature sensor whose output voltage rises 10 mV for every °C.

Part pinArduino
+Vs5V
GNDGND
VoutA0

Only the LM35 works. The blocks Controller stays at LM35, so the Bridge reads any sensor as one: a TMP36 comes out about 50 °C too high, and a DS18B20 needs firmware the Bridge doesnt install.

Through the Bridge: add Thermometer, then a Check (If >, To Custom, Choose 30), then an action. Choose is in °C, so this waits until its warmer than 30 °C. After 30 seconds the Bridge stops holding up the sequence, but it keeps listening, so the blocks after the Check can still run later, even more than once with Infinity Loop on. Set To Custom so Choose takes a number; the default On/Off never triggers. Theres no live temperature display.

Switch a fan with a relay or a DC motor.

Hygrometer

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Not working yet

Find it: Components › Sensors › Hygrometer. Controller (stays at “DHT11”) shows “Coming soon” in the settings panel.

A hygrometer measures relative humidity. Common hobby parts are the DHT11 and DHT22.

Humidity sensors dont work in ArduinoStudio yet. The block stays set to DHT11, which isnt a sensor the Bridge can drive, so the run stops there without a reading. None of the other sensors in its Controller list can be chosen yet either.

Leave it out of projects for now. If you want to react to the room, the thermometer works through the Bridge with an LM35.

Barometer

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Limited

Find it: Components › Sensors › Barometer. Controller (stays at “BMP180”) shows “Coming soon” in the settings panel.

A barometer such as the BMP180 measures air pressure, which also gives a rough altitude.

Part pinArduino
VCCAs the breakout needs (3.3V for a bare BMP180)
GNDGND
SDAA4
SCLA5

Through the Bridge the block takes one reading. Nothing shows the pressure, and no block can act on pressure or altitude yet, so it only tells you the sensor answered.

The Bridge skips the block right after Barometer, so put a placeholder Check there.

Check where each block runs for sensors you can act on today.

Motion sensing

Accelerometer

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Works

Find it: Components › IMU › Accelerometer. Controller (stays at “ADXL345”) and Axis (stays at “z”) show “Coming soon” in the settings panel.

An accelerometer such as the ADXL345 measures tilt and movement as force along three axes, in g.

Part pinArduino
VCC3.3V
GNDGND
SDAA4
SCLA5
CS3.3V

Through the Bridge: add Accelerometer, then a Check (If >, To Custom, Choose 1.5), then an action. It waits until the z axis reads above 1.5 g, then carries on after the Check. After 30 seconds the Bridge stops holding up the sequence, but it keeps listening, so the blocks after the Check can still run later, even more than once with Infinity Loop on.

The blocks own Threshold setting is ignored; the number in the Checks Choose is the one that counts.

The IMU section covers the MPU6050.

Gyro

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Not working yet

Find it: Components › IMU › Gyro. Controller (stays at “ITG3200”) shows “Coming soon” in the settings panel.

A gyro measures how fast something turns, in degrees per second around each of three axes.

The block does nothing useful yet. It stays set to ITG3200, which isnt a sensor the Bridge can drive, so the run stops there without a reading. None of the other sensors in its Controller list can be chosen yet.

Have an MPU6050? The IMU block can talk to it.

IMU

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Limited

Find it: Components › IMU › IMU. Controller (stays at “MPU6050”) shows “Coming soon” in the settings panel.

An IMU combines an accelerometer and a gyro on one board. The block talks to an MPU6050.

Part pinArduino
VCC5V if the breakout has a regulator, otherwise 3.3V
GNDGND
SDAA4
SCLA5

Through the Bridge it takes one combined reading. Nothing shows the values and no block can act on tilt or motion yet, so it only confirms the sensor answers.

The Bridge skips the block right after IMU, so put a placeholder Check there.

To act on tilt today, use the Accelerometer block with an ADXL345.

Compass

  • Simulator Not yet
  • USB direct Not yet
  • Bridge Limited

Find it: Components › IMU › Compass. Controller (stays at “HMC5883L”) shows “Coming soon” in the settings panel.

A compass module such as the HMC5883L senses the Earths magnetic field to find a heading.

Part pinArduino
VCC3.3V
GNDGND
SDAA4
SCLA5

Mount it away from motors, speakers and magnets, which throw the reading off.

Through the Bridge the block takes one heading reading. Nothing shows it and no block can act on direction yet.

The Bridge skips the block right after Compass, so put a placeholder Check there.

Check where each block runs for sensors you can act on today.

See the editor in action with a guided demo, no account or install needed: open the demo