Jumpstarting the Onion Omega2

Total Page:16

File Type:pdf, Size:1020Kb

Jumpstarting the Onion Omega2 Jumpstarting the Onion Omega2 An Introduction to a New Low-Cost Internet of Things Computer WOLFRAM DONAT JUMPSTARTING the Onion Omega2 AN INTRODUCTION TO A NEW LOW-COST INTERNET OF THINGS COMPUTER Wolfram Donat Maker Media, Inc. San Francisco Copyright © 2018 Wolfram Donat. All rights reserved. Published by Maker Media, Inc. 1700 Montgomery Street, Suite 240 San Francisco, CA 94111 Maker Media books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari- booksonline.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or [email protected]. Editorial Director: Roger Stewart Editor: Patrick DiJusto Copy Editor: Elizabeth Welch, Happenstance Type-O-Rama Proofreader: Scout Festa, Happenstance Type-O-Rama Cover and Interior Designer: Maureen Forys, Happenstance Type-O-Rama All the circuit and component diagrams in this book are created using Fritz- ing (http://fritzing.org/home). June 2018: First Edition Revision History for the First Edition 2018-06-18 First Release See oreilly.com/catalog/errata.csp?isbn=9781680455229 for release details. Make:, Maker Shed, and Maker Faire are registered trademarks of Maker Media, Inc. The Maker Media logo is a trademark of Maker Media, Inc. Jumpstarting the Onion Omega2 and related trade dress are trademarks of Maker Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Maker Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omis- sions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other tech- nology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights. 978-1-680-45522-9 Safari® Books Online Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business. Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training. Safari Books Online offers a range of plans and pricing for enterprise, government, education, and individuals. Members have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and hundreds more. For more information about Safari Books Online, please visit us online. How to Contact Us Please address comments and questions to the publisher: Maker Media, Inc. 1700 Montgomery Street, Suite 240 San Francisco, CA 94111 You can send comments and questions to us by email at [email protected]. Maker Media unites, inspires, informs, and entertains a growing community of resourceful people who undertake amazing projects in their backyards, basements, and garages. Maker Media celebrates your right to tweak, hack, and bend any Technology to your will. The Maker Media audience continues to be a growing culture and community that believes in bettering ourselves, our environment, our educational system—our entire world. This is much more than an audience, it’s a worldwide movement that Maker Media is leading. We call it the Maker Movement. To learn more about Make: visit us at makezine.com. You can learn more about the company at the following websites: Maker Media: makermedia.com Maker Faire: makerfaire.com Maker Shed: makershed.com Maker Share: makershare.com CONTENTS Introduction vii 1 Setting Up Everything 1 Graphical Setup 3 Trouble Connecting? 5 Connecting via the Command Line 6 Upgrading Firmware and Installing the Console 7 2 Getting to Know the Console 11 GPIO Tool 12 OLED Control 13 Settings 15 The Terminal App 16 The Editor 16 The Webcam Application 18 Relay and PWM Control 19 OPKG and Python 22 3 The Tweetin’ Onion 25 The Temperature Tweet 25 Install Modules 26 The Twitter Side of Things 27 The Hardware 29 The Code 31 4 The Photovore 35 Parts 36 The Voltage Divider 37 Hardware Setup 39 Software and Code 43 v INTRODUCTION In the proud tradition of computers named after fruit—the Apple, the Raspberry Pi, the Banana Pi, the Pine (okay, maybe not that last one)—comes a new entry into the small, single-board computer (SBC) market: the Onion Omega2. Let’s ignore the fact that an onion is a vegetable, not a fruit, and talk about the Onion Omega2’s origins for a moment. The Onion Omega2 (and its big brother, the Omega2+) are the second offering from a company called, appropriately enough, Onion. The original Omega cost about $18 and ran on a Qual- comm Atheros AR9331 chip. Onion ran a Kickstarter campaign in 2016 to replace the Omega with the Omega2, using a different system on a chip, the MediaTek MT7688. They were ultimately successful, raising well over their goal of $440,000, and the Omega2 shipped late in 2016. A nice feature of the newer ver- sion was the price drop; the new board started at $5, though it was later increased to $7.50. The Omega2+ is only $9. The Omega2 is an SBC geared for the Internet of Things (IoT) market, billed as the “world’s smallest Linux server.” It runs a vari- ant of Linux known as OpenWRT, which is most commonly found on embedded devices like routers. It’s low power and really tiny; at 43mm×26mm×10mm, it’s just a little larger than an Arduino Pro Mini. Don’t let that fool you into thinking it’s not a real computer, however. It’s surprisingly powerful for the size, with its MIPS pro- cessor running at 580MHz. It supports up to 256MB of RAM, and it can support SD card storage. It supports 802.11b/g/n 2.4GHz WiFi and 10/100M Ethernet, as well as a multitude of other pro- tocols like UART, I2S, I2C, and SPI. It operates at 3.3V, but its vii docks and expansion boards come with a convenient onboard voltage regulator, which means you can power it with a variety of power supplies without having to worry about blowing it up. There are just a few differences between the Omega2 and the Omega2+, since they have the same processor. The O2 has 64MB of DDR2 DRAM memory, whereas the O2+ has 128. The O2 has 16MB of onboard flash storage, and the O2+ has 32. Finally, the O2+ has a microSD card slot, which gives you signifi- cantly more room for programs. Given the small difference in price, I suggest you pick up the O2+, but all of the projects in this book will work on either model, so if you’ve already purchased the O2, not to worry. I would like to interject a small observation here. If you really go back and look at those specs, it is insane how far we’ve come when it comes to putting computing power into small packages. My first computer was a Commodore VIC-20, which had a whop- ping 5KB of RAM. That’s less than the size of a standard image thumbnail on the web today, and almost thirteen thousand times smaller than the Omega2’s DRAM package. Quite a few expansion boards and docks are available; you’re going to need at least one right off the bat, as the Onion’s head- ers are at a 2mm pitch instead of the more common 0.1g pitch, which means you can’t just plug it into your breadboard. You’ll have to use either a dock or a breadboard expansion piece, so my suggestion is to purchase the power dock (Figure I-1). It allows you to power the board and whatever add-ons you happen to have using not just a microUSB cable, but also a 2-pin JST-PH connector—the standard connector on many lithium-ion (Li-ion) batteries. None of the expansion boards are very expensive, so it’s worth the time to look around and see what’s available when you’re shopping for your Onion. viii Jumpstarting the Onion Omega2 FIGURE I-1: The power dock Ordinarily this is where I’d walk you through the board and show you what’s on it, but these devices are covered by a metal cover so you can’t really see anything. I can, however, tell you what pins are made available to you when you plug it into a dock. The number of pins depends on the board; the power dock gives you 30 (you lose a power-in pin and a few GPIOs and gain a 5V and a few GNDs), and the breadboard dock gives you all 32. These include the standard 3.3V and GND pins, as well as I2C, Serial, and even Ethernet pins. In this book I’ll be using the Omega2+, the power dock, the relay expansion board, and the OLED expansion board, so if you still have some shopping to do you’ll know what you need.
Recommended publications
  • Monitoring Dan Kontrol Sistem Irigasi Berbasis Iot Menggunakan Banana Pi
    JURNAL TEKNIK ITS Vol. 7, No. 2, (2018) ISSN: 2337-3539 (2301-9271 Print) A288 Monitoring dan Kontrol Sistem Irigasi Berbasis IoT Menggunakan Banana Pi Andrie Wijaya, dan Muhammad Rivai Departemen Teknik Elektro, Fakultas Teknologi Elektro, Institut Teknologi Sepuluh Nopember (ITS) e-mail: [email protected] Abstrak— Saat ini metode pengaliran air atau irigasi dilakukan memperhatikan kondisi kelembaban tanah juga mengakibatkan secara manual. Petani harus menyiram tanaman satu persatu penggunaan air yang tidak tepat. Penggunaan air yang sehingga tidak efisien dalam hal energi, waktu, dan ketersediaan berlebihan akan mempengaruhi ketersediaan sumber air yang air sehingga dapat menurukan hasil panen. Internet of Things semakin menurun. merupakan konsep dan metode untuk kontrol jarak jauh, Tugas akhir ini bertujuan untuk menciptakan sistem monitoring, pengiriman data, dan berbagai tugas lainnya. IoT terhubung dengan suatu jaringan sehingga dapat di akses di irigasi berbasis internet of things [2][3], dan [4]. Pada sistem mana saja yang dapat mempermudah berbagai hal. IoT dapat ini petani dapat memonitoring kondisi kelembaban tanah dan dimanfaatkan di berbagai bidang, salah satunya adalah bidang mengkontrol debit air yang akan disiram pada tanaman pertanian. Pada bidang ini IoT dapat digunakan untuk memantau Sehingga meningkatkan hasil panen dan mengoptimalkan dan mengatur berbagai hal untuk menunjang pertanian. Pada penggunaan air. penelitian ini akan dibuat suatu peralatan yang digunakan untuk Sistem ini menggunakan sensor kelembaban tanah atau monitoring dan kontrol sistem irigasi berbasis IOT. Single Board higrometer [5][6]yang akan di proses di Single Board Computer Banana Pi digunakan sebagai prosesor utama yang Computer (SBC) Banana Pi [7]. SBC yang terhubung dengan terhubung dengan jaringan internet yang mengirim data dari sensor ke pengguna.
    [Show full text]
  • Building a Datacenter with ARM Devices
    Building a Datacenter with ARM Devices Taylor Chien1 1SUNY Polytechnic Institute ABSTRACT METHODS THE CASE CURRENT RESULTS The ARM CPU is becoming more prevalent as devices are shrinking and Physical Custom Enclosure Operating Systems become embedded in everything from medical devices to toasters. Build a fully operational environment out of commodity ARM devices using Designed in QCAD and laser cut on hardboard by Ponoko Multiple issues exist with both Armbian and Raspbian, including four However, Linux for ARM is still in the very early stages of release, with SBCs, Development Boards, or other ARM-based systems Design was originally only for the Raspberry Pis, Orange Pi Ones, Udoo critical issues that would prevent them from being used in a datacenter many different issues, challenges, and shortcomings. Have dedicated hard drives and power system for mass storage, including Quads, PINE64, and Cubieboard 3 multiple drives for GlusterFS operation, and an Archive disk for backups and Issue OS In order to test what level of service commodity ARM devices have, I Each device sits on a tray which can be slid in and out at will rarely-used storage Kernel and uboot are not linked together after a Armbian decided to build a small data center with these devices. This included Cable management and cooling are on the back for easy access Build a case for all of these devices that will protect them from short circuits version update building services usually found in large businesses, such as LDAP, DNS, Designed to be solid and not collapse under its own weight and dust Operating system always performs DHCP request Raspbian Mail, and certain web applications such as Roundcube webmail, Have devices hooked up to a UPS for power safety Design Flaws Allwinner CPUs crash randomly when under high Armbian ownCloud storage, and Drupal content management.
    [Show full text]
  • Ten (Or So) Small Computers
    Ten (or so) Small Computers by Jon "maddog" Hall Executive Director Linux International and President, Project Cauã 1 of 50 Copyright Linux International 2015 Who Am I? • Half Electrical Engineer, Half Business, Half Computer Software • In the computer industry since 1969 – Mainframes 5 years – Unix since 1980 – Linux since 1994 • Companies (mostly large): Aetna Life and Casualty, Bell Labs, Digital Equipment Corporation, SGI, IBM, Linaro • Programmer, Systems Administrator, Systems Engineer, Product Manager, Technical Marketing Manager, University Educator, Author, Businessperson, Consultant • Taught OS design and compiler design • Extremely large systems to extremely small ones • Pragmatic • Vendor and a customer Warnings: • This is an overview guide! • Study specifications of each processor at manufacturer's site to make sure it meets your needs • Prices not normally listed because they are all over the map...shop wisely Definitions • Microcontroller vs Microprocessor • CPU vs “Core” • System On a Chip (SoC) • Hard vs Soft Realtime • GPIO Pins – Digital – Analog • Printed Circuit Board (PCB) • Shield, Cape, etc. • Breadboard – Patch cables Definitions (Cont.) • Disks – IDE – SATA – e-SATA • Graphical Processing Unit (GPU) • Field Programmable Gate Array (FPGA) • Digital Signal Processing Chips (DSP) • Unless otherwise specified, all microprocessors are ARM-32 bit Still More Definitions! • Circuit Diagrams • Surface Mount Technology – large robots – Through board holes in PCBs – Surface mount • CAD Files – PCB layout – “Gerbers” for
    [Show full text]
  • Schnelleinstieg Banana Pi
    60390-4 U1+U4_2 20.05.15 09:13 Seite 1 Mattias Schlenker ALLE WICHTIGEN BOARDS BPI-M1, PRO, SCHNELLEINSTIEG BPI-R1, BPI-M2 Schlenker UND BPI-D1 BANANA PI Auch wenn der Raspberry Pi als Inbegriff des Single-Board-Computers gilt: Es gibt mehr als nur den Pi – ob als Ein-, Um- oder Aufsteiger, es lohnt sich der Blick auf den Banana Pi. Schon der Name weist auf die Ähnlichkeiten hin, d. h., vorhandene Projekte können Sie gut auch SCHNELLEINSTIEG portieren. Profitieren Sie von der besseren Hardware! ALLE WICHTIGEN BOARDS BANANA PI BPI-M1, PRO, BPI-R1, BPI-M2 UND BPI-D1 Nicht nur die Boards werden erklärt, sondern auch Wenig Theorie, dafür viel Praxis: dokumentiert mit die praktische Nutzung von Zubehör. Quellcode, Schaltbildern und Screenshots. BANANA PI Richtiges Board und Betriebssystem wählen, Aus dem Inhalt: installieren und programmieren • Banana Pi-Boards im Deatil Es gibt nicht den einen Banana Pi. Lernen Sie die unter- schiedlichen Boards kennen und wählen Sie das richtige • Unterstütze Betriebssysteme für sich aus. Bananian, OpenWRT oder Ubuntu? Egal • Bananien, OpenWRT und welches Sie wählen, die Installation wird Ihnen Schritt Ubunutu installieren für Schritt erklärt. Für die Programmierung nehmen • Netzwerkkonfiguration: Sie am besten Python. Wie diese Programmiersprache statische IP, WLAN und Router installiert und genutzt wird, wird anhand eines eigenen • Druckerspooler mit CUPS Projekts gezeigt. • ownCloud-Server aufsetzen Mit Praxisprojekten den Banana Pi ausreizen • MySQL-Datenbank fürs Büro Bananian als Betriebssystem ist sehr mächtig. Nach der richtigen Einbindung im Netzwerk nutzen Sie Ihren • Datenserver im Heimnetz SCHNELLEINSTIEG Banana Pi als Druckerspooler und wandeln PostScript • Banana Pi als Desktopersatz vor dem Ausdruck in das binäre Format des Druckers • Videorekorder und -streamer um.
    [Show full text]
  • BYOD Revisited: BUILD Your Own Device
    BYOD Revisited: BUILD Your Own Device Ron Munitz The PSCG about://Ron_Munitz ● Distributed Fault Tolerant Avionic Systems ● Linux, VxWorks, very esoteric libraries, 0’s and 1’s ●Highly distributed video routers ● Linux ●Real Time, Embedded, Server bringups ● Linux, Android , VxWorks, Windows, devices, BSPs, DSPs,... ●Distributed Android ● Rdroid? Cloudroid? Too busy working to get over the legal naming, so no name is officially claimed for my open source about://Ron_Munitz What currently keeps me busy: ● Running The PSCG, an Embedded/Android consulting and Training ● Managing R&D at Nubo and advising on Remote Display Protocols ● Promoting open source with The New Circle expert network ● Lecturing, Researching and Project Advising an Afeka’s college of Engineering ● Amazing present, endless opportunities. (Wish flying took less time) Agenda ● History 101: Evolution of embedded systems ● Software Product 101: Past, Present, Future. ● Software Product 201: The Cloud Era. ● Hardware Product 101: Building Devices ● Hardware Product 201: The IoT Era History 101: 20th Century, 21st Century, Computers, Embedded Devices and Operating Systems http://i2.cdn.turner.com/cnn/dam/assets/121121034453-witch-computer-restoration-uk-story-top.jpg Selected keypoints in the evolution of Embedded systems: The 20th century ● Pre 40’s: Mechanical Computers, Turing Machine ● The 40’s: Mechanical Computers, Embedded Mechanical Computers(V2...), Digital Computers (Z3...) ● The 50’s: Digital Computers, Integrated Circuit, BESYS ● The 60’s: MULTICS, Modem, Moore’s
    [Show full text]
  • Banana Pi BPI-M2 A31s Quad Core Single Board Computer
    Table of Contents Introduction 1.1 BPI-M2 hardware 1.2 BPI-M2 Hardware interface 1.2.1 BPI-M2 hardware spec 1.2.2 BPI-M2 GPIO Pin define 1.2.3 BPI-M2 micro SD card slot 1.2.4 BPI-M2 GigE LAN 1.2.5 BPI-M2 WIFI interface 1.2.6 BPI-M2 wifi antenna slot 1.2.7 BPI-M2 USB interface 1.2.8 BPI-M2 HDMI interface 1.2.9 BPI-M2 Camera interface 1.2.10 BPI-M2 RGB DSI interface 1.2.11 BPI-M2 IR interface 1.2.12 BPI-M2 OTG interface 1.2.13 BPI-M2 CE FCC RoHS Certification 1.2.14 BPI-M2 3.7V lithium battery interface 1.2.15 BPI-M2 DC Power interface 1.2.16 BPI-M2 schematic diagram 1.2.17 BPI-M2 DXF and 3D design 1.2.18 BPI-M2 software 1.3 BPI-M2 quick start 1.3.1 BPI-M2 Software 1.3.2 Android software 1.3.2.1 How to build Android 4.4.2 Image for BPI-M2 1.3.2.1.1 ABD driver 1.3.2.1.2 Linux Software 1.3.2.2 Linux kernel 3.3 1.3.2.2.1 How to building a Minimal system 1.3.2.2.1.1 mainline Linux 1.3.2.2.2 uboot 1.3.2.2.2.1 mainline kernel 1.3.2.2.2.2 Armbian linux 1.3.2.2.3 Bananian linux 1.3.2.2.4 OpenSuse 1.3.2.2.5 OpenWRT 1.3.3 BPI-M2 WiringPi 1.3.4 BPI-M2 source code on github 1.4 How to setup docker env.
    [Show full text]
  • Developing a Single-Board Computer Cluster : a Parallel Integrated System
    川崎医会誌一般教,45号(2019) 83 Developing a single-board computer cluster : A parallel integrated system Shuhei TSUJI *Department of Natural Sciences, Kawasaki Medical School, 577 Matsushima, Kurashiki, Okayama, 701-0192, Japan (Accepted on October 5, 2019) Abstract In recent times, single-board computers (SBCs) are being developed with 8-core CPUs; these SBCs have sufficient computing power. However, neither their hardware nor software production methods have been described in detail. This study describes the process of building and activating a computer cluster that combines 24 ODROID-MC1 Solos. The specific production method and computational capacity of the cluster will be detailed in this paper. Moreover, the experimental result obtained in this study shows that the computer cluster created using SBCs can be practically used for Monte Carlo simulations. Key words: Single-board computer, Computer cluster, MPI, ODROID-MC1 Solo, EGS5, EGS5-MPI 1 Introduction Various single-board computers (SBCs), including Raspberry Pi, are available in the market. Many of these SBCs operate on low power and are inexpensive. In addition, a Linux- based operating system can be installed on them and the development environment is also in place. SBCs with an 8-core CPU and 2-GB RAM have also been introduced. Moreover, many SBCs can be linked to create small and low-cost clusters that can replicate some functionality of large data center clusters1).A computer cluster, “parallel integrated system" (PIs), with 23 Banana Pis BPI-M3 and one Raspberry Pi 3 Model B (Fig. 1) has been Fig.1 : PIs consisting of 23 Banana Pis and 1 2,3) previously developed .
    [Show full text]
  • Proyecto Fin De Grado
    ESCUELA TÉCNICA SUPERIOR DE INGENIERÍA Y SISTEMAS DE TELECOMUNICACIÓN PROYECTO FIN DE GRADO TÍTULO: Despliegue de Liota (Little IoT Agent) en Raspberry Pi AUTOR: Ricardo Amador Pérez TITULACIÓN: Ingeniería Telemática TUTOR (o Director en su caso): Antonio da Silva Fariña DEPARTAMENTO: Departamento de Ingeniería Telemática y Electrónica VºBº Miembros del Tribunal Calificador: PRESIDENTE: David Luengo García VOCAL: Antonio da Silva Fariña SECRETARIO: Ana Belén García Hernando Fecha de lectura: Calificación: El Secretario, Despliegue de Liota (Little IoT Agent) en Raspberry Pi Quizás de todas las líneas que he escrito para este proyecto, estas sean a la vez las más fáciles y las más difíciles de todas. Fáciles porque podría doblar la longitud de este proyecto solo agradeciendo a mis padres la infinita paciencia que han tenido conmigo, el apoyo que me han dado siempre, y el esfuerzo que han hecho para que estas líneas se hagan realidad. Por todo ello y mil cosas más, gracias. Mamá, papá, lo he conseguido. Fáciles porque sin mi tutor Antonio, este proyecto tampoco sería una realidad, no solo por su propia labor de tutor, si no porque literalmente sin su ayuda no se hubiera entregado a tiempo y funcionando. Después de esto Antonio, voy a tener que dejarme ganar algún combate en kenpo como agradecimiento. Fáciles porque, sí melones os toca a vosotros, Alex, Alfonso, Manu, Sama, habéis sido mi apoyo más grande en los momentos más difíciles y oscuros, y mis mejores compañeros en los momentos de felicidad. Amigos de Kulturales, los hermanos Baños por empujarme a mejorar, Pablo por ser un ejemplo a seguir, Chou, por ser de los mejores profesores y amigos que he tenido jamás.
    [Show full text]
  • Programming for the 22Nd Century: We Are Not Programming in 1984 (Or 1969) Anymore
    Programming For the 22nd Century: We are not programming in 1984 (or 1969) anymore by Jon "maddog" Hall Executive Director Linux International and President, Project Cauã 1 of 52 Copyright Linux International 2016 Who Am I? ● Half Electrical Engineer, Half Business, Half Computer Software ● In the computer industry since 1969 – Mainframes 5 years – Unix since 1980 – Linux since 1994 ● Companies (mostly large): Aetna Life and Casualty, Bell Labs, Digital Equipment Corporation, SGI, IBM, Linaro ● Programmer, Systems Administrator, Systems Engineer, Product Manager, Technical Marketing Manager, University Educator, Author, Businessperson, Consultant ● Taught OS design and compiler design ● Extremely large systems to extremely small ones ● Pragmatic ● Vendor and a customer 2 of 52 Copyright Linux International 2016 Who Am I? Linux ● May 1994 – funded Linus Torvalds at DECUS – Obtained Alpha for Linus to do port ● CISC/RISC ● 32/64 bit – Assembled DEC engineering team ● 1995 – Assumed ED role for Linux International – LMI – defended Linux Trademark – LPI – created SysAdmin certification program – LSB – Linux Standard Base ● Promote Linux and FOSSH Worldwide ● July 2016 - Chair of Board of Directors for Linux Professional Institute (lpi.org) – Founding member 3 of 52 Copyright Linux International 2016 My “Second Language” ● PDP-8 Assembler – 4000 12-bit words – Data and Instructions same length ● From a book – Plenty of practice Nobody told me “assembly was difficult” 4 of 52 Copyright Linux International 2016 Examples From My Past ● Compiler
    [Show full text]
  • Banana Pi BPI:Bit User Manual
    Banana Pi BPI:bit User Manual Hardware introduction Software introduction How to setup and start Hardware introduction BPI:bit uses the ESP-WROOM-32 of espressif company as MCU. ESP32 is a single-chip solution integrating 2.4GHz Wi-Fi and Bluetooth dual mode. The 40 nanometer technology of TSMC has the best power consumption, RF performance, stability, versatility and reliability. It can deal with various application scenarios. Two separate controlled CPU cores, the main frequency can be up to 240MHz, 448KB ROM, 520KB SRAM. BPI:bit The appearance size is fully matched with Arduino UNO R3 Hardware Interface: The BPI:bit is powered by a microUSB or 5.5mm DC power adapter and has an automatic switching circuit. BPI:bit hardware spec Hardware Specification of Banana pi BPI:bit CPU Xtensa® 32-bit LX6 single / dual core processor ROM 448KB SRAM 520KB Flash 4MB(On board),A maximum of 4 Flash/SRAM, each Flash maximum 16MB Power 5V@1A microUSB power or 5.5mm 12V DC port GPIO 12-bits SAR ADC 18 channel, 2*8-bit D/A converter, 4*SPI, 2*I2S, 2*I2C, 3*UART, Host SD/eMMC/SDIO, Slave SDIO/SPI Wi-Fi 802.11 b/g/n/e/i 802.11 n(2.4GHz 150Mbps) 802.11 e(Quality of Service) Bluetooth BT4.2 & BLE Buzzer Passive buzzer LEDs RGB LED/POWER LED/Receive LED/Transmit LED Sizes 68mm*53mm BPI:bit Pin Define Pin Analog Function1 Analog Function2 Function1 Function2 Power Name P3 ADC2_CH4 GPIO13 P0 ADC2_CH8 DAC_1 GPIO25 P4 ADC2_CH3 GPIO16 P5 ADC1_CH7 GPIO35 P6 ADC2_CH5 GPIO12 P7 ADC2_CH6 GPIO14 P1 ADC1_CH4 GPIO32 P8 GPIO16 P9 GPIO17 P10 ADC2_CH9 DAC_2 GPIO26 P11 ADC2_CH7 GPIO27 P12 ADC2_CH2 GPIO02 P2 ADC1_CH5 GPIO33 P13 GPIO18 SPI_SS P14 GPIO19 SPI_SCK P15 GPIO23 SPI_MISO P16 GPIO05 SPI_MOSI 3V3 POWER:3V3 3V3 POWER:3V3 3V3 POWER:3V3 P19 GPIO22 I2C_SCL P20 GPIO21 I2C_SDA GND GROUND GND GROUND GND GROUND Software introduction BP:bit can be programmed by many compiling environments, such as PlatformIO for Atom/VS Code, Arduino IDE, uPyCraft (microPyhton) and ESP-IDF, etc.
    [Show full text]
  • Locks and Raspberries: a Comparative Study of Single-Board Computers for Access Control
    UPTEC F 16013 Examensarbete 30 hp April 2016 Locks and raspberries: a comparative study of single-board computers for access control Andreas Romin Abstract Locks and raspberries: a comparative study of single-board computers for access control Andreas Romin Teknisk- naturvetenskaplig fakultet UTH-enheten Over the past decade, there has been a drastic development of the single-board computer market. These computers are now in a position where they can compete Besöksadress: with classic embedded hardware. Such fast improvement has led ASSA ABLOY, a Ångströmlaboratoriet Lägerhyddsvägen 1 well-known lock and security company, to see value in replacing some of their Hus 4, Plan 0 existing access control hardware with an off-the-shelf single-board computer. Therefore, a comparative study of single-board computers was performed for this Postadress: company. Some of the compared properties were price, performance (i.e. CPU, Box 536 751 21 Uppsala memory, USB, network, operating temperature and power consumption) and other relevant information such as operating systems, open/closed source hardware and Telefon: future availability. Information and testing data from nine different computers was 018 – 471 30 03 compiled and analyzed. This data was then used to determine the best-suited Telefax: candidates that could possibly replace the current access control hardware. They 018 – 471 30 00 were chosen in accordance to three different categories: performance, power consumption and open source hardware. The ODROID C1+, the Raspberry Pi A+ Hemsida: and the A20 OLinuXino Lime2 proved to be the best candidates for these three http://www.teknat.uu.se/student categories respectively. Furthermore, it was also concluded that the company behind a computer is just as important as the computer itself, where the best company in this study was determined to be Olimex.
    [Show full text]
  • Banana Pi BPI-M2 Ultra Allwinner R40 Quad Core Single Board Computer
    Table of Contents About BPI-M2 Ultra 1.1 BPI-M2 Ultra hardware 1.2 BPI-M2 Ultra hardware interface 1.2.1 BPI-M2 Ultra hardware spec 1.2.2 BPI-M2 Ultra GPIO Pin define 1.2.3 BPI-M2 Ultra SATA interface 1.2.4 BPI-M2 Ultra micro SD card slot 1.2.5 BPI-M2 Ultra GigE LAN 1.2.6 BPI-M2 Ultra eMMC flash 1.2.7 BPI-M2 Ultra WIFI interface 1.2.8 BPI-M2 Ultra wifi antenna slot 1.2.9 BPI-M2 Ultra IR interface 1.2.10 BPI-M2 Ultra HDMI interface 1.2.11 BPI-M2 Ultra USB interface 1.2.12 BPI-M2 Ultra OTG interface 1.2.13 BPI-M2 Ultra bluetooth interface 1.2.14 BPI-M2 Ultra UART port 1.2.15 BPI-M2 Ultra MIPI DSI interface 1.2.16 BPI-M2 Ultra CSI camera interface 1.2.17 BPI-M2 Ultra 3.7V lithium battery interface 1.2.18 BPI-M2 Ultra Power interface 1.2.19 BPI-M2 Ultra schematic diagram 1.2.20 BPI-M2 Utra DXF and 3D design 1.2.21 BPI-M2 Ultra software 1.3 Android image 1.3.1 Linux software image 1.3.2 Tina-IoT os 1.3.3 BPI-M2 Ultra source code on github 1.4 Reference documents 1.5 Allwinner R40 chip datasheet 1.5.1 1 BPI-M2 Ultra quality guarantee 1.6 BPI-M2 Ultra BT4.0 Lab test 1.6.1 BPI-M2 Ultra WIFI Lab test 1.6.2 BPI-M2 Ultra validation test report 1.6.3 BPI-M2 Ultra CE,FCC RoHS Certification 1.6.4 All Banana Pi SBC Comparison 1.7 All banana pi product 1.8 BPI 4.0 customized Server 1.9 2 About BPI-M2 Ultra About banana pi BPI-M2 Ultra Banana PI BPI-M2 Ultra is the open source hardware platform, Banana PI BPI-M2 Ultra is a quad-core cortex -A7 CPU ,use Allwinner R40 design, it support WIFI+BT on board.and support SATA interface on board.
    [Show full text]