---
title: Install S4A - Scratch for Arduino on Linux | Snap Store
description: Get the latest version of S4A - Scratch for Arduino for Linux - Scratch
  for Arduino boards
url: https://snapcraft.io/s4a
---

# S4A - Scratch for Arduino (s4a)

[Snapcrafters](https://snapcraft.io/publisher/snapcrafters "View all snaps from Snapcrafters")

* [Snapcrafters](https://snapcraft.io/publisher/snapcrafters "View all snaps from Snapcrafters")
* [Devices and IoT](https://snapcraft.io/search?categories=devices-and-iot)
* [Education](https://snapcraft.io/search?categories=education)

latest/stable 1.6

Contact us about
[Snaps and IoT ›](https://snapcraft.io/about/contact-us)

Install latest/stable of S4A - Scratch for Arduino

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install s4a
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* s4a

---

### License

* MIT

---

### Last updated

* 8 July 2021 - latest/stable
* 10 November 2022 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [s4a.cat](http://s4a.cat/ "http://s4a.cat/")

---

### Contact

* [github.com/snapcrafters/s4a/issues](https://github.com/snapcrafters/s4a/issues "https://github.com/snapcrafters/s4a/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/s4a#report-snap-modal)

---

* [Description](https://snapcraft.io/s4a#tab-description)
* [Security](https://snapcraft.io/s4a#tab-security)

#### Scratch for Arduino boards

S4A is a Scratch modification that allows for simple programming of the Arduino open source hardware platform. It provides new blocks for managing sensors and actuators connected to Arduino. There is also a sensors report board similar to the PicoBoard one.

The main aim of the project is attracting people to the programming world. The goal is also to provide a high level interface to Arduino programmers with functionalities such as interacting with a set of boards through user events.

**Setup**

In order to upload code an arduino board over USB, you need to add your user to the `dailout` group and connect the snap to the `raw-usb` socket. Open a terminal window, run the following commands an *reboot* your computer.

> `sudo usermod -a -G dialout $USER`

> `sudo snap connect s4a:audio-record`

> `sudo snap connect s4a:camera`

Now restart your computer and you're good to go!

Note: In order to use S4A with an Arduino board, you need to first upload the firmware to the board. See the S4A Getting Started guide for more information: <https://merlijn.sebrechts.be/blog/2020-02-s4a-setup-ubuntu/>

**Supported boards**

* Arduino Diecimila
* Arduino Duemilanove
* Arduino Uno

*Other boards have not been tested but might also work*

**Connectivity**

Components have to be connected in a particular way. S4A allows for 6 analog inputs (analog pins), 2 digital inputs (digital pins 2 and 3), 3 analog outputs (digital pins 5, 6 and 9), 3 digital outputs (pins 10, 11 and 13) and 4 special outputs to connect Parallax continuous rotation servomotors (digital pins 4, 7, 8 and 12).

You can manage a board wirelessly by attaching an RF module to it, such as Xbee.

S4A allows you to control as many boards as USB ports you have.

---

## Install S4A - Scratch for Arduino on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/s4a/arch)

[### CentOS](https://snapcraft.io/install/s4a/centos)

[### Debian](https://snapcraft.io/install/s4a/debian)

[### elementary OS](https://snapcraft.io/install/s4a/elementary)

[### Fedora](https://snapcraft.io/install/s4a/fedora)

[### KDE Neon](https://snapcraft.io/install/s4a/kde-neon)

[### Kubuntu](https://snapcraft.io/install/s4a/kubuntu)

[### Manjaro](https://snapcraft.io/install/s4a/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/s4a/pop)

[### openSUSE](https://snapcraft.io/install/s4a/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/s4a/rhel)

[### Ubuntu](https://snapcraft.io/install/s4a/ubuntu)

---

## More from Snapcrafters

[#### Links

Web browser running in text mode](https://snapcraft.io/links "Links – Web browser running in text mode")

[#### Sublime Text

A sophisticated text editor for code, markup and prose.](https://snapcraft.io/sublime-text "Sublime Text – A sophisticated text editor for code, markup and prose.")

[#### ghvmctl

A utility for manipulating virtual machines during snap testing.](https://snapcraft.io/ghvmctl "ghvmctl – A utility for manipulating virtual machines during snap testing.")

[#### Mattermost Desktop

A secure, flexible platform build for the new era of collaboration](https://snapcraft.io/mattermost-desktop "Mattermost Desktop – A secure, flexible platform build for the new era of collaboration")

[View all snaps](https://snapcraft.io/publisher/snapcrafters "View all snaps from Snapcrafters")
