วันเสาร์ที่ 27 กุมภาพันธ์ พ.ศ. 2553

Easy way,HOW to test serial on embedded linux with minicom

Easy way,HOW to test serial on embedded linux with minicom
when you want to test serial port over this case,we tested with gbox sam9260 board.
OVER EMBEDDED BOARD TERMINAL
1.The first,you need to install minicom packet on your embedded board
#apt-get install minicom
JUST WAIT
2.now you got minicom packet,so you would do configuration later
#minicom -s
Then,you would see configuration table and choose SERIAL PORT SETUP and enter
you would see setting table and set parameter what you want such as
if you want to connect via USB0 (USB to serial)
press A and type in A- Serial Device to /dev/ttyS1 then press enter to first page
3.choose SAVE SETUP AS DFL and choose EXIT later
4.test serial (if there is not equipment to connect with your serial port,may be you need to connect loop back to your serial by hard wire between RX and TX and connect CTS<>RTS)
#minicom
type anything you would see anything what you typed.
5.If you want to exit program press 'Ctrl+a' then 'z' then 'x' and enter
Thanks for anyone please and Greats day.

วันศุกร์ที่ 26 กุมภาพันธ์ พ.ศ. 2553

HOW TO COMPILE KERNEL


HOW TO COMPILE KERNEL

  1. Providing environment

    you need to install needed packet and follow by
    #sudo apt-get update
    #sudo apt-get install build-essential
    #sudo apt-apt-get install libncurses5-dev
    #sudo apt-get install uboot-mkimage
  2. Download kernel source (from now,I use 2.26.33 version)

    from http://www.kernel.org/
    and extract it to your desire directory  (I extract in to /home/mestcom/Desktop/src/ then I would get /home/mestcom/Desktop/src/linux-2.6.33 )

    **

  3. Download toolchain from
    http://www.codesourcery.com/sgpp/lite/arm
    and extract(now I extrat in to /home/(your user)/bin/)

    set path of toolchains
    #export $PATH:/home/mestcom/bin/codesourcery-armgcc-2009q1/bin/:$HOME/bin
  4. go into linux source directory

    config .config file to match your board.

    #make sam9_l9260_defconfig
    #export ARCH=arm
    #export CROSS_COMPILE=arm-none-linux-gnueabi-
    #make menuconfig
    you would see config window and then exit and save
    (if you need to config an environment,you can do in this then exit and save BUT make sure that you config as the cross compiling may not work)
  5. Cross Compile kernel

    #make uImage
    after that u need to just wait...
  6. When Cross compiling finish, you would get uImage file in (kener source directory)/arch/arm/boot/ directory
  7. make modules
    #mkdir kernel-modules
    #make modules INSTALL_MOD_PATH=kernel-modules/
    #make modules_install INSTALL_MOD_PATH=kernel-modules/
  8.  

วันพฤหัสบดีที่ 28 มกราคม พ.ศ. 2553

AnTz Robot from KMUTNB Thailand in Techfest IITB(Winner Team)


AnTz Robot from KMUTNB Thailand in Techfest IITB(Winner Team)








Hi All, Great day,
Sportsmanship is the most importance for the competition.Fighting for only winning is not importance so.

I'm Sakmongkon(M).I'm in this team and my responsibility is software developer.So I will show you about our team and our robots.
At first,I'm going to introduce my team.Our team is IRAP_STRI(team name).There are 5 team members,MR. JEDSADANG TANOMSIN,MR. NATTAWUT NAMSANG,MR. SAKMONGKON CHUMKAMON,MR. ARTID TRAKULCHAI AND MR. TEERAWAT BENJAWILAIKUL.We thank a lot to my University(KMUTNB) and My advisor(Dr.Suthep,Dr Phongsak and Dr.Supachai) and thank IITB and staff and AIT Thailand and staff and team member from another team from Thailand and another country





How we make the bots.
    from the photos on the top blog,we have three main systems.
  1. Mechanics
    • Movement 
      • we used two high torque dc motors without encoder and they are around 100 RMP 
      • Diameter of wheels are 7.5 cm.


         
    •  Gripper
      • It was built by 1 RC servo motor with a mechanism likes scissors
      • We use a number of sensors of 14.
        • 5 to follow line
        • 2 to count line
        • 1 for turning
        • 2 to detect box are side.





        • 2 to detect box are back and back right.
        • 2 to detect box for long and short distance.



  2.  Control Circuits.
    • Microcontroller Board,we use PIC18F8722
    • RF module 2.4 GHz
    • 2 H-bridge Driver Motor Boards.
    • Regulator 5v
  3.  Firmware
    • we use CCS compiler.
    The firmware source code of these robots.(click to get)

    Our solution is not the best,it's just proper with us and working time what we have.
    Thank you everyone and sorry with I can't do the blog to complete now,but I will do it as fast as I can and please don't mind if I use English as not well.

    Comment's so important to develop.