Over the next few blogs and days I will delve into some simple programming examples on the Omega2 single chip computer.
Introduction
Omega2 and Omega2+ are made by Onion. These replace the original Onion which was introduced in 2015.
![[IMG]]()
Here are the basic hardware specs:
Omega2 Specs
Processor 580MHz MIPS MT7688 CPU
Memory 64MB
Storage 16MB
USB 2.0
(0) MicroSD Slot
WiFi 802.11b/g/n
(15) GPIO
(2) PWM
(2) UART
I2C
SPI
I2S
Omega2+ specs are the same except it has
Memory 128MB
Storage 32MB
MicroSD slot underneath the chip
Software
Omega2 runs LEDE Linux.
LEDE stands for Linux Emedded Develoment Environment, a fork of OpenWrt Linux.
Linux and Python newbie?
You may detect from my notes and comments that I am new to both Linux and Python. You are most welcomed to join me on this exciting journey.
Getting Started
You will need WiFi and an internet connection. Also the Expansion Dock and micro-USB cable are required. The Expansion Dock will become essential in the experimental stage.
Micro-USB to USB A cable:
![[IMG]]()
Photo shows the Omega2 chip plugged into the Expansion Dock:
![[IMG]]()
A fresh chip needs some firmware update and software installation. The Onion website has detailed instructions on how to proceed with this. At the time of writing, this is a quirky hit & miss process. I cannot say with certainty why things don't work and why things eventually work. It may have something to do with how your WiFi router is set up.
Anecdotal experiences so far have found the following possible problems/solutions:
Once you get through the setup stage successfully, there are some additional software to download.
There are two ways of communicating with the onboard Linux system.
1) You can invoke a terminal emulator on your PC such as HyperTerminal or PuTTy connected to the Omega2 via the USB cable.
![[IMG]]()
2) You can use your PC browser and connect to the Omega2 using your WiFi connection.
A console screen appears from which you can launch various utilities such as a Terminal and an Editor.
![[IMG]]()
Clicking on Terminal will invoke a terminal utility. After logging on to Linux, enter:
opkg update
opkg install python-light pyOnionGpio
This will install Python and the GPIO library. You only need to do this once on your workstation PC.
In Part 2, I will demonstrate the first simple example: How to blink an LED.
Happy Hacking!
Introduction
Omega2 and Omega2+ are made by Onion. These replace the original Onion which was introduced in 2015.
![[IMG]](http://forum.allaboutcircuits.com/proxy.php?image=https%3A%2F%2Fraw.githubusercontent.com%2FOnionIoT%2FOnion-Docs%2Fmaster%2FOmega2%2FDocumentation%2FHardware-Overview%2Fimg%2Fomega2p-illustration.png&hash=9f295f7e2607ef80eb6507dc5fded20f)
Here are the basic hardware specs:
Omega2 Specs
Processor 580MHz MIPS MT7688 CPU
Memory 64MB
Storage 16MB
USB 2.0
(0) MicroSD Slot
WiFi 802.11b/g/n
(15) GPIO
(2) PWM
(2) UART
I2C
SPI
I2S
Omega2+ specs are the same except it has
Memory 128MB
Storage 32MB
MicroSD slot underneath the chip
Software
Omega2 runs LEDE Linux.
LEDE stands for Linux Emedded Develoment Environment, a fork of OpenWrt Linux.
Linux and Python newbie?
You may detect from my notes and comments that I am new to both Linux and Python. You are most welcomed to join me on this exciting journey.
Getting Started
You will need WiFi and an internet connection. Also the Expansion Dock and micro-USB cable are required. The Expansion Dock will become essential in the experimental stage.
Micro-USB to USB A cable:
![[IMG]](http://forum.allaboutcircuits.com/proxy.php?image=https%3A%2F%2Fimages-na.ssl-images-amazon.com%2Fimages%2FI%2F51djySNYPcL._SX522_.jpg&hash=b196ac5ab4d544788daf32c735cf6e62)
Photo shows the Omega2 chip plugged into the Expansion Dock:
![[IMG]](http://forum.allaboutcircuits.com/proxy.php?image=https%3A%2F%2Fraw.githubusercontent.com%2FOnionIoT%2FOnion-Docs%2Fmaster%2FOmega2%2FDocumentation%2FGet-Started%2Fimg%2Funbox-2-omega-on-dock.jpg&hash=4b44ad19c727575dcb333ea17acd3c08)
A fresh chip needs some firmware update and software installation. The Onion website has detailed instructions on how to proceed with this. At the time of writing, this is a quirky hit & miss process. I cannot say with certainty why things don't work and why things eventually work. It may have something to do with how your WiFi router is set up.
Anecdotal experiences so far have found the following possible problems/solutions:
- Setting the WiFi router security to WPA2 appears to fix the connection problem.
- When the setup process appears to be stuck in the Configuration loop for a long time (more than 10 minutes), refreshing the browser page appears to get pass this stage.
- The browser fails to connect to omega-xxxx.local but works when the IP address is entered. This has something to do with DNS resolution. A work-around is to modify the HOSTS file on your PC by adding the IP address and URL. (If you had followed the instructions in Getting Started and had downloaded Apple's Bonjour Service for Windows this problem should not occur. If you are using a Linux system to communicate with the Omega2 you may want to try installing zeroconf on your system.)
Once you get through the setup stage successfully, there are some additional software to download.
There are two ways of communicating with the onboard Linux system.
1) You can invoke a terminal emulator on your PC such as HyperTerminal or PuTTy connected to the Omega2 via the USB cable.
![[IMG]](http://forum.allaboutcircuits.com/proxy.php?image=http%3A%2F%2Fi.imgur.com%2Fhxuce5c.png&hash=de5089e6754cb9c16994823f6961f78d)
2) You can use your PC browser and connect to the Omega2 using your WiFi connection.
A console screen appears from which you can launch various utilities such as a Terminal and an Editor.
![[IMG]](http://forum.allaboutcircuits.com/proxy.php?image=https%3A%2F%2Fi.imgur.com%2F213283s.jpg&hash=1b7f2f1ffbe8a10f91b8473a84d43e45)
Clicking on Terminal will invoke a terminal utility. After logging on to Linux, enter:
opkg update
opkg install python-light pyOnionGpio
This will install Python and the GPIO library. You only need to do this once on your workstation PC.
In Part 2, I will demonstrate the first simple example: How to blink an LED.
Happy Hacking!