How to drive a linear motor using J4220, J4212, and J4224 UHF readers with a GPIO port.

Hardware Description

UHF Module

Pin Name Type Potential Description
I1 Input Digital Input 1: General Purpose Input pin. Can be controled with UHF driver library of a MCU or PC DLL library with unsigned char GetGPI(unsigned char gpino); function.
I2 Input Digital Input 2: Same as I1.
GND Ground Ground (0V): Ground Pin.
O1 Output Digital Output 1: General Purpose Output pin. Can be controlled with UHF driver library of a MCU of PC DLL library with unsigned char SetGPO(unsigned char gpono); function.
O2 Output Digital Output 2: Same as O1.

Motor Controller

Pin Name Type Potential Description
Input Input [Power] 12V-24V DC (Ensure correct polarity: Positive (+) and Negative (-) Terminals)
Output Output [Power] Connection Terminals for Motor
GND Ground Ground Pin.
DIR Input [Logic] This pin is responsible for changing direction of the motor.
EN Input [Logic] This pin is responsible for enbling the motor.
5V Input [Logic] This pin take input of 5 volts for logic in isolated mode.
NC No Connection There is no connection in this pin.

Hardware Setup:

Connection Basic:

There are two modes: 1. Isolated Mode 2. Common Mode

For Isolated Mode:

  1. Connect O2 with DIR of controller.
  2. Connect O1 with EN of controller.
  3. GND with GND.
  4. 5v port with 5 of controller.

For Common Mode:

  1. Connect O2 with DIR of controller.
  2. Connect O1 with EN of controller.
  3. GND with GND.
  4. Sort the JP1 Pins on the Controller

Power Requirements:

The motor controller requires a 12V DC power supply. It is crucial to observe correct polarity when connecting the power supply to the input port: positive (+) to positive and negative (-) to negative. Connect the linear actuator to the controller’s output port.

Demo

To begin the demo, follow these steps:

  1. Download the demo software from our Github Repo, choosing the version for your platform.

  2. Connect the UHD module to your computer using a USB cable.

  3. Open the downloaded application and select the correct communication port for the UHD module.

  4. Establish the connection with the module.

  5. The available GPIO interfaces are shown below:

After connecting the controller with the UHF module. The UHF module is connected to a PC and controlled through our demo software. When GPO1 is set it will trigger the Forward of Linear Actuator as shown in above. When both GPO is set(Ticked) is should trigger the Reverse of Linear Actuator which shown in below.

Subscribe to our newsletter :

Leave a Reply

Your email address will not be published. Required fields are marked *

 
×