Start with Arduino STAR OTTO

Connecting the Arduino STAR OTTO

Connect the Arduino Star Otto to your computer, using an USB cable.
The USB cable provides the power and allows the microcontroller programming.  
To program the board uploading the sketches you need of a software called Arduino IDE.
The board is available from Arduino IDE 1.8.x  version, downloading the corresponding platform (Arduino STM32F4 Boards) from the Board Manager.

First Configuration


Power the board and wait some time.
Search the board in the network list, it has an ESSID like this: Arduino-STAR-OTTO-xxxxxx.

Search the board

Connect your PC/MAC to the Arduino STAR OTTO AP:

Connetct to the AP

Open a browser and connect at this address: http://192.168.240.1/

IP address of AP

This is the screen that it will appear:

Overview menu of web pannel

If you want to modify the hostname of the board then click on CHANGE from OVERVIEW menu or select the WiFi on the left menu and insert a new name under HOSTNAME field and after click on CHANGE.

STAR OTTO 5 WiFi menu of web pannel

Connect the Arduino STAR OTTO  to yours Access Point Router, selecting your network from WiFi Connection Menu. Type the correct password and click on CONNECT, as shown in the below image:

Connect the board

Accept the alert message:

Warning

When the board will be connected to the network, it will be shown the board ip address.
Now, connect the PC to the same board network and try to access to the board inserting the ip address on the browser.
After click on WiFi in the left menu and change the wifi configuration mode switching to STA MODE, as shown in the below image:

Push to STA Mode

Warning:
It is important switching in STA MODE because so the board will be visible on the Arduino IDE and, furthermore, you will be able to protect it from possible attacks, since it will no longer be visible as open network.

Now your Arduino STAR OTTO is ready.

Use your board and upload the First sketch.
For more information, about how to upload the First Sketch, select the corresponding Tab in the top of the page.
 
Follow all steps of this guide to upload your first sketch on Arduino STAR OTTO.


Arduino IDE - download and install


You need of a software called Arduino IDE to program the board.
You can download it from here.
After that you have downloaded the latest version Arduino IDE, extract it using 7-zip. 
Now double click to install it, if you have downloaded the installer file.

Note:

The board is available from Arduino IDE 1.8.x  version, downloading the corresponding platform (Arduino STM32F4 Boards) from the Board Manager.

Only Linux Users


Before to use the board it needs to add the udev rules.

Create a 40-dfuse.rules file and type these rules:

# Example udev rules (usually placed in /etc/udev/rules.d)
# Makes STM32 DfuSe device writeable for the "plugdev" group

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="664", GROUP="plugdev"

Copy the file into /etc/udev/rules.d/ :

$sudo cp 40-dfuse.rules /etc/udev/rules.d/

And follow these commands:

$ sudo udevadm control --reload-rules
$ sudo udevadm trigger

Finally reboot.


Launch the Arduino IDE


Click on Arduino icon to launch the IDE:
Arduino IDE

Wait the initialization.
It will appear a screen like this:

Arduino IDE 1.8.1

Connect the board


Connect your board to the computer using the USB cable, so the green power LED (PWR ON) go on.

Note:
When you connect your board, pay attention that the cable is correctly inserted.

Download the platform


Follow these simple steps to import the platform on the Arduino IDE 1.8.x:
- Select Boards Manager... from Tools>Boards menu.

Board Manager

Search the Arduino SMT32F4 Boards platform. You can scroll the drop down menu or write the name in the top field of the page.

Arduino SMT32F4 Boards platform

Click on Install.

After the installation the Star Otto will appear in the boards list


Upload sketch


The Arduino STAR OTTO can be programmed in two ways: via Serial or OTA, both these methods will be shown in this guide.

Programming via Serial


This is the classic procedure used to program all Arduino boards.

Select the board


Select the Arduino STAR OTTO  from Tools>Board menu.

Select the board

Note:
The board is available from Arduino IDE 1.8.x  version, downloading the corresponding platform from the Board Manager.

Select port


If the board is correctly connected to PC then it will appears in Tool>Port menu a device called for example COMxx(Arduino Star OTTO) as shown in the below image, then select it:

Select port

Note:
If it doesn't appear as serial device then check the connection, try to change the cable or the USB port.

Open the Blink Sketch


Select the Blink sketch from File>Examples>1.Basics menu.

Select the Blink sketch

Upload the sketch

Now you can upload the sketch, clicking on Upload button as shown in the below image:

Blink Sketch

Wait the end of uploading.

Done uploading Blink sketch

If the Uploading is correctly completed then the Led13 will blink.

Programming via OTA


Power the board, connecting it to PC or using an external power.
After connect the PC on the same board network.
Now the procedure to program the board via OTA is the same of shown above but it differs only when you select the port since now you must select the board from network ports menu.
Below they are shown all steps.

Select the board


Select the Arduino STAR OTTO  from Tools>Board menu. 

Select the board

Note:
The board is available from Arduino IDE 1.8.x  version, downloading the corresponding platform from the Board Manager.

Select port


Select the port from Tool>Port>Network ports as shown in the below image:

Select OTA port


Note:
Be sure that the PC and the board are connected to the same network and that the board is in STA MODE, for more information look the Getting Started guide.


Open the Blink Sketch


Select the Blink sketch from File>Examples>1.Basics menu. 

Select the Blink sketch


Upload the sketch

Now you can upload the sketch, clicking on Upload button as shown in the below image:

Upload Blink sketch

Wait the end of uploading.

Done uploading sketch

If the Uploading is correctly completed then the Led13 will blink.

Warning:
If the sketch isn't been uploaded correctly via OTA then try to upgrade the firmaware.

Now try to upload another example or try to create your custom sketch.

For other examples look the tutorials section.
The Arduino STAR OTTO has a Web panel that it can be reached in different ways:

-  If the board isn't been configured yet, you can access inserting in the browser this address: http://192.168.240.1/
In this case look the Getting Started guide to configure it.

- If the board is been correctly configured then you can insert the ip address (xxx.xxx.xxx.xxx) or the hostname(hostname.local/) from browser.

The Web panel has a simple menu that it is formed from two items: OVERVIEW and WIFI.

The Home page of the Web Panel is the OVERVIEW. Here are shown all the informations about the board, in particular the hostname, the network SSID, the Wifi address and the Wifi mode:

Overview Web panel
 
Selecting the WIFI section, you can change the hostname of the board, typing the new name in the dedicated field and clicking on CHANGE button, as shown in the below image:

WiFi menu

It is possible to switch to STA MODE or STA+AP MODE clicking the specific button in the WIFI STATUS box.

Warning:

Keep in mind that it is advised to switch only in STA MODE because so the board will be visible on the Arduino IDE and you will be able to protect it from possible attacks, since it will no longer be visible as open network.

WiFi mode

Furthermore from the WIFI menu you can connect the board at your network, selecting it from WiFi Connections field, inserting the correct password and clicking on CONNECT button.

WiFi menu


In this section you can also choose if to use the DHCP or the Static IP, as shown in the picture:  

Advanced option