Showing posts with label Kiosk. Show all posts
Showing posts with label Kiosk. Show all posts

Friday, 22 January 2016

PINE A64, First $15 64-Bit Single Board Super Computer

About this project

Update 12/14/15 (We're putting it here so it's easier to read) : To help minimize the flooding of our inbox so we can get everyone back to all the questions and concerns... please read our FAQs at the bottom of the page. Most commonly asked is buying more than 1 board and save on shipping. Please just pledge 1 and you can add additional boards after the campaign i over, along with any upgrades accessories you want to add.  Thank You. This will help us answer emails and questions a lot faster. Thank you for your support. 

PINE A64 is not only a computer, it is a super affordable 64-bit high performance expandable single board computer (SBC).  Whether you are an IT professional, electronics hobbyist, student, teacher, hacker, inventor, or just someone who wants to have more flexibility to increase their productivity at work, the PINE A64 is a computer board made for everyone.  Enjoy more fun and entertainment at home with endless possibilities.

PINE A64 is Small


PINE A64 boards next to iPhone 6S for size comparison
PINE A64 boards next to iPhone 6S for size comparison

PINE A64 is Powerful


ARM A53 CPU
ARM A53 CPU
The PINE64 CPU is a quad-core ARM A53 64-bit processor that runs at 1.2GHz. 
The GPU on the PINE A64 is a dual-core MALI-400 MP2 and runs at 500MHz, capable of 1.1 Gpixel/s throughput. This means the graphics capabilities are slightly higher than the original X-Box's level of performance.  
PINE A64 board is powered by the latest 64-bit quad core ARM A53 CPU and delivers up to 20-30% better performance than other 32 bit open source counterparts.

PINE A64 compared with Raspberry Pi
PINE A64 compared with Raspberry Pi

PINE A64 compared with C.H.I.P and Arduino
PINE A64 compared with C.H.I.P and Arduino

PINE64 is Expandable

Add different hardware interfaces to your PINE A64 as you see fit. Depending on whether you pick the PINE A64 or PINE A64+, the PINE A64 ships defaults with two USB ports, HDMI output, 3.5mm Audio/Mic Output, ethernet port, and two I/O expansion buses. On the more advanced PINE A64+ model, you will receive three additional ports to add optional accessories such as: camera module, touch panel module, and the LCD Panel port.

PINE A64 is Versatile

Add a keyboard and mice and turn PINE A64 into a full Android 5.1 computer to run Chrome Browser, Microsoft Word, Excel, Powerpoint, or even watch your favorite shows on YouTube.


Load special versions of Android 5.1 and launch media players to turn this into an advanced Apple TV-like Android product.  PINE A64 supports miracast.

Shown with Android media software
Shown with Android media software
Install a touchscreen module and choose from hundreds of thousands of games from the Android store to build your own arcade. 
Play your favorite games on the big screen!

Play games with optional air-mouse (Nintendo Wii type remote)
Play games with optional air-mouse (Nintendo Wii type remote)
 Fruit Ninja anyone? 

 project video thumbnail
Testing Fruit Ninja with an optional Air Mouse!
Build a custom enclosure to use the PINE64 in your next innovative project.

 project video thumbnail
3D Printing enclosures can be fun!

Lego Enclosure, Acrylic Enclosure, and more!
Lego Enclosure, Acrylic Enclosure, and more!
PINE A64 is not just a media player, Linux platform, learning tool, or gaming device. It's a full 64-bit, 4K capable, fully expandable, single board supercomputer. 
By being so affordable at $15, PINE A64 now opens up doors to new opportunities for everyone. Use it to build just almost anything. 

Operating System

Because PINE A64 is an open source platform, you can load anything you want but we suggest to pair PINE A64 with Ubuntu, Android or openHAB IoT. By aligning the PINE A64 to be compatible with these operating systems, you basically get access to over 1.7 Million apps* on the market today, from utilities, games, and media apps.
*Android Apps available today

Supported OSes
Supported OSes

Data provided via Appbrain.com
Data provided via Appbrain.com

(original article at https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput?)


Wednesday, 21 October 2015

Raspberry Pi vs PC / Windows - a comparison

Was the Raspberry Pi the best choice for our Kiosk application (non-interactive)?

Short answer: YES!

Long answer: Raspberry Pi is a tiny, featherweight, cool-running, quiet-running and power sipping (everything static, no moving parts) device!

Some time ago, I worked on a company project that utilized the Raspberry Pi / Raspbian running Google Chromium for a solar power project for Malaysian schools (Green School Campaign Phase 3, 2014).



The PenjanaBebas-KeTTHA Green Schools Campaign (GSC) is a public-private partnership CSR (Corporate Social Responsibility) program that brings renewable energy into Malaysian schools, supported by Kementerian Pendidikan, JKR, TNB, SEDA, Suruhanjaya Tenaga, etc. You may also view PenjanaBebas-KeTTHA Green Schools Campaign portal for live information.

The Hardware and Software choices were by others and free issued for my work.

The Green School Campaign Phase 2, 2012 to 2014 had slightly different configuration or hardware choices - 1) standard / full tower desktops or 2) small form factor desktops (Dell Optiplex). Both were based on PC / Windows (Windows Vista) running Google Chrome. The cost of purchase was similar. However, the Total Cost of Ownership or supply was exorbitant!

Whether the 1) standard / full tower desktops or 2) small form factor desktops (Dell Optiplex) both required big metal cabinets which were able to carry the weight, withstand the heat and provide the cooling or ventilation (without any air-conditioning) while mounted on the wall outside of the classroom, school office, school hall or school canteen. In fact, the metal cabinets which housed the standard / full tower desktops had a ventilation fan to aid cooling.

Needless to say, big metal cabinets need big mounting spaces.  In a few schools, we actually placed the PC in the school office and ran extended length (up to 40m) VGA cables.

Transportation and storage issues not-with-standing, mounting these cabinets on the wall required great strength of 2 able-bodied workmen, each balancing on a 2.5m ladder, wall anchor bolts and double the installation time.



Look at the table above. The tale of tape as they say - it's a STARK contrast!

Of course, the PC desktop architecture came with HDD (Hard Disk Drive), whereas the Raspberry Pi used micro-SD for storage. SSD (Solid State Drive) for PCs are still expensive (~RM250 / 120GB), at least compared to a 16GB Class 4, micro-SD card (~RM25 / pcs).

Additionally, the PC's HDD replacement is rather more complicated than the Raspberry Pi's micro-SD card replacement. If it was required, it is far easier and quicker to make a micro-SD card image than a HDD image.  The micro-SD card could be carried in your shirt pocket, as could be a Raspberry Pi - very important when you have to climb a 2.5m ladder to reach the metal cabinet that houses it all. Also the micro-SD card could be swapped by a technician so easily unlike swapping the HDD.

Therefore, our choice was correct for our application - display Kiosk (non-interactive).

The above setup is working seamlessly and without trouble at our sites.

Happy try-out!  Hope you enjoy your Raspberry Pi experience!

CAUTION: Your circumstances, connections, interfaces, options and versions may differ and needs to be re-evaluated for your specific application.

Monday, 19 October 2015

Raspberry Pi for Kiosk application

Some time ago, I worked on a company project that utilized the Raspberry Pi / Raspbian running Google Chromium for a solar power project for Malaysian schools (Green School Campaign Phase 3, 2014).



The PenjanaBebas-KeTTHA Green Schools Campaign (GSC) is a public-private partnership CSR (Corporate Social Responsibility) programme that brings renewable energy into Malaysian schools, supported by Kementrian Pendidikan, JKR, TNB, SEDA, Suruhanjaya Tenaga, etc. You may also view PenjanaBebas-KeTTHA Green Schools Campaign portal for live information.






Green School Campaign Phase 3, 2014 replaced PC / Windows running Google Chrome with Raspberry Pi / Raspbian running Google Chromium. Whether PC / Windows running Google Chrome (Phase 2, 2012 to 2014) or Raspberry Pi / Raspbian running Google Chromium it was a Kiosk application (non-interactive).

The Hardware and Software choices was by others and free issued for my work.

Hereby I am listing the configuration and setup of Raspberry Pi / Raspbian used in this project:

The hardware utilized was the Raspberry Pi Model B+ V1.2.


Here is a description lifted from Raspberry Pi.org.
The Model B+ is the final revision of the original Raspberry Pi. It replaced the Model B in July 2014 and was superseded by the Raspberry Pi 2 Model B in February 2015. Compared to the Model B it has:
  • More GPIO. The GPIO header has grown to 40 pins, while retaining the same pinout for the first 26 pins as the Model A and B.
  • More USB. We now have 4 USB 2.0 ports, compared to 2 on the Model B, and better hotplug and overcurrent behaviour.
  • Micro SD. The old friction-fit SD card socket has been replaced with a much nicer push-push micro SD version.
  • Lower power consumption. By replacing linear regulators with switching ones we’ve reduced power consumption by between 0.5W and 1W.
  • Better audio. The audio circuit incorporates a dedicated low-noise power supply.
  • Neater form factor. We’ve aligned the USB connectors with the board edge, moved composite video onto the 3.5mm jack, and added four squarely-placed mounting holes.
The Model B+ is perfectly suitable for use in schools: it offers more flexibility for learners than the leaner Model A or A+, which are more useful for embedded projects and projects which require very low power, and has more USB ports than the Model B.
The software (Operating System) utilized was Raspbian.

Raspbian - is the Raspberry Pi Foundation’s official supported operating system.

One may install Raspbian directly or using NOOBS (New Out Of Box Software).

Here is a description lifted from Raspberry Pi.org.
NOOBS is an easy operating system installer which contains Raspbian. It also provides a selection of alternative operating systems which are then downloaded from the internet and installed.

I chose NOOBS. At the time of the project, it was NOOBS V1.4.1.


Additional software and / or tools were needed for this project:

  1. 7-Zip (V9.20) 
  2. SD Card Formatter (V4.0) 
  3. Win32 Disk Imager (V0.9.5) 
  4. PuTTY: A Free Telnet/SSH Client (V0.65) 

My work computer is an Asus A53S series running Windows 7 Professional 64-bit. In this case, the software tools utilized for this work were all Windows based software (blush). Of course, you can complete this project with Linux based tools as well.

Normally, I use 7-Zip for zip-file extraction.  7-zip is very efficient, fast and multi-function. 7-Zip is a utility program to help you extract compressed files and create your own compressed files in several different formats. 7-Zip can handle multiple compression formats. It can package files into 7z, ZIP, GZIP, BZIP2, and TAR formats, and it can unpack all those, in addition to ARJ, CAB, CHM, CPIO, DEB, DMG, and more.


However, in this instance I used the "Extract All..." function built-into File Explorer...

Let's begin...

Downloaded NOOBS_v1_4_1.zip (750MB) to my default Download location (Downloads folder).


The files were extracted to it's own directory.


Copy the entire directory and it's contents to the micro-SD card. I used a Kingston 16GB Class 4, micro-SD card. I also tried with a Kingston 16GB Class 10, micro-SD card and it worked fine.


The Raspberry Pi should be prepared for OS installation i.e. connected to keyboard (USB), mouse (USB) and monitor (HDMI) and connected to Internet (Ethernet / RJ45) interface).

DO NOT POWER-UP YET!

Eject the micro-SD card (with NOOBS) and insert into the Raspberry Pi.

NOW POWER-UP!

NOTE: I tried to connect Microsoft Wireless Desktop 3000 (keyboard and mouse combo) - NOT SUCCESSFUL! This happens because only standard drivers are packaged or rather hardware specific drivers not NOT packaged with Raspbian. Use only HID Keyboard Device and / or HID-compliant mouse - Microsoft-speak for "Generic Keyboard and Mouse" or hardware specific drivers NOT required. The Logitech Wireless Combo MK220 & Logitech Wireless Combo MK240 models are "No software installation" type. When I connected the MK220 - SUCCESSFUL, MK240 - SUCCESSFUL!



I chose Raspbian [RECOMMENDED]. Click Install.


If you see the following screen, Raspbian was installed SUCCESSFULLY.


After successful installation, the Raspberry Pi booted into the CLI (Command Line Interface) or bash.  bash is a Unix shell written for the GNU Project used by most Linux distributions and Debian in particular. Login using the default Username and Password.

You are immediately taken to raspi-config. If you want to do this later, you can comeback to this anytime by typing "sudo raspi-config" at the command line or in Terminal. 


If you need to change your language and keyboard settings in the configuration program (raspi-config), you will find them under Internationalization Options.

Change your language under Internationalization Options → Change Locale

Change your Timezone under Internationalization Options → Change Timezone

Change your keyboard settings under Internationalization Options → Change Keyboard Layout

As with any Linux installation, it is ALWAYS a good idea to run the OS update.

It's a good idea to install any anti-virus software now. I did NOT install any, though I normally install RKHunter and ClamAV in all my Linux installations.


This tool (ARP-TOOLS) may come-in handy for maintenance and troubleshooting later on.


This tool (xrdp) may come-in handy for maintenance and troubleshooting later on.


This tool (avahi) may come-in handy for maintenance and troubleshooting later on.


A Javascript browser was the project requirement.  We chose Google Chrome / Chromium as it's full screen feature was useful for our project.  You may install any other browser according to your requirements.


To give a more elegant look, we installed additional fonts.

 We didn't make any changes here.

Please note that "nano" is a built-in editor for the Raspbian.  Nano is archaic and cryptic but efficient and useful. Another built-in editor is "leafpad". Leafpad is the default text editor for the LXDE Desktop environment. We shall be using Leafpad soon.


We set-up Raspbian to run the Desktop automatically / by default every time it boots.


As we are running a Kiosk application (non-interactive), we DISABLE the screensaver.

We also HIDE the cursor as our Kiosk application is display only, we do NOT require user input. Unclutter hides your X mouse cursor when you do NOT need it, to prevent it from getting in the way. You have only to move the mouse to restore the mouse cursor.


We set-up Raspbian to auto-login automatically / by default every time it boots.


We used 42" LCD TVs as our monitor. These were either Haier or Sharp and came with 2 x HDMI inputs. The above settings allowed us to align the display and fine-tune the borders. It was different for each brand and it was also different when the lengths of the HDMI cable changed.




There was some changes between NOOBS_v1_4 and NOOBS_v1_4_1 resulting in dual configuration as above. The above works for our project.









In the school environment, we wanted to switch OFF the LCD TVs during the night - this shall save energy consumption and also the LCD lifespan. Another fact of life outside of Kuala Lumpur is the erratic utility / TNB supply. The schools face power cuts once or twice every week. During the installation phase, we were trying out many different software, configuration and setup to find the best one and the Raspberry Pi did crash or hang.  We realized that most times a reboot would set right the Raspberry Pi. In this case, I used cron set-up the LCD TV to switch OFF at 2000h at night and REBOOT every morning at 0700h.


The Raspberry Pi does NOT have a hardware / real-time clock. Therefore, we have to utilize software for accurate date and time. NTP (Network Time Protocol) is packaged with every Linux distribution including Debian.  However, it has to be manually set-up. Obviously, with cron running schedules, it is critical to set the accurate time and date.  I ran tzselect - the tzselect program asks the user for information about the current location and outputs the resulting timezone description to standard output. The output is suitable as a value for the TZ environment variable.

After the installation at the 1st school was finalized, we were satisfied with the software, configuration and setup, we were ready to roll-out to other schools / sites. We used the Win32 Disk Imager utility to make an image of the Raspberry Pi's micro-SD card ONTO my HDD.


From then on, we just reversed the process and used Win32 Disk Imager utility to make an image of the Raspberry Pi's micro-SD card FROM my HDD. Minimal changes were required for LCD TV settings and URL reference.

We rarely used the SD Card Formatter utility. Since the micro-SD cards were pre-formatted.


However, it was useful during the 1st installation as were trying out many different software, configuration and setup to find the best one, we more than once had to re-format the micro-SD card and begin from scratch.

I have a separate article to compare the Raspberry Pi and PC / Windows.

The above setup is working seamlessly and without trouble at our sites.

Happy try-out!  Hope you enjoy your Raspberry Pi experience!

CAUTION: Your circumstances, connections, interfaces, options and versions may differ and needs to be re-evaluated for your specific application.