I'm just back from the embedded lab after a whole day of work. The last lab in advanced embedded sounded really simple but is definitely not when it comes to putting it all together.
The challenge: Interface a DC motor to the Renesas M16C micro-controller. The motor speed must be controlled by commands from a computer. So basically I had to write down a code for serial communication between the PC and the microcontroller to use the uC UART. The motor speed was controller by varying the duty cycle of the PWM pulse from 100% to 0. (Status -> Done. This was pretty easy and took me just under 2 hours to do this)
Next we had to design a tachometer to count the speed in rpm of the motor. Initially, we used the very basic VT43N1 LDR (Light dependent resistor) to design the tachometer. The LDR was supposed to detect and send a pulse to the I/O port of the M16C every time a shadow of the rotor wing attached to the motor would fall on it. This method was however not accurate as the micro-controller missed a whole lot of wing rotations. We then shifted focus on the TSOP1156 IR demodulator which would detect IR pulses from an IR LED. Though this approach seemed to work well, it was not feasible as the demodulator would be sensitive only to a pulsed input from the LED and would be sensitive enough to give acceptable results at 56KHz frequency. Generating 56Khz at an amplitude of 1.5v (for the IR LED) did not seem to be a good idea for an embedded system.
Finally, we decided to work back to the basics and used the much simpler IR Transmitter and receiver pair which is basically a LED made from gallium arsenide which emits infrared light at 880nm to be used as a transmitter. I used 3V Vcc with a current limiting resistor to power the IR LED. Just to make sure the LED is emitting IR light, you can check that by observing the LED with you cell phone camera and you can see the IR LED glow!! The IR receiver is an IR photo-transistor operating at 3.5 - 6V with its base powered by the IR light from the transmitter. The anode gives 0v output when IR light is reflected directly on its base. The pair just needs to be close enough to have a good output. (Status --> Done)
The main challenge was programming the MSP430F1122 micro-controller by Texas Instruments. We had to program a custom made platform with the MSP430 using a JTAG port on the board connected to the parallel port of a computer using the IAR embedded workbench. We are working on it now!!! Will post as soon as its done.
Until then, happy debugging.....
Friday, April 30, 2010
Tuesday, April 27, 2010
Something about my Master's thesis
I am presently working on my Master's thesis under the guidance of my advisor, Dr. Nasipuri to design and implement a load balanced and energy aware routing algorithm for large scale wireless sensor networks, typically a mesh network. A setup of wireless motes running Crossbow's XMesh protocol is in place at the TVA Paradise substation in Kentucky, Tennessee.
Crossbow Technology's micaz wireless motes (fig 1) which are equipped with Atmel's ATMega128L processor running at 8Mhz, 2.4GHz Chipcon cc2420 radio, 128KB program memory, 512KB measurement flash and 4KB EEPROM is used as a platform to monitor electrical equipments along with MTS300/310 which is an integrated sensor board that features built in sensors for temperature, light, acoustic signals and also a dual axis accelerometer (MTS310) in addition to a magnetometer (MTS310).
The main objective of this project was preemptive diagnosis of possible failures in transformers, circuit breakers and compressors and monitoring its health at all times. This saves a lot of human effort and the sensors attached to the body of these heavy electrical equipments send periodic data captured by its on-board sensors to a centrally located base station.
Crossbow Technology's XMesh protocol is used for routing this collected data to the base station. The motes are programmed using a specially designed operating system for wireless sensors i.e. the TinyOS. Programming is done using nesC language which is similar to C.
More information can be found from the Crossbow website here: InTech- A real mesh
I had given a presentation on the same in my advanced embedded systems class. Here is the link to it : Presentation on WSN's for substation monitoring
Dexter's lab, is gonna be the name for my tech blog. Inspired from one of my all time favorite cartoon character, DEXTER....the boy genius!!! I really enjoyed the cartoon "Dexter's Lab" on cartoon network as a kid and always dreamed to have an underground lab...( :D ) just the way Dexter had.... so much for childhood dreams.
This is where i will be writing all my experiences as an engineer, about my experiences as a Master's student, about my graduate thesis and about all the geeky stuff that I do or intend to do...
Thanks for reading....
Subscribe to:
Posts (Atom)