Difference between revisions of "Pico-Motor-Driver-Hat"

From SB-Components Wiki

Line 31: Line 31:
 
<li> Stack Raspberry Pi Pico on female header of Pico Motor Driver HAT. </li>
 
<li> Stack Raspberry Pi Pico on female header of Pico Motor Driver HAT. </li>
 
<li> Connect USB cable on Raspberry Pi Pico USB port. </li>
 
<li> Connect USB cable on Raspberry Pi Pico USB port. </li>
<li> Now use example code "Motor_Test.py" from Pico Motor Driver HAT's github repository in any micropython supported ide (preferred thonny ide).</li>
+
<li> Open Thonny IDE and Choose interpreter as MicroPython (Raspberry Pi pico). </li>
 +
[[File:Thonny-interpreter.PNG|600px]]
 +
<li> Now use example code "Motor_Test.py" from Pico Motor Driver HAT's github repository in Thonny ide.</li>
 
Source code : https://github.com/sbcshop/Pico-Motor-Driver
 
Source code : https://github.com/sbcshop/Pico-Motor-Driver
 
<li> Copy paste code in thonny ide </li>  
 
<li> Copy paste code in thonny ide </li>  
 
[[File:Pico_motor_thonny.PNG|600px]]
 
[[File:Pico_motor_thonny.PNG|600px]]
<li> Choose interpreter as MicroPython (Raspberry Pi pico). </li>
+
 
[[File:Thonny-interpreter.PNG|600px]]
 
 
<li> Connect Motor and external supply as shown below and turn on slider Switch:</li>
 
<li> Connect Motor and external supply as shown below and turn on slider Switch:</li>
 
[[File:Pico_motor_connection.png]]
 
[[File:Pico_motor_connection.png]]

Revision as of 08:49, 14 May 2021

Pico Motor Driver HAT

Pico Driver Motor HAT is a DC motor control module that is powered by one H-bridge IC L293D with the motor input supply range 6V-12V DC. It is designed to connect 2 DC motors simultaneously or 1 stepper motor that would help the user to make projects in a compact size with high efficiency.

Features

  • On Board GPIO Stacking Header.
  • Motor Input Supply Range : 6V- 12V DC.
  • One H-Bridge IC L293D.
  • Stackable Header and Screw Terminal for Motor Supply.
  • On board LDO to Power Pico directly through Stackable Header.

  • Specifications

  • Motor Control - Up to 2 DC Motor or 1 StepperMotor
  • Motor Input Supply - 6 - 12V
  • On/Off Switch - yes
  • External Output - Yes, for Pico
  • Pico motor HAT.png

    Pinout

    Pico Motor Pinout.pngPico motor pins detail.PNG

    Installation

    MicroPython

  • Stack Raspberry Pi Pico on female header of Pico Motor Driver HAT.
  • Connect USB cable on Raspberry Pi Pico USB port.
  • Open Thonny IDE and Choose interpreter as MicroPython (Raspberry Pi pico).
  • Thonny-interpreter.PNG

  • Now use example code "Motor_Test.py" from Pico Motor Driver HAT's github repository in Thonny ide.
  • Source code : https://github.com/sbcshop/Pico-Motor-Driver

  • Copy paste code in thonny ide
  • Pico motor thonny.PNG

  • Connect Motor and external supply as shown below and turn on slider Switch:
  • Pico motor connection.png

  • Click on green play button to run example on Pico Motor Driver HAT.
  • Thonny play.PNG

    Resources