Posted on

KNACRO 2.2-inch Arduino module LCD color screen TFT SPI serial interface module, support UNO, R3 development board

  • Support all kinds of Arduino microcontroller line, without any wiring.
  • The integrated voltage regulator IC, supports 5V or 3.3V power supply
  • On-board level translation programs truly perfectly compatible 5V / 3.3V IO level, supports a variety of single-chip IO connection.
  • The integrated backlight control circuit, can be controlled on-off or PWM dimming.
  • The integrated SD card expansion circuit,Reserved SPI FLASH font circuits to facilitate the expansion application.

BUY LINK:

KNACRO 2.2-inch Arduino module LCD color screen TFT SPI serial interface module, support UNO, R3 development board
KNACRO 2.2-inch Arduino module LCD color screen TFT SPI serial interface module, support UNO, R3 development board

DOWNLAOD:Library

Support all kinds of Arduino microcontroller line, without any wiring.
The integrated voltage regulator IC, supports 5V or 3.3V power supply.
On-board level translation programs truly perfectly compatible 5V / 3.3V IO level, supports a variety of single-chip IO connection.
The integrated backlight control circuit, can be controlled on-off or PWM dimming.
The integrated SD card expansion circuit,Reserved SPI FLASH font circuits to facilitate the expansion application.
Screen size:: 2.2 inch .
Resolution: 176 * 220.
Driver IC: ILI9225.
Size:68 * 42 * 12 mm / 2.68 * 1.67 * 0.47 in ( L * W * H).
Weight:20g/0.7oz.
Integrated voltage regulator IC, support 3.3V / 5V power supply.
Integrated level converter IC, compatible with 3.3V / 5V data levels.
Integrated SD card and SPI FLASH extended data.
Integrated backlight control circuit.

ARDUINO CODE:

#include <SD.h>
#include <UTFT.h>
/*
* LCD Setup
* KNACRO 2.2-inch Arduino module LCD color screen
* TFT SPI serial interface module, support UNO,
* R3 development board
* B01GFSWW9C
* Driver IC: ILI9225.
* SD card with arduino dashboard using SPI bus connection
* MOSI – to pin 11 UNO
* MISO – to pin 12 UNO
* CLK – to pin 13 UNO
* CS – to pin 4 UNO
* Due to the fact Storage is only 32256 bytes on this board
* we use a slimed down version of UTFT
* as such any updated libs that rely on the complete UTFT lib will not compile
*
* Pins for ELEGOO UNO R3 to pins for KNACRO 2.2-inch Arduino module LCD color screen
* This board plugs directly into UNO R3 using power and analog (A0-A5)
* pin 1 VCC to UNO 5v
* pin 2 GND to UNO GND[0] (next to 5v)
* pin 3 GND to UNO GND[1] (next to above GND
* pin 4 to UNO VIN
* pin 5 (free pin no connections)
* pin 6 to UNO A0
* pin 7 to UNO A1
* pin 8 to UNO A2
* pin 9 to UNO A3
* pin 10 to UNO A4
* pin 11 to UNO A5
* )
*/
#define SD_CHIP_SELECT 4 // SD_CS to pin 4 UNO
// Global vars here total 2048 memory allowed
// Declare which fonts we will be using
extern uint8_t SmallFont[];
//QD220A is for QDtech 2.2inch SPI LCD Module,Driver IC:ILI9225
UTFT myGLCD(QD220A,A2,A1,A5,A4,A3);   // Remember to change the model parameter to suit your display module!
byte _top = 0;
byte _left = 0;
byte _width;
byte _height;
byte _fontWidth;
byte _fontHeight;
byte _hudDescHeight = 13;
byte _lastPrintLine;
byte _indent = 3;
byte _lastLineWritten = _hudDescHeight + 6;
byte _backGround[] = {0, 0, 0};
byte _textColor[] = {255, 255, 255};
File root;
// End Global vars
// Remainder of program total memory use allowed 32256
void setup() {
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);

// Gather the font and screen data
_fontWidth = myGLCD.getFontXsize();
_fontHeight = myGLCD.getFontYsize();
_width = myGLCD.getDisplayXSize();
_height = myGLCD.getDisplayYSize();
_lastPrintLine = 161 – _fontHeight;

Clear();
DrawPrintBorder(255, 255, 255);

Serial.begin(9600);
pinMode(10, OUTPUT);
PrintLine(“LCD Init : Success”, CENTER);

if(SdIsPresent())
{
root = SD.open(“/”);
PrintLine(“SD Card Init : Success”, CENTER);
}
else PrintLine(“SD Card Init : Failed”, CENTER);
}
void loop() {
}
void PrintLine(const char* msg, int align, int lineNum)
{
myGLCD.print(msg, align, lineNum);
}
void PrintLine(const char* msg, int align)
{
// first calculate the next line to print on
byte lineNum = _lastLineWritten + _fontHeight;
if(lineNum < _hudDescHeight)
lineNum = _hudDescHeight + 6;

if(lineNum >= _lastPrintLine)
{
ClearPrintArea(0,0,0);
lineNum = _hudDescHeight + 6;
}

myGLCD.setBackColor(_backGround[0], _backGround[1], _backGround[2]);
myGLCD.setColor(_textColor[0],_textColor[1], _textColor[2]);
myGLCD.print(msg, align, lineNum);
_lastLineWritten += _fontHeight;
if(_lastLineWritten > _lastPrintLine)
_lastLineWritten = _hudDescHeight + 6;
}
void Clear()
{
// Setup the LCD
myGLCD.clrScr();
// Draw Hud
ClearHUDInfoArea(80, 80, 80);
// Lines to print on 1 – 163 1 being top, 163 being bottom of LCD
PrintLine(“** DRONE LCD HUD DISPLAY **”, CENTER, 1);
DrawContactArea(0, 64, 64);
}
void DrawPrintBorder(byte r, byte g, byte b)
{
myGLCD.setColor(r, g, b);
myGLCD.drawRect(0, 14, 219, 161);
}
void DrawContactArea(byte r, byte g, byte b)
{
myGLCD.setColor(r,g,b);
PrintLine(“> [e-mail address removed] <“, CENTER, 163);
}
void ClearHUDInfoArea(byte r, byte g, byte b)
{
myGLCD.setColor(r, g, b);
myGLCD.fillRect(0, 0, _width, _hudDescHeight);
}
void ClearContactArea(byte r, byte g, byte b)
{
myGLCD.setColor(r,g,b);
myGLCD.fillRect(0, 162, 219, 175);
}
void ClearPrintArea(byte r, byte g, byte b)
{
myGLCD.setColor(r, g, b);
myGLCD.fillRect(1, 15, 218, 160);
}
bool SdIsPresent()
{
return SD.begin(SD_CHIP_SELECT);
}

Posted on

DC 24V 1-Channel 30A Relay Module Optocoupler Isolation High / Low Level Trigger

Isolation 1-Channel high-power relay control module, select the high signal trigger, only need 3mA current can drive control capability of 30A relay pull.
The module uses high-quality power relay, ultra-small package optocoupler, high-power high-voltage transistor, red and blue signal indicator, double-sided PCB board, cloth board to consider a comprehensive, stable performance can be widely used in a variety of power control .The Module operating voltage 5V, 12V, 24V to choose from;
Relay high level pull, the module contains current limiting resistor, high level can be DC +, can also be single-chip I / O port set high;
Normally open interface Maximum load: AC 250V / 30A, DC 30V / 30A;
Fault-tolerant design, even if the control line is broken, the relay will not work;

Module description
1, The module uses high-quality relay, normally open interface Maximum load: AC 250V / 30A, DC 30V / 30A;
2, The use of ultra-small optocoupler, anti-interference ability, stable performance; trigger current only 3mA;
3, The module operating voltage 5V, 12V, 24V to choose from;
4, The relay high-level pull, the module contains current limiting resistor, high level can be DC +, can also be single-chip I / O port set high;
5, Fault-tolerant design, even if the control line is broken, the relay will not work;
6, Power indicator (red), 1-Channel relay status indicator (blue);
7, All interfaces can be directly connected through the terminal leads, very convenient
8, Module size: 6.0cm * 3.0m * 2.5cm (L * W * H);
9, With 4 * 2.0MM diameter fixed bolt holes, easy to install;

Module interface
Module control: 4 interfaces, all interfaces have terminals, user-friendly wiring;
1, DC +: External DC power supply negative (5V, 12V and 24V modules available)
2, DC-: external DC power supply negative;
3, VERF: photoelectric isolation control terminal reference ground, this signal should be connected to the user control panel power supply negative;
4, CH1: relay control interface, high level (relative to VERF) corresponding relay pull.

Note: the isolated relay module in order to adapt to the electromagnetic environment is relatively poor or relatively high signal requirements of the occasion, if you want to achieve a complete isolation effect, the user control panel power supply (that is connected to the VERF reference power) and the relay module power supply (DC + / DC-) should be separated, if the two power supply shared ground, then the effect is not fully isolated, then the user can use the standard relay module.

Relay output: 3 interfaces, all interfaces have terminals;
1, NO: relay normally open interface;
2, COM: relay common interface;
3, NC: relay normally closed interface;

Package Included:
1*DC 24V 1-Channel 30A Relay Module

 

Posted on

KNACRO PTR4-SP Controller 4-Way Programmable Time Relay DC 6-40V 99 groups time

The PTR4-SP controller can be set 99 groups time (steps), each step the relay switch state can be set switch “ON/OFF” (close or open) , use external input voltage signal or switch it can achieve many functions. The controller can be used to control four solenoid valve – linkage, sequence control as PLC, etc.
Industrial LCD displays, set by buttons, easy to use, has reset function.High-performance microcontrollers, industrial-grade reliability, high process stability, low power, reverse power protection function, avoiding surge current shock.
Four relays, each group of relays has common and normally opened, normally closed contacts, 4 sets of conversion;
99 groups time, each timer range: 0.1 seconds ~ 9999 minutes adjustable, the total number of Loops is adjustable from 0 to 9999 ( “0” means run loops all the time ) ;Each step can be set to cyclic jump to run forward 0-999 times, 20 layer nesting loops support (figure 2);
The external input high level and low level signals, achieve trigger function, wait input to run, jump to another step ,stop running functions;

 

Features:
Industrial LCD displays, set by buttons, easy to use, has reset function.
High-performance microcontrollers, industrial-grade reliability, high process stability, low power, reverse power protection function, avoiding surge current shock.
Four relays, each group of relays has common and normally opened, normally closed contacts, 4 sets of conversion;
99 groups time, each timer range: 0.1 seconds ~ 9999 minutes adjustable, the total number of Loops is adjustable from 0 to 9999 ( “0” means run loops all the time ) ;
Each step can be set to cyclic jump to run forward 0-999 times, 20 layer nesting loops support (figure 2);
The external input high level and low level signals, achieve trigger function, wait input to run, jump to another step ,stop running functions;
User can set the password, to prevent others to change the setting parameters;
Shell size 115*90*40mm. All settings can be saved.

Timing Range : 0.1seconds ~ 9999 minutes can be set, cycles 0 ~ 9999 times
Operating power: DC6~40V
Relay parameters:
Four set of conversion (normally opened and normally closed)
Contact load: 10A/277V AC or 10A/30V DC   Contact resistance: ≤ 100mΩ (1A 6VDC)
Mechanical durability: 10 millions
Electricity durability: > 100,000 (10A-250VAC)
Operating Temperature: -40 ~ 85℃
Important reminder:
Please read the user manual carefully before using it.
Package Included:
1*PTR4-SP Controller
1*PTR4_SP Controller User Manua1

PTR4-Sp        

PTR4_SP Controller User Manua1

Posted on

KNACRO SRD-05VDC-SL-C 2-way 5V Relay Module Free driver USB control switch PC intelligent control

Code & Control soft download

  • If you nedd the soft and C++ code to control this device, just contact us on amazon!
  • The module uses HID technology, without any drivers, plug and play. Support WIN7/XP 32/64-bit systems, easy to use and simple.
  • High-performance USB controller chip, military grade PCB board production
  • 5V relay, the relay can control the maximum 250V 10A AC load and 30V 10A DC load.
  • Reserved 4, 8-way power interface, connected to power, even if the computer off or unplug the USB from the computer, you can also relay remains set. 1-way and 2-way no power connector.
  • The module uses HID technology, without any drivers, plug and play. Support WIN7/XP 32/64-bit systems, easy to use and simple.
    Onboard square USB interface connection stable.
    High-performance USB controller chip, military grade PCB board production.
    5V relay, the relay can control the maximum 250V 10A AC load and 30V 10A DC load.
    Reserved 4, 8-way power interface, connected to power, even if the computer off or unplug the USB from the computer, you can also relay remains set. 1-way and 2-way no power connector.
    Control terminals Connection: NC / COM / NO.
    Voltage: DC 5V Load: 250V 10A AC / DC 30V 10A Max .
    Fixing hole size: 3mm.
    Mounting holes center distance: 52.2mm * 36.6mm.
    Support System: WIN7 / XP 32/64 bit systems.
    Size:63*41*20mm/2.48*1.6*0.79in.
    Weight:32g/1.12oz.
    The module uses HID technology, without any drivers, plug and play.
    Support WIN7/XP 32/64-bit systems, easy to use and simple.
    Onboard square USB interface connection stable.
    Onboard square USB interface connection stable.
    5V relay, the relay can control the maximum 250V 10A AC load and 30V 10A DC load.