Archive for the ‘Computer Science and Technology’ Category

3D drawing for my automation control module

I was just wandering around on the internet by searching myself on Google :D And I just come across these pictures on Flickr. I sketched this in 2008 (almost 4 years ago) for my mini project in Automation Control Technology module.

Automation Control Technology Automation Control Technology

Google Play – the new name for Android Market

Google Play – the new name for Android Market

Today, Wednesday, when I fire up the Android Market, it offers me to upgrade to Google Play Shop. To lure traffic to the new store “Play Shop“, Google is offering daily special price each day for the next week in their “7 Days to Play” sale. These are the APPs available on my HTC Desire on 2012-03-07 for $0.49. So go to Play Shop and grab the apps while you can!

Google Play Google Play

You can also access Google Play Shop via browser: https://play.google.com/store

Image processing with HTC Touch Viva and SRV robot

Image processing with HTC Touch Viva and SRV robot

I wrote an application (in C#) for my HTC Touch Viva to receive image feed from SRV robot’s camera. My PDA phone then processes the image and automatically send command to SRV robot to navigate accordingly :)

MildWild V-3.5 Based on Oxygen 2.3.2

First of all, this is not my work. This work is done by MildWild – an XDA member. I like his ROM so I just want to keep track of the change log and the ROM versions. I will also upload the ROM to my server, so that you can download it with direct link for your convenience.
Please do visit his XDA thread for full info and discussion: http://forum.xda-developers.com/showthread.php?t=1353861

Changelog MildWild V-3.5:

  • DSP Manager fixed
  • New: XperiaArc Launcher Speed up and with 8 screens
  • Tweaks in Framwork for better Battery Performance and Saving
  • More Speed…my fastest rom ever
  • more…

 


Download link:

Direct link: http://www.everbot.com/uploaded/MildWild V-3.5.zip
Mediafire: http://www.mediafire.com/?00oxezp8c23j3j4

Software development of Mobile Robot (Feb 2009) – Le Thanh Tung (part 2)

DESIGN AND DEVELOPMENT OF DOMINION TANK

Hardware overview

Hardware description

robotics connection
  • I/O on the board:
  • 1 power input terminal
  • 1 Serial Interface Module Header
  • 1 TTL Serial COM port
  • 2 encoder ports
  • 2 DC motor terminals
  • 1 I2C Port
  • 1 Analog port

Features:

  • Free .NET Serializer library is available support the board
  • The main communication protocol is Serial COM
  • The robot is able to be controlled wirelessly from a host computer using XBee
XBee

Components arrangement inside the robot:

component arrangement inside robot

Robot’s arm description:

  • The arm is a link of 5 Dynamixel DX-117
  • The communication protocol is RS485
  • Command signal: Digital packet
  • Using XTend – 9XTend 900MHz OEM RF Module and IC-485SN to control the arm wirelessly from a host computer

Communication method between a computer and the robot’s arm:

communication between arm and PC

Objectives

  • To develop software portion to control the robot
  • The robot must be able to be autonomous and semi autonomous – able to detect and avoid obstacles.
  • To add the arm, gripper and camera to make it more useful
  • To develop program to control the arm and integrated it to the main program
  • To develop program to handle all the buttons from the wireless gamepad allowing control of the robot.

Solutions and result

Using Cordless Rumblepad Logitech to control the whole robot wirelessly. Mapping all the buttons from the gamepad to computer’s keyboard using Logitech Profiler. Handle every button to operate each function accordingly.

Cordless Rumblepad Logitech

Detect obstacles using Sharp GP2D12
Sharp GP2D12

To control the arm, at first we need to understand the protocol and instruction packets that use to communicate with the device. Below is algorithm to generate instruction packet for Dynamixel motors:
Dynamixel motors

In addition, base on the above algorithm and further reading the instruction manual of Dynamixel motor, I have also developed a program called Dynamixel Manager that contains some useful features that help us to do some configuration setting for the Dynamixel Motors.
Program interface:
Dynamixel manager interface

By using Serializer.NET library from RobotisConnection.com and combining with Dynamixel motor code, the brain of Dominion Tank is developed successfully. Main interface of program:

Dominian tank GUI

The program helps user to control the robot just by using a wireless gamepad. Alternately, the program is also developed with autonomous feature so that robot is able to run freely without remote controlled from human.

Dominian tank

Here is demo videos:

Source: http://www.roboticsarena.com/software-development-of-mobile-robot-feb-2009-le-thanh-tung-part-2/

Software development of Mobile Robot (Feb 2009) – Le Thanh Tung

Project title: Software development of Mobile Robot
Project type: Final Year Project
Project supervisors: Dr. Edwin Foo, Mr. Tay Huck Sun
Student: Le Thanh Tung

Hardware overview

SRV robot SRV robot

Surveyor SRV-1 Blackfin Robot is open source Wireless Mobile Robot designed for research, education, and exploration. It can be operating as a remotely controlled webcam or a self-navigating autonomous robot:

  • The SRV-1 can run onboard interpreted C programs
  • Or user-modified firmware
  • Or be remotely managed from host device software (PC/PDA…)

Features:

  • Wireless remote control or viewing up to 100m indoors and 1000m outdoors (line of sight)
  • Robot can be controlled from a terminal/console for easy testing
  • Speed: 20cm – 40cm per second

 

srv blackfin camera

 

SRV-1 Blackfin Architectural Overview

The SRV-1 Blackfin Camera

This is core Blackfin processor card with a 1.3MPix camera module and a 32-pin expansion bus.

Summary of specifications

  • 500MHz Analog Devices Blackfin BF537 Processor (1000 integer MIPS)
  • 32MB SDRAM, 4MB SPI Flash
  • External I/O Header (32-pin – 16 x 2 x 0.1″)
  • Omnivision OV9655 1.3 Megapixel Sensor
  • Radio/Motor Control Module : WiFi communication via Lantronix Matchport WLAN 802.11 b/g radio
  • Default Firmware
    • Full-speed frame capture direct to SDRAM at 1280×1024, 640×480, 320×256 or 160×128 pixel resolutions
    • JPEG (Motion JPEG) compression
    • Basic image processing – histogram, pixel sampling, mean, frame difference, blob, scan, count, find
    • Motor control for PWM (H-bridge) and PPM (servo) interfaces
    • Built-in interpreters for Small C or Lisp languages for autonomous operation
    • Real-Time-Clock (milliseconds since reset), internal timer resolution to 10 nanoseconds
    • XMODEM protocol for reliable file transfer
    • Compiled with GNU Blackfin Toolchain (bfin-elf-gcc)

A set of expansion I/O circuit boards.

The main configurations are the “Combo Matchport / Motor Driver” and the forthcoming “Stereo Camera”. These boards host the SRV-1 Blackfin Cameras, the Matchport WiFi radio module, H-bridge motor interface, transistor drivers for laser pointers or LED lighting, and provide regulated 3.3V from the battery source

A motorized robot base

- the latest version was a cooperative design with Inertia Labs – http://www.inertialabs.com/srv.htm .

There are 3 main modes of interfacing to / controlling the SRV-1

1. Use one of the above-mentioned console / development environments
2. Write code for one of the on-board interpreters (mainly the small C)
3. Modify and recompile the SRV-1 firmware using the GNU bfin-elf-gcc compiler toolchain or Analog Device’s VDSP++

For this project, I chose to use the first way implementation to interface with the SRV-1 using C#.

Here is the video to showcase some features of the project:

Source: http://www.roboticsarena.com/software-development-of-mobile-robot-feb-2009-le-thanh-tung/

MildWild V-3.3 Based on Oxygen 2.3.2

First of all, this is not my work. This work is done by MildWild – an XDA member. I like his ROM so I just want to keep track of the change log and the ROM versions. I will also upload the ROM to my server, so that you can download it with direct link for your convenience.
Please do visit his XDA thread for full info and discussion: http://forum.xda-developers.com/showthread.php?t=1353861

Changelog MildWild V-3.3:

  • Update Contact
  • Update GoogleMusic
  • Update Gallery
  • Update host
  • APP2SD
  • DALVIK2SD
  • New ZiamLauncher


Download link:

Direct link: http://www.everbot.com/uploaded/MildWild V-3.3.zip
Mediafire: http://www.mediafire.com/?ejpir1ki9kfb81l

MildWild V-3.2 Based on Oxygen 2.3.2

First of all, this is not my work. This work is done by MildWild – an XDA member. I like his ROM so I just want to keep track of the change log and the ROM versions. I will also upload the ROM to my server, so that you can download it with direct link for your convenience.
Please do visit his XDA thread for full info and discussion: http://forum.xda-developers.com/showthread.php?t=1353861

 

 

MildWild V-3.2 Based on Oxygen 2.3.2 HTC Desire GSM

First of all..Big Thanks to AdamG for his brilliant job!

2.3.2 Changelog:Oxygen 2.3.2
Gingerbread 2.3.7
STABLE Kernel – 2.6.35.14_r3
Added battery controls for brightness & sound in status bar power widget
Added compact carrier
Added croation dictionary
Added option to turn off volume button music controls
Added swipe-to-clear notifications
Decreased bootup time
Improved lock screen animation
Improved media scanner, now scans all external volumes (/emmc & /sdcard)
Removed FM support

Extras: MildWild V-3.2

*720p HW PLAYBACK
*DSP Manager
*Trackball Wake
*Apps2sd
*ice cream theme
*Launcher2 Tweaked
*Some Widget`s
*File Explorer
*Google Weather
*Voice Dialer
*Swipe to Clear Notifications
*Default Keyboard ICS theme
*New Torch
*T9 dialer
*MVPS hosts file to block ads, banners, etc.
*Ice Cream Sandwich Calculator2
*Ice Cream Sandwich Music Player 4.0

Tweak`s:

*Battery saving by reducing wifi scan interval etc
*Better performance
*Better battery life
*Faster database access
*IO performance
*Hardware rendering
*Decrease dialing delay
*improve overall touch responsiveness
*improve scrolling responsiveness
*3G signal tweaks
*Fix some application issues
*Disable blackscreen issue after a call
*hitting the volume rocker will not wake phone
*button lights on when screen is on
*Some RAM tweak´s
*Many more….

Changelog MildWild V-3.2:
*Fixed Market crashes
*New: Camcorder
*New: Dev. Tools
*New: Script`s
*Launcher2 resize and rebuild
*cleaning
*ICS Window Animation
*New Holo Rings


Do a clean installing and please keep in mind the ROM is to big for the oxygen hboot use CM7r2 Hboot:
“Wipe Dalvik Cache” erase /data and /cache partitions.wipe the battery stats.Flash the .zip file from recovery

Download link:
Direct link: http://www.everbot.com/uploaded/MildWild V-3.2.zip
Mediafire: http://www.mediafire.com/?r5ayh1rxw94oinx

Misc download:
- For APP2SD, I’m using Darktremor Apps2SD 2.7.5.3 Beta 04. You can search A2SDGUI on Android Market to have the GUI control of the script.

I’m very happy with this ROM. Have been testing for 2 days, the speed is like a breeze, very smooth, stable and battery efficient :)

Coding coding and coding…

coding art

Sometimes it may be simpler to write your own program from scratch if you have good knowledge about what you are going to do. But it would be better if you can read, debug, understand, and improve other programmers’ code. Having the capability of digesting existing code is a must for a programmer.

Runtime error: division by zero

Division by Zero

So, after more than 10 years of writing code, I’m making a basic careless mistake in PLC – division by zero. This is so ashamed. Although I am not really interested in this kind of graphical block programming but it’s a nice lesson to learn.