The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.
The GMOD TB6612FNG Dual Motor Driver is a high-efficiency power control module designed to drive up to two DC motors or one bipolar stepper motor. Built around the advanced TB6612FNG dual H-bridge IC, it provides superior efficiency and lower heat generation compared to older drivers like the L298N.This module allows for precise bidirectional control (Forward/Reverse) and speed regulation using PWM signals, making it an essential component for robotics, automated vehicles, and high-performance embedded systems.
Key Features
Dual Channel Control: Independently drives two DC motors or one bipolar stepper motor.
High Efficiency: MOSFET-based H-bridge design for minimal voltage drop and low heat.
Built-in Protection: Includes over-current protection, thermal shutdown, and low-voltage detection.
Standard Control Logic: Compatible with most microcontrollers via PWM and simple direction pins.
Compact G-Mod Format: Plugs directly into Glyph development boards.
Technical Specifications
Parameter
Operating Range
Motor Supply (VM)
2.5V – 13.5V DC
Logic Supply (VCC)
2.7V – 5.5V DC
Output Current
1.2A (Continuous) / 3.2A (Peak)
Switching Frequency
Up to 100 kHz (PWM)
Internal MOSFET RDS(on)
0.5Ω (Typical)
Pin Configuration
The module features a standard interface for motor power and control:
Pin Name
Description
VCC
Logic Logic Power (3.3V / 5V)
GND
Ground (Common for Logic and Power)
VM
External Motor Power Source (2.5V – 13.5V)
STBY
Standby Control (HIGH = Enable, LOW = Power Down)
AIN1 / AIN2
Direction Control inputs for Motor A
PWMA
PWM input for Speed Control of Motor A
BIN1 / BIN2
Direction Control inputs for Motor B
PWMB
PWM input for Speed Control of Motor B
AO1 / AO2
Output terminals for Motor A
BO1 / BO2
Output terminals for Motor B
H-Bridge Control Logic
Both channels (A and B) follow the same truth table for controlling movement:
External Battery Pack (e.g., 7.4V Li-ion or 12V LiPo)
Step 2: Circuit Connection
Connect the driver to your Glyph board following the GPIO definitions provided in your specific code example.
Always ensure the VM (Motor Power) and VCC (Logic Power) are not swapped, and that they share a common Ground (GND). Reversing polarity on VM can damage the TB6612FNG IC.
Step 3: Code Setup
I2C Conflict: GPIO 5 is the default SCL pin for I2C communication across the entire GLYPH series (C3, C6, and S3). If you are using I2C sensors via the GLINK port, change the STBY pin in the code to an alternative digital pin (e.g., GPIO 6 or 14) to avoid communication conflicts.
Standby vs. Coast: Setting STBY to LOW puts the driver in Standby (Power Down). For a true Coast stop where the motor spins freely, keep STBY HIGH and set both AIN1 and AIN2 to LOW.
// Mapping pins for TB6612FNGconst int STBY = 5; // Standby pinconst int AIN1 = 18; // Motor A Direction 1const int AIN2 = 19; // Motor A Direction 2const int PWMA = 21; // Motor A Speed (PWM)void setup() { pinMode(STBY, OUTPUT); pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); pinMode(PWMA, OUTPUT); // Enable the driver digitalWrite(STBY, HIGH);}void loop() { // Move Forward at half speed digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, 127); // Range 0-255 delay(2000); // Stop (Short Brake) digitalWrite(AIN1, HIGH); digitalWrite(AIN2, HIGH); delay(1000); // Reverse at full speed digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH); analogWrite(PWMA, 255); delay(2000); // Coast Stop digitalWrite(STBY, LOW); // Disable driver delay(1000); digitalWrite(STBY, HIGH); // Re-enable}
Step 4: Upload the Code
Connect the Board
Connect your GLYPH board to your computer via USB.
Select the Board and Port
In the Arduino IDE:
Select Tools > Board > esp32 > Pcbcupid GLYPH.
Select Tools > Port and choose the port connected to your board.
Ensure Tools > USB CDC on Boot is set to Enabled.
Upload
Click the Upload button (or press CTRL + U) to compile and flash the code.
Step 5: Observe the Output
Once the code is uploaded, the connected motors should rotate forward for 2 seconds, brake briefly, and then reverse for 2 seconds before coasting to a stop.
STBY Pin: Remember that the STBY pin must be pulled HIGH for the motor driver to respond to any commands.
Common Ground: Ensure the external motor power supply Ground is connected to the microcontroller Ground.
Thermal Check: While the TB6612FNG is efficient, it may become warm when driving heavy loads. Ensure proper ventilation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PCB Cupid","colors":{"primary":"#0D9373"},"favicon":"https://mintcdn.com/pcbcupid-bae3761c/4dXNuJjZhqL5zqVd/images/favicon_PCBcupid.png?fit=max\u0026auto=format\u0026n=4dXNuJjZhqL5zqVd\u0026q=85\u0026s=697c4189e0a983e1722bddbedde79f61","appearance":{"strict":true},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://spell.pcbcupid.com","label":"Circuit Spell"},{"href":"https://shop.pcbcupid.com","label":"Shop"},{"href":"/","label":"Learn"},{"href":"https://events.pcbcupid.com","label":"Events"},{"href":"https://forum.pcbcupid.com","label":"Forum"},{"href":"https://pcbcupid.com/articles","label":"Articles"},{"href":"https://pcbcupid.com/tools","label":"Tools"}]},"seo":{"indexing":"all"},"fonts":{"family":"Space Grotesk","weight":400},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"contextual":{"options":["copy","chatgpt","claude","cursor","vscode","mcp"],"display":"toc"},"thumbnails":{"appearance":"dark"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pcbcupid-bae3761c","hasAudioNarration":false,"actualSubdomain":"pcbcupid-bae3761c","customDomains":["learn.pcbcupid.com"],"gitSource":{"type":"github","owner":"pcbcupid","repo":"pcbcupid-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae268427b458a5c875a9a81","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Documentation","count":77},{"language":"default","tag":"Modules","count":67},{"language":"default","tag":"PCB Design","count":45},{"language":"default","tag":"Examples","count":32},{"language":"default","tag":"Glyph","count":25},{"language":"default","tag":"G-Mod","count":17},{"language":"default","tag":"KiCad","count":16},{"language":"default","tag":"Basic","count":15},{"language":"default","tag":"Welcome","count":9},{"language":"default","tag":"G-Sense","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"documentation/modules/g-mod/motor-driver","slug":"/documentation/modules/g-mod/motor-driver","pageMetadata":{"description":"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.","title":"Dual Motor Driver","sidebarTitle":"Motor Driver","href":"/documentation/modules/g-mod/motor-driver"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ShopHeader=({title,url})=>{const _components={a:`a`,..._provideComponents()};return _jsx(`div`,{style:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,width:`100%`,marginBottom:`1rem`,gap:`20px`},children:_jsx(_components.a,{href:url,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-flex`,alignItems:`center`,backgroundColor:`#00b894`,color:`#fff`,padding:`8px 18px`,borderRadius:`8px`,textDecoration:`none`,fontSize:`0.95rem`,fontWeight:600,whiteSpace:`nowrap`,flexShrink:0},children:`Shop now`})})};const ImgGallery=({images,modelUrl})=>{var[active,setActive]=useState(0);var[show3D,setShow3D]=useState(false);var[isFullscreen,setIsFullscreen]=useState(false);var[fullscreenDialog,setFullscreenDialog]=useState(null);useEffect(function(){if(show3D||isFullscreen||images.length\u003c=1)return;var t=setTimeout(function(){setActive(function(p){return(p+1)%images.length})},3500);return function(){clearTimeout(t)}});var img=images[active];function openFullscreen(){var dialog=fullscreenDialog;if(dialog\u0026\u0026!dialog.open)dialog.showModal();setIsFullscreen(true)}function closeFullscreen(){var dialog=fullscreenDialog;if(dialog\u0026\u0026dialog.open)dialog.close();else setIsFullscreen(false)}return _jsxs(`div`,{style:{position:`relative`,background:`linear-gradient(to bottom, #fff 0%, #fff 80%, #f8f8f8 100%)`,borderRadius:`32px`,border:`1px solid rgba(0,0,0,0.08)`,overflow:`hidden`,marginTop:`0.75rem`,marginBottom:`1.5rem`},children:[_jsx(`div`,{style:{position:`relative`,height:`450px`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#fff`,padding:`1rem`},children:show3D\u0026\u0026modelUrl?_jsx(`div`,{ref:function(el){if(!el||el._mv)return;el._mv=true;var s=document.createElement(`script`);s.src=`https://ajax.googleapis.com/ajax/libs/model-viewer/4.2.0/model-viewer.min.js`;s.type=`module`;s.onload=function(){var mv=document.createElement(`model-viewer`);mv.setAttribute(`src`,modelUrl);mv.setAttribute(`camera-controls`,``);mv.setAttribute(`auto-rotate`,``);mv.style.width=`100%`;mv.style.height=`100%`;mv.style.backgroundColor=`#f8f8f8`;el.innerHTML=``;el.appendChild(mv)};document.head.appendChild(s)},style:{width:`100%`,height:`100%`}}):_jsx(`img`,{src:img\u0026\u0026img.url,alt:img\u0026\u0026img.label,loading:`lazy`,noZoom:true,onClick:openFullscreen,role:`button`,tabIndex:0,onKeyDown:function(event){if(event.key===`Enter`||event.key===` `){event.preventDefault();openFullscreen()}},style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:`8px`,cursor:`zoom-in`}})}),_jsxs(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`12px`,padding:`1rem`,background:`#eee`,borderTop:`1px solid rgba(0,0,0,0.08)`},children:[images.map(function(img,idx){return _jsx(`button`,{onClick:function(){setActive(idx);setShow3D(false)},style:{padding:`0.6rem 1.5rem`,borderRadius:`12px`,border:!show3D\u0026\u0026idx===active?`1px solid #00b894`:`1px solid rgba(0,184,148,0.4)`,background:!show3D\u0026\u0026idx===active?`#00b894`:`#fff`,color:!show3D\u0026\u0026idx===active?`#fff`:`#000`,cursor:`pointer`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,fontFamily:`inherit`},children:img.label},img.id||idx)}),modelUrl?_jsx(`button`,{onClick:function(){setShow3D(true)},style:{padding:`0.6rem 1.5rem`,borderRadius:`12px`,border:show3D?`1px solid #00b894`:`1px solid rgba(0,184,148,0.4)`,background:show3D?`#00b894`:`#fff`,color:show3D?`#fff`:`#000`,cursor:`pointer`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,fontFamily:`inherit`},children:`3D VIEW`}):null]}),_jsx(`dialog`,{ref:setFullscreenDialog,\"aria-label\":img\u0026\u0026img.label,onClose:function(){setIsFullscreen(false)},onClick:function(event){if(event.target===event.currentTarget)closeFullscreen()},style:{width:`100vw`,height:`100vh`,maxWidth:`none`,maxHeight:`none`,margin:0,padding:`2rem`,border:0,background:`rgba(0,0,0,0.88)`},children:_jsxs(`div`,{style:{position:`relative`,display:`flex`,width:`100%`,height:`100%`,alignItems:`center`,justifyContent:`center`},children:[_jsx(`button`,{type:`button`,\"aria-label\":`Close fullscreen image`,onClick:closeFullscreen,style:{position:`absolute`,top:0,right:0,zIndex:1,width:`2.5rem`,height:`2.5rem`,border:0,borderRadius:`999px`,background:`rgba(255,255,255,0.92)`,color:`#111`,cursor:`pointer`,fontSize:`1.5rem`,lineHeight:1},children:`×`}),_jsx(`img`,{src:img\u0026\u0026img.url,alt:img\u0026\u0026img.label,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,borderRadius:`8px`}})]})})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`ShopHeader`,children:_jsx(ShopHeader,{title:`Motor Driver Module`,url:`https://shop.pcbcupid.com/product/gm010/`})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ImgGallery`,children:_jsx(ImgGallery,{modelUrl:`https://raw.githubusercontent.com/pcbcupid/pcbcupid-hardware-libraries/main/pcbcupid_3dmodels/glb/gmod_motor-driver.glb`,images:[{url:`https://files.pcbcupid.com/Documentation/Boards/g-mod/Motor_driver/Motor%20Driver-illustration.avif`,label:`ILLUSTRATION VIEW`,id:`illustration`},{url:`https://files.pcbcupid.com/Documentation/Boards/g-mod/Motor_driver/Motor-driver-boardview.avif`,label:`BOARD VIEW`,id:`board`}]})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`GMOD TB6612FNG Dual Motor Driver`}),` is a high-efficiency power control module designed to drive up to two DC motors or one bipolar stepper motor. Built around the advanced `,_jsx(_components.strong,{children:`TB6612FNG`}),` dual H-bridge IC, it provides superior efficiency and lower heat generation compared to older drivers like the L298N.`]}),`\n`,_jsx(_components.p,{children:`This module allows for precise bidirectional control (Forward/Reverse) and speed regulation using PWM signals, making it an essential component for robotics, automated vehicles, and high-performance embedded systems.`}),`\n`,_jsx(`br`,{}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`key-features`,children:`Key Features`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dual Channel Control`}),`: Independently drives two DC motors or one bipolar stepper motor.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`High Efficiency`}),`: MOSFET-based H-bridge design for minimal voltage drop and low heat.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Built-in Protection`}),`: Includes over-current protection, thermal shutdown, and low-voltage detection.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Standard Control Logic`}),`: Compatible with most microcontrollers via PWM and simple direction pins.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Compact G-Mod Format`}),`: Plugs directly into Glyph development boards.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`technical-specifications`,children:`Technical Specifications`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Parameter`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Operating Range`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Motor Supply (VM)`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`2.5V – 13.5V DC`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Logic Supply (VCC)`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`2.7V – 5.5V DC`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Output Current`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`1.2A (Continuous) / 3.2A (Peak)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Switching Frequency`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Up to 100 kHz (PWM)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Internal MOSFET RDS(on)`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`0.5Ω (Typical)`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`pin-configuration`,children:`Pin Configuration`}),`\n`,_jsx(_components.p,{children:`The module features a standard interface for motor power and control:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Pin Name`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`VCC`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Logic Logic Power (3.3V / 5V)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`GND`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Ground (Common for Logic and Power)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`VM`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`External Motor Power Source (2.5V – 13.5V)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`STBY`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Standby Control (`,_jsx(_components.strong,{children:`HIGH`}),` = Enable, `,_jsx(_components.strong,{children:`LOW`}),` = Power Down)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`AIN1 / AIN2`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Direction Control inputs for Motor A`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`PWMA`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`PWM input for Speed Control of Motor A`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`BIN1 / BIN2`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Direction Control inputs for Motor B`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`PWMB`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`PWM input for Speed Control of Motor B`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`AO1 / AO2`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Output terminals for Motor A`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`BO1 / BO2`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Output terminals for Motor B`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`h-bridge-control-logic`,children:`H-Bridge Control Logic`}),`\n`,_jsx(_components.p,{children:`Both channels (A and B) follow the same truth table for controlling movement:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`STBY`}),_jsx(_components.th,{style:{textAlign:`left`},children:`IN1`}),_jsx(_components.th,{style:{textAlign:`left`},children:`IN2`}),_jsx(_components.th,{style:{textAlign:`left`},children:`PWM`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Output (O1 / O2)`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Motor Mode`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`LOW`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`X`}),_jsx(_components.td,{style:{textAlign:`left`},children:`X`}),_jsx(_components.td,{style:{textAlign:`left`},children:`X`}),_jsx(_components.td,{style:{textAlign:`left`},children:`High-Z`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Standby (OFF)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`LOW`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`H / L`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Forward`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`LOW`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`L / H`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Reverse`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`X`}),_jsx(_components.td,{style:{textAlign:`left`},children:`L / L`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Short Brake`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`HIGH`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`LOW`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`LOW`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`X`}),_jsx(_components.td,{style:{textAlign:`left`},children:`High-Z`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Stop (Coast)`})})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-hardware-required`,children:`Step 1: Hardware Required`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`GMOD TB6612FNG Motor Driver`}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://shop.pcbcupid.com/product-category/development-boards/`,children:`GLYPH (ESP32-S3 / C3 / C6)`})}),`\n`,_jsx(_components.li,{children:`2x DC Motors`}),`\n`,_jsx(_components.li,{children:`External Battery Pack (e.g., 7.4V Li-ion or 12V LiPo)`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-circuit-connection`,children:`Step 2: Circuit Connection`}),`\n`,_jsx(_components.p,{children:`Connect the driver to your Glyph board following the GPIO definitions provided in your specific code example.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://files.pcbcupid.com/Documentation/Boards/g-mod/Motor_driver/motor%20driver%20circuit%20daigram/Motor_Driver_20260327T080258.png`,alt:`Motor Driver Circuit Diagram`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always ensure the `,_jsx(_components.strong,{children:`VM (Motor Power)`}),` and `,_jsx(_components.strong,{children:`VCC (Logic Power)`}),` are not swapped, and that they share a common Ground (GND). Reversing polarity on VM can damage the TB6612FNG IC.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-code-setup`,children:`Step 3: Code Setup`}),`\n`,_jsx(Warning,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`I2C Conflict`}),`: GPIO 5 is the default `,_jsx(_components.strong,{children:`SCL`}),` pin for I2C communication across the entire `,_jsx(_components.strong,{children:`GLYPH series (C3, C6, and S3)`}),`. If you are using I2C sensors via the GLINK port, change the `,_jsx(_components.code,{children:`STBY`}),` pin in the code to an alternative digital pin (e.g., GPIO 6 or 14) to avoid communication conflicts.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Standby vs. Coast`}),`: Setting `,_jsx(_components.code,{children:`STBY`}),` to `,_jsx(_components.code,{children:`LOW`}),` puts the driver in `,_jsx(_components.strong,{children:`Standby`}),` (Power Down). For a true `,_jsx(_components.strong,{children:`Coast`}),` stop where the motor spins freely, keep `,_jsx(_components.code,{children:`STBY`}),` HIGH and set both `,_jsx(_components.code,{children:`AIN1`}),` and `,_jsx(_components.code,{children:`AIN2`}),` to `,_jsx(_components.code,{children:`LOW`}),`.`]}),`\n`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`cpp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`cpp`,children:_jsxs(_components.code,{language:`cpp`,numberOfLines:`39`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Mapping pins for TB6612FNG`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` STBY `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Standby pin`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AIN1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 18`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Motor A Direction 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AIN2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 19`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Motor A Direction 2`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PWMA `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 21`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Motor A Speed (PWM)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` pinMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(STBY, OUTPUT);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` pinMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN1, OUTPUT);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` pinMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN2, OUTPUT);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` pinMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(PWMA, OUTPUT);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Enable the driver`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(STBY, HIGH);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Move Forward at half speed`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN1, HIGH);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN2, LOW);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` analogWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(PWMA, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`127`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Range 0-255`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` delay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Stop (Short Brake)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN1, HIGH);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN2, HIGH);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` delay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Reverse at full speed`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN1, LOW);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(AIN2, HIGH);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` analogWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(PWMA, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`255`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` delay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Coast Stop`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(STBY, LOW);`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Disable driver`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` delay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` digitalWrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(STBY, HIGH);`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Re-enable`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-upload-the-code`,children:`Step 4: Upload the Code`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Connect the Board`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Connect your GLYPH board to your computer via USB.`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Select the Board and Port`}),`\nIn the Arduino IDE:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(_components.code,{children:`Tools > Board > esp32 > Pcbcupid GLYPH`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(_components.code,{children:`Tools > Port`}),` and choose the port connected to your board.`]}),`\n`,_jsxs(_components.li,{children:[`Ensure `,_jsx(_components.code,{children:`Tools > USB CDC on Boot`}),` is set to `,_jsx(_components.strong,{children:`Enabled`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Upload`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Click the `,_jsx(_components.strong,{children:`Upload`}),` button (or press `,_jsx(_components.code,{children:`CTRL + U`}),`) to compile and flash the code.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-observe-the-output`,children:`Step 5: Observe the Output`}),`\n`,_jsx(_components.p,{children:`Once the code is uploaded, the connected motors should rotate forward for 2 seconds, brake briefly, and then reverse for 2 seconds before coasting to a stop.`}),`\n`,_jsx(Info,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`STBY Pin`}),`: Remember that the STBY pin must be pulled `,_jsx(_components.strong,{children:`HIGH`}),` for the motor driver to respond to any commands.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Common Ground`}),`: Ensure the external motor power supply Ground is connected to the microcontroller Ground.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Thermal Check`}),`: While the TB6612FNG is efficient, it may become warm when driving heavy loads. Ensure proper ventilation.`]}),`\n`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ShopHeader,ImgGallery,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"description":"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.","title":"Dual Motor Driver","sidebarTitle":"Motor Driver","href":"/documentation/modules/g-mod/motor-driver"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[146,4557,")=>null;const ImgGallery=()=>null;functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Key Features","slug":"key-features","depth":2,"children":[]},{"title":"Technical Specifications","slug":"technical-specifications","depth":2,"children":[]},{"title":"Pin Configuration","slug":"pin-configuration","depth":2,"children":[]},{"title":"H-Bridge Control Logic","slug":"h-bridge-control-logic","depth":2,"children":[]},{"title":"Step 1: Hardware Required","slug":"step-1-hardware-required","depth":2,"children":[]},{"title":"Step 2: Circuit Connection","slug":"step-2-circuit-connection","depth":2,"children":[]},{"title":"Step 3: Code Setup","slug":"step-3-code-setup","depth":2,"children":[]},{"title":"Step 4: Upload the Code","slug":"step-4-upload-the-code","depth":2,"children":[]},{"title":"Step 5: Observe the Output","slug":"step-5-observe-the-output","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pcbcupid-bae3761c","siteName":"PCB Cupid","title":"Dual Motor Driver - PCB Cupid","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-24T13:11:14.030Z","originalFileLocation":"documentation/modules/g-mod/motor-driver.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PCB Cupid\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Dual Motor Driver - PCB Cupid\">\u003cmeta data-mint-head property=\"og:description\" content=\"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PCB Cupid\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pcbcupid-bae3761c.mintlify.site/_mintlify/api/og/v2?division=G-Mod\u0026amp;title=Dual+Motor+Driver\u0026amp;description=The+G-Mod+TB6612FNG+dual+motor+driver+controls+two+DC+motors+via+an+integrated+dual+H-bridge+IC+for+efficient+bidirectional+speed+and+direction+control.\u0026amp;theme=2c7e3818cca0f9e7f4434aa9\u0026amp;signature=f31f626861fa886923337404a278e07f2fceec674d7d33e29da37c5198b29a21\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Dual Motor Driver - PCB Cupid\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pcbcupid-bae3761c.mintlify.site/_mintlify/api/og/v2?division=G-Mod\u0026amp;title=Dual+Motor+Driver\u0026amp;description=The+G-Mod+TB6612FNG+dual+motor+driver+controls+two+DC+motors+via+an+integrated+dual+H-bridge+IC+for+efficient+bidirectional+speed+and+direction+control.\u0026amp;theme=2c7e3818cca0f9e7f4434aa9\u0026amp;signature=f31f626861fa886923337404a278e07f2fceec674d7d33e29da37c5198b29a21\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pcbcupid-bae3761c/TFd0Eu1csuxrLpjH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PCB Cupid\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/modules/g-mod/motor-driver.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://learn.pcbcupid.com/#organization\",\"name\":\"PCB Cupid\",\"url\":\"https://learn.pcbcupid.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://learn.pcbcupid.com#website\",\"name\":\"PCB Cupid\",\"url\":\"https://learn.pcbcupid.com\",\"publisher\":{\"@id\":\"https://learn.pcbcupid.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver#webpage\",\"url\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver\",\"name\":\"Dual Motor Driver\",\"description\":\"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\",\"dateModified\":\"2026-09-24T13:11:14.030Z\",\"isPartOf\":{\"@id\":\"https://learn.pcbcupid.com#website\"},\"breadcrumb\":{\"@id\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Modules\",\"item\":\"https://learn.pcbcupid.com/documentation/modules/glyph/glyph-esp32c3/overview-glyph-c3\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"G-Mod\",\"item\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/1-ch-relay\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Dual Motor Driver\",\"item\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver#article\",\"headline\":\"Dual Motor Driver\",\"name\":\"Dual Motor Driver\",\"description\":\"The G-Mod TB6612FNG dual motor driver controls two DC motors via an integrated dual H-bridge IC for efficient bidirectional speed and direction control.\",\"url\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver\",\"mainEntityOfPage\":{\"@id\":\"https://learn.pcbcupid.com/documentation/modules/g-mod/motor-driver#webpage\"},\"dateModified\":\"2026-09-24T13:11:14.030Z\",\"publisher\":{\"@id\":\"https://learn.pcbcupid.com/#organization\"},\"isPartOf\":{\"@id\":\"https://learn.pcbcupid.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PCB Cupid\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PCB Cupid\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/documentation/modules/g-mod/motor-driver.md","siteName":"PCB Cupid","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Welcome","pages":[{"title":"Introduction","href":""},{"title":"Getting Started","href":"/documentation/welcome/getting-started"},{"group":"Prerequisites","pages":[{"title":"Setting Up MCP","href":"/documentation/welcome/prerequisites/setting-up-mcp"},{"title":"Arduino IDE Setup","href":"/documentation/welcome/prerequisites/arduino-ide-setup"},{"title":"ESP-IDF Setup for Glyph Boards","href":"/documentation/welcome/prerequisites/esp-idf"},{"title":"Smowcode IDE Setup","href":"/documentation/welcome/prerequisites/smowcode-ide-setup"},{"title":"Code Composer Studio IDE Setup","href":"/documentation/welcome/prerequisites/cc-studio"},{"title":"Glink Connector Overview","href":"/documentation/welcome/prerequisites/glink"},{"title":"CircuitPython Setup Guide","href":"/documentation/welcome/prerequisites/circuitpython-setup-guide"}]}]},{"group":"Modules","pages":[{"group":"Glyph","pages":[{"group":"Glyph C3","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-esp32c3/overview-glyph-c3"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-esp32c3/pinouts"},{"title":"Assembly","sidebarTitle":"Assembly","href":"/documentation/modules/glyph/glyph-esp32c3/assembly"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-esp32c3/power-management"}]},{"group":"Glyph C6","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-esp32c6/overview-glyph-c6"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-esp32c6/glyphc6-pinouts"},{"title":"Assembly","sidebarTitle":"Assembly","href":"/documentation/modules/glyph/glyph-esp32c6/glyphc6-assembly"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-esp32c6/glyph-esp32-c6-power-management"}]},{"group":"Glyph H2","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-esp32h2/overview-glyph-h2"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-esp32h2/pinouts-h2"},{"title":"Assembly","sidebarTitle":"Assembly","href":"/documentation/modules/glyph/glyph-esp32h2/glyph-assembly"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-esp32h2/power-management-glyph"}]},{"group":"Glyph S3","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-esp32s3/glyph-s3-overview"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-esp32s3/glyph-esp32-s3-pinouts"},{"title":"Assembly","sidebarTitle":"Assembly","href":"/documentation/modules/glyph/glyph-esp32s3/glyph-esp32-s3-assembly"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-esp32s3/glyph-esp32-s3-power-management"}]},{"group":"Glyph S3 Lucid","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-s3-lucid/overview"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-s3-lucid/pinouts"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-s3-lucid/power-management"}]},{"group":"Glyph C5","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-c5/overview-glyph-c5"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-c5/pinouts"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-c5/power-management"}]},{"group":"Glyph 2040","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph/glyph-2040/overview-glyph-2040"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph/glyph-2040/pinouts"},{"title":"Power Management","sidebarTitle":"Power Management","href":"/documentation/modules/glyph/glyph-2040/power-management"}]}]},{"group":"Glyph Mini","pages":[{"group":"Glyph Mini 2040","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/glyph-mini/glyph-mini-2040/overview"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/glyph-mini/glyph-mini-2040/pinouts"}]}]},{"group":"TERRA","pages":[{"group":"EC200U","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/terra/terralink-ec200u/overview"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/terra/terralink-ec200u/pinouts"},{"title":"Programming with Glyph","sidebarTitle":"Programming","href":"/documentation/modules/terra/terralink-ec200u/programming"}]},{"group":"A7672S","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/documentation/modules/terra/terralink-a7672s/overview"},{"title":"Pinouts","sidebarTitle":"Pinouts","href":"/documentation/modules/terra/terralink-a7672s/pinouts"},{"title":"Programming with Glyph","sidebarTitle":"Programming","href":"/documentation/modules/terra/terralink-a7672s/programming"}]}]},{"group":"G-Mod","pages":[{"title":"1-Channel Relay","sidebarTitle":"1-Channel Relay","href":"/documentation/modules/g-mod/1-ch-relay"},{"title":"2-Channel Relay","sidebarTitle":"2-Channel Relay","href":"/documentation/modules/g-mod/relay"},{"title":"Micro SD Card","sidebarTitle":"SD Card","href":"/documentation/modules/g-mod/sd-card"},{"title":"MCP79412 RTC","sidebarTitle":"MCP79412 RTC","href":"/documentation/modules/g-mod/mcp79412-rtc"},{"title":"PCF8563 Real-Time Clock Module","sidebarTitle":"PCF8563 RTC","href":"/documentation/modules/g-mod/pcf8563-rtc"},{"title":"Limit Switch Module","sidebarTitle":"Limit Switch","href":"/documentation/modules/g-mod/limit-switch"},{"title":"WS2812B RGB Ring","sidebarTitle":"WS2812B RGB Ring","href":"/documentation/modules/g-mod/ws2812b-led"},{"title":"Key Array","sidebarTitle":"Key Array","href":"/documentation/modules/g-mod/key-array"},{"description":"A serial flash module provides reliable non-volatile memory for microcontrollers, allowing for firmware storage, data logging, and configuration management.","title":"Serial Flash","sidebarTitle":"Serial Flash","href":"/documentation/modules/g-mod/serial-flash"},{"title":"Dual Motor Driver","sidebarTitle":"Motor Driver","href":"/documentation/modules/g-mod/motor-driver"},{"description":"The G-Mod Lithium Charger safely charges 1S (3.7V) and 2S (7.4V) lithium-ion batteries with adjustable current settings for portable projects.","title":"Lithium Charger","sidebarTitle":"Lithium Charger","href":"/documentation/modules/g-mod/lithium-charger"},{"title":"DC-DC Buck Converter (SY81103)","sidebarTitle":"Buck Converter","href":"/documentation/modules/g-mod/dc-buck-converter"},{"title":"DC-DC Boost Converter (SX1308)","sidebarTitle":"Boost Converter","href":"/documentation/modules/g-mod/dc-boost-converter"},{"title":"Audio Codec","sidebarTitle":"Audio Codec","href":"/documentation/modules/g-mod/audio-codec"},{"title":"CAN Bus Transceiver","sidebarTitle":"CAN Bus","href":"/documentation/modules/g-mod/can-bus"},{"title":"RS-485 Transceiver","sidebarTitle":"RS-485 Transceiver","href":"/documentation/modules/g-mod/rs-485-transceiver"},{"title":"Bi-Directional Voltage-Level Translator","sidebarTitle":"Voltage-Level Translator","href":"/documentation/modules/g-mod/bi-voltage-level-translator"}]},{"group":"G-Sense","pages":[{"title":"Single-Channel I2S Microphone","sidebarTitle":"Microphone","href":"/documentation/modules/g-sense/microphone"},{"title":"Single-Channel I2S Microphone (T5848)","sidebarTitle":"Microphone (T5848)","href":"/documentation/modules/g-sense/t5848-microphone"},{"title":"2-Channel Microphone","sidebarTitle":"2-Channel Microphone","href":"/documentation/modules/g-sense/2-channel-microphone"},{"title":"SHT35 Temperature and Humidity Sensor","sidebarTitle":"SHT35","href":"/documentation/modules/g-sense/sht35"},{"title":"SHT45 Temperature and Humidity Sensor","sidebarTitle":"SHT45","href":"/documentation/modules/g-sense/sht45"},{"title":"GSI003 Industrial Temp \u0026 Humidity Sensor","sidebarTitle":"GSI003","href":"/documentation/modules/g-sense/hdc3020-rs485"},{"title":"QMC6309 Magnetometer","sidebarTitle":"QMC6309 Magnetometer","href":"/documentation/modules/g-sense/qmc6309-magnetometer"},{"title":"Capacitive Touch Slider","sidebarTitle":"Capacitive Touch Slider","href":"/documentation/modules/g-sense/capacitive-touch-slider"}]},{"group":"G-Kit","pages":[{"title":"SoundBox — DIY MP3 Player","sidebarTitle":"MP3 Player","href":"/documentation/modules/g-kit/soundbox"}]},{"group":"Breakout Boards","pages":[{"title":"Qwiic 2-in-1","sidebarTitle":"Qwiic 2-in-1","href":"/documentation/modules/breakout-boards/qwiic-2-in-1"},{"title":"Qwiic 4-in-1","sidebarTitle":"Qwiic 4-in-1","href":"/documentation/modules/breakout-boards/qwiic-4-in-1"},{"title":"USB 4-in-1","sidebarTitle":"USB 4-in-1","href":"/documentation/modules/breakout-boards/usb-4-in-1"},{"title":"USB-A Female","sidebarTitle":"USB-A Female","href":"/documentation/modules/breakout-boards/usb-a-breakout-female"},{"title":"USB-A Male","sidebarTitle":"USB-A Male","href":"/documentation/modules/breakout-boards/usb-a-breakout-male"},{"title":"USB-C","sidebarTitle":"USB-C","href":"/documentation/modules/breakout-boards/usb-c"}]},{"group":"Gadgets","pages":[{"title":"USB to RS485 Converter","sidebarTitle":"USB to RS485","href":"/documentation/modules/gadgets/usb-to-rs485"},{"title":"USB to TTL Converter","sidebarTitle":"USB to TTL","href":"/documentation/modules/gadgets/usb-ttl"}]}]},{"group":"Enclosure","pages":[{"title":"3D Printed Enclosure for Glyph C3/C6","sidebarTitle":"Enclosure-C3/C6","href":"/documentation/enclosure/3d-printed-enclosure-for-glyph-esp32-boards"}]}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/guides/arduino-ide-blink-led"}]},{"tab":"PCB Design","pages":[{"title":"PCB Design","href":"/pcb-design/design/kicad/introduction-on-kicad"}]}]},"basePath":"","title":"Dual Motor Driver - PCB Cupid","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js"]}