My search of some sort of OS suitable for N1's on-board computer based on LPC2103 lead me to an article "Build a Super Simple Tasker" (SST). The article describes a "run-to-completion (RTC) prioritized, fully preemptive, deterministic real-time kernel". Although I like the simplicity of the idea I think that tight coupling between an event and its target task in SST implementation (see Listing 3) reduces flexibility of the kernel. The Observer pattern is commonly utilized by event propagation frameworks including frameworks designed by Mother Nature. Additionally, an Observer pattern based design would allow to create and destroy tasks during an application run time. With these thoughts in mind, I decided to put together my own implementation of the idea. Since the coding has been completed I am using this implementation in two unrelated projects and should confirm that RTC tasks fit pretty nicely into FSM oriented designs and single event queue implementation of the Observer pattern provides nice to have extra flexibility with minimal impact on performance.
Sunday, June 21, 2009
Friday, May 29, 2009
Number one
Number one (N1) is a robot which actually runs on a mobile phone. N1 has two parts: body and brain. The body consists of slightly modified chassis of N0 and tiny ARM® based computer which acts as brain spinal cord (BSC). N1 brain, located on a mobile phone and implemented as a Java ME program, connects to its BSC through Bluetooth®. There are some further technical details and photos on the robot's home page as well as a video which shows N1 equipped with infrared distance sensor in action.
Wednesday, May 20, 2009
Shrinkning Sharp GP2D120
I needed to mount vertically Sharp GP2D120 on a micro servo. To reduce sensor's dimensions I decided to get rid of standard mounting holes and connector. Removing mounting holes is simple job while removing the connector involves cutting a part of sensor's PCB. After a bit of head scratching, I moved a resistor and replaced several wires routed on the PCB under connector. Finally, I drilled two tiny holes on the top part of the sensor's body for a wire which attaches the sensor to the servo.
Sunday, May 17, 2009
Mounting a PCB on LEGO
I was looking for a while for a simple way of mounting a PCB on a construction made of LEGO® parts. Through-hole mount requires precise location of holes on a PCB and limits mounting flexibility as well as consumes a lot of valuable space on the board. The best solution to date for me is a three - four slightly modified LEGO® axle pins (gray pin is original and blue pin is modified) which hold edges of a PCB. The modification of four axle pins took about a minute thanks to DREMEL® rotary tool armed with 199 High Speed Cutter.
Subscribe to:
Posts (Atom)