Ad Code

Onion Omega 2 RGB led strip

 

Onion Omega 2 RGB led strip

The newest prototyping platform from Onion is Omega2. Along with other features, it has built-in Wi-Fi, an operating system based on Linux, adaptable GPIOs, and a potent computer.

The Omega’s LED

An LED that arrives with the Omega can be used for a variety of purposes, including signalingwhen your Omega has done loading. You can perform some other fun features with the LED, as this guide will demonstrate.

We will be modifying folders that describe variables for the LED, such as the LED setting, in order to regulate Omega's LED. This is enabled conceivable through sysfs, a fictitious directory structure that stores data on the hardware of the Omega in folders and enables customer manipulation of the hardware through document modification.

The LED’s Style

 

According to the LEDE style manual, the Omega's LED is designated in the storage as follows:

Omega2/sys/class/leds/omega2\:amber\:system/

 

Omega2+

 

/sys/class/leds/omega2p\:amber\:system/

 

 

Development Dock

 

A capable component of hardware that makes using your Omega easier is the Development dock. Using the Micro-USB connector, you can operate the Omega and interact with it using serial, and it's relatively simple to operate the GPIOs and Onion Expansions.

The Equipment

You may utilize all of your onion accessories because your extension connector has a 30-pin extension connector. The Micro-USB port, which provides 5V to the Dock, powers the extension, Dock. In addition to providing 5V to the Expansions and USB Host port, this power is reduced down to the necessary 3.3V for the Omega.

The USB-to-Serial processor found in the board's center enables simple interaction with the Extension Dock. Additionally, you have a fantastic RGB LED that you can manage via the command-line input.

You can rapidly restart your Omega by pressing the repair option, which is sandwiched between the ignition button and the Micro USB connection. If your Omega ever experiences a problem, you can also press the reset symbol lower to do a complete restore.

The Banner for Expansion

With the Development Header, you have quick entry to Omega's GPIOs and the ability to immediately attach Onion Expansions. You can see what GPIO is linked to each area by looking at the labels on the Extension Adapter.

The connectors on the additional connector are shown in the pinout schematic beneath, along with various duplicating possibilities:

The Serial, SPI, and I2C connections cannot be utilized as GPIOs because they by design incorporate these connection standards. The standard setting for the I2S and PWM pins is GPIO style as well.

Small USB Port

The Terminal is powered by the Micro-USB Port, while the Omega is powered by the Dock. The Dock has a power converter that steps the input voltage from the Micro-USB Port, which accepts 5V, down to the appropriate 3.3V for the Omega.

Energy Switch

The Omega will lose energy when the Energy switch is turned on, but not the serial processor. This indicates that although your system will still recognize a USB-connected apparatus, it won't be able to speak to the Omega.

Reset switch

The Omega's Restart GPIO is immediately linked to the Forget Key on the Dock. This icon can be pressed for a restart or to resume the factory settings.

Restart

Restarting the Omega OS requires briefly pushing and releasing the restart icon.

Manufacturer Restore

A complete restoration can be started by pushing and maintaining the restore switch for 10 seconds, then pressing it.

Warning: This will erase ALL of your information and restore your Omega to the standard storage of the most recent software version.

USB Omega Connector

The USB connector on the Omega can be employed to attach to a variety of equipment, including a USB hard drive to increase the Omega's internal storage. The USB connection is a type A adapter and allows USB 2.0.



RGB LEDs

Three LEDs make up the RGB LED on the Extension Dock, which allows you to produce RGB colours on the Extension Dock.

The red LED is managed by GPIO 17. The green LED is managed by GPIO 16. The blue LED is managed via GPIO 15.

Because the RGB LED is active-low, turning it on by adjusting the GPIO to 0 will activate the intended LED.

Employing the Dock

Utilizing your Omega is relatively simple thanks to the Extension Dock. It enables you to use Onion Developments and quickly energize your Omega without the need for additional electronics. Additionally, it prevents you from unintentionally overpowering your Omega and burning it out.

Managing the GPIOs

The Omega software contains an assortment of instruments that can be used to manipulate the GPIOs on the dock. The article on using Omega's GPIOS has further information on how to regulate GPIOs.

RGB LED being regulated

The RGB LED's color can be specified using the expled software. To control the three LEDs, software PWM will be used.

Application:

expled <6 digit hex value>

where the first two characters stand in for the color Red, the following two for the color Green, and the final two for the color Blue.

 

 

Post a Comment

0 Comments