Showing posts with label Hardware. Show all posts
Showing posts with label Hardware. Show all posts

Wednesday, March 7, 2018

Arduino relay, control 220v devices code and hardware(circuit diagram)

At the first part of the video (Part-A), I will explain each line of the small code.
At the second part of the video (Part-B) I will build the hardware.

I  build a solution to power on a water pump(or other 220v devices) when there is water overflow.
You can do it to power on other AC (220V) appliances such as Lights, TVs, etc.


Part-A (Code explanation).

Video link for Part-A below this line:
https://youtu.be/mQLTWnA4ZHI


Download code here: Download link
or copy the code unter this line:


#define relay1 4             //Defines pin 4
#define relay2 7             //Defines pin 7         
#define sensor 2          //Define sensor pin 2 (input pin)
#define alwaysHigh 10     //gives 5v to the sensor
//#define ledPin 8 

int sensorState=0;    //keeps the reading of sensor pin 2 (high or low)
int flag=0;     // Takes values 0 or 1. When the sensorState changes.

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);

    //pinMode(ledPin, OUTPUT);  // Set the LED pin as output
    pinMode(sensor, INPUT);     // Set the Sensor pin as input
 
    pinMode(relay1, OUTPUT);     
    pinMode(relay2, OUTPUT);
    pinMode (alwaysHigh, OUTPUT);   //5V sourch, gives power to sensor
 
 
    digitalWrite(relay1, !(LOW));  //OFF
    digitalWrite(relay2, !(LOW));  //OFF
    digitalWrite(alwaysHigh, HIGH); //ON

    Serial.println("Relay-1 is OFF");
    Serial.println ("Relay-2 is OFF");
    Serial.print("\n");
}


void loop() {
    sensorState= digitalRead(sensor);
    //Serial.println(sensorState);
    if (sensorState == HIGH) {               // check if the sensor is in water(short circuit)
      digitalWrite(relay1, !(HIGH));                  // turns Relay1 ON
      digitalWrite(relay2, !(HIGH));                  // turns Relay2 ON
      if (flag==0){
        flag=1;
        Serial.println("relays are now ON");
      }
    }
    else{
      digitalWrite(relay1, !(LOW));             // turns Relay1 OFF                       
      digitalWrite(relay2, !(LOW));             // turns Relay2 OFF
      if (flag==1){
        flag=0;
        Serial.println("relays are now OFF");
      }
    }
} //loop end bracket


Part-B (Hardware)


Video link for Part-B below this line:
https://youtu.be/mimGR6aEHNA




Monday, January 22, 2018

Sony NP FM 30 battery made of 18650 cells

If you have an old np-fm-30 battery, that doesn't work. Make it work again with 18650 cells.
In my case, i used four 18650 cells and the old good one charging board.
There are two sets of two batteries connected in series (2s2p)

Each 18650 cell has 1800mAh (set of two cells in parallel will give as 3600mAh)
The battery cells are connected in series and will give as 7.4V output power.

Following you can see my video and photo with schema





Video link here
https://youtu.be/6hfmeFPO7Gs


Photoes schemas



Sunday, December 24, 2017

ZTE v795 disassembly and reassembly, screen replacement

Do it your self, follow the video instructions and make apart your cellphone, replace a screen or a digitizer.
See the video here:



Video link here: https://youtu.be/zdrL4aWSWAU





Reassembly:

Video link:  https://youtu.be/j9BtNi-H3H8

Monday, December 11, 2017

Sony experia C4 E 5305 disassembly / LCD replacement


Do it your self, do it in your house.
Step by step video instructions  Disassembly your cellphone sony xperia c4 eE5303













You tube link
https://youtu.be/iswfDlG4pBU

Tuesday, November 28, 2017

HTC S8 Button replacement

Step by step video guide. The easiest way to do it your self.


Part A


Youtube link:  https://youtu.be/6FYMtZgLitw



Part B


Youtube link: https://youtu.be/1DMq98ABiz8

Wednesday, March 16, 2016

SIM800L EVB - Arduino Nano Diagram - Alarm system

This is a cellular based alarm system. 

Basic specifications:
Once the magnetic reed sensor recognise intrusion, the alarm system sends sms or makes a call to a predifined cellphone number

The alarm system could be deactivated through a phonecall.
If you make a call to the alarm's cellphone-number, the alarm systen being inactive for five minutes and then return to an active status.
If you send an sms to the alarm system that contains the text / character 's'  (without:  '   ').
The system responds with the current alarm status (active/inactive)


More Details: 
This is the connection diagram of an arduino nano with the sim800 evb (gsm - gprs) module.
Requirements:
1 x Mini usb cable to give power to arduino nano
2 x 10k resistor
1 lx ed
1 x arduino nano microcontroller
1 x sim800l evb gsm/gprs module
1 x 3.7v li-ion battery
1 x step up controller
1 x magnet reed sensor


Download Code:
Click Here

Friday, January 29, 2016

Hp pavillion dv6 disassembly, cooller clean , overheating repair

See my video on youtube to repair yourself easy and safe the hp pavillion dv6 notebook.
In the video you will find detailed step by step instructions







Video link here: https://youtu.be/FqwKiH2ZcIA

Monday, January 18, 2016

Galaxy s4 i9505 screen replacement

See my video on youtube. It is ideal for home users also. Very easy detailed step to achive your goal(Change your broken or faulty screen)





Youtube link Here--> https://youtu.be/jDRDTaqQpFo

Saturday, January 16, 2016

Arduino HC-06 bluetooth pc-button (schema and arduino code here)

The following project gives you the ability to switch on your desktop computer over bluetooth.

The way this thing works is:  You send a command over bluetooth (by pressing a key on your phone) and the electromagnet(attached on the arduino nano) connects two cables (that are acting as a switch).

The following circuitry support 5V and 12V electromagnets with the usage of PN222A transistor as shown 

It is necessary to connect those two cables direct on the mainboard of your pc (where the power button connector is  placed)

Another alternative could be a relay switch, but in this case I used an electromagnet.
 




Video on Youtube   --> https://youtu.be/ChciUi8SHEA





Arduino Code under this line:


//  voulios.blogspot.com (Technology Blog)
//  Chrysovalantis Eleftheriadis

int button = 8;  
int state;        //State '1' activates power-on button, state '0' deactivates it.
int flag=0;       //makes sure that the serial only prints once the state


void setup() {
    pinMode (button, OUTPUT);
    Serial.begin(9600);
}

void loop() {
    //if some date is sent, reads it and saves in state
    if(Serial.available() > 0){    
      state = Serial.read();
      Serial.println(state);  
      flag=0;
    }  
   
    if (state == '0') {   
        digitalWrite(button, LOW);
        if(flag == 0){
          Serial.println("Button is deactivated");
          flag=1;
        }
    }

    //Receives '1' from serial and activates the power button for 3 secs
    else if (state == '1') {
        digitalWrite(button, HIGH);     //activates the button
        delay(3000);                    //for three seconds
        state='0';                      //sets the state to '0' (for the next loop)
        if(flag == 0){
          Serial.println("Power Button has been pressed for 3 seconds");
          flag=1;
        }
    }
          

}


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


Thursday, November 12, 2015

HP pavilion zv5000 Disassembly / Power jack repair part-1 (Video instuctions)

HP Pavilion ZV5000

Under this line, is what you can find in the video 
Power jack Repair,
Heatsink removal,
Disassembly instructions.






Saturday, July 18, 2015

Samsung GT-C3520 Disassembly, Flex cable replacement

 See direct on youtube the video under this line:





Youtube link under this line:
https://youtu.be/zH-IaWI88Bs

Tuesday, July 14, 2015

How to change/replace digitizer/touchscreen on Samsung galaxy tab 3 10.1" (GT-P5210 P5200)


Step by step Video instuctions below. This video is ideal for home users also.











Youtube video link under this line:
http://youtu.be/TNzqQqPSBnQ

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:

Thursday, April 2, 2015

How to connect sata hdd / sata hdd connections


Youtube link here: http://youtu.be/0s-kMx1pZ54

See direct the video under this line:
 

Detect faulty hdd / How to Check your hard disk for errors








Video link on youtube: https://youtu.be/lOKZygwMheU




See direct the video, under this line:




Thursday, March 26, 2015

Disassembly Fujitsu Lifebook AH530/GFX (Overheating Repair) Freezing problem, Cooler problem

  • The most common problem on a laptop is the overheating problem. 
  • It is quite easy on this laptop (Lifebook AH530) to repair it / fix it. 
  • See in the video below the detailed instructions.


Video link:  http://youtu.be/h7XoUS-o7rU