Creating BLE GATT Server (UART Service) on Raspberry Pi

In this post, I will create BLE GATT server on Raspberry Pi 3 using BlueZ dbus interface with Python. I will reuse BlueZ example code as much as possible. As an example of GATT service, I’ll create UART service (a.k.a. Nordic UART Service/NUS [1] ), so that I can test it with Nordic’s smartphone app… Continue reading “Creating BLE GATT Server (UART Service) on Raspberry Pi” →

Updating BlueZ on Raspberry Pi (from 5.43 to 5.50)

Update (Jul 9, 2019): Now, Raspbian Buster, released on 6/20/2019, has bluez 5.50 by default! This post shows how to update BlueZ on Raspberry Pi from 5.43 (the default version comes with Raspbian Stretch) to 5.50 (released notes [1]). In this post, I assume that you already have a Raspberry Pi 3 B+ or Raspberry Pi Zero… Continue reading “Updating BlueZ on Raspberry Pi (from 5.43 to 5.50)” →

Enabling Amazon Alexa on Raspberry Pi

This post shows steps to enable Amazon Alexa on Raspberry Pi. While there is already a comprehensive tutorial on Amazon Alexa official site [1], this post focuses on doing the same with minimal setup.   Example Setup Raspberry Pi (Raspberry Pi 3 B+) running Raspbian Stretch (Nov. 2018) USB Microphone (SunFounder USB 2.0 Mini Mic) 3.5 mm… Continue reading “Enabling Amazon Alexa on Raspberry Pi” →

Controlling LEDs on Raspberry Pi using Voice with Amazon Echo

The goal of this post is to create an Alexa skill [1] that controls three LEDs (red, yellow, and green) connected to Raspberry Pi’s GPIO pins. The skill will enable to turn ON/OFF each LED by specifying the color of light and the ON/OFF status via voice command.   Prerequisites (parentheses indicate my environment) Raspberry Pi… Continue reading “Controlling LEDs on Raspberry Pi using Voice with Amazon Echo” →

Updating ALSA on Raspbian Stretch

This post shows how to update ALSA [1] on Raspberry Pi running Raspbian Stretch. As of writing this post (Dec. 9th 2018) the latest ALSA version is 1.1.7.   Setup (parentheses indicate my environment) Raspberry Pi (Raspberry Pi 3 B+) running Raspbian Stretch (Nov. 2018) Speaker connected to Raspberry Pi’s 3.5 mm audio jack  … Continue reading “Updating ALSA on Raspbian Stretch” →