Showing posts with label Learn. Show all posts
Showing posts with label Learn. Show all posts

Wednesday, November 25, 2015

Usb powerbank diy(easiest way) with 18650 batteries

Parts you need for it

1. 18650 batteries (Can be taken from an old laptop battery)
2. Step up controller
3. Li-ion Charger




Video link under this line:
https://youtu.be/wuKbyflB1_s

Here are some photoes


Saturday, August 15, 2015

Automatically Turn Off Your Computer. Windows shutdown app. Shutdown Timer. Free download, C source code

For your reasons you want to shutdown your computer after minutes or an hour, etc.
With this simple app you can shutdown your computer in a very simple way.

1. Execute the program
2. Give the minutes you want your computer to shutdown
3. That is all. The computer will automatic shutdown


Download here



Otherwise you could run CMD (Command Prompt)

C:\> shutdown -s -t 180    -Enter-
-s   means shutdown computer
-t   means after how many seconds will execute the command
180 are the seconds after that will the computer shutdown
 --------------------------------
C:\> shutdown -a      -Enter-
-a   mean abort the shutdown execution
with this command you will abort shutdown



------------------------------------
------------------------------------



-----------------------------------
C Code after this line
-----------------------------------
#include <stdio.h>
#include <time.h>
#include <windows.h>






//delay code-block
void delay (unsigned int secs) {
    unsigned int retTime;
    retTime = time(0) + secs;     // Get finishing time.
    while (time(0) < retTime);    // Loop until it arrives.
}





int main()
{
    int i;
    int minutes;
    int flag=0;
   
    minutes=0;
   
   
       
       
    printf ("Give minutes to Shutdown: ");
    scanf("%d", &minutes);
    minutes= minutes *60;




    delay(minutes-30);       
    printf("Remaining 30 secs\n");
    delay(20);
   
   
    printf ("Remaining less than 10 seconds, press continuously ESC to abort\n");
    for (i=10;i>=0;i--)
    {
        delay(1);        //delay 10 seconds
        printf("\n");
        printf("Remaining secs: %d", i);


       
        if(GetAsyncKeyState(VK_ESCAPE ) < 0)
        {
            flag=1;
            break;
        }
       
    }
   
    if (flag==0)
        system("shutdown /s");
    return 0;
}

Saturday, June 27, 2015

Lenovo b570e screen replacement. Lcd change.



The Part number of an original b570e screen


Video under this link...
http://youtu.be/Fm5yvlo_A_k

Under this line you can see direct the video:

Saturday, March 14, 2015

Amilo pa bs016 Mainboard reflow part2



Learn how to reflow an Amilo Pa bs016
http://youtu.be/BJL9b1nPejQ

You can see direct the video unter this line.
 

Saturday, January 10, 2015

Learn how can you sum two numbers on C with an extra easy video guide

CODE

--Copy from the line below--

#include <stdio.h>

main()  
{
int number1 = 10;   
int number2 = 20;
int sum;       
sum = number1 + number2;  
printf("The Sumary of Number1 %d with number2 %d is the following %d", number1, number2, sum);
scanf("%d", &sum);
}
--Until the line above --