In this tutorial you get acquainted with the Dwenguino board. Step by step you'll learn how to install Arduino IDE and the necessary Dwenguino additions. After this tutorial you will be able to blink a LED!


  1. One Dwenguino board
  2. Enclosed USB cable
  3. Internet connection

Installation of the software

  1. Download and install the Arduino IDE version 1.8.x or higher.
  2. Open the Arduino IDE, go to File > Preferences > Additional Boards Manager URLS, copy and paste the following link without quotes "" and click OK.
  3. Go to Tools > Board > Boards Manager, search for "Dwenguino" and click Install.

Depending on your operating system some additional steps are required:

  • Windows users should also install the correct driver (see next paragraph).
  • Mac users are ready to go, no additional steps are required.
  • Linux users can have troubles with the permissions of the serial port (see paragraph below for solutions).

Windows driver installation

  1. Attach the Dwenguino with the USB cable and go to Device manger (right click on My Computer and press manage, choose in the menu at the left Device Manager as shown in the following picture) and click on the Other devices menu. Right click on the Dwenguino and select Update driver software.
    Device manager
  2. Click Browse my computer for driver software and click on Browse. Select your User folder and press OK. Remark: make sure the checkbox "Include subfolders" is enabled and press next.
    Popup device manager
  3. The required driver will be installed now. When a Windows Security popup appears, then press Install this driver software anyway.
    Popup device manager
  4. When the installation is finished, Windows will notify Windows has successfully updated your driver software. Press Close and you have completed the installation procedure. You can now find the connected Dwenguino board in Tools > Port.

Please beware that the procedure described above is not compatible with Windows 8 or higher because of very strict USB certificate policies. You can however disable this USB verification procedure by following these steps. After that, the Dwenguino works just fine.
The Dwenguino is not USB certified. Please refer to talk of Ian Lesnet on the Open Hardware Summit for an explanation of the context.


(Debian distributions like Ubuntu, Mint, etc...)

If you have trouble with the permissions of the serial port, this will result in the ports option in the menu being grey (unclickable). Also it may not work with a USB3.0 interface on your computer. In that case try the following fix :

  • Close the Arduino IDE, insert the USB connector into a USB2.0 port instead, and open a terminal.
  • Run the following sequence of commands:
sudo usermod -a -G dialout $yourUserName
sudo usermod -a -G tty $yourUserName
  • Logout and log back in. Launch the IDE and it should be accessible now.

You might still have troubles uploading programs to the board. We are fixing this issue, in the meanwhile try the following:

  • Remove the package modem manager with the following command:
    sudo apt-get purge modem manager*

If you still get an error while trying to upload to the board, give read/write access to the serial port to all users (you need to change access rights to the port where the Dwenguino is connected, e.g. /dev/ttyACM0):

sudo chmod 666 /dev/ttyACM0

For any other problems, please contact us. We will be happy to help.

Blinking LED

Start by opening Arduino IDE. You should see an empty sketch with a setup-function and loop-function. Now choose in the menu File > Examples > 1. Basics > Blink. The following sketch should appear:

Blinking LED Arduino

The sketch has two main parts: (1) the setup-function and (2) the loop-function. By using the pinMode-function pin number 13 is set as a digital output. Note that we changed the example: number 13 is now stored in the integer variable led. This makes it easier to change it afterwards. In the loop-function pin number 13 is switched from high to low and vice versa every 1000 milliseconds.

Testing the blinking LED on Dwenguino

We now want to test the blinking LED example. Therefore we need to compile the code and upload it to the Dwenguino. Make sure that you select Dwenguino in the Tools > Board menu. Next, connect the Dwenguino to your computer and select the right communication port in the Tools > Port menu (HINT: you might want to look into this menu before and after you connect the Dwenguino to your computer. Usually, the port you have to select is the one that appears when the Dwenguino is connected). Finally, click on the upload icon in Arduino IDE which is highlighted here: compile and upload

Now LED LD13 (top left corner of the Dwenguino board) should blink every second!

Blinking other LEDs

Bored of having LD13 blinking? Choose another LED changing the value of the variable led in your sketch, for example:

int led = LED0; //LED LD0 will blink

Happy coding!

Manual (Offline install)

Warning: We highly recommend using the board manager installation procedure as described above: it's easier, it's platform independent and it can handle Dwenguino software updates. The only drawback is that an internet connection is required on every computer during the installation. Only if an internet connection is really unavailable, you can download the necessary installation packets in advance (e.g. to a USB stick) and install them using the following steps:

  1. Download the Arduino IDE version 1.8.x or higher.
  2. Download the Dwenguino library.
  3. Install the Arduino IDE and open the Arduino IDE a first time.
  4. Search for an "Arduino" folder in your user home folder: My Documents on Windows, home folder on Mac and Linux. Make a new subfolder "hardware".
  5. Copy and paste the file into this "hardware" folder and extract the library.
  6. Go to the "Dwenguino" folder and make a new subfolder "avr". Cut and paste the previous content of the "Dwenguino" folder into this new subfolder "avr" ("\Arduino\hardware\Dwenguino\avr").
  7. Follow the steps in the previous sections to install the Windows driver or to set the right Linux serial permissions.
  8. Restart the Arduino IDE. If all goes well, you should be able to find "Dwenguino" in the Tools > Boards menu and upload the blinking example.

Related Post

  • Previous Post
    Dwenguino: a multi-functional, arduino compatible microcontroller board
  • Next Post
    Burning the Dwenguino Bootloader with another board