ITEAD Sonoff – Built-in ESP8266 IoT System

ITEAD is  a company which is presented in an aspect of maker electronic product, especially in part of smart-home gadget device. I bought 3 items of ‘Sonoff’ since 2-3 months ago, but still don’t have time for studying with.  So, in this article, the links denote targets planned to do.

Sonoff has ESP8266 inside. And, surely, it can be reprogram with NEWer firmware. With a new firmware, Sonoff might be able to run Node.js command, and other new features.

PS. I wish that a new firmware would support an open-source IoT app for Android.

เล่น HY-SRF05 กับ AVR ATMEGA328p + Motelib Library

หลายท่านคงเคยใช้ Ultra Sonic Distance Sensor ตัวนี้มาบ้างแล้ว หรืออาจเคย Implement บน Arduino Platform ก็พูดได้ว่า ง่ายกว่า จะทำบน Interrupt บน C ของ AVR ตรงๆทำไม  ซึ่งก็ขอบอกว่า Accuracy แตกต่างกันอย่างแน่นอน อ่านเพิ่มเติม

ลง VPython (python-visual) ใน Anaconda

VPython is a visualization python library.
It helps to create environment that can represent a natural phenomenon.
It is used as a tool for Physics tutorial.
To install inside the Anaconda, Python distribution, you need to install the Anaconda firstly at

After that, please install Conda-build:

conda update conda
conda install conda-build

Then, clone the repository:

git clone

To build VPython by yourself, go inside ‘conda-vpython-recipes’ directory, and, compile its bundle of dependencies.
Please follow the steps below:

cd conda-vpython-recipes
conda build boost-vpython
conda build fonttools polygon2 ttfquery vpython
conda install boost-vpython –use-local
conda install vpython –use-local

Testing by import it inside Python:

import visual

Set ให้ Xfce Terminal สามารถเลื่อน Tab ด้วย Shortcut

Set ให้ Xfce Terminal สามารถเลื่อน Tab ด้วย Shortcut นั้นต้องอาศัยความสามารถจากระบบ Xfce เอง
โดยให้ไปที่ App: Appearence เพื่อ Enable-> Shortcut accelerator

จากนั้นไปที่ Menu ของโปรแกรมที่ต้องการกำหนด Shortcut ซึ่งในที่นี้ก็คือ Xfce Terminal
ใช้ Mouse ลากไปวางที่ตำแหน่ง Choice ของ Menu ที่จะต้องการ ( Menu/ Tabs/ Move To Left )
จากนั้นกดปุ่ม ตั้ง Shortcut ตามต้องการ ( ขอให้เป็น Ctrl+Shift+PgUp โดยปริยาย

Local Webserver Told “Access Forbidden!”, Even Browsing from Same Local Machine

My localhost webserver told me that it could not let me access any pages because I browsed from another machine.

Since I am so sure that I sat down on the same machine, i.e. my notebook, as this webserver, I wondered and think it was unbelievable.

However, using Wireshark to catch packages, I found that it real! .. I used an source IP address of global network to connect with localhost network. How surprising!

After trying for while, I got the cause. The source IP address was changed, so that I set an ‘IPTABLES’ rule wrong.

It masqueraded all packets from my computer without filtering, ever local packets to localhost.

So, I changed it as a following rule.




Linux Dell Too Slow due to Adapter Wattage Problem

My DELL notebook, E6320, occasionally got a problem for while.

When it booted, its BIOS shown that it could not get wattage information from an adapter.

At the time, I just omitted and used it as usual.

But the notebook did not work fast as it was ,and I did not know why.

Until I lost my patience, then I tried to find out the cause.

Since the problem related to lacking of wattage information, the BIOS tried to save a power consumption as much as possible.

As a result, it reduced the CPU frequency to minimum value.

For problem solving method, please follow the link below:



Linux on Android

    1. On Genymotion 2.0.1: Android image version > 4.2.2 do not work
    2. Install Google play.
    3. Install Linuxonandroid, AndroidVNC, and Terminal Emulator.
    4. Download on Linuxonandroid website.
    5. Copy into the android emulator image.
    6. No need to install ‘busybox’ because it was shipped with the image.
    7. Unzip
    8. Run Linuxonandroid and Select Ubuntu13.04-x86 as a target.
      1. It will fail at the first time.
      2. Rename the /data/data/com.zpwebsites.linuxonandroid/files/busybox to busybox.old → It’s ARM excution version.
      3. Link /system/xbin/busybox to


  • > link -s … …
  • Run it again.