![Profile Picture](/uploads/avatars/32439.jpg)
sampaano
USA
Asked
![Resolved](/images/icons/Large/check.png)
Is it possible to connect a motor shield like an Arduino A000079 Motor Shield to the iotiny to control a pair of DC motors? If so, how would it be wired?
Related Hardware EZ-B IoTiny
Hey, you can upload the Firmware to connect ARC directly to an Arduino...I guess thats the easiest option!![:)](/images/emoticons/smiles.svg)
Hi, good luck EzAng
@Ezang:
Please stop spamming ! Can you please explain how your answer helps answering the user question:A000079 Motor Shield documentation: https://store.arduino.cc/usa/arduino-motor-shield-rev3
![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/zqnzjxfc.PNG)
You need to connect:![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/wnlgkrd2.PNG)
Shield D12 - Iotiny D0 Shield D 3 - Iotiny D1 Shield D13 - Iotiny D2 Shield D11 - Iotiny D3Plus you will need to connect: Shield GND - Iotiny Black Pin (GND) The shield requires 5V to operate the circuits logic (not the motors), and sources from the Arduino 5V shield.
Out of the box the Iotiny has a stable 3.3v :
looking to the shield schematic: https://www.arduino.cc/en/uploads/Main/arduino_MotorShield_Rev3-schematic.pdf
uses L298N: https://www.sparkfun.com/datasheets/Robotics/L298_H_Bridge.pdf
The L298N accepts 3.3 v, but the shield is built to source 5V from the arduino board.
you have three options:
This is only the wiring part, to make it work you will need to use custom Movement panel.
PTP - so does this hbridge work by having the direction true (forward) or (false) reverse? And to stop, simply stop the PWM?
yes it similar to this one too: https://www.dfrobot.com/product-656.html https://image.dfrobot.com/image/data/DFR0004/RoMeo%20V1.1%20sch.pdf
basically they use a single pin (dir) and nand circuit to generate two different signals with opposite values to control the in1 / in2:
![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/e142jqnh.PNG)
and the PWM 0% to stop moving.The brake pins are used to send HI/HI or LO/LO to the IN1/IN2 that forces the H-Bridge to block the coil movement, so is an active/energized brake.
*** Wrong check the next post ***
The previous post is incorrect, I was in a middle of something, to clarify:
the truth tables:
![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/l5uip25c.PNG)
The truth tables are not the same. The arduino motor shield uses a XNOR (4077D): https://www.ti.com/lit/ds/symlink/cd4077b.pdf but in the schematic is displayed as NAND (not correct):the dfrobot uses a NAND gate:
![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/1warifqu.PNG)
and is correct they use the NAND as NOT gateWhen i did the the post i look the nand symbol and following theirr implementation logic (XNOR) i assumed a NAND and XNOR produce the same output.
They used the wrong symbol for the 4077D ic.
So if there is XOR maybe XAND must exists too: https://deepai.org/machine-learning-glossary-and-terms/xand
logic table:
![User-inserted image](/uploads/user/2B1D28F2F5CE67940FB6592880013B63/3xef4n3v.PNG)
so it's a XNOR ... So XOR is true when the inputs are different, a XAND (XNOR) is an "equivalence gate".If we look careful there is an "e" inside of symbol and the meaning must be "exclusive" or "equivalence"...
no XAND boolean operator, it's an alias for XNOR.
@Jeremie: Does XAND makes sense when XNOR is the real operator ?
@PTP
Thank you so much! That's really very helpful! You rock!