วันอาทิตย์ที่ 30 กรกฎาคม พ.ศ. 2560

Raspberry Pi Android Things



Raspberry Pi Android Things


What is Android Things?

Android Things are IoT Platform for Android Developer.Use Development tools and ecosystem the same Android App. So you can use Android Studio to develop Android Things.
and without previous knowledge of embedded system design.
Google has partnered with a number of hardware manufacturers to offer solutions based on Intel Edison, NXP Pico and the Raspberry Pi 3.
Android Things ignites development of connected embedded devices by providing the same Android development tools, best-in-class Android framework, and Google APIs making developers successful on mobile.

Understand the Android Things Platform
Android Things has a few key differences compared to the core Android OS, read the Overview to understand key concepts that you'll need to understand.












Android Things SDK Preview!
https://developer.android.com/things/preview/index.html


Android Things Project
https://github.com/amitshekhariitbhu/awesome-android-things#found-this-project-useful-heart


My Website

email : info@softpowergroup.net   Tel .081-6452400

Android Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com

วันพฤหัสบดีที่ 13 เมษายน พ.ศ. 2560

Raspberry Pi Android Things TensorFlow Machine Learning


Raspberry Pi Android Things TensorFlow Machine Learning

Image Classifier Example Code Demo
This example source code are from https://github.com/androidthings . In the details of example code use external GPIO button.but we don't use it. So,we use computer keyboard instead.

This project is based on the TensorFlow Android Camera Demo TF_Classify app. The TensorFlow training was done using Google inception model and the trained data set is used to run inference and generate classification labels via TensorFlow Android Inference APIs.

Hardware

  • Raspberry Pi 3 Board + 16GB SD card
  • Pi camera module
  • Computer keyboard
  • Speaker or ear phone
  • HDMI display or TFT LED display

Software

How to Run Code

First Flash Android Things image onto your Raspberry Pi SD card.

Connect Raspberry Pi to your network using the TCP/IP (LAN) Cable and use adb tool.


use this command to connect Raspberry Pi

use this command to check connection and found android thing device.

Now you can run code on Android Studio.

If you have everything work correctly.


Press ENTER button on keyboard.The current image is captured from attached camera.
The captured image is shown on the screen.Also the result is spoken out on speaker.if any.


My Website


email : info@softpowergroup.net   Tel .081-6452400

Android Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com

วันอังคารที่ 7 มีนาคม พ.ศ. 2560

Raspberry Pi IoT connect CloudMQTT

Raspberry Pi IoT connect CloudMQTT

In Last Article we have made raspberry pi with dht sensor and OLED display. So, in this blog we will use that hardware to connect CloudMQTT.com for IoT application.

What is MQTT?

MQTT (aka MQ Telemetry Transport) is a machine-to-machine or “Internet of Things” connectivity protocol on top of TCP/IP. It allows extremely lightweight publish/subscribe messaging transport.


Broker , Publisher , Subscriber

CloudMQTT are managed Mosquitto servers in the cloud. Mosquitto implements the MQ Telemetry Transport protocol, MQTT, which provides lightweight methods of carrying out messaging using a publish/subscribe message queueing model.
So , you must sign up CloudMQTT

System Diagram

Hardware

  • Raspberry Pi Board ( we use Raspberry Pi3 board ) + SD card (8GB or more) we use 16 GB
  • DHT11 Temperature and Humidity Sensor with Resistor 4.7 K Ohm
  • I2C OLED Display ( 128 x 64 0.96' SSD1306 chip )

Wiring Diagram
Python Library

DHT Sensor
$ git clone https://github.com/adafruit/Adafruit_Python_DHT.git
$ cd Adafruit_Python_DHT
$ sudo apt-get install build-essential python-dev python-openssl
$ sudo python setup.py install

OLED
$ git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
$ cd Adafruit_Python_SSD1306
$ sudo python setup.py install


Source Code
https://github.com/amphancm/RaspberryPi_CloudMQTT
Reference
CloudMQTT Document https://www.cloudmqtt.com/docs.html
OLED Adafruit Python Library https://github.com/adafruit/Adafruit_Python_SSD1306



My Website
email : info@softpowergroup.net   Tel .081-6452400

Android and Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com

วันพุธที่ 1 มีนาคม พ.ศ. 2560

Raspberry Pi + DHT Sensor and OLED in python code


Raspberry Pi + DHT Sensor and OLED in python code

Last Article we connect raspberry pi with OLED already. ( Raspberry pi OLED )
Now we want to connect some sensor and show on OLED.So we use famous one .It is DHTxx Sensor .it can measure temperature and humidity in one time ( air only ).

Wiring Diagram

Hardware


  • Raspberry Pi Board ( we use Raspberry Pi3 board )
  • DHT11 Temperature and Humidity Sensor with Resistor 4.7 K Ohm
  • I2C OLED Display ( 128 x 64 0.96' SSD1306 chip )

Install DHT Python Library

git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get install build-essential python-dev python-openssl
sudo python setup.py install


Source Code in python on Github
https://github.com/amphancm/RaspberryPi_DHT_OLED




Reference Original Code




My Website
email : info@softpowergroup.net   Tel .081-6452400

Android and Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com

วันพุธที่ 25 มกราคม พ.ศ. 2560

Raspberry Pi connect OLED I2C Display ( Python Code )



Raspberry Pi connect OLED I2C Display ( Python Code )



Wiring Diagram

Hardware

Raspberry Pi Board ( we use Raspberry Pi3 board )
I2C OLED Display ( 128 x 64 0.96' SSD1306 chip )


OLED I2C Python  Library from Adafruit

use command line

sudo apt-get install build-essential python-dev python-pip python-imaging python-smbus git

sudo pip install RPi.GPIO

git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git

cd Adafruit_Python_SSD1306
sudo python setup.py install


My Code on Github ( Edit from original ) and add some fonts ( Minecrafia.ttf )
https://github.com/amphancm/RaspberryPi_OLED


Reference
https://blog.jokielowie.com/en/2016/03/wyswietlacz-oled-ssd1306-i-raspberry-pi/

OLED Adafruit Python Library
https://github.com/adafruit/Adafruit_Python_SSD1306



My Website
email : info@softpowergroup.net   Tel .081-6452400

My Blog about Android and Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com