wide variety of consumer, retail, and industrial applications • Leverage existing Android development tools, APIs, resources, and a thriving developer community. • Develop with new Android framework APIs that provide low level I/O and libraries for common components like temperature sensors, display controllers, and more.
image ▪ Choose your hardware platform - Raspberry Pi ▪ Choose your Android Things version - 0.5.1 • Install the image on your hardware ▪ Similar to installing a linux distro • Connect to your hardware over ADB to install your Android Things app.
that uploads readings to Firebase. • Firebase functions process data and send notifications based on simple rules e.g. Soil too dry, water your plants!
• 1GB memory • 802.11 b/g/n wireless • Ethernet, HDMI, USB • Raspberry Pi and NXP Pico boards are all digital on their GPIO (unlike Arduino), so you’ll need an Analog to Digital Converter (ADC) to convert the voltages to inputs.
Android Things provides common drivers in the Peripheral Driver Library ▪ https://github.com/androidthings/contrib-drivers ▪ https://github.com/androidthings/drivers-samples • Drivers handle writing inputs and reading outputs • Devices like the MCP3008 ADC chip can have complex logic to perform basic functions. Details are usually in the data sheet.
channel; commandOut |= 0x18; // start bit + single-ended bit commandOut <<= 0x3; // we only need to send 5 bits for (int i = 0; i < 5; i++) { if ((commandOut & 0x80) != 0x0) { mDinPin.setValue(true); } else { mDinPin.setValue(false); } commandOut <<= 0x1; toggleClock(); } }