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.
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
After this section, you can make Logic DC Jack run with only few steps.
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.
Choose the number of input first and then adjust the switch to a right position, the needed logic function is confirmed.
There're two arrow seals on the shell, you can distinguish the input and output easily.
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.
Something is needed:
Switch to NOT gate.
As shown below:
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.
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.
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:
Below Groves can work with Logic DC Jack well: