History

I think everyone remembers the scandal (around November 2019) about an app in which the camera was activated in the “background” due to a bug. If you missed it, quickly Google it. The online media was full of these kinds of articles at that time.

Then my mind did not let me sleep…

Camera Permission on iOS

Description from Apple:

In iOS, the user must explicitly grant permission for each app to access cameras and microphones. Before your app can use the capture system for the first time, iOS shows an alert asking the user to grant your app access to the camera, as…


In this Android Things project we will use an Ultrasonic sensor with a Raspberry Pi 3 to measure distance.

We will work with the standard GPIO read and write methods, we will learn how to send ultrasonic waves with the sensor, and we will discover some issues.

Requirements

We use a Raspberry Pi 3 with pre-installed Android Things Developer Preview(version 1).

The sensor is an HC-SR04 Ultrasonic sensor. (I ordered from Amazon.)

The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like bats or dolphins do. It offers excellent non-contact range detection with high accuracy and stable readings…


In this project we will use a LED as a notification when an obstacle is too close to our sensor.

We will learn how the standard I/O works with a GPIO in Android Things.

Requirements

We use a Raspberry Pi 3 with pre-installed Android Things Developer Preview(version 1).

I have a cheap Obstacle Avoidance Sensor and a Dual-color Common Cathode LED for this project.
You can use any LED what you want, I had only this at home.

Setup

Google has a really good tutorial how to prepare your Raspberry Pi 3 for Android Things development, so I don’t want to describe…

Daniel Dallos

Android and IoT enthusiast | iOS developer | Technology lover | https://danieldallos.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store