Archive for the ‘miscellaneous’ Category

Arduino is an open-source platform used for building electronics projects. Arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer, used to write and upload computer code to the physical board.

Arduino device is connected to PC via USB cable.

In case of power outage, as soon as power is back again, Arduino will wait 10 seconds and then will power on PC.

For “PC Power Switch”, we’ll be using MOSFET transistor.

Connect Arduino to your PC (in this example Windows 10 is used)

Go to Device manager and check if drivers are installed, if not, right clik on device-update drivers-Search automatically for updated driver software.

Click “Search for updated drivers on Windows Update”

After few seconds, drivers should be installed

Download and install Arduino IDE

Type following code:

int led=10;
void setup() {
  // put your setup code here, to run once:
  pinMode(led, OUTPUT);
  digitalWrite(led, HIGH);
  delay(10000);
  digitalWrite(led, LOW);
  delay(500);
  digitalWrite(led, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
 }

It declares Arduino PIN 10 as ouput, sends 5V signal over that pin, waits 20 seconds, then, disables pin 10, again,waits for 50 ms, and again, sends 5 V over pin 10.

Code inside void setup block will be executed once, after Arduino boots up.

Then click on Upload button to send this code to Arduino

Diagram:

Turn off PC Power supply, turn back on, and after 10 seconds, PC should be turned ON

Thanks to a  colleague of mine who has found solution on internet,I was finally able to make a connection to the shared printer.None of other solutions  didn’t work

The workaround of the printer issue where printers are not displaying under devices and printers and while adding them by the host name comes with error maessage “windows cannot connect to the printer error 0x00000057)”.Here are the steps to follow:

It’s actually the print driver failing to install, not the connection to the print server. An initial attempt to install the driver failed, so the driver directory is present on the workstation, but missing the files.

1) First on a machine with the same driver installed (and working properly), open Regedit, and browse to:
HKLM\System\CurrentControlSet\Control\Print\Environments\Windows NT x64\Drivers\Version-3\
2) Locate the subkey for the printer driver we are dealing with i.e. HP Universal Printer Driver v6’ and click the key for the printer driver.
3) Look for the “InfPath” on the right. Note the path.
5) Now browse to C:\Windows\System32\DriverStore\FileRepository and locate the folder indicated in the InfPath reg value.
6) Go to the user’s computer exhibiting this behavior, and browse to C:\Windows\System32\DriverStore\FileRepository and see if the folder is present. If folder is present, but empty, you will have to modify security on the folder, first taking over the ownership, then granting yourself full control.
7) Once security is granted, copy the contents of this folder from a working machine to the effected machine and if complete folder is missing, copy the entire folder.

8) Restart the machine