background image

34

  

ODROID C2 USER MANUAL 

• 1440×900

• 1360×768

• 1024×600 

(DVI supported for ODROID-VU7 Plus)

• 800×600

 

For more information on configuring the screen resolution, please 

refer to the ODROID-C2 Wiki at 

http://bit.ly/2cUNeli

.

 

The SSH daemon is enabled by default in the Ubuntu template, 

and the username:password is odroid:odroid.  The root password is 

also odroid.

 

Finally, the language and timezone settings may be configured 

with the following command, after installing the desired language in 

the “Language Support” settings application:

$ sudo dpkg-reconfigure locales

 

After the command completes, drag the selected language to 

the top of the list in the “Language Support” settings.  The timezone 

may be selected by typing the following command:

$ sudo dpkg-reconfigure tzdata

Configuring HDMI Resolution in Android

 

Once the Android desktop has loaded, run the ODROID Utility 

app, which is pre-installed on all Hardkernel Android images, and se-

lect the desired CPU frequency, monitor resolution and orientation.  

Other options may also be selected using the ODROID Utility app, 

including the CEC options which allow the use of a remote with appli-

cations such as Kodi.

Configuring HDMI resolution with the Android ODROID Utility app

Chapter 2

Summary of Contents for ODROID-C2

Page 1: ...ODROID C2 USER MANUAL rev 20161115 ...

Page 2: ...SD Card 8 eMMC Module 8 LED Status 8 Technical Specifications 9 Heatsink 13 Temperature Measurement 13 Frequently Asked Questions 15 Chapter 2 Getting Started 20 Home Computing Network 20 Preparing the Work Area 21 Flashing an Image 22 Boot Media 22 Windows 7 25 Linux 28 OSX 29 Inserting the eMMC Module or SD Card 30 Powering Up 30 Troubleshooting 30 Configuring Linux 32 Configuring Android 34 Pow...

Page 3: ...s 41 Adjusting Linux Display Output 42 Adding an ODROID VU7 Plus Touchscreen 42 Command Line Interface 43 Disk Partitions 44 Web Browsing 44 Kodi formerly XBMC 45 Office and Productivity Applications 46 Music and MIDI 46 Experimental Music with the C2 48 Android 48 Desktop Environment 48 ODROID Utility and Updater 49 Setting the Display Resolution 49 Kodi 50 Netflix 50 Gaming 50 Music and Midi 50 ...

Page 4: ...Board 69 USB DC Plug Cable 2 5x0 8mm 71 USB SPDIF 71 USB CAM 720P 73 USB3 SATA3 HDD SDD interface kit 74 USB3 to SATA Bridge Board 77 USB GPS Module 78 MyAHRS Board 80 WiFi Module 4 82 HiFi Shield 83 RTC Shield 84 UPS3 86 Xprotolab Plain 87 ODROID VuShell for ODROID VU7 88 Universal Motion Joypad 89 Conclusion 90 Additional Resources 90 Index ODROID C2 Beginner s Guide ...

Page 5: ...he quality and sophistication that is the hallmark of our products Simple modern and distinctive So you can have the best to accomplish everything you can dream of 2015 Hard Kernel Ltd 704 Anyang K Center Gwanyang Dongan Anyang Gyeonggi South Korea 431 815 Hardkernel manufactures the ODROID family of quad core development boards and the world s first ARM big LITTLE single board computer Read our m...

Page 6: ...l for college or office work a prototyping device for hardware tinkering a controller for home automation a workstation for software development and much more Some of the modern operating systems that run on the ODROID C2 are Ubuntu Android and ARCH Linux with thousands of free open source software packages available The ODROID C2 is an ARM device which is the most widely used architecture for mo ...

Page 7: ...d disk may be used as an auxiliary device The boot partition can be stored on either a microSD card or the much faster eMMC module and Hardkernel s products have the unique distinction of supporting removable eMMC modules so that operating systems may be switched out conveniently and easily An eMMC module is a type of storage typically used in a smart phone and is one of the more advanced compact ...

Page 8: ...aching Peripherals The ODROID C2 supports the ser vices of numerous peripherals The image to the left depicts the follow ing peripherals Power Supply Unit PSU with cable USB UARTdebug cable USB 3 memory card reader eMMC reader eMMC card microSD card 4k HDMI 2 0 cable USB wire less keyboard mouse dongle USB touch cable and Ethernet cable ODROID C2 and Useful Peripherals Chapter 1 ...

Page 9: ...sign and related software monitoring and control which is detailed in Chapter 4 C Tinkering kit for ODROID C2 Power Supply The ODROID C2 board requires a 5V 2A DC power source The dedicated power connector miniature barrel jack can accept a DC plug cable with a plug that has an outer diameter of 2 5mm and an inner diameter of 0 8mm The plug inner core center is positive attached to the RED wire in...

Page 10: ... ODROID C2 This cable is also available from Hardkernel DC plug cable If you have a 5V DC 2A PSU which does not have the required plug you can cut off the plug from such a power supply Expose about of the red black wires on the psu cable and attach them to the same colored cables of this cable then solder the joints You can cover the joint using electrical tape or a heat shrink wrap Attach the plu...

Page 11: ... other equivalent high quality standard cables could also work Keyboard and Mouse Nearly all USB HID compliant keyboard and mouse will work when connected to one of the four USB ports Support for some wire less keyboards such as the Logitech K400r is available by default in the official Hardkernel Ubuntu Mate images odroid odroid64 lsusb Bus 001 Device 004 ID 046d c52b Logitech Inc Unifying Receiv...

Page 12: ...t HWaddr 00 3f 06 25 57 56 inet addr 192 168 6 33 Bcast 192 168 6 255 Mask 255 255 255 0 inet6 addr fe77 52e 6ea fb63 53fe 64 Scope Link UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RX packets 25817 errors 0 dropped 0 overruns 0 frame 0 TX packets 27210 errors 0 dropped 0 overruns 0 carri er 0 collisions 0 txqueuelen 1000 RX bytes 14685550 14 6 MB TX bytes 14333588 14 3 MB Interrupt 40 A WiFi ...

Page 13: ...ctor on the ODROID C2 board using the white rectangle on the PCB as a guide The female portion of the eMMC module should line up with the male connector on the board Slowly push it in until it clicks in place Be gentle If you are unable to push it in it may be misaligned Recheck and turn the eMMC module if you notice a wrong insertion direction The writing on the card will be exposed after inserti...

Page 14: ...n eMMC module will increase speed and respon siveness similar to what one observes in performance improvement by upgrading a mechanical hard drive HDD to a Solid State Drive SSD in a typical PC Micro Secure Digital microSD card slot There are two methods of storage for the Operating System The first is to use a microSD card and another is to insert an eMMC module The latter is normally used for ex...

Page 15: ...e di ameter of 0 8mm and an outer negative diameter of 2 5mm The ODROID C2 consumes less than 0 5A in most cases but it can climb to 2A if many passive USB peripherals are attached directly to the main board Peak momentary consumption may increase to 3A on a system with too many power hungry peripherals USB host ports There are four USB 2 0 host ports You can plug a keyboard mouse WiFi adapter sto...

Page 16: ...s on an ODROID C2 are a great way to interface with physical devices like buttons and LEDs using a lightweight Linux controller If you are a C C or Python developer there s a useful library called WiringPi that handles interfacing with the pins We have al ready ported the WiringPi v2 library to ODROID C2 as described in Chapter 4 Note that all of the GPIO ports are 3 3Volt and the ADC inputs are l...

Page 17: ...sion 2 0 USB VBUS controller A NCP380 Protection IC is used for the USB power supply from OnSemi Power switch port You can add a slide switch or rocker switch on this port if you want to implement a hardware ON OFF switch If this port is open the power is ON If this port is closed the power is OFF Power supply circuit Discrete DC DC converters LDOs are used for CPU DRAM IO power supply Power prote...

Page 18: ... to the surface area available to transfer heat to the surrounding air The processor of the ODROID C2 provides a relatively small area to dissipate heat approximately 1cm x 1cm The metallic heatsink is much larger and is therefore able to dissipate more heat into the sur rounding air than the processor itself Temperature Measurement To help verify that the heatsink is effective it is useful to get...

Page 19: ...The baseline temperature in this case is 48 degrees Celsius In the second terminal window type in the following command to in crease system load sysbench test cpu num threads 4 cpu max prime 1000000000 run After waiting at least 5 minutes re enter the temperature mea sure command into the first window cat sys class thermal thermal_zone0 temp 59000 Measuring the operating temperature of the ODROID ...

Page 20: ...swappable How can I get the Ubuntu or Android BSP source code The U boot Kernel and OS source code are released via Github from the first shipping date at http github com hardkernel Does it play 1080p 4K content well on Ubuntu Linux Yes H 265 4K 60FPS and H 264 4K 30FPS video clips are playable with Kodi formerly XBMC in most cases How can I root Android Android for the ODROID is unlocked and root...

Page 21: ... Clear case black blue clear WiFi Modules 0 3 4 USB3 0 to SATA Bridge Board USB OTG cable USB CAM 720p HiFi Shield Plus USB Bluetooth Module 2 USB GPS Module Micro USB to USB cable USB IO Board Universal Motion Joypad USB UART module kit DC Plug Cable Assembly 2 5mm ODROID Show2 CAT6 Ethernet cable GPIO breakout board with CTinkering kit 16x2 character LCD shield myAGRS Weather Board 2 USB Audio a...

Page 22: ...ould I buy with ODROID C2 Along with those listed earlier you should also obtain a micro USB cable for fastboot and ADB interface I have a USB Serial converter Should I buy your USB UART mod ule kit We strongly recommend using our USB UART module kit because it includes the proper connector and is voltage matched to work with the ODROID C2 How do I access the Internet with an ODROID C2 Use a 10 10...

Page 23: ...on Ubuntu The An droid platform does not yet support the 5 1 channel pass through Is there any analog audio output or input Not on the board itself but you can use our USB Audio Adapter for analog audio or the HiFi Shield Plus Is there an I2S port to connect a HiFi DAC No but an ODROID Hi Fi Shield may be used with the ODROID C2 What is an eMMC 5 0 module The eMMC 5 0 module is a NAND flash based ...

Page 24: ...ch OpenGL and OpenCL are included in Android and Ubuntu OpenGL ES 1 1 and 2 0 are included OpenCL is not supported Where is the OpenGL ES SDK Refer to the ARM Mali Developers site at http bit ly 1FRJEi0 for information on OpenGL ES Is the full source code open and can I build it by myself Yes the bootloader kernel and OS platform source code are avail able However the GPU userland drivers are in b...

Page 25: ...rovider ISP which connects your net work to the Internet A single 2 4GHz Dual 2 4 and 5GHz band 802 11b g n WiFi router with at least four 4 Gigabit Ethernet gigE ports and an additional Wide Area Network WAN port where the WAN port connects to the DSL modem An Intel AMD based laptop running MS Windows 7 or Ubun tu 16 04 LTS Linux that connects via wired ethernet or WiFi to the router and At least...

Page 26: ...st 2 x 2 or even 3 x 2 preferably covered by a well grounded anti stat ic mat with you wearing the grounding wristband cable attached to mat This safeguards the handling and placement of unprotected electronics such as C2 board etc on this area A desktop with accessible monitor keyboard mouse or a laptop to prepare the boot media for the C2 and debug the C2 bringup pro cess If needed a 4 port USB3...

Page 27: ...ptacles on the board If you refer to the annotated board image you can see that the C2 supports two boot media types microSD card or an eMMC mod ule They can be obtained from Hardkernel directly either with Linux or Android pre installed If you purchased one such device and if it has a factory installed image you can skip the flashing steps in this section and proceed to the next section Boot Medi...

Page 28: ...e read write speeds USB2 compat ibility will allow one or more points to be of type USB2 but will result in lower speeds Start by using the designated non conductive free work area for all subsequent activities In the microSD receptacle of the USB SD card reader writer look for the metal contact pins Then if you are using a microSD card to flash the image align the metal strips of the microSD card...

Page 29: ...ay not be able to boot immediately with some models of microSD cards However you can still use any brand or speed of memory card as storage Sandisk Class 10 or UHS 1 cards are working well with ODROID C2 and below is a list of the memory cards that have been tested Fully compatible microSD cards SanDisk microSDHC Memory Card SanDisk Ultra microSDHC microSDXC UHS I Memory Card Samsung SDXC EVO Memo...

Page 30: ... presence of a new USB device through its plug and play PNP infrastructure It will obtain the device identifiers from the device and search through its local da tabase If found it will install it for the first time If not found it will request you to provide a location for the driver or seek to find it over the Internet Once the driver is obtained for the first time it will install it and request ...

Page 31: ...download link that corresponds to the 64 bit Windows OS in this case 7z1602 x64 msi List of 7 zip installation files After the file is downloaded run it and select the default op tions and wait for 7 zip to finish installing Next launch the Windows Explorer application and browse the download directory Select the downloaded compressed image file and right click the file with the mouse Select the 7...

Page 32: ...n Click the folder directory icon to browse and select the directory that has the uncompressed image file Flashing an image using Win32DiskImager2 Select the uncompressed image file Note that the application au tomatically selects the device G that corresponds to the boot media in the microUSB card reader writer The image above shows the configu ration Click on the Write button to start the flash ...

Page 33: ...ser like Firefox for Ubuntu using the same Windows OS steps described ear lier If you follow this method you should use the mv command to move the downloaded compressed file to the working dir listed above Instead if you wish you can use a Linux utility like wget right from within the working directory wget http odroid in ubuntu_16 04lts ubuntu64 16 04lts mate odroid c2 20160525 img xz Wait for th...

Page 34: ...conductive surface The above steps are to flash the Linux image To flash an An droid image simply download a different compressed file and all sub sequent steps would be that same as those listed above You would need to to launch the browser once again and nav igate to http bit ly 2cMQ5K1 Look for the latest Android image and click the corresponding Self installation image link In the ex ample cas...

Page 35: ...ng any of the components peripheral connectors ports exposed circuits or on board solder Place the board on the work surface with the bottom side up Check the annotated diagrams and follow the in structions from Chapter 1 for inserting the eMMC module or SD card Powering Up Before powering the board attach all peripherals as described in Chapter 1 Insert the power cable which will be indicated by ...

Page 36: ...select the correct resolution see Chapter 1 for details Some HDMI cables have compatibility issues make sure to use an official Hardkernel HDMI cable Some monitors have non standard EDID functions In this case you need to select the non EDID mode in the ODROID configura tion utility Some cable have a shorter plug and it may be necessary to re move the plastic case for a better connection If there ...

Page 37: ...After the file has loaded uncomment the following lines after comment ing out the current selections In the following example the 1080p resolution at 60hz refresh rate has been selected which is the default configuration on first boot Possible screen resolutions Uncomment only a single Line The line with setenv written At least one mode must be selected 480 Lines 720x480 setenv m 480i60hz Interlac...

Page 38: ...0Hz with YCbCr 4 2 0 Re quires TV Monitor that supports it VESA modes setenv m 640x480p60hz setenv m 800x480p60hz setenv m 800x600p60hz setenv m 1024x600p60hz setenv m 1024x768p60hz setenv m 1280x800p60hz setenv m 1280x1024p60hz setenv m 1360x768p60hz setenv m 1440x900p60hz setenv m 1600x900p60hz setenv m 1680x1050p60hz setenv m 1920x1200p60hz Supported resolutions are 4K UHD 2160p 3440 1440 2560 ...

Page 39: ...gs application sudo dpkg reconfigure locales After the command completes drag the selected language to the top of the list in the Language Support settings The timezone may be selected by typing the following command sudo dpkg reconfigure tzdata Configuring HDMI Resolution in Android Once the Android desktop has loaded run the ODROID Utility app which is pre installed on all Hardkernel Android ima...

Page 40: ... Android powering down is done by selecting the power button icon at the bottom of the desktop In Linux powering down may be done by either selecting the shutdown option from the Applications menu or by typing the following into a Terminal window sudo shutdown h now Wait until the blue LED goes out which indicates that all system ac tivity has completed It is now safe to unplug the ODROID C2 power...

Page 41: ...u Ubuntu is based on the Debian operating system and both offer a desktop as well as a large library of applications that may be freely installed used and modified The main GUI tool for obtaining applica tions on Ubuntu is Synaptic Package Manager although the command line tool called apt get is often used by advanced users and scripts in order to streamline the installation process Applications a...

Page 42: ...t corner of the screen which will look like the screenshot below Home folder structure as viewed in Ubuntu File Manager Both Ubuntu and Debian offer many different types of desk top environments such as Xubuntu LXDE Lubuntu Gnome KDE Kubuntu and Blackbox to name a few all of which are interchangeable Each one includes specific applications that are useful for different types of users For instance ...

Page 43: ...luding lap tops desktop PCs smartphones and ODROID microcomputers Graphical User Interface GUI All versions of Linux offer a command line interface CLI and sometimes include a window manager and desktop environment that is launched on startup Most modern Linux systems such as Ubuntu use a library called X11 to create a windowing environment and provide graphics libraries so that users may interact...

Page 44: ...hat a 60fps video has 30 complete full frames per second The display device sends the two fields to the screen in the horizontal odd and even or interlaced pixel positions Given the vi sual persistence of the human eye this reconstruction of full frames is undetectable to the viewer In general faster frame rates result in a visually smoother vid eo playback and interlacing results in a halving of ...

Page 45: ...deo settings differently In this case matching both the C2 video settings and the video display settings to the source material s native format would be appropriate With this configuration The video playback would provide an image that is true to the original source material as well as freeing up more of the C2 s CPU bandwidth for other processing tasks HDMI Overscan If the display used on your C2...

Page 46: ...l need to enter the display s menu setting mode usually marked Menu or Settings You will need to search for the menu item that controls the overscan setting and on some displays you will need to enable the Advanced mode The table below describes several possible menu locations for the overscan setting on different displays Menu Picture Mode Aspect ratio Change to Just Scan Menu Picture Screen adju...

Page 47: ...U7 Plus to the ODROID C2 s USB port then use a Type A HDMI cable to connect the display Then edit the media boot boot ini file on the boot partition as detailed in Chapter 2 and uncomment the 1024x600 resolution and DVI mode entries making sure to comment out the current selections Possible screen resolutions Uncomment only a single Line The line with setenv written At least one mode must be selec...

Page 48: ...etenv m 640x480p60hz setenv m 800x480p60hz setenv m 800x600p60hz setenv m 1024x600p60hz setenv m 1024x768p60hz setenv m 1280x800p60hz setenv m 1280x1024p60hz setenv m 1360x768p60hz setenv m 1440x900p60hz setenv m 1600x900p60hz setenv m 1680x1050p60hz setenv m 1920x1200p60hz HDMI BPP Mode setenv m_bpp 32 setenv m_bpp 24 setenv m_bpp 16 HDMI DVI VGA modes Uncomment only a single Line The line with s...

Page 49: ...SX is a priority it is recommended to format external drives as FAT32 which can be read by nearly all operating systems The root filesystem of Linux is usually in EXT3 or EXT4 format which can only be read by other Linux systems Disk partitions may be easily resized in order to use all of the available space on a disk using a utility called Gparted The image below shows the Gparted application bei...

Page 50: ...ilable for test and you can join a group of users that test out new features be fore the formal release Troubleshooting If you experience problems with playback of some video formats in Kodi the first troubleshooting step would be to set video acceler ation to software by selecting the System menu the pressing Set tings Video Acceleration Decoding Method Software Kodi Upgrade If you are installing...

Page 51: ...rocessing spreadsheets presentations drawing and flowcharting applications It is a free alternative to Microsoft Office and can be installed on Ubuntu via the GNOME Software Center or Synaptic Package Manager Screenshot of LibreOffice Music and MIDI Not long after the first personal computers became available cre ative individuals began to find inventive ways to use them for music composition and ...

Page 52: ...ve device sup port with pre configured applications The official Ubuntu Studio site page has an http bit ly 1FFKyvh which will give you an idea of the range of Music and MIDI applications possible on Linux Ubuntu Studio includes some of the most popular audio apps available including tools for DAW Digital Audio Workstations for multi track mixing sequencers for MIDI music drum machines soft ware s...

Page 53: ...r theremin or a capacitive touch controller such as the Freescale MPR121 Using conductive paint for the capacitive inputs could inspire even more interesting inventions Android Android is easy to use yet powerful operating system intend ed for smartphones tablets and other portable devices but also runs very well on the ODROID C2 not only as an inexpensive testing plat form for building Android ap...

Page 54: ...power Screen allows you to change the resolution as well as stretch and move the screen Rotation allows you to rotate the screen to either Portrait or Land scape mode Setting the Display Resolution On the Screen tab of the ODROID Utility application select the preferred monitor resolution then click on Apply and Reboot The new resolution will be active after the reboot has completed An overscan ad...

Page 55: ...her quality after about 30 seconds depending on the speed of your Inter net connection Gaming Most Android games are compatible with the ODROID C2 but some applications that use multitouch gestures won t be playable with out a touchscreen The ODROID VU available from the Hardkernel Store will allow all Android games to be played without the need for an auxiliary controller Music and MIDI There are...

Page 56: ...luetooth device to the C2 turn on your device and put the device into pairing mode The Bluetooth manager will display a list of detected devices as well as devices that have been successfully paired If your device was detected but not shown to be a paired device click on the sliders icon on the right side of the listed device to open the bluetooth settings for this device Complete the pairing proc...

Page 57: ... and USB DC Plug Cable 2 5mm x 0 8mm USB SPDIF and ODROID USB CAM 720P USB GPS Module WiFi Module 0 3 4 USB3 to SATA Bridge Board USB CAM 720p HiFi Shield Universal Motion Joypad myAHRS USB Audio Adapter VU7 VU Shell for VU7 IR remote Controller XProto Plain UPS3 RTC Shield Preparation Install the official Hardkernel Linux image onto an eMMC mod ule or compatible SD card After ensuring Internet co...

Page 58: ...w USB UART kit When using Microsoft Windows 7 as a host PC system you will need to install a terminal application such as PuTTY This can be used to set up commonly used configurations in order to access the C2 either via a serial connection or SSH Prior to setting up the kit power off the ODROID C2 Attach one end of the USB UART module to the C2 Attach the other micro USB end of the USB UART modul...

Page 59: ...ial configuration in PuTTY Saved serial configuration in PuTTY Enter configuration information as listed below then select the Session option on the left pane You will see a popup window as indi cated in the following image Serial line COM16 Speed 115200 Connection Type Serial Give this configuration a name such as c2 1 usb serial then save it This saved configuration can be reloaded and used anyt...

Page 60: ...or this SSH option to work the host PC system and the C2 need to be visible to each other on the same local area network LAN Refer to the screenshot below for an example PuTTY configuration Host name 192 168 7 82 Port 22 Connection type SSH Saved SSH configuration in PuTTY Enter the ODROID C2 s IP address or hostname if it can be re solved from the host PC system and a numerical value of 22 for th...

Page 61: ... system Next we present information on the use of a Ubuntu desktop Linux host system Most of the steps apply to a host system running any Linux version including a server OS The steps do not address the use of Linux hosted in a virtual environment such as VirtualBox Linux Host Setup Access the Linux desktop of the host system and launch a termi nal session Attach the USB cable from the USB UART se...

Page 62: ...ion can be checked using the command sudo ls lsa var lock 0 lrwxrwxrwx 1 root root 9 Aug 12 2016 var lock run lock This information is used to setup the communications between the host system and USB UART cable attached to the ODROID C2 The application used to enable communication will be Minicom minicom version minicom version 2 6 1 compiled May 1 2012 Copyright C Miquel van Smoorenburg Launch Mi...

Page 63: ...Exit option to complete the config process You will now return to the terminal windows Reboot the ODROID C2 and you will observe boot time information scroll through the minicom terminal session Port option Serial port data Save setup Minicom session Bluetooth Module 2 Hardkernel offers a bluetooth adapter called the Bluetooth 4 0 Module 2 which is certified to work with the ODROID C2 under both A...

Page 64: ...ed 0 180250 Bluetooth HCI socket layer initialized 0 180261 Bluetooth L2CAP socket layer initialized 0 180284 Bluetooth SCO socket layer initialized 3 945426 Bluetooth RFCOMM TTY layer initialized 3 949664 Bluetooth RFCOMM socket layer initialized 3 954786 Bluetooth RFCOMM ver 1 11 3 958468 Bluetooth BNEP Ethernet Emulation ver 1 3 3 963723 Bluetooth BNEP filters protocol multicast 3 968896 Blueto...

Page 65: ...rrors 0 sudo rfkill list all 0 hci0 Bluetooth Soft blocked no Hard blocked no To configure the adapter from the Ubuntu desktop click on the Bluetooth icon on the top left then select the Adapter Preferences menu item to configure the application Rename the adapter using a friendly name such as c2 1 0 You can make the device always visible when other bluetooth devices scan for this adapter Launch B...

Page 66: ...c plen 2 value 0x00 scanning disabled filter duplicates 0x00 disabled HCI Event Command Complete 0x0e plen 4 LE Set Scan Enable 0x08 0x000c ncmd 1 status 0x00 HCI Command Inquiry 0x01 0x0001 plen 5 lap 0x9e8b33 len 4 num 0 HCI Event Command Status 0x0f plen 4 Inquiry 0x01 0x0001 status 0x00 ncmd 1 HCI Event Extended Inquiry Result 0x2f plen 255 bdaddr D8 B3 77 6F E2 36 mode 1 clkoffset 0x5d2e clas...

Page 67: ...om the 40 pin header onto a solderless breadboard The pins include power GPIO I2C and ADC pins This simplifies prototyping of data acquisition and control projects It is advisable to refer to the Amlogic S905 data sheet at http bit ly 2bfeRFF to fully understand the GPIO designations The above image illustrates simplified information on layout and the designation of the 40 pins Use the data sheet ...

Page 68: ...kit Details can be found in the related wiki at http bit ly 2ba6h8o You can wire up your project to reflect the example show in the image above or a simplified version using fewer LEDs that reacts to the same stimuli light sensor being covered as shown below Tinkering project example Prior to trying out the example you will need to build and install the WiringPi library by running the following co...

Page 69: ...he LEDs light up ODUINO ONE The ODROID compatible Arduino called the ODUINO ONE in cludes the following components all packaged into one experimenta tion unit The ODUINO ONE unit Arduino Uno R3 16x2 LCD display DHT11 one wire humidity Temperature sensor keypad four directional keys The ONE package can be powered by the C2 using the USB Std A Std B cable Connect the cable to the ODUINO ONE and the ...

Page 70: ...ial 220 bNumConfigurations 1 The activity on the ONE package also gets transmitted to the ODROID C2 Hardkernel has provided C sample source code to dis play this information You will need to install some pre requisite soft ware components first sudo apt get install qt4 default qt4 designer libqwt dev You can then download the sample Qt based source code to the C2 cd wget c http dn odroid com ODUIN...

Page 71: ...e application user interface should look like the above image ODROID SHOW2 Hardkernel offers an Arduino compatible 2 2 240 320 TFT LCD display called ODROID SHOW2 shown below that can be used with the ODROID C2 a PC and other Hardkernel boards ODROID SHOW2 annotated image After attaching the SHOW2 to the ODROID C2 use the follow ing commands to get details on it lsusb Chapter 4 ...

Page 72: ...ze0 64 idVendor 0x10c4 Cygnal Integrated Products Inc idProduct 0xea60 CP210x UART Bridge myAVR mySmartUSB light bcdDevice 1 00 iManufacturer 1 Silicon Labs iProduct 2 CP2104 USB to UART Bridge Controller iSerial 3 00875559 bNumConfigurations 1 ls lsa dev ttyUSB 0 crw rw 1 root dialout 188 0 Feb 11 2016 dev ttyUSB0 Obtain the SHOW sample source code and build a sample using the commands cd git clo...

Page 73: ...l offers an I O shield with a 16 chars by 2 lines white on blue LCD display tactile switches and I O pins Its use requires the WiringPi library whose installation was discussed earlier After in stalling the shield on the C2 the sample source can be obtained from http bit ly 1fbtFlE Copy the sample code using the following commands cd mkdir lcdio cd lcdio mv Downloads lcd_cpuInfo c Modify the sourc...

Page 74: ...or 16x2 LCD device then power it up Next download the I2C sample and built it using the commands git clone https github com hardkernel WEATHER BOARD git cd WEATHER BOARD c_weather make Run the program to see the weather data on the terminal sudo weather_board si1132 UV_index 0 03 Visible 360 Lux IR 196 Lux bme280 WEATHER BOARD v1 5 temperature 35 11 C humidity 35 49 pressure 999 12 hPa altitude 20...

Page 75: ...C plug cable usage USB audio adapter Attach the USB powered audio adapter to the ODROID C2 Af ter a few moments check to see if the device is detected lsusb Bus 001 Device 003 ID 0d8c 000c C Media Electronics Inc Audio Adapter This adapter is based on the CM108AH single chip USB audio solution and is capable of stereo output It includes the dual DAC headphone amplifier ADC microphone booster PLL r...

Page 76: ...link in order to play some video with audio Next download a sample MP3 file Start Audacity from the Ap plications Sound Video menu of the desktop open the mp3 file within Audacity and select play in order to listen to it Audacity screen showing play USB SPDIF Hardkernel offers an ODROID C2 compatible S PDIF Sony Philips Digital Interface Format kit with a USB interface This allows you to hook up t...

Page 77: ...ceClass 0 Defined at Interface level bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0d8c C Media Electronics Inc idProduct 0x013c CM108 Audio Controller bcdDevice 1 00 iManufacturer 1 C Media Electronics Inc iProduct 2 USB PnP Sound Device iSerial 0 bNumConfigurations 1 Now that the device is verified to be recognized by the system configure it by launching the PulseAudio Volume ...

Page 78: ... is working properly PulseAudio Volume Control PulseAudio profile USB CAM 720P Hardkernel offers a USB CAM rated 720p resolution with up to 30 fps which is certified to work with the ODROID C2 as shown below 720p 30fps USB CAM AttachtheUSB CAMtoanavailableUSBportontheODROID C2 and wait for a few moments Details of the camera can then be ob tained using the commands lsusb Bus 001 Device 005 ID 1b71...

Page 79: ...SATA3 HDD SDD interface kit offered by Hardker nel allows a SATA hard drive HDD or solid state drive SSD to be attached to the ODROID C2 The package includes the docking sys tem a power supply 12V 2A and a USB3 0 cable which is compati ble with both Android and Linux To use it follow these steps Shutdown the ODROID C2 and turn the power off Attach the docking system to the ODROID C2 with the inclu...

Page 80: ...TA3 bridge component used in the docking system with the follow ing commands lsusb Bus 001 Device 004 ID 174c 55aa ASMedia Technology Inc ASMedia 2105 SATA bridge sudo lsusb D dev bus usb 001 004 sudo password for odroid Device ID 174c 55aa ASMedia Technology Inc ASM1051E SATA 6Gb s bridge ASM1053E SATA 6Gb s bridge ASM1153 SATA 3Gb s bridge Device Descriptor bLength 18 bDescriptorType 1 bcdUSB 2 ...

Page 81: ...stem Administration menu Select the device which will typically be named dev sda if no other storage devices exist on the system Highlight the unallocated partition and select the Device Create Partition Table menu item You will be presented with a warning as shown below Partition creation warning Click the Apply button then highlight the unallocated partition and select the Partition New menu ite...

Page 82: ... the HDD has been installed and mounted and is ready for use USB3 to SATA Bridge Board This board contains a USB3 0 to SATA3 controller Genesis GL3321G that allows interfacing of a single 2 5 SATA HDD SDD While providing power to the storage it also provides access to the data stored on the attached SATA storage device SATA bridge board To use the controller first power down the ODROID C2 then in ...

Page 83: ... following command shows how it would appear to the system df h Filesystem Size Used Avail Use Mounted on dev sda1 46G 52M 44G 1 media odroid odroid c2 hdd 01 Once mounted this way you can proceed to use the SATA stor age device USB GPS Module Hardkernel produces a 5V 0 1A GPS receiver with an USB inter face that supports the standard National Marine Electronics Associa tion NMEA GPS protocol as s...

Page 84: ... essential GPS pvt position velocity time data which represents the following information GPRMC 123519 A 4807 038 N 01131 000 E 022 4 084 4 230394 003 1 W 6A RMC Recommended Minimum sentence C 123519 Fix taken at 12 35 19 UTC A Status A active or V Void 4807 038 N Latitude 48 deg 07 038 N 01131 000 E Longitude 11 deg 31 000 E 022 4 Speed over the ground in knots 084 4 Track angle in degrees True 2...

Page 85: ...lue sky for GPS signals If you wish to see a real time map while you are driv ing in a vehicle with this setup you will need to use your smartphone as a hot spot and have the ODROID communicate with it via WiFi myAHRS board If you are looking for an Attitude Heading Reference System AHRS less influenced by acceleration and magnetic disturbances the low cost USB2 based myAHRS board offered by Hardk...

Page 86: ...D 0483 5740 STMicroelectronics STM32F407 sudo lsusb D dev bus usb 001 010 Device ID 0483 5740 STMicroelectronics STM32F407 Couldn t open device some information will be missing Device Descriptor bLength 18 bDescriptorType 1 bcdUSB 2 00 bDeviceClass 2 Communications bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0483 STMicroelectronics idProduct 0x5740 STM32F407 bcdDevice 2 00 iM...

Page 87: ...do apt get install python serial sudo python python_example py dev ttyACM0 WiFi Module 4 The WiFi Module 4 is the latest generation WiFi module offered by Hardkernel Some of the features that the module supports includes the following IEEE 802 11a b g n WLAN module with on board 2 4Ghz and 5Ghz Dual band antenna USB 2 0 host interface LED for WiFi Link Activity and WPS status indicators MediaTek R...

Page 88: ... will first be presented with the option to enable WiFi Enable the WiFi adapter and it will automatically scan and pres ent the various networks that can be accessed Select your WiFi net work and you will be presented with a login window Enter the pass word and click the Connect button In a few moments you should be connected to the network You can then run the ifconfig command to obtain connectio...

Page 89: ...ubdevice 0 subdevice 0 Following the same steps listed in the S PDIF section you can configure the setup using the available Pulse Audio tool with the S PDIF cable attached Next page we demonstrate how the default An alog Audio option is selected The Digital S PDIF option may also be selected similarly HiFi Shield configuration RTC Shield Like many of the earlier ODROID models the ODROID C2 does n...

Page 90: ...108500 pcf8563 51 status okay Edit the etc modules file using any text editor sudo vi etc modules Then add the text aml_i2c at the end of the file and save it Sim ilarly update the etc rc local file sudo vi etc rc local Then add the following command to the bottom of the file save the file and reboot the system sudo hwclock r Ensure the system is able to access the ntp servers on the inter net Run...

Page 91: ...own Timezone setup With this connectivity ensured and timezone setup right obtain the correct time from any clock and update the system sudo date s 20 APR 2016 18 00 00 sudo hwclock w Reboot and check the timezone and clock settings It should keep proper time now syncing with the ntp servers periodically De tailed steps can be found at http bit ly 2btCAzP UPS3 There are many situations when an Uni...

Page 92: ...t mounted on an ODROID C2 Additionaldetailscanbefoundathttp bit ly 2b8XW77 UPS3 PCB UPS3 installed Xprotolab Plain Xprotolab Plain is a kit that includes an Oscilloscope Logic An alyzer Waveform Clock generator 10x hook probe all in one tiny lightweight and low cost package Xprotolab Plain connected to an ODROID C2 The main board was developed by Gabotronics who has pro vided an open source QT5 ba...

Page 93: ...necting the cable as shown in the image on the previ ous page launch the application using the following command sudo xscope Usage details for the Xprotolab Plain can be found at http bit ly 22xfjzn Xprotolab Plain data acquisition ODROID VuShell for ODROID VU7 The VuShell is a laser cut acrylic enclosure for the ODROID VU7 and ODROID VU7 Plus With the use of the ODROID C2 you can create your own ...

Page 94: ...yroscope Use the detailed assembly instructions at http bit ly 1S be46q and attach it to the ODROID C2 running the latest Android im age in order to play games as demonstrated in the January 2016 issue of ODROID Magazine on page 18 http bit ly 2byzrQq Before installing games on the ODROID C2 you need to install the Google Play store which is detailed at http bit ly 2aWS696 After installing it you ...

Page 95: ... having pre configured drivers included with the official Hardkernel disk images We hope you enjoy tinkering and build ing your own projects using some of the techniques described here Additional Resources ODROID Forums http forum odroid com ODROID Magazine http magazine odroid com ODROID C2 Wiki http bit ly 1Trq5Ef Android images http bit ly 2be993R Linux images http bit ly 2b58GEe Improved Win32...

Reviews: