Search This Blog

Friday, 20 January 2017

Arduino Push Button on and off

PROGRAMMED PUSH BUTTON TO CONTROL BOTH ON/OFF USING ARDUINO [V2]

Hello friends,

  This is the second version of project which we already posted using PLC controller. We know that in some application single push button is used for both ON/OFF.  For example in TV to Power ON/OFF, a single push button is used.
Some times, due to the presence of lot number of switches in control panel more chances are there to complicate to find ON or OFF switch. Alternatively, Using this type of switch can reduce the number of switches and hence saves  space making it more integrated. For the purpose of ON and OFF, two inputs are required but in this method it can achieved by using a single switch.
The circuit used in the project is controlled by arduino.

Connection:


The main circuit is shown above. The PUSH Button is connected to Pin No 8 of arduino and VCC. Pull up resistor is connected to the same pin. It means Pin No 8 is Normally LOW. Motor and Arduino are electrically isolated by a Relay. Relay is connected to Pin No. 7. Diode D2 is a freewheeling Diode connected across the Relay coil. To indicate ON, LED is connected Pin 9 in series with a Resistor. Motor should connected to NO (Normally Open) contact of Relay.

Working :

The Arduino detects the position of switch. Initially if the switch is ON it makes the Relay ON by turning Pin 7 High. At the same time,  the Indicator LED will turn ON. Motor Starts to RUN. If the Button is pressed more than 5 seconds, arduino makes  Relay OFF.  The program should be written such that if switch is Pressed less than 5 seconds, motor should RUN and if the Button is pressed more than 5 seconds, motor should go to OFF condition.

Power Circuit:
 
Components Required:


Codes:
const int s=8; //Push Button connected to pin 8
const int m=7; //Motor/Relay connected to pin 7
const int i=9; //Motor ON/OFF Indicator LED connected to pin 6
int k=0; //variable for to Turn ON the Motor
int j=0; //variable for to Turn OFF the Motor

void setup() {
  pinMode(s, INPUT); //assign s as Input
  pinMode(m, OUTPUT); // assign m as Output
}

void loop() {
 k=digitalRead(s); //read Switch position to k
  if(j == LOW) //check whether j=0 to TURN ON MOTOR program 
  {
        if(k == HIGH) //check whether k=1 to enter TURN ON MOTOR program
    {
      digitalWrite(m, HIGH); // TURN ON the motor
      digitalWrite(i, HIGH); // TURN ON the motor indicator
      delay(3000); //wait for 3sec
      k=0; //make k=0
      j=digitalRead(s);//read Switch position to j
    }
  }
      else     //check whether j=1 to enter TURN OFF MOTOR program
      {
        digitalWrite(m, LOW); // Turn OFF the motor
        digitalWrite(i, LOW); //Turn OFF the Indicator
        j=digitalRead(s); // read switch position & send to j
        delay(1000);//wait 1sec
      }
  }



Friday, 13 January 2017

Nokia 6 Price, Launch Date Revealed. Android Smartphones 2017

The first of the much-anticipated Nokia Android phones, the Nokia 6, was unveiled earlier this month without much fanfare exclusively in China. The new Nokia 6 smartphone will be going on sale next week in the country, the company said in a Facebook post.
"Get ready! The Nokia 6 is coming to China! More announcements to follow on February 26th... Save the date!", the post said.
February 26 is a day before the Mobile World Congress starts in Barcelona, so we can expect HMD Global, the new custodians of the Nokia brand, to unveil more Nokia Android phones for markets other than China at the event.
Additionally, JD.com, the retail partner for the first Nokia Android phone in China, kicked off registrations for the smartphone in China for its first Nokia 6 sale on January 19. Priced at CNY 1,699 (approximately Rs. 17,000), the Nokia 6 will be going on sale in just Black colour. A Nokia 6 Silver colour variant was spotted in the meanwhile, however, on Chinese telecommunications certification site TENAA. HMD Global had earlier confirmed that the new Nokia 6 smartphone will be exclusive to the Chinese market.


Image result for nokia 6

NETWORKTechnologyGSM / CDMA / HSPA / EVDO / LTE
LAUNCHAnnounced2017, January
StatusComing soon. Exp. release 2017, January 19th
BODYDimensions154 x 75.8 x 8.4 mm (6.06 x 2.98 x 0.33 in)
Weight169 g (5.96 oz)
SIMDual SIM (Nano-SIM, dual stand-by)
DISPLAYTypeIPS LCD capacitive touchscreen, 16M colors
Size5.5 inches (~70.7% screen-to-body ratio)
Resolution1080 x 1920 pixels (~403 ppi pixel density)
MultitouchYes
ProtectionCorning Gorilla Glass 3
PLATFORMOSAndroid OS, v7.0 (Nougat)
ChipsetQualcomm MSM8937 Snapdragon 430
CPUOcta-core 1.4 GHz Cortex-A53
GPUAdreno 505
MEMORYCard slotmicroSD, up to 256 GB
Internal64 GB, 4 GB RAM
CAMERAPrimary16 MP, f/2.0, phase detection autofocus, dual-LED (dual tone) flash
Features1.0 µm pixel size, geo-tagging, touch focus, face detection, panorama, HDR
Video1080p@30fps
Secondary8 MP, f/2.0, 1.12 µm pixel size, 1080p
SOUNDAlert typesVibration; MP3, WAV ringtones
LoudspeakerYes, with stereo speakers
3.5mm jackYes
 - Dolby Atmos sound enhancement
- Active noise cancellation with dedicated mic
COMMSWLANYes
BluetoothYes
GPSYes, with A-GPS, GLONASS
RadioTo be confirmed
USBmicroUSB v2.0, USB On-The-Go
FEATURESSensorsFingerprint (front-mounted), accelerometer, gyro, proximity, compass
MessagingSMS(threaded view), MMS, Email, Push Mail, IM
BrowserHTML5
JavaNo
 - Fast battery charging
- MP4/H.264 player
- MP3/WAV/eAAC+/FLAC player
- Photo/video editor
- Document viewer
BATTERY Non-removable Li-Ion 3000 mAh battery
Stand-byUp to 768 h (3G)
Talk timeUp to 18 h (3G)
Music playUp to 22 h
MISCColorsBlack
Price group6/10