arpschuino

     new !

program an arpsensor or a wilulu.


arpsensors, arpsensorsRF, wilulu et programateur

The arpsensors, arpsensorsRF, and wilulu 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..

Matériel requis:

  • 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.

download-arduino

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, 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.

jumper

     new !

arpschuino core

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

https://raw.githubusercontent.com/arpschuino/Arpschuino/master/Core/package_arpschuino_index.json

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

Put the wilulu switch in "prg" position:

switch

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:

adapter

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 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 ... The output of the wilulu is called WiluluOUT and its green led LED_BUILTIN.

We can help you, do not hesitate to contact us:

arpschuino@gmx.fr