background image

ODROID-C1 

USER MANUAL

rev. 20150929

Summary of Contents for ODROID-C1

Page 1: ...ODROID C1 USER MANUAL rev 20150929 ...

Page 2: ...net and Wifi 7 MicroSD Card 7 eMMC Module 7 LED Status 8 Technical Specifications 8 Heatsink 11 Temperature Measurement 14 Frequently Asked Questions 14 Chapter 2 Getting Started 19 Home Computing Network 19 Preparing the Work Area 20 Flashing an Image 21 Boot Media 21 Windows 7 24 Linux 27 OSX 29 Powering Up 29 Troubleshooting 29 Configuring Linux 31 Configuring Android 32 Powering Down 33 Index ...

Page 3: ...40 Disk Partitions 40 Web Browsing 41 Kodi formerly XBMC 41 Office and Productivity Applications 42 Music and MIDI 43 How do I Add a MIDI Interface to the C1 43 Experimental Music with the C1 44 Android 44 Desktop Environment 44 ODROID Utility and Updater 45 Setting the Display Resolution 45 Kodi 46 Netflix 46 Gaming 46 Using Bluetooth Devices with Android 47 Adding an ODROID VU Touchscreen 47 Cha...

Page 4: ...2 LCD I O Shield 65 Weather Board 66 3 2inch TFT Touchscreen Shield 68 USB DC Plug Cable 2 5x0 8mm 71 USB SPDIF 71 USB CAM 720P 74 UPS2 76 USB GPS Module 76 Conclusion 79 Additional Resources 79 Addendum C1 Features 80 Index ODROID C1 Beginner s Guide ...

Page 5: ...phistication 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 monthly magazine a...

Page 6: ... 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 C1 are Ubuntu Android Fedora ARCHLinux Debian and OpenELEC with thousands of free open source software packages available The ODROID C1 is an ARM device which is the most wide ly used architecture for mobile dev...

Page 7: ... as an auxiliary de vice 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 media devices ava...

Page 8: ... The C1 supports the services of numerous peripherals The image below depicts the following peripherals Power Supply Unit PSU cable USB UART debug cable RTC battery cable Infra Red IR receiver USB WiFi dongle HDMI cable USB Wireless keyboard mouse dongle USB Touch cable Ethernet cable and the audio headphone cable attached to the 3 5mm port on an HDMI monitor such as an ODROID VU Chapter 1 ...

Page 9: ...uch screen monitor supporting stereo audio and 10 point touch control ODROID VU HDMI Monitor This image depicts the use of the Tinkering kit designed for C1 useful to experiment with circuit design and related software monitor ing and control which is detailed in Chapter 4 C1 Tinkering kit Chapter 1 ...

Page 10: ...in PSU into the power outlet The pins are of Asian standard and you may need an adapter to use in your region such as the Americas The PSU pictured above is available from Hardkernel USB DC plug cable Attach the USB end of this cable to the USB port of a charging device that can generate 2A 5V and attach the plug to the C1 This cable is also available from Hardkernel DC plug cable If you have a 5V...

Page 11: ... image on the left or mount a 0 ohm resistor on R87 type 1608 as shown in the image on the right Monitor The C1 offers a microHDMI port for connecting an HDMI com pliant monitor It is recommended to use the Hardkernel supplied microHDMI to HDMI adapter cable but many other high quality standard cables should also work There are some reported issues with cables that lack HDMI grounding wires inside...

Page 12: ...s ca pable of up to 1 GB 1000 MB per second transmission rate The WiFi USB adapter fits in any of the 4 USB ports MicroSD Card Align the metal strips of the microSD card with the pins of the mi croSD card connector and 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 flip the microSD card if you notice a wrong insertion direction...

Page 13: ...s quickly when the kernel is in panic mode Technical specifications Processor Amlogic S805 Quad Core Cortex A5 processor with Dual Core Mali 450 GPU eMMC module socket 8GB 64GB Toshiba 16GB 32GB Sandisk iNAND Extreme The eMMC storage access time is 2 3 times faster than the SD card You can purchase 4 size options 8GB 16GB 32GB and 64GB Using an eMMC module will increase speed and responsiveness si...

Page 14: ...tible with a wider array of microSD cards than the original C1 5V 2A DC input The DC input is for 5V power input with an inner diameter of 0 8mm and an outer diameter of 2 5mm The ODROID C1 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 USB host ports There are four USB 2 0 host ports You can plug a keyboard mous...

Page 15: ... interface with physical devices like buttons and LEDs using a lightweight Linux controller If you re a C C or Python developer there s a useful library called WiringPi that handles interfacing with the pins We ve already ported the WiringPi v2 library to ODROID C1 as described in Chapter 4 Note that all of the GPIO ports are 3 3Volt and the ADC inputs are limited to 1 8Volt Serial console port Co...

Page 16: ...power is off Power supply circuit Discrete DC DC converters LDOs are used for CPU DRAM IO power supply Power protector IC The power protected is a NCP372 over voltage over current reverse voltage protection IC from OnSemi Heatsink Electronic components all generate heat while operating and different components generate different levels of heat Some compo nents do not require any cooling while othe...

Page 17: ...ent plastic backing on the grey thermal pad There may be transparent plastic on both sides Then place the ther mal pad over the processor and memory modules as shown in the following image Remove the plastic film from the white pad on the underside of the heatsink The white pad should be stuck to heatsink Align the white pushpins to the correct holes and push both pins through the holes until a cl...

Page 18: ...for the heatsink to feel warm when the C1 is operating A warm heatsink is actually a sign that the installation was done correctly and heat is being transferred from the modules to the heatsink If the C1 s operating environment has higher temperatures it may be useful to install the heatsink to avoid throttling and lowered performance An optional fan is also available for applications that require...

Page 19: ...lications being run In the first terminal window type in the following command sysbench test cpu num threads 4 cpu max prime 1000000000 After waiting at least 5 minutes type the following into the second window cat sys class thermal thermal_zone0 temp This result is in Celsius if it has 2 digits If it has 5 digits that value should be divided by 1000 to get the temperature in Celsius Re type the c...

Page 20: ...80p content well on Ubuntu Linux Yes H 264 H 265 VC1 MPEG4 MPEG2 video clips are playable with Kodi formerly XBMC in most cases How can I root Android Android for the ODROID is unlocked and rooted by default for devel opment How can I install the Google Play Store It is very simple Just download an installer from http bit ly 1gkv4PM click the APK and follow the instructions inside the application ...

Page 21: ...ing system image Ethernet cable Power supply DC 5V 2A An eMMC module is recommended over the microSD card due to much higher I O speed I am a platform OS developer What should I buy with ODROID C1 You should obtain the minimum peripherals along with USB UART module Kit for debugging and system console MicroUSB cable for fastboot and ADB interface I have a USB Serial converter Should I buy your USB...

Page 22: ...F and optical pass through supported It is possible with our USB to SPDIF interface available at the Hard kernel store but it only works with Kodi XBMC 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 Is there an I2S port to connect a HiFi DAC No...

Page 23: ...rnel 3 10 LTS Which 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 infor mation 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 userlan...

Page 24: ...iagam below A Digital Subscriber Line DSL modem typically provid ed by your Internet Service Provider ISP which connects your network 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 o...

Page 25: ...mize posture and minimize overall fatigue A freely available area of non conductive surface of at least 1m x 1m preferably covered by a well grounded anti static mat with you wearing the grounding wrist band cable attached to mat This safe guards the handling and placement of unprotected electronics such as C1 board etc on this area A desktop with accessible monitor keyboard mouse or a laptop to p...

Page 26: ...receptacles on the board If you refer to the annotated board image you can see that the C1 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 ...

Page 27: ...u will get the fastest possible read write speeds USB2 compati bility will allow one or more points to be of type USB2 but will result in slower speeds Start 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 meta...

Page 28: ... able to boot immediately with some mod els 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 C1 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 Memory Card ...

Page 29: ... a MicrosoftWindows 7 Computer As soon as you attach the USB SD card reader writer for the first time the Windows OS will sense the 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 database If found it will install it for the first time If not found it will request you to provide a location ...

Page 30: ...e Click the download link that corresponds to the 64 bit Windows OS in this case 7z938 x64 msi List of 7 zip installation files After the file is downloaded run it and select the default options and wait for 7 zip to finish installing Next launch the Windows Explor er application and browse the download directory Select the down loaded compressed image file and right click the file with the mouse ...

Page 31: ...er to launch the Win32DiskImager2 exe application 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 automatically selects the device G that corresponds to the boot me dia that was placed in the USB SD card reader writer The screenshot above sho...

Page 32: ...arlier in this section Flashing an Image on a Linux Ubuntu 14 04 LTS Computer In your Ubuntu Linux desktop launch a terminal window Create a working directory cd mkdir linux img cd linux img You can download the compressed image using a browser 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 c...

Page 33: ...uld potentially ruin the OS installation of the computer The dd command is hence often referred to as the disk destroyer command This step could take a while So wait for it to complete before proceeding Once completed remove the USB SD card reader writer from the USB port of the computer Remove the boot media and place it on the non conductive surface The above steps are to flash the Linux image T...

Page 34: ...into the appropriate port on the C1 Ensure that the work area is clear of unnecessary items Wear the grounded wristband Touch a metallic surface like that of your desktop Then open the C1 packaging box Place the anti static bag containing the C1 board on to the non conductive work surface Open the bag and remove the board holding the edges Avoid touching any of the components peripheral connec tor...

Page 35: ...me HDMI cables have compatibility issues so make sure to use an official Hardkernel HDMI cable Some monitors have non stan dard EDID functions In this case you need to select the non EDID mode in the ODROID configuration utility Some cables have a shorter plug and it may be necessary to remove the plastic case for a better connection If there is a USB host port on the monitor connect a microUSB ca...

Page 36: ...ROID to a Linux desktop run the included ODROID Utility which is linked on the desktop and expand the file system to have full use of the microSD card or eMMC module Then run the ODROID Utility again to update the system and reboot Configuring HDMI resolution with the Linux ODROID Utility app Chapter 2 ...

Page 37: ...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 Re...

Page 38: ...e In Android pow ering 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 fol lowing 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 C1...

Page 39: ... Ubuntu 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 Applicat...

Page 40: ...hidden from view that start with a dot where settings for various applications are stored To view the Home folder start the File Manager application from the Applications menu in the bottom left corner of the screen which will look like the screenshot below Both Ubuntu and Debian offer many different types of desk top environments such as Xubuntu LXDE Lubuntu Gnome KDE Kubuntu and Blackbox to name...

Page 41: ...ar chitecture ARMHF may be converted to run on the ODROID by in stalling an ODROID C1 kernel and modifying the boot partition This makes Linux one of the most versatile operating systems available since it can be configured to run on almost any device including lap tops desktop PCs smartphones and ODROID microcomputers Graphical User Interface GUI All versions of Linux offer a command line interfa...

Page 42: ... formats and video interlac ing is the historical standard for broadcast video In interlacing two frames or more correctly fields are transferred for each frame of the video signal so that 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 ...

Page 43: ...ly for such purposes as video editing video effects or historical restoration and the source material resolution is lower than the maximum resolution of the video display the user may wish to setup the video settings differently In this case matching both the C1 video settings and the video display settings to the source material s native format would be appropriate With this configuration the vid...

Page 44: ...arked with for wide mode If your remote has one of these dedicated display mode keys pressing this key should allow you to cycle through the display modes Finding Setting in Monitor Menus If you cannot find a display mode button you will 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 ...

Page 45: ...nds using the keyboard Many Linux systems also come with the Secure Shell SSH server which allows a command line in terface to be invoked from a remote computer via Ethernet Other protocols such as Virtual Network Computing VNC have the ability to project the graphical environment to a remote computer as well BASH is a powerful scripting language as well as a means of reading creating modifying an...

Page 46: ... ODROID C1 CPU is powerful enough to play standard videos within a browser win dow at normal size using software rendering Kodi formerly XBMC Kodi is an application which can turn an ODROID C1 into an amazingly powerful home media center In fact using the C1 to run Kodi is the reason why many if not most people purchased their C1 in the first place If you re not familiar with Kodi here are links t...

Page 47: ... your data is always a good idea and Kodi is no exception Kodi configurations and databases can become quite de tailed but backup and restoration is quite simple You can perform full or partial backups restores as well as copy your complete Kodi setup to another system even to your PC or laptop In order to perform a Kodi backup or restore you will first need to install the Kodi Backup AddOn More i...

Page 48: ... face is a 5 pin DIN connector Internal sound cards no longer include this connector but it can be found on some high end external USB sound modules However USB to MIDI adapters are inexpensive and widely available The MIDI Manufacturers Associated website at http bit ly 1Gn2cYw is a good source for additional information Linux Support for Music and MIDI MIDI adapters USB Sound Devices and Music A...

Page 49: ...ng A MIDI Interface and any number of sensors could be used to create unique musical instruments For example a pressure transducer could be used as a MIDI breath controller ultrasonic trans ducers could be used to make a Vulcan Lute a string less harp or a super theremin or a capacitive touch controller such as the Freescale MPR121 Using conductive paint for the capacitive inputs could inspire eve...

Page 50: ...re various aspects of the hardware CPU changes the CPU governor settings and can set the Kodi media center to launch at system startup The Performance governor will give the best speed but consume the most 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 Resolut...

Page 51: ...stall The official Kodi website provides more detail on the Android installation at http bit ly 1FFK7B9 Netflix Install Netflix from Google Play then click on its icon which should be automatically added to the Android desktop Login with your existing Netflix account or create a new one When you start a video it always begins playing at low quality then switches to higher quality after about 30 se...

Page 52: ...tings list under the Wireless and Networks category and select ON to en able your USB bluetooth adapter and bluetooth services To begin pairing your bluetooth device to the C1 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 p...

Page 53: ...r Board 16x2 LCD I O Shield and 3 2inch TFT Touchscreen Shield DC Plug Cable Assembly 2 5mm and USB DC Plug Cable 2 5mm x 0 8mm USB SPDIF and ODROID USB CAM 720P UPS2 and USB GPS Module USB UART Module Kit It is beneficial to get a view of the early boot process especially if you are working with newly added external devices or creating spe cial purpose boot images Typically these activities can b...

Page 54: ...abs CP210x USB to UART Bridge and install the appropriate device driver After installation has completed you can verify which COM port the module is associated Launch the Computer Manage ment utility of Windows 7 highlight the Device Manager option and expand the Ports list In this particular case as shown in the below ex ample screenshot it can be see that the module is installed on COM8 USB UART...

Page 55: ... reboot the C1 After a short delay you will see messages scroll by in the PuTTY console as shown in the below image This is when one would notice messages relevant to external devices or soft ware modules These messages can help with debugging issues you may encounter Most of these messages will also be listed through the dmesg command PuTTY serial console Close the serial console then set up the ...

Page 56: ...e C1 wait approximately 60 seconds then click on Open in Putty and you should be prompted for a username and password which are typically odroid and odroid You will see a screen presented as shown in the image below PuTTY SSH console You can now access the C1 system as if you had locally opened a terminal Window While you cannot view the boot time log in re al time you can run a large number of Li...

Page 57: ...ated Products Inc CP210x UART Bridge myAVR mySmartUSB light Device Descriptor bLength 18 bDescriptorType 1 bcdUSB 2 00 bDeviceClass 0 Defined at Interface level bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 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 Brid...

Page 58: ...etup Minicom session The four steps include Select the Serial port setup option and you will be presented with screen 2 In screen 2 type A to select option A Edit the serial device to that used on your system In this case it is dev ttyUSB0 Ensure the lockfile location is what was obtained earlier Likewise check option E reflects the information shown in the figure 115200 8N1 Ensure Hardware Flow C...

Page 59: ...ter and Asus BT400 adapter While some of the required software modules may already exist in your C1 s installed image it is helpful to install the following addi tional modules and utilities using the following commands sudo apt get install bluez dbg bluez hcidump bluez utils bluez tools sudo apt get install bluewho blueman python bluetooth Some of them could be used to debug your setup if you use...

Page 60: ...man Interface Emulation ver 1 2 3 409060 2 Bluetooth HIDP socket layer initialized You can then check the list of the installed Bluetooth modules dpkg l grep blue ii blueman armhf Graphical bluetooth manager ii bluez armhf Bluetooth tools and daemons ii bluez alsa armhf armhf Bluetooth ALSA support ii bluez cups armhf Bluetooth printer driver for CUPS ii libbluetooth dev armhf Dev files for BlueZ ...

Page 61: ...the changes and reboot Launch Bluetooth Manager Bluetooth Manager configuration Bluetooth Manager config update If there is a need to test debug issues related to the adapter you can use the command line Bluetooth packet analyzer sniffer to ana lyze Bluetooth traffic sudo hcidump HCI sniffer Bluetooth packet analyzer ver 2 5 device hci0 snap_len 1500 filter 0xffffffff HCI Command Write Class of De...

Page 62: ...I Event Command Complete 0x0e plen 4 Write Extended Inquiry Response 0x03 0x0052 ncmd 1 status 0x00 Another useful tool is wireshark It gives a graphic view of the snooped data etc It can installed using the command sudo apt get install wireshark After installation you can launch wireshark following the steps shown in the following images The welcome screen should appear reflecting that the Blueto...

Page 63: ...owards that end Hardkernel has developed the C1 Tinkering kit with numerous items to get you started as shown in the following image The Hardkernel Tinkering Kit includes many useful items Some of the components in the Tinkering Kit include Assembled T breakout PCB 40Pin GPIO Breakout board Breadboard 630 Tie points with dual power lanes 40pin Ribbon cable IDC Flat cable 100mm 40pin Male to Male D...

Page 64: ...he pins from 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 S805 datasheet available at http bit ly 1dFEHhX to fully understand the GPIO designa tions Chapter 4 ...

Page 65: ...e The WiringPi library has been ported to work with C1 The chart above illustrates the GPIO pin numbering translation scheme used in the WiringPi library Tinkering project example The image above shows a project example using the C1 and the tinkering kit Details can be found in the related wiki at http bit ly 1N srlU9 You can wire up the project to reflect the example Prior to trying out the examp...

Page 66: ...ht sensor and you should see the 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 as shown in the image below The ODUINO ONE unit Arduino Uno R3 a shield containing one 16x2 LCD display one DHT11 one wire humidity Temperature sensor one keypad four directional keys The ONE package can be powe...

Page 67: ...ol 0 bMaxPacketSize0 8 idVendor 0x2341 Arduino SA idProduct 0x0043 Uno R3 CDC ACM bcdDevice 0 01 iManufacturer 1 iProduct 2 iSerial 220 bNumConfigurations 1 The activity on the ONE package also gets transmitted to the ODROID C1 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 de...

Page 68: ...rdkernel offers an Arduino compatible 2 2 240 320 TFT LCD display called ODROID SHOW2 that can be used with the C1 a PC or other Hardkernel boards The LCD display can be used to display simple messages and hardware status and the user switches mount ed at the bottom of the board allow simple user interaction and input ODROID SHOW2 annotated image After attaching the SHOW to the C1 use the followin...

Page 69: ...at Interface level bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 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 dev ttyUSB dev ttyUSB0 ODROID SHOW example project output Obtain the SHOW sample sour...

Page 70: ...st be installed when you upload the firmware It must NOT be installed during normal usage mode 16x2 LCD I O Shield Hardkernel 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 C1 the sample source can be obtained from http bit ly 1...

Page 71: ...age below gcc o lcd_cpuInfo lcd_cpuInfo c lWiringPi lWiringPiDev lp thread sudo lcd_cpuInfo 16x2 LCD I O shield showing some CPU data Weather Board The Weather board shown below is an add on developed by Hardkernel to be used with either the SHOW or 16x2 LCD device Below are the steps needed to get it to work with the C1 and ODROID SHOW Hardkernel s Weather Board peripheral Chapter 4 ...

Page 72: ...0 si1132 60 compatible silab si1132 sudo fdtput t x media boot meson8b_odroidc dtb i2c c1108500 bmp085 77 reg 0x77 sudo fdtput t x media boot meson8b_odroidc dtb i2c c1108500 si702x 40 reg 0x40 sudo fdtput t x media boot meson8b_odroidc dtb i2c c1108500 si1132 60 reg 0x60 Enable the i2c module to auto load on boot up sudo echo aml_i2c etc modules Ensure the WiringPi is installed as described earli...

Page 73: ... screen with a resistive touch display as shown here TFT touchscreen setup This display is in the form of a shield that fits on to some of the the GPIO pins of the C1 To activate the display start with the upgrade commands below sudo apt get autoremove sudo apt get update sudo apt get upgrade sudo apt get dist upgrade sudo apt get install linux image c1 Then insert the modules using with one comma...

Page 74: ...n save the changes Section Device Identifier C1 fbdev Driver fbdev Option fbdev dev fb2 EndSection Then disable the Xorg option on your C1 using the ODROID Utility sudo odroid utility Then use the up down cursor keys to select the Xorg On Off menu option and hit ENTER then select Disable Xorg Update the kernel launch statement using the command sudo con2fbmap 1 2 Alternatively add the following ke...

Page 75: ...terface to fit the small screen As a result some parts of the user interface may be hidden from full view The AmeriDroid team has also developed a software utility to install and use the TFT display To use their utility follow the steps below Disconnect your C1 from power and HDMI and connect the screen to C1 s GPIO header Boot the C1 and expand the root partition if not already done using ODROID ...

Page 76: ...o provide power to the C1 using a power supply that has an USB port These power supplies could include units that convert AC power to DC power transformers or bat tery packs The image below shows both the USB DC plug cable and a typical LiPo battery pack Ensure that the power supply provides clean power rated at 5V 2 0 Amps USB DC plug cable USB DC plug cable usage USB SPDIF Hardkernel offers a C1...

Page 77: ...g the commands lsusb Bus 001 Device 009 ID 0d8c 013c C Media Electronics Inc CM108 Audio Controller sudo lsusb D dev bus usb 001 009 sudo password for odroid Device ID 0d8c 013c C Media Electronics Inc CM108 Audio Con troller Device Descriptor bLength 18 bDescriptorType 1 bcdUSB 1 10 bDeviceClass 0 Defined at Interface level bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0d8c C M...

Page 78: ...m option then select the System menu under the Confluence tab Select the Audio Output menu item and click on the Audio Output device selection on the top You will be presented with all possible options Select the op tion corresponding to the CM108 device as shown in the screenshot below Next unmute the system using your C1 compatible remote or the keyboard Download an mp3 file to a directory acces...

Page 79: ...lsusb Bus 001 Device 005 ID 041e 4080 Creative Technology Ltd Additional details can be found using the following command sudo lsusb D dev bus usb 001 005 Device ID 041e 4080 Creative Technology Ltd Device Descriptor bLength 18 bDescriptorType 1 bcdUSB 2 00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x041e Creative Te...

Page 80: ...onProtocol 0 iFunction 4 VF0610 Live Cam Socialize HD USB CAM 720p VF0610 USB CAM 720p Attach the USB CAM to an available USB port on the C and wait for a few moments Then run the above commands to ensure that the device and its capabilities are detected accurately Start Camorama with the camera pointed to any well lit object An image of that ob ject should be visible in the display The image belo...

Page 81: ... designed that during its use if the main power source fails it takes over presuming it is fully charged After the battery has drained to a low level it signals the C1 through a digital output pin triggering a graceful shutdown Since the cache file oper ations are likely to be flushed out before the power is turned off the risk of data loss is low USB GPS Module Hardkernel produces a 5V 0 1A GPS r...

Page 82: ...The RMC NMEA has its own version of 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 ...

Page 83: ...k C gpsd control socket path var run gpsd sock Run the gpsmon command gpsmon You should see a screen like that shown in the screenshot be low The GPRMC lines will scroll at the bottom of the screen which indicates that the application is actually receiving the GPS information from the gpsd daemon Gpsmon display From a terminal window launch the foxtrotgps application using the following command fo...

Page 84: ...ver available The ones sold by Hardkernel at http bit ly 1fbE9ld have the advantage of having pre configured drivers in cluded with the official Hardkernel disk images We hope you enjoy tinkering and building your own projects using some of the techniques described here Additional Resources ODROID Forums http forum odroid com ODROID C1 Wiki http bit ly 1KRKoGV Android images http bit ly 1FRHJKl Li...

Page 85: ... a non compliant card would sometimes results in a slow booting or non booting image The C1 is compatible with a wider array of microSD cards Improved CEC functionality The CEC harware has been updated to operate regardless of the presence of an RTC backup battery USB OTG power path A small hardware modification could be performed on the original C1 model to allow it to be powered via the USB OTG ...

Reviews: