program an arpsensor or a wilulu or a tiny(twiny)lulu.

arpsensors, arpsensorsRF, wilulu et programateur

tinylulu, twinylulu et programateur

The arpsensors, arpsensorsRF, wilulu, tiny(twiny)lulu are equipped with ATtiny microcontrollers, their programming differs from that of an arpschuino² or an arduino.

Like for the arpschuino², the programming has been greatly simplified with the creation of an arpschuino core, in other words our boards are directly recognized by the Arduino software, the necessary libraries are automatically imported and all the specific source codes can be found in the example codes folder..

Required material:

  • arpsensors
  • arpsensors RF
  • wilulu
  • USBasp

Set up

Download the IDE arduino.

For this tutorial (february 18) we choose the latest version, 1.8.5. Choose a version based on your OS, higher than 1.6.2.


Install it. In case of difficulty, see here.

With an ISP programmer :

For this example we will use the USBasp programmer, with 6 pins adapter.

This programmer works directly on Linux and OSX but requires the installation of drivers on windows. Download it here for Windows 7 and Vista, here for Windows 8 and 10. After unzipping, double-click simply on intallDrivers.exe and accept the installation.

The USBasp has a voltage selection jumper. Choose 3.3V, a voltage of 5V would destroy the radio transmitter of apsensorsRF and wilulus.


arpschuino core

We will now import the arpschuino core. Go to Preferences (File/Preferences) and Additional Board Manager URLs , add the following link:

preferences arduino

Then go to Tools/Board/Board Manager, you should find the arpschuino boards at the very bottom of the list. Just click on install. The installation will take some time, if your connection is slow, it may be a good time to make a coffee!

arduino boards manager

In this board manager you can then apply updates to the arpschuino core. An update button will appear when it is ready.

gestionnaire de carte

Plug the adapter into your board. Attention, the adapter has no key. Be sure to plug it in the correct direction, as shown in the picture below:


Now connect the adapter to the programmer and plug it into a USB port on your computer. Open the arduino IDE.

In the tools/board tab choose arpsensors, arpsensorsRF or wilulu or tinylulu (choose tinylulu for a twinylulu), according to your board.

choix de la carte

We are now ready to upload a souce code. In File/Examples/01.Basics, choose Blink. This basic program blinks a LED at a frequency of one second.

Using an arpsensors or an arpsensorsRF, you can put a led on output 0 and replace LED_BUILTN by Arp0. The green led of the wilulu is recognized as LED_BUILTIN.

Before uploading, in tools/programmer, choose USBasp or the progammer you are using.

choix de la carte

Then click on Verify (top left), then if everything goes well, click on Upload (the button with the arrow). After a few seconds, the led should blink.

It's working !

We can now explore the different example codes(File/exemples/arpschuino/arpsensors(or arpsensorsRF or wilulu)). Depending on the board chosen in the tools/board, all the necessary libraries are automatically available.

Source codes should compile and be uploaded without problem. It's up to you now, modify the existing programs, write yours! There are many tutorials on the net to learn how to program an arduino.

The I/O of the arpsensors are called Arp0, Arp1, Arp2 ... Arp8.

The power output of the wilulu is called WiluluOUT and its green led LED_BUILTIN.

The power output of the tinylulu are called TinyluluOUT, these IO Arp0, Arp1, Arp2, Arp3 (see pinout here and here).

The power outputs of the twinylulu are called TwinyluluOUT0, TwinyluluOUT1, these IO Arp0, Arp1, Arp2. (see pinout here and here).

In case of difficulties, do not hesitate to ask questions on the arpschuino forum .