VIDISONIC

Hardware & Software Design Resources

Lunar Oasis: Space Agriculture Era Begins

WASHINGTON, although there is no oxygen in lunar atmosphere,  plants can now grow there. Paragon Space Development Corp has develop a portable green house that can be used to grow plants in space.

lunar oasis Lunar Oasis: Space Agriculture Era Begins

The shape of the green house look like a garden light with only 46 centimeters in height. The glass tube is fastened with triangular shaped aluminum base. There is enough nutrition to grow Brassica seed, a kind of caisim or yellow-flower kailan.

The prototype that is designed to  support space agriculture is called Lunar Oasis. The first experiment to place the Lunar Oasis on the moon surface is planned at 2012, will be launched using spaceship produced by Odyssey Moon Ltd. that is still under development.

According to Jane Poynter, the president of Paragon, although living on Moon or Mars may still be far in the future, but preparing an efficient life support system should be searched from now since it can take long time  to get the suitable result.

NASA still has the mission to send the human back to the moon at 2020 and 2030 for Mars. If plants can be grown in aerospace then the astronaut need not to eat pasta and pills everyday. Fresh vegetables can be served anytime.

Loudspeaker Fuse Placement for Audio Amplifier to Preserve A Good Bass Response

To protect the loud speaker from destructive signal, the most simple way is by placing a fast blown fuse between speaker and the amplifier output. This common solution is depicted in the figure 1 (a).

speaker fuse Loudspeaker Fuse Placement for Audio Amplifier to Preserve A Good Bass Response

Figure 1. Fuse Placement to Preserve Good Bass Response

The fuse in the circuit has a significant resistance to generate heat, because without this the fuse couldn’t melt. The resistance affect the amplifier response in reacting to the speaker inductive load, but the worst is that this resistance varies with the temperature caused by the dynamic signal current. This resistance variation affect the linearity of the amplifier’s bass response. This situation can be solved by placing the fuse inside the amplifier’s feedback loop. Using this method, any nonlinear effect introduced by the fuse will be compensated by the amplifier via feedback mechanism. The resistor R3 is chosen to be much smaller compared to R2 but much higher compared speaker’s impedance. A value of 220? is suitable for most cases.

Anti Burglar Alarm, A Half Lie is Much More Dangerous Than 100% Lie

The idea that a half lie is much more dangerous than 100% lie is implemented in this design. Rather than showing off that our car is 100% protected by a sophisticated alarm and protection system, this anti burglar protection circuit prefer to lie that the car is not protected by any electronic alarm or any protection system. The circuit presented here is based on unusual method to protect car theft. Need not a long time to wait after the machine is started, some troubles will arise. Restarting the machine will produce a same trouble, even worst.

anti burglar Anti Burglar Alarm, A Half Lie is Much More Dangerous Than 100% Lie

The circuit is very simple. A 555 timer provide a time delay about five seconds. A normally-closed relay is connected between ignition switch and the ignition coil. S1 switch that is used to activate this protection system should be placed in a hidden area. When the ignition switch is turned on to start the machine, the current will flow normally to the ignition system via the relay and the machine will start to work. After a time delay set by the 555 timer ( the time delay can be varied by selecting different value for R1 and C1) , the relay will be open, and the ignition coil will be disconnected, the machine will show something wrong by stop working. You’ll guess that the burglar will try for two or three more try before giving up.

Avoid Access Violation Error from OpenDialog (TOpenDialog) / SaveDialog (TSaveDialog)

Whe I use OpenDialog (TOpenDialog), SaveDialog (TSaveDialog), OpenPictureDialog (TOpenPictureDialog), or SavePictureDialog (TSavePictureDialog), on Delphi 7 or Turbo Delphi Explorer running on Windows Xp Sp2, I always get access violation error (run time error) after I open the dialog box for second time. At first time the application run, it’s OK to open and browse the file using the dialog but when I try to browse a file for second time, I always get this error: “First chance exception at 0x77E538B2 . Exception class EAccessViolation with message ‘Access violation at address 00408F02 in module ‘myapp.exe’. Read of address 00000000′. Process myapp.exe (0xDD8)” or simply “access violation of 0×77461340: read of address 0×00000014 process stopped”.

After hours of searching the internet, I finally find the solution: Add ActiveX in the uses part of implementation section of the main form (the form that run first). And add edit the end of that unit to include initialization and finalization. The original code of the main form will look like below:

uses Unit1, Unit2,…..;
{$R *.dfm}
…. {your codes}

…. {your codes}

…. {your codes}

end.

Add the ActiveX in uses and Initialization-finalization before the end. as shown below:

uses ActiveX, Unit1, Unit2,…..;
{$R *.dfm}
…. {your codes}

…. {your codes}

…. {your codes}

initialization
OleInitialize(nil);
finalization
OleUninitialize
end.

This trick can also be applied to Delphi 4,5,6 (TOpenPictDialog/TSavePictDialog), I hope this helps. Happy coding for everyone!