Logic DC Jack

This is an easy-to-use logic controller which implement logic AND and logic negation. It is designed with H Bridge which get certain drive function to drive motor and other applications, now your application will not just limited on LED applications. If you are a novice to programming and inclined to make a simple application, this will be smart choice to get something started.



Features


Specifications


Hardware Overview

Here is block diagram of Logic_DC_Jack module which consists of following parts.

Note: When in AND Mode, IN2 is default to HIGH, so when it's only one input module, Logic DC Jack act as a buffer


Getting Started

After this section, you can make Logic DC Jack run with only few steps.

How does it work?

Logic DC Jack is a logic device, which's used to achieve some simple logic function.Please refer to these links to know something information about NOT gate and AND gate before we get started.

This module includes two type of cables and you will use one of it while plugging an input or two inputs onto the input port.

Situation 1 – One input
If the input is only one module, the Logic DC Jack can realize the logic function of AND and NOT. Following is the figure of logic function:




Situation 2 – Two inputs
If the inputs are two modules, this Logic DC Jack can only realize the logic function of AND. Following is the figure of logic function:




Choose the number of input first and then adjust the switch to a right position, the needed logic function is confirmed.

How to judge the input port and output port ?

There're two arrow seals on the shell, you can distinguish the input and output easily.

How to know the default input level ?

Even we know how to use the logic function, but how we know the default level state of the input, because different default level state can make a different output state. Here, you can get it by a simple experiment.

Preparations

Something is needed:


Connecting hardware

In this demo, we use Grove - Button as INPUT, and Grove - Red LED as OUTPUT.

Switch to NOT gate.

As shown below:



Review Results

As you know, only if the output level is 1, then the Grove - LED could be turned on. After power ON, you will find that Grove - LED is on, in a other word, the output level is 1 according to the figure of logic, so we can know: if the output the 1, the switch mode is NOT, so the default input level is 0.

Demo about two inputs

If you want to use two inputs, you need the Grove Branch Cable.

With this cable, you can connect 2 Grove to the INPUT. One connect to Input1 and the other to Input2.




Here is an example, 2 Buttons INPUT and a LED OUTPUT:

The led will on only when 2 buttons pressed.

Tips: This cable can also used as output, if you want to control the state level of 2 Groves at the same time, this cable is needed. Please pay attention: If using the cable by this way, the state level of two outputs is the same.

Work With Lego

Logic DC Jack contain a Lego-compatible case, you can insert Logic DC Jack to Lego, make it more funny.

About the Grove Base that compatible with Lego, it's coming soon.

Here is a demo:



Compatible Groves for Logic DC Jack

Below Groves can work with Logic DC Jack well:

Input

Output



Resources

Copyright (c) 2008-2016 Seeed Development Limited (www.seeedstudio.com / www.seeed.cc)
This static html page was created from http://www.seeedstudio.com/wiki