Product Manual

Slide switch plug     

               

 

 

Updated on: ​27th November 2017  

 

 

Product Manual:Slide switch Plug       

​Index 

Introduction



Specification



Variants



Supported cables



Details



How to interface?



Example Code



Code 1 : Arduino



Contributors



 

   

                       

   

 

Elint Labz (​www.elintlabz.in​) 

 

Page 1 of 8 

Product Manual:Slide switch Plug       

About Elint Labz  Elint  Labz  (usually  abbreviated  as  EL)  is  an  electronics  design  &  development  tools  designer  &  manufacturer  with  headquarters  in  Bengaluru,  India.  We  design,  develop  &  manufacture  development  boards  based  on  micro-controller  &  microprocessors,  breakout  boards  for  various  sensors  &  actuators. Our domain & expertise is in the area of  Electronics & Embedded Systems.    Elint  Labz  was  founded  in  2014  however  the  actual operations started from 2015 when it  became  a  full  time  subsidiary  of  Hogst Innovative Solutions Pvt. Ltd. & is presently a part  of  Ajaramara  Group  a  conglomerate  of  various  domains  of  industries,  registered  in  India  as Ajaramara Dynamics Pvt. Ltd. under Companies Act of 2013.    As  in  the  name  company  (Elint  Labz)  –  Electronic  intelligence  (​ELINT​)  is  intelligence  gathered  by  the  use  of  electronic  sensors,  Laboratories  (LABZ)  are  facilities  that  provides  controlled  conditions  in  which scientific or technological research, experiments  and  measurement  may  be  performed.  EL  is  an  enterprise  built  to  develop  smart  &  intelligent  electronics  &  EL  is  committed  to  help  achieve  electronics  literacy in India. No  matter  the  vision  or  skill  level,  our  products  and  resources  are  designed  to  make  electronics & programmable development hardware more accessible.    Elint  Labz  as  a  platform  helps  developers  &  young  engineers  from  prototyping  to  product  development.  We  provide  open  source  hardware  solutions  and  small  quantity  manufacturing  services  using  a  design  from  manufacturing  framework.  We  are  a strong  promoter  of  the  maker  movement  in  India,  most  of  the  manufacturing  happens  with  support  of  our  various  Indian  partners  &  couple  of  our  collaboration  partners  who  have  manufacturing & sourcing facilities in Germany, Korea & Shenzhen.     To know more visit the about us section on our website: ​http://elintlabz.in/about-us/      Elint Labz (HQ)  📮 #​200 1​st main Arekere MICO layout ​2​nd stage   Bengaluru ​560076​ KA ​[Marked on Google Maps]  ✆ ​+91 855 377 2525  📧 ​[email protected] 

     

 

Elint Labz (​www.elintlabz.in​) 

 

Page 2 of 8 

Product Manual:Slide switch Plug       

Introduction 

Slide  switch  is  a  ​simple  SPDT  switch,  commonly  used  as  a  ON/OFF  switch  in  electronic  circuits  or  just as a general control switch. ​Elint Labz has built a plug to  utilize  this  unique  hardware.​This plug can be mounted anywhere using screws. In  the below picture you can see Slide switch plug.   

     

Specification  ● Operating voltage :5v  ● Size : 20mmx15mm 

Variants  ●

Right Angle slide Switch 

Elint Labz (​www.elintlabz.in​) 

 

Page 3 of 8 

Product Manual:Slide switch Plug       

Supported cables  ●

4-4A 

  Details 

    Slide  switch  has  a  slider  that  slides  in  horizontal  direction.  Slide  switch  plug  has  an  interfacing  port  with  four  pins  named  as  G,  V  &  D1  and  D2.  Here  G  represents  Ground  ,V  represents  VCC  and  D1  represents  Data  pin1  and  D2  represents  Data  pin2 at which digital input signals from the plug can be obtained.     Depending  on  the  switch  position  one  of  the  Data  pins  goes  HIGH  and  the  other  Data pin remains at LOW level.    Note: ​ Both the data pins cannot go HIGH/LOW at the same time. 

 

Slider position 

Signal at D1 pin 

 

   

 

     

 

LOW 

Signal at D2 pin       

HIGH 

   

HIGH  

       

LOW 

       

Elint Labz (​www.elintlabz.in​) 

 

Page 4 of 8 

Product Manual:Slide switch Plug       

How to interface? 

  Use  the  supported  interfacing  cable  to  connect  Slide  switch  plug  to  the  controller  board.  Here  4-4A  cable  is  used to connect the Slide switch plug to the  pluguino  board.  One  end  of  the  cable  is  connected  to the plug and other end of  the  cable  must  be  connected  to  the  controller  board.  Always  ensure  that  black  wire of the cable is connected to the G pin on both sides.    In  the  below  given  pictures  one  can  see  4-4A  cable  is  used  to  connect  Slide  switch  plug  with  the  Pluguino  Board.  The  data  pins  D1 and D2 of the Slide switch  plug  is  connected  to  the  10th  and  11th  GPIO  pins  respectively  on  the  controller  board.    

Elint Labz (​www.elintlabz.in​) 

 

Page 5 of 8 

Product Manual:Slide switch Plug       

   

Elint Labz (​www.elintlabz.in​) 

 

Page 6 of 8 

Product Manual:Slide switch Plug       

In  order  to  demonstrate  the  working  of  the Slide switch plug we make use of the  Dual LED plug to represent the state of the switch.    

Example Code  Code 1 : Arduino  Objective:  First  LED  to remain ON as long as, Data pin D1 in Slide switch plug is  HIGH  and  when  it  is  LOW  then  first  LED  turns  OFF.  Similarly,  Data  pin  D2  is  mapped to second LED in Dual LED plug.  #define first_led 12 ​//first LED is connected to 12th pin #define second_led 13 ​//second LED is connected to 13th pin #define first_datapin 10 ​//D1 of slide switch is connected to 10th pin #define second_datapin 11 ​//D2 of slide switch is connected to 11th pin boolean datapin1_state=LOW; ​//initializing data pin-1 state to LOW boolean datapin2_state=LOW; ​//initializing data pin-2 state to LOW void​ ​setup​() { pinMode(first_datapin,INPUT); ​//configure D1 of slide switch as INPUT pinMode(second_datapin,INPUT); ​//configure D2 of slide switch as INPUT pinMode(first_led,OUTPUT); ​//configure first LED as OUTPUT pinMode(second_led,OUTPUT); ​//configure second LED as OUTPUT } void​ ​loop​() { ​//read the first data pin and store it datapin1_state =digitalRead(first_datapin); //read the second data pin and store it datapin2_state=digitalRead(second_datapin); //compare whether first slide_state is HIGH or not ​if​(datapin1_state==HIGH) { Elint Labz (​www.elintlabz.in​) 

 

Page 7 of 8 

Product Manual:Slide switch Plug       

digitalWrite(first_led,HIGH); } ​else { digitalWrite(first_led,LOW); }

​// turn ON the first LED

​//turn off first LED

//compare whether second pin state is HIgh or not ​if​(datapin2_state==HIGH) { digitalWrite(second_led,HIGH); ​// second LED turns on } ​else { digitalWrite(second_led,LOW); ​//second LED turns off } }  Output video : ​https://youtu.be/mEU8dy-eyEk   

    Contributors  List of interns & other contributors who have worked for developing this manual   

Pavan Kumar C  http://www.elintlabz.in/profile-1804 

 

Elint Labz (​www.elintlabz.in​) 

 

Page 8 of 8 

Product Manual:Slide switch Plug       

Pavithra Makineni 

 

http://www.elintlabz.in/profile-1805

   

Elint Labz (​www.elintlabz.in​) 

 

Page 9 of 8 

Slide switch plug

#define second_led 13 ​//second LED is connected to 13th pin. #define first_datapin 10 ​//D1 of slide switch is connected to. 10th pin. #define second_datapin ...

8MB Sizes 1 Downloads 295 Views

Recommend Documents

SlidE switch plug
27 Nov 2017 - Product Manual: Slide Switch Plug. Index. Introduction. 2. Specification. 2. Variants. 2. Supported cables: 3. Details. 3. How to interface? 4. Example Codes. 6. Code 1: Arduino. Elint Labz (​www.elintlabz.in​). Page 1 of 7 ...

Cheap Besegad Eu Plug Digital Programmable Timer Socket Switch ...
Cheap Besegad Eu Plug Digital Programmable Timer So ... ctronic Devices Free Shipping & Wholesale Price.pdf. Cheap Besegad Eu Plug Digital ...

TSOP Plug
Nov 27, 2017 - TSOP, an IR receiver, outputs a constant HIGH signal when it is idle and as it receives data from the remote, it tends to invert the data. i.e when an IR LED of the remote is transmitting data onto the TSOP, every time the IR led goes

Slide 1
had received bachelor or professional degrees. By 1990, this had risen 10-fold to. Inore than 30%. 3. Although technological societies are undoubt- cdly more ...

Slide 0
1Department of Electrical Engineering, Eindhoven University of Technology, The Netherlands. 2 Philips Research, Eindhoven, The Netherlands. Email: [email protected] ... patient care and monitoring, but also reveals health risks that might ...

Slide Dragan.pdf
Page 2 of 20. 2. BIOGRAPHY. Dragan Samardzija received the B.S. degree in electrical engineering and. computer science in 1996 from the University of Novi ...

Slide Biogas.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Slide Biogas.pdf.

No Slide Title
I will argue that this lack of proper definitions is the main reason why the field of research in Artificial Intelligence (and some of its subfields like Cognitive Robotics, e.g.) has been derailed for the last 60 years. The definitions that are in u

Cover Slide
Traffic Distribution By Region. 2010 Growth Rate. North America. 266%. Asia ... 2%. Oceania. 2%. Eastern. Europe. 2%. Source: AdMob Network, Dec 2010 ...

slide - Research at Google
Gunhee Kim1. Seil Na1. Jisung Kim2. Sangho Lee1. Youngjae Yu1. Code : https://github.com/seilna/youtube8m. Team SNUVL X SKT (8th Ranked). 1 ... Page 9 ...

Relay​ ​Plug
Index. 1. Introduction. 2. Specification. 3. Operating​ ​voltage:​ ​5V. 3. Variants. 4 .... To activate the relay Plug the corresponding data pin on the controller board to ... Normally Open Contact (NO): ​NO contact is also called 'make co

Cheap New Eu To China Plug Adapter Socket Plug Converter ...
Cheap New Eu To China Plug Adapter Socket Plug Conve ... lectrical Outlet Free Shipping & Wholesale Price.pdf. Cheap New Eu To China Plug Adapter Socket ...

Slide sem título
isrequired to enable the detector to search for core collapses in supernova events, neutron stars going to hydrodynamical instabilities, coalescence of neutron ...

No Slide Title
Hand-held computers (Palm© Z22s) were used to code children's behaviors, their social experiences, and their reactions to them. Using methods based on past research (Zakriski et al., 2005), each child was coded 3-6 times/day. 15,773 observation sess

No Slide Title
specific to their learning issues. ▫ 28-year old male. ▫ Cough productive of clear sputum with flecks of blood, worsens to frank blood. ▫ Smokes 1.5 packs a day, ...

Rotary sensor plug
A Rotary potentiometer is a three terminal variable resistor with a rotating contact that forms an adjustable voltage divider. An adjustable potentiometer can open.

Joystick Plug
3. Variants. 4. Supported cables. 4. Details. 4. How to interface? 5. Example Codes. 7. Arduino. 7. Contributors. 8. Elint Labz (​www.elintlabz.in​). Page 1 of 7 .... Supported cables. ○ 4-4A. Details. Joystick plug is a analog input device to

LED Plug
Jun 5, 2017 - In this example, we are going to blink an LED with 1 second delay that means LED turns. ON for one second and turns OFF for another second. Example Codes. Code 1: Arduino void setup(). {. pinMode(12,OUTPUT); // define 12th GPIO pin as O

Slide-SBL-Mobile.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Slide-SBL-Mobile.pdf. Slide-SBL-Mobile.pdf. Open. Extract.

35 Slide 1 -
Page 1. 1. 2. 3. 5. 6. 7. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 23. 19. 21. 22. 24. 25. 26. 2. 7. 28. 29. 30. 32. 33. 34. 35. 36. 37. 38. 40. 41. 42. 43. 44. 45. 46. 47. 4. 8.

SLIDE TTNT - FULL.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. SLIDE TTNT ...

No Slide Title
12. Models + Algorithms = Testing. • Models are good at representing systems. • Graph theory can use models to generate tests. • Different algorithms can provide tests to suit your needs: – Street sweepers. – Safecracking. – Markov chains