Getting reacquainted with the Linino™ One

I got a great deal from Federico Musto on a Linino™ One and it’s add ons at the Makers Faire a few years ago, after having a conversation with him about my Arduino-Flash tutorial Series that was featured on the Arduino.cc website. I left the Makers Faire that year excited to be walking away with a wifi enabled Arduino with such a small footprint. I remember how easy it was to get it up and running on my wireless network, I went to bed late that night dreaming of how I would put the device to use. The following day was a dreadful Monday, my companies workload was overwhelming, I got home from work that day and realized that I had NO extra time in my life to work on an IOT (Internet Of Things) project. I begrudgingly put my cool new device back in its packaging and placed it in my IOT box to experiment with at a later date. Unfortunately, it sat in the box for a while, a long, long while….

I’m finally making time to experiment with IOT ideas and happy to have cracked open my magical box of IOT devices and gadgets. I dusted off my Linino One module, and started digging through all my sensors and LCD screens with great joy, this post is the beginning of how I got my Linino groove back.

I started off my morning scouring the internet looking for a simple example, to get my feet wet and possibly my brain warmed up for a new creative idea. I kept finding tons of information on the Arduino Yún and was wondering how the dog hunter Linino One came into existence, and I found this interesting little nugget...Arduino drama, shakes head. So, to clarify a Linino One is essentially an Arduino Yún. After perusing the Linino.org wiki, I realized that I needed to set up a connection to the device, or in this case the Arduino Yún. Before we get reacquainted with the WiFi enabled module, here’s a little blurb and diagram of it.

The Linino ™ ONE is a MIPS board based on the Atheros AR9331 and the ATmega32u4. The Atheros processor supports Linino, a Linux distribution based on OpenWRT. The board has built-in WiFi support, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, 2 reset buttons and 1 user button. The Linino One module is composed by a main board and two add-on optional modules, the dogRJ45 (Ethernet RJ45 port) and the dogUSB (USB port & SD card)

 

Linino Diagram
Linino Diagram

 

Now back to the Yún,..umm , yeah, I’m not going to cover it, you can find a guide here, or read this quick little run down of what I think you should know about the Arduino Yún:

(1) OpenWrt-Yun –

The Yún runs a distribution of Linux called OpenWrt-Yun, based on OpenWrt. The easiest way to configure the system is with an interface (called LuCi). It gives you access to most any setting you would need for maintaining the WiFi interface. You can also configure the system from the command line via SSH. You will use the Arduino’s Bridge library to interface with the OpenWrt-Yun system.

(2) Python –

An installation of Python 2.7 is included with OpenWrt-Yun, which you will most likely write your first scripts with.

**NOTE – You can install NODE.js on your device or better yet how about a Jhonny-five plug in Nino-IO,..cool beans!

(3) External storage –

Ahem, don’t use the devices built-in non-volatile memory, because it has a limited number of writes, instead use a microSD card or a thumb drive.

(4) Web services-

OpenWrt-Yun uses REST for clients and servers, read up on REST if you are not familiar with it.

(5) System resets – (On the Linino One)

Linino Reboot button – reboots the device (AR9331, WiFi, and 32U4).

32u4 button – restarts the currently installed Arduino sketch.

Wifi Reset Button – If you cant access the devices web interface, you can reset the devices network configuration by pressing the WiFi reset button for longer than 5 seconds, but less than 30, the AR9331 processor will reboot.

To reset the OpenWrt-Yun distribution to its default state, press the WiFi reset button (WLAN RST) for at least 30 seconds. The board reverts to the original settings: like just taken out of the box or to the latest update of the OpenWRT image.

 

Screen Shot 2016-05-05 at 12.54.33 AM

 

(6) Resetting the password –

You can do this via SSH or Web Ui interface, that is if you know the Ip address and password to your device.

That about covers what you need to know for now. As mentioned earlier, I played around with the device when I first brought it home, tho I barely remember what I did with it, I can state comfortably that I connected it to my wireless network, gave it a unique name and updated my password, hence the title of this posting, “getting reacquainted”.

Connect the Linino to your computer via a Micro-B USB cable, to power it up. Ideally we want to obtain the IP Address of the device to upgrade and configure it. Once the device has booted up, your WiFi network scan will display a SSID “ARDUINO-YUN90XXXXXX” (the X’s represent MAC-Address), that is only if the device has NOT already been configured to connect to your network and its properly broadcasting a signal. Unfortunately my laptop did not pick up the broadcast, which confirms my memory of already configuring the device to connect to my network. Now, Im going to deviate a bit here, if you are in this situation, you could try firing up the Arduino IDE to obtain the devices IP address.

Select:

Tools > Board > Arduino Yun and then
Port > /dev/cu.cu.usbmodemXXXX

 

Screen Shot 2016-05-03 at 6.58.46 PM

 

As you can clearly see, I have obtained the IP Address for my device. If you happen to know your password or didn’t change it from its default, ‘doghunter’ you can open up a web browser and type:

http://your.ip.address 

to access the Web Ui, enter your password to successfully log into your device. Your next steps would be to Upgrade the Linino distribution, so you can skip down to that part of the post, or keep following along for a fresh restart.

I decided to reset the Linino to its default state, to start a new. To accomplish this task:

Hold down the WiFi reset button (WLAN RST) for at least 30 seconds.

**NOTE The reset only seems to work when the device (Wlan Wifi Indicator) led lights up blue while you hold down the Wifi Reset Button.

Release the button unplug the USB cable and plug it back into the laptop, wait for 1 minute.
If all worked out well, you will see the Linino device in your network settings as LININO-B42XXXXXX.

Next, select the LININO-B42XXXXXX in network settings and wait for the connection. Once connected type the The default wlan IP address:

http://192.168.240.1 

into the browser and voila, the welcome screen.

 

Screen Shot 2016-05-03 at 7.19.59 PM

 

Proceed, by entering the default password ‘doghunter’ into the input field and log in. The initial screen displays some basic system information.
Screen Shot 2016-05-04 at 11.47.41 PM

 

Lets move onto configuring the board, click the Configure button and navigate to the Linino One device configurations.
Give the board a unique name (one that you will remember) and change the default password and select your timezone.

Next, select the WiFi network that you want your device to connect to, enter the password and select the Configure and restart button.

 

Screen Shot 2016-05-04 at 11.54.00 PM

 

The Linino is now configured and will restart with your settings.

 

Screen Shot 2016-05-06 at 1.59.58 PM

 

Once the restart has completed, you could either click on the You’ll find me here link in the Configuration saved message

**NOTE – when the Linino restarted, my laptop automatically connected me to my preferred network. If yours did not experience the same, please re-connect to your network, preferably the one that you configured the Linino to connect to.

 

Screen Shot 2016-05-06 at 2.01.35 PM

 

or simply type

 
http://youruniquename.local 

into the browser and voila, you should once again be staring at your log in screen for your Linino One. The Linino has now officially joined you on your network.

Upgrade the Linino distribution

Linino.org’s wiki recommends that you flash the firmware with the latest image, so lets just go ahead and do that. Log back in to your Linino.

*Note – Take note of your Linino IP Address (located WIFI (WLAN0) CONNECTED section).

 

Screen Shot 2016-05-06 at 2.22.52 PM

Select the Configure button  (top right) and navigate to the advanced settings.

At this point you should be back, in the Linino One device configurations view, click the advanced configuration panel (luci) text link.

 

 

Screen Shot 2016-05-03 at 10.41.05 PM

 

 

You should be staring at the Status > Overview screen.

 

Screen Shot 2016-05-03 at 10.43.00 PM

 

 

Navigate via the tabs to System > Backup/Flash Firmware and locate the Flash new firmware image section.

 

 

flash-image

 

 

Next download the latest firmware, select the openwrt-ar71xx-generic-linino-yun-16M-squashfs-sysupgrade.bin file and save to your desktop. Once the file is downloaded, upload the file via the file input (make sure the ‘Keep settings’ checkbox is selected) and select the flash image button. The next step is a sum verification, select the Proceed button to the right to flash the firmware.

 

 

Screen Shot 2016-05-04 at 6.38.11 PM

 

 

After the flash procedure is complete the Web UI will resolve to the log in screen, and your done!

I’d recommend you peruse the advanced configuration panel (luci), there are some other great utilities that will be helpful in debugging your software, including adding new packages or simply checking out the system logs. All right, we have total control of the Linino One, what now?

I’m going to stop for now and write another blog post on how to create a simple application.

I’ve yet to come up with a an idea I’d like to execute on, but I’m positive I will be leveraging a third party service, Like Teembo, Twillo or maybe even communicating with my own Node.js Rest API, the possibilities are endless!

Till next time, happy hacking!

*UPDATE 

You got the Linino One up and running, now follow along to embrace the power of the Internet Of Things!

The Linino One meets Firebase.

One thought on “Getting reacquainted with the Linino™ One

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: