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 can’t run yet on a real board.
- Standard LED
- Servo
- Button
- Photoresistor
- RGB LED
- DC motor
- Relay
- Piezo buzzer
- ESC
- Switch
- Potentiometer
- Proximity sensor
- IR motion sensor
- Joystick
- Thermometer
- Hygrometer
- Barometer
- Accelerometer
- Gyro
- IMU
- Compass
Where each block runs
| Block | Simulator | USB direct | Bridge |
|---|---|---|---|
| Standard LED | Works | Works | Works |
| Servo | Works | Works | Works |
| Button | Works | Works | Limited |
| Photoresistor | Works | Works | Works |
| RGB LED | Limited | Not yet | Works |
| DC motor | Limited | Not yet | Works |
| Relay | Not yet | Not yet | Limited |
| Piezo buzzer | Not yet | Not yet | Works |
| ESC | Limited | Not yet | Not working yet |
| Switch | Works | Works | Limited |
| Potentiometer | Works | Works | Works |
| Proximity sensor | Limited | Not yet | Works |
| IR motion sensor | Not yet | Not yet | Not working yet |
| Joystick | Not yet | Not yet | Not working yet |
| Thermometer | Not yet | Not yet | Works |
| Hygrometer | Not yet | Not yet | Not working yet |
| Barometer | Not yet | Not yet | Limited |
| Accelerometer | Not yet | Not yet | Works |
| Gyro | Not yet | Not yet | Not working yet |
| IMU | Not yet | Not yet | Limited |
| Compass | Not yet | Not yet | Limited |
Limited means the block runs but part of what it should do is missing. Not yet means that connection doesn’t run the block. Not working yet means it tries but doesn’t do the job. For blocks USB direct can’t run, the Bridge column comes from reading the Bridge’s code, not from tests on a real board.
Step-by-step guides
Output
Relay
- Simulator Not yet
- USB direct Not yet
- Bridge Limited
A relay module lets one Arduino pin switch a separate circuit, such as a lamp or a pump, with a mechanical switch.
| Part pin | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| IN | Pin 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 module’s LED.
Mains safety: never wire 110 V or 230 V yourself. Stay within the relay’s 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
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 pin | Arduino |
|---|---|
| + (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
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 won’t 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 pin | Arduino |
|---|---|
| Signal | Pin 9 |
| GND | GND |
The battery connects to the ESC, never to the Arduino’s 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
A switch stays on or off after you flip it, unlike a push button that springs back.
| Part pin | Arduino |
|---|---|
| One side (middle pin on a slide switch) | Pin 3 |
| Other side (one outer pin) | GND |
You don’t 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 it’s 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
A potentiometer is a knob. Turning it gives an analog reading from 0 to 1023.
| Part pin | Arduino |
|---|---|
| Outer leg | 5V |
| Other outer leg | GND |
| 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 can’t set brightness, angle or speed yet.
The photoresistor guide uses the same analog pattern.
Proximity sensor
- Simulator Limited
- USB direct Not yet
- Bridge Works
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 pin | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| Vo | A0 |
HC-SR04, SRF05 and the other sensors in the Controller list aren’t 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
A PIR motion sensor such as the HC-SR501 notices a warm body moving in front of it.
| Part pin | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| OUT | A0 |
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
A thumb joystick is two knobs in one: one analog reading for left and right, one for up and down.
| Part pin | Arduino |
|---|---|
| +5V | 5V |
| GND | GND |
| VRx | A0 |
| VRy | A1 |
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 can’t steer, use the stick’s 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
An LM35 is a three-pin temperature sensor whose output voltage rises 10 mV for every °C.
| Part pin | Arduino |
|---|---|
| +Vs | 5V |
| GND | GND |
| Vout | A0 |
Only the LM35 works. The block’s 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 doesn’t 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 it’s 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. There’s no live temperature display.
Hygrometer
- Simulator Not yet
- USB direct Not yet
- Bridge Not working yet
A hygrometer measures relative humidity. Common hobby parts are the DHT11 and DHT22.
Humidity sensors don’t work in ArduinoStudio yet. The block stays set to DHT11, which isn’t 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
A barometer such as the BMP180 measures air pressure, which also gives a rough altitude.
| Part pin | Arduino |
|---|---|
| VCC | As the breakout needs (3.3V for a bare BMP180) |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
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
An accelerometer such as the ADXL345 measures tilt and movement as force along three axes, in g.
| Part pin | Arduino |
|---|---|
| VCC | 3.3V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
| CS | 3.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 block’s own Threshold setting is ignored; the number in the Check’s Choose is the one that counts.
The IMU section covers the MPU6050.
Gyro
- Simulator Not yet
- USB direct Not yet
- Bridge Not working yet
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 isn’t 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
An IMU combines an accelerometer and a gyro on one board. The block talks to an MPU6050.
| Part pin | Arduino |
|---|---|
| VCC | 5V if the breakout has a regulator, otherwise 3.3V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
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
A compass module such as the HMC5883L senses the Earth’s magnetic field to find a heading.
| Part pin | Arduino |
|---|---|
| VCC | 3.3V |
| GND | GND |
| SDA | A4 |
| SCL | A5 |
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