research #6 – CD4066BE QUAD BILATERAL SWITCH


research #6 – QUAD BILATERAL SWITCH

 

using arduino to control cd4066be, witch acts as a digital switch, to digitaly closing external circuit.

or in our case… simulating press on POWER button on the tablet…. – for turning on\off at driving start\end.

first of all.. lets wire ont of the 4 switches(its a quad bilateral switch, it has 4 switches ), just for testing…

 

check out the datasheet:

http://pdf1.alldatasheet.com/datasheet-pdf/view/26884/TI/CD4066BE.html

 

lets have a look at the chip pinout diagram from the datasheet:

cd4066be-pinout

 

this is the test circuit i made (using fritzing):

cd4066be-test-diagram

cd4066be-test-prefboard

IMAG0604[1]

the arduino code is just the Blink basic scatch, since it’s need HIGH signal to close connection and LOW signal to open the switch,

the Blink scatch is perfect for our test…

just in case, the blink scatch:

 /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(2000);               // wait for a second
digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
delay(2000);               // wait for a second
}

 

 

 

watch it work:


now we can control up to 4 switches using 1 chip..  just in case – i got my hand on 20… 😉

IMAG0605[1]

 

Comments

comments