Monday, 25 May 2015

MATLAB: Array sort


Under certain circumstances, we might need to arrange values that we collect into a certain arrangement. This is known as sorting. Sorting not only identifies the important values but it also allows these values to be arranged according to priority.

Recognizing this importance, I'd like to discuss on a sorting algorithm which I came across while viewing the Introduction to Algorithms course by MITOpenCourseWare on iTunes and how I implemented it on MATLAB

Figure I. Pseudo code for insertion sort

Sunday, 17 May 2015

MATLAB: Using for loop to construct & arrange matrices


This blog post is to share one of my experiments using the For loop in MATLAB. My aim, initially, was to output a simple array from user input using the For loop. However, as the greed kicked in, I started craving for a more complex output.

Here's a quick snippet of what my code does.

Figure I. Automatically arranged matrix

Wednesday, 8 May 2013

Timer1 and External Interrupts on Arduino & HD44780 LCD Arduino use guides

This post contains the links for Timer1 and External Interrupts on Arduino & HD44780 LCD Arduino use guides are self-written and therefore, might contain several errors. Please let me know if any is spotted and I could make the ammendments

Monday, 6 May 2013

Digital Thermometer

This entry is to log the development of the Digital Thermometer Arduino Project.

 #Current version (v3.5)

Figure 1. Top down view of digital thermometer

Figure 2. Side view of Digital Thermometer

Friday, 1 February 2013

Altium Designer 10

This entry is to log the learning progress of altium designer 10 and also several webpages that contains downloadable 3D models (.step primarily for altium)

Figure 1. Final look of test design
3D models webpages ( 1/2/2013 )
3D Content Central

Altium helpful videos ( 1/2/2013 )

Tuesday, 22 January 2013

Drawing Ground or Supply polygons on Eagle Cadsoft

This entry is to log the steps on drawing ground or supply polygons with Eagle Cadsoft

Figure 1. Ground polygon end result

Sunday, 20 January 2013

Sunday, 13 January 2013

LED Signboard

This entry is to log my previously developed mini project in diploma on an LED signboard.
The source code has been updated to make it look for elegant and comes with more functions than the original design.
Source code length is now 2004 lines in assembly language. Complied and built with MPLAB version 8.

Report and source code link: LED Signboard

Tuesday, 4 September 2012

Joystick controlled Servo


This project involves the use of a single dual axis joystick to control the rotational direction a a servo.
Here, I've used an Arduino Uno as the main processing unit and the Arduino IDE to develop the code.

Let's talk about the servo. It is a negative feedback system. Every time it turns, a signal is fedback to an error amplifier which compares it with the actual signal given to the servo. This error amplifier finds the difference and then feeds it back to the servo to produce the necessary motions to bring the spline or the horn to the correct angle.

A normal servo is also limited to a maximum rotational angle of 180 degrees/half a circle. However, it can be modified to reach 360 degrees/a full circle by hacking the servo. Servo hacking is unfortunately not part of the scope for this post.

Monday, 6 August 2012

How to repair microcontroller pins

Hi! Today I'll be posting on a tutorial on how to repair PIC microcontroller pins. PIC Microcontrollers are really delicate stuffs. If you bend or twist the pins too much, it may break off. This is especially true when you're trying to remove it from the breadboard or socket without care and proper equipment. From my experience, I've seen many of such cases happening to my friends and they had to replace the entire microcontroller. So I was thinking, is there a way to repair the broken pins? and here's my answer.

Figure I. Repaired microcontroller pin