Example Connections Doc

WiFi Access Point

Posted on

Configuring and activating an access point #!/bin/bash SSID=”NeutisN5″ PASSWORD=”12345678″ nmcli con add type wifi ifname wlan0 con-name $SSID autoconnect no ssid $SSID nmcli con modify $SSID 802-11-wireless.mode ap 802-11-wireless.band bg wifi-sec.key-mgmt wpa-psk wifi-sec.proto rsn wifi-sec.pairwise ccmp wifi-sec.group ccmp wifi-sec.psk $PASSWORD ipv4.method shared ipv4.addresses 192.168.42.1/24 ipv6.method ignore nmcli con up $SSID

Example Connections Doc

UART

Posted on

UART example OES Prime has 5 available UART ports: Port Device TX Pin RX Pin UART0 /dev/ttyS0 PA4 PA5 UART1 /dev/ttyS1 PG6 PG7 UART2 /dev/ttyS2 PA0 PA1 UART3 /dev/ttyS3 PA13 PA14 S_UART /dev/ttyS4 PL2 PL3 In this example, we are going to perform a loopback test by sending data to a TX pin and receiving […]

Example Connections Doc

SPI LCD Display

Posted on

SPI display can be connected to OES Prime module via SPI interface. In this example, we connect HY-1.8 SPI TFT display(160×128) to OES Prime Developer board. We’re going to use SPI0, PA9 and PA10 to control the display, but you can practice with SPI1 and other GPIO pins as well. Just make sure that overlay […]

Example Connections Doc

SPI

Posted on

SPI Example In this example, we demonstrate how to control OES Prime’ SPI interface. We’re going to use SPI0, but you can practice with SPI1 as well. Just make sure that overlay for SPI1 is enabled in your /boot/Env.txt and you’re using the right pins. Connect 5 required wires (GND, CS0, CLK0, MISO0, MOSI0) to […]

Example Connections Doc

Secure Chip

Posted on

OES Prime features tamper-resistant dedicated crypto chip (ATECC508A) for storing cryptographic keys, unique ID, random number generation and more. The ATECC508A can generate high-quality FIPS random numbers, each of them is guaranteed to be essentially unique from all numbers ever generated on this or any other device. This examples demonstrates how to generate random numbers. […]

Example Connections Doc

PWM

Posted on

PWM Example Emlid OES Prime has two available PWM pins. In this example, we are using PWM0, which is the alternative function of URX0 pin. By default, it is disabled. To enable it you should apply special Device Tree overlay by editing “`/boot/Env.txt“`. You need to add “`pwm“` to the “`overlays“` section: “`bash /boot/Env.txt: loglevel=10 […]

Example Connections Doc

OTA Update

Posted on

Mender Mender is an open source remote software updater for embedded Linux devices. It enables management of software updates to connected devices remotely over any TCP/IP network. For a high-level introduction to Mender and its architecture, visit Mender.io. Follow the instructions to update your device by Mender. You need to build a OES Prime image […]

Example Connections Doc

I2C

Posted on

I²C Emlid OES Prime has 4x I2C interfaces: Port Device SCK Pin SDA Pin Pull-Up I2C0 /dev/i2c-0 PA11 PA12 Yes I2C1 /dev/i2c-1 PA18 PA19 No I2C2 /dev/i2c-2 PE12 PE13 Yes S_I2C /dev/i2c-3 PL0 PL1 Yes In this example, we connect an I2C device (a breakout board that includes MS5611 pressure sensor) and detect it. Attaching […]

Example Connections Doc

HDMI

Posted on

This example demonstrates how to enable HDMI support on OES Prime and render the image. Preparing the image The first step is to build an image with Qt libraries and hello-world application. If you have not yet build any images with Yocto, visit this page. If you have already set up build host, then navigate […]

Example Connections Doc

GPIO

Posted on

GPIO Emlid OES Prime has 60 GPIO pins. See [the pinout section](../pinout/OES Prime/) for more information. GPIO can be accessed through Linux’s sysfs interface. (/sys/class/gpio directory). ##GPIO Sysfs Numbers To obtain the correct number of the desired pin you have to calculate it from the pin name: “`(position of letter in alphabet – 1) * […]