แสดงบทความที่มีป้ายกำกับ Android control IOIO Board แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Android control IOIO Board แสดงบทความทั้งหมด

วันเสาร์ที่ 9 มิถุนายน พ.ศ. 2555

IOIO Bluetooth Control Devices


-->

IOIO Bluetooth Control Device ( ภาษาไทย ด้านล่าง )

IOIO Bluetooth Control Device Application is to allow you to control various electrical devices up to eight devices and independently controlled.
Use Android Bluetooth mobile device to  remote control your devices with IOIO Board and Bluetooth USB Dongle.



The program features.
New Function for Version 1.5+
- Change your Button Name.


- Control up to  8 devices with Relay Board. ( and can test control LED on IOIO Board )

- Show Bluetooth Connecting status

- Run on Background Service so when goto other App,IOIO Control device App still running.


Run IOIO on Background Service ( Show Icon on Notification Bar ) . So, The App connect IOIO all the time until stop service ( Stop Function on Notification Bar  )


Freeware with AD. Design for Android version 2.3.X or more

New Function for Version 1.5+
Change your Button Name. You can edit your button name.












Hardware

1.       Bluetooth USB Dongle

2.       IOIO Board  ( new version support over Bluetooth )

3.       8 channel Output Relay Board



For the IOIO Board , you don’t need program hex code or flash code in to the IOIO Board.

It has firmware for ready to use. You are only wiring the cable to the relay board only.

Wiring Diagram
DC 5 Volt Power Supply to the IOIO Board.
PIN 1-8 on IOIO Board to 8 channel relay board.




Download App on Google Play Market




IOIO Bluetooth Control Device Application สามารถควบคุมอุปกรณ์ไฟฟ้าต่างๆได้ ถึง 8 อุปกรณ์โดย แยกควบคุมกันได้อย่างอิสระ ผ่านระบบ Bluetooth ของเครื่องโทรศัพท์มือถือ Android เป็นตัว Remote Control ไปยังอุปกรณ์ภาครับ ซึ่งใช้ IOIO Board  และ  ตัว Bluetooth


คุณสมบัติโปรแกรม

  • ควบคุมอุปกรณ์ได้ 8 อุปกรณ์ และสามารถควบคุม LED บน IOIO Board
  • แสดง สถานะการติดต่อกับ Bluetooth
  • ต้องใช้งานร่วมกับ IOIO Board


ออกแบบ ค่าเริ่มต้น สำหรับ Android version 2.3.X และ หน้าจอความละเอียด 480 x 800 ( WVGA )


อุปกรณ์ที่ใช้

1.       Bluetooth USB Dongle

2.       IOIO Board  ( new version support over bluetooth )

3.       8 channel Output Relay Board


Android Developer
 http://androiddevelopersthai.blogspot.com/

Android example code 
http://androidcodeexample.blogspot.com/




สอนเขียน Android  สอนเขียนโปรแกรม Android แบบ Online


รับสอนเขียนโปรแกรม Android App สอนแบบ online สอนสด ตัวต่อตัว หรือ เป็นกลุ่ม ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android App แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน
( รับสอน นอกสถานที่ แบบเป็น กลุ่ม ทั่วประเทศ )

แต่ละ Course ขึ้นอยู่กับพื้นฐานที่มี นะครับ

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 3-4 ครั้ง ครั้งละ 2 ชั่วโมง  

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 5-6 ครั้ง ครั้งละ 2 ชั่วโมง 
เรียนจบคอร์สนี้ ก็สามารถทำ Application ได้แล้ว

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย
ดังนั้น ราคาสอน จะขึ้นอยู่กับ สเปคงาน

โปรแกรมที่ใช้ทำการเรียน Team Viewer  Version ล่าสุด Version 8
Meeting ID จะแจ้งให้ก่อนเรียน ผ่านทาง email sms Line หรือ อื่นๆ ตามสะดวก
ใช้ Tab Meeting ใส่ Meeting ID และใส่ชื่อ
แล้ว Join Meeting

ติดต่อ amphancm@gmail.com

วันพฤหัสบดีที่ 15 มีนาคม พ.ศ. 2555

SMS to Braille Character Code with IOIO Board



ADT Program test on Eclipse.




Test Program with IOIO Board and LG Optimus Black P970.

SMS to Braille Character Code with IOIO Board



Hardware IOIO Board


More info
IOIO Board over Bluetooth
IOIO Bluetooth Control Devices
IOIO RC Control


Information for Android Development http://developer.android.com/reference/android/telephony/SmsManager.html

public final class

SmsManager

extends Object
java.lang.Object
   ↳ android.telephony.SmsManager

Class Overview

Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault().

Summary

Constants
int RESULT_ERROR_GENERIC_FAILURE Generic failure cause
int RESULT_ERROR_NO_SERVICE Failed because service is currently unavailable
int RESULT_ERROR_NULL_PDU Failed because no pdu provided
int RESULT_ERROR_RADIO_OFF Failed because radio was explicitly turned off
int STATUS_ON_ICC_FREE Free space (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
int STATUS_ON_ICC_READ Received and read (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
int STATUS_ON_ICC_SENT Stored and sent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
int STATUS_ON_ICC_UNREAD Received and unread (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
int STATUS_ON_ICC_UNSENT Stored and unsent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Public Methods
ArrayList<String> divideMessage(String text)
Divide a message text into several fragments, none bigger than the maximum SMS message size.
static SmsManager getDefault()
Get the default instance of the SmsManager
void sendDataMessage(String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)
Send a data based SMS to a specific application port.
void sendMultipartTextMessage(String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents)
Send a multi-part text based SMS.
void sendTextMessage(String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)
Send a text based SMS.
[Expand]
Inherited Methods
From class java.lang.Object

Constants


public static final int RESULT_ERROR_GENERIC_FAILURE

Since: API Level 4
Generic failure cause
Constant Value: 1 (0x00000001)

public static final int RESULT_ERROR_NO_SERVICE

Since: API Level 4
Failed because service is currently unavailable
Constant Value: 4 (0x00000004)

public static final int RESULT_ERROR_NULL_PDU

Since: API Level 4
Failed because no pdu provided
Constant Value: 3 (0x00000003)

public static final int RESULT_ERROR_RADIO_OFF

Since: API Level 4
Failed because radio was explicitly turned off
Constant Value: 2 (0x00000002)

public static final int STATUS_ON_ICC_FREE

Since: API Level 4
Free space (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 0 (0x00000000)

public static final int STATUS_ON_ICC_READ

Since: API Level 4
Received and read (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 1 (0x00000001)

public static final int STATUS_ON_ICC_SENT

Since: API Level 4
Stored and sent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 5 (0x00000005)

public static final int STATUS_ON_ICC_UNREAD

Since: API Level 4
Received and unread (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 3 (0x00000003)

public static final int STATUS_ON_ICC_UNSENT

Since: API Level 4
Stored and unsent (TS 51.011 10.5.3 / 3GPP2 C.S0023 3.4.27).
Constant Value: 7 (0x00000007)

Public Methods


public ArrayList<String> divideMessage (String text)

Since: API Level 4
Divide a message text into several fragments, none bigger than the maximum SMS message size.
Parameters
text the original message. Must not be null.
Returns
  • an ArrayList of strings that, in order, comprise the original message

public static SmsManager getDefault ()

Since: API Level 4
Get the default instance of the SmsManager
Returns
  • the default instance of the SmsManager

public void sendDataMessage (String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)

Since: API Level 4
Send a data based SMS to a specific application port.
Parameters
destinationAddress the address to send the message to
scAddress is the service center address or null to use the current default SMSC
destinationPort the port to deliver the message to
data the body of the message to send
sentIntent if not NULL this PendingIntent is broadcast when the message is successfully sent, or failed. The result code will be Activity.RESULT_OK for success, or one of these errors:
RESULT_ERROR_GENERIC_FAILURE
RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU
For RESULT_ERROR_GENERIC_FAILURE the sentIntent may include the extra "errorCode" containing a radio technology specific value, generally only useful for troubleshooting.
The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applications, which cause smaller number of SMS to be sent in checking period.
deliveryIntent if not NULL this PendingIntent is broadcast when the message is delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu").
Throws
IllegalArgumentException if destinationAddress or data are empty

public void sendMultipartTextMessage (String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents)

Since: API Level 4
Send a multi-part text based SMS. The callee should have already divided the message into correctly sized parts by calling divideMessage.
Parameters
destinationAddress the address to send the message to
scAddress is the service center address or null to use the current default SMSC
parts an ArrayList of strings that, in order, comprise the original message
sentIntents if not null, an ArrayList of PendingIntents (one for each message part) that is broadcast when the corresponding message part has been sent. The result code will be Activity.RESULT_OK for success, or one of these errors:
RESULT_ERROR_GENERIC_FAILURE
RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU
For RESULT_ERROR_GENERIC_FAILURE each sentIntent may include the extra "errorCode" containing a radio technology specific value, generally only useful for troubleshooting.
The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applications, which cause smaller number of SMS to be sent in checking period.
deliveryIntents if not null, an ArrayList of PendingIntents (one for each message part) that is broadcast when the corresponding message part has been delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu").
Throws
IllegalArgumentException if destinationAddress or data are empty

public void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)

Since: API Level 4
Send a text based SMS.
Parameters
destinationAddress the address to send the message to
scAddress is the service center address or null to use the current default SMSC
text the body of the message to send
sentIntent if not NULL this PendingIntent is broadcast when the message is successfully sent, or failed. The result code will be Activity.RESULT_OK for success, or one of these errors:
RESULT_ERROR_GENERIC_FAILURE
RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU
For RESULT_ERROR_GENERIC_FAILURE the sentIntent may include the extra "errorCode" containing a radio technology specific value, generally only useful for troubleshooting.
The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applications, which cause smaller number of SMS to be sent in checking period.
deliveryIntent if not NULL this PendingIntent is broadcast when the message is delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu").
Throws
IllegalArgumentException if destinationAddress or text are empty 


รับเขียนโปรแกรม Android Application และสอนการเขียนโปรแกรม สอน online ได้  
อดุลย์ 081-6452400 e-mail fongwe_a@hotmail.com
สอนเขียนโปรแกรม Android Application สอนแบบ online ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android Application แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 6 ครั้ง ครั้งละ 1 ชั่วโมงครึ่ง  ราคา 2000 บาท

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 10 ครั้ง ครั้งละ 1 ชั่วโมงครึ่ง ราคา 4000 บาท

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกมเกม หรือ โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย


more info about Android Development
http://androiddevelopersthai.blogspot.com/

Android example code 
http://androidcodeexample.blogspot.com/
 
 

วันจันทร์ที่ 20 กุมภาพันธ์ พ.ศ. 2555

Android TCP/IP Server Client control IOIO Board

Android TCP/IP Server Client control IOIO Board



-->



 

public class ServerSocket  ( information form Android Developers )

extends Object
java.lang.Object
   ↳ java.net.ServerSocket
Known Direct Subclasses

Class Overview

This class represents a server-side socket that waits for incoming client connections. A ServerSocket handles the requests and sends back an appropriate reply. The actual tasks that a server socket must accomplish are implemented by an internal SocketImpl instance. 


public class

Socket

extends Object
java.lang.Object
   ↳ java.net.Socket
Known Direct Subclasses

Class Overview

Provides a client-side TCP socket.



รับเขียนโปรแกรม Android Application และสอนการเขียนโปรแกรม สอน online ได้
อดุลย์ 081-6452400  e-mail fongwe_a@hotmail.com
สอนเขียนโปรแกรม Android Application สอนแบบ online ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android Application แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 6 ครั้ง ครั้งละ 1 ชั่วโมงครึ่ง 

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 10 ครั้ง ครั้งละ 1 ชั่วโมงครึ่ง 

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกมเกม หรือ โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย

more info about Android Development
http://androiddevelopersthai.blogspot.com/

Android example code 
http://androidcodeexample.blogspot.com/

ติดต่อ amphancm@gmail.com




วันพฤหัสบดีที่ 20 ตุลาคม พ.ศ. 2554

Android Volt Meter with IOIO Board






Android Volt Meter with IOIO Board
We can use Android phone as Digital Volt meter with IOIO Board.

We edit IOIO Sample App Source code. It has Analog to digital input code.
Testing on Samsung Spica i5700 ( Update to 2.2 )

มาทำ โวลต์มิเตอร์ ด้วย Android + IOIO Board ( โยโย่ บอร์ด )
ทดสอบกับโทรศัพท์มือถือ samsung spica i5700 ( up ROM เป็น 2.2 แล้วใช้ได้ )


Original Code
public void loop() throws ConnectionLostException {
      try {
            final float reading = input_.read();
            setText(Float.toString(reading));
           

pwmOutput_.setPulseWidth(1000 + seekBar_.getProgress());
            led_.write(!toggleButton_.isChecked());
            sleep(10);
            } catch (InterruptedException e) {
                  ioio_.disconnect();
            } catch (ConnectionLostException e) {
                  enableUi(false);
                  throw e;
            }
      }
Edit Code
public void loop() throws ConnectionLostException {
      try {
            final float reading = input_.getVoltage();                 
            float div4 = 4;
            setText(Float.toString(reading*div4));
           
                                   
            pwmOutput_.setPulseWidth(1000 + seekBar_.getProgress());
                  led_.write(!toggleButton_.isChecked());
                  sleep(10);
            } catch (InterruptedException e) {
                  ioio_.disconnect();
            } catch (ConnectionLostException e) {
                  enableUi(false);
                  throw e;
            }
      }

We change input   final float reading = input_.read();
setText(Float.toString(reading));
to                          final float reading = input_.getVoltage();           
                  float div4 = 4;
                  setText(Float.toString(reading*div4));

If you not use float div4 = 4; and setText(Float.toString(reading*div4));
You can read voltage only 3.3 V.
Then use div4 = 3.3 x 4 =  13.2 V. ( But need  voltage divider circuit )
Voltage Divider Circuit
V out = Vin/4  Then V out  connect to Pin 40 IOIO Board.

วันพุธที่ 12 ตุลาคม พ.ศ. 2554

Android control IOIO Board Testing



-->

Android control IOIO Board Testing.
IOIO Board is External Interface board to control other device with Android Mobile phone.
We use a sample code form Sparkfun.
Use LG GT540 Android phone ( platform 2.1 ) for testing. It's work fine.

We also use Wellcom A86 Mobile phone but it's not work :(
Enjoy your hobby.

ทดสอบ การควบคุม IOIO Board ด้วยโทรศัพท์มือถือ แอนดรอย

IOIO Projects

SMS to Braille Character Code with IOIO Board

Android TCP/IP Server Client control IOIO Board