ESP8266 1.8″ TFT Speed photo without SD card SPIFFS

ESP8266 Modules (on example WEMOS-D1) contain 2 MB SPI flash memory. This huge flash memory are able to store RAW images as well.

As you can see, the RAW array photo loading faster than SD Card or any other alternative storage types.

“tft.drawRGBBitmap” command send array via SPI into 1.8inch TFT within ST7735 driver IC.

#include       // Core graphics library
#include    // Hardware-specific library for ST7735
#include                // SPI Library
#include "photos.h"            // Photo Container Header File

#define TFT_CS         4       // ST7735 1.8" TFT CS
#define TFT_RST        2       // ST7735 1.8" TFT RST
#define TFT_DC         0       // ST7735 1.8" TFT DC

//
  
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);



void setup(void) {
  tft.initR(INITR_BLACKTAB);      // Init ST7735S chip, black tab
}

void loop() {
  tft.fillScreen(ST77XX_WHITE);
  tft.drawRGBBitmap(0, 0, eagle, 128, 160);
  delay(2000);
  tft.drawRGBBitmap(0, 0, cat, 128, 160);
  delay(2000);
  tft.drawRGBBitmap(0, 0, dog, 128, 160);
  delay(2000);
}

Connection

Wemos D11.8″ TFT ST7735
5V
GND
D2
D4
D3
D7
D5
3.3V
P1 (VCC)
P2(GND)
P3(CS)
P4(RST)
P5(A0)
P6(SDA)
P7(SCK)
P8(LED+)

Arduino Demo Code

(You should download lcd-image-converter to create array from photos.)

1.8″ TFT Datasheet

Energy Meter, Watt Hour Meter, Electricity Meter LCD Display

Electronic meters display the energy used on an LCD display, and some can also transmit readings to remote places. In addition to measuring energy used, electronic meters can also record other parameters of the load and supply such as instantaneous and maximum rate of usage demands, voltages, power factor and reactive power used etc. They can also support time-of-day billing, for example, recording the amount of energy used during on-peak and off-peak hours.

LCD displays are preferred in meter applications because of their cost advantages and power savings. LCD Displays are much lower cost than VFD, TFT or LED displays. Also the power consumption of the LCD displays is much lower than the alternatives.

Product Features

Customized or Semi-Customized LCD Glass for Low Power Application

Product Range

  • TN or STN Material
  • With or Wihout LED Backlight
  • Standard & Wide Temperature Range (-30ÂșC +85ÂșC Avalible)
  • Pin, Zebra Connector and FPC Terminal Options
  • Glass(LCD) or Module(LCM) Options

Main Applications

  • Electricity Meter (WattHour Meter)
  • Water Meter
  • Combustible Gas Meter
  • Power Control Meter
Custom Design TN Energy Meter LCD
Semi Customized TN Water Meter LCD Module
Custom Design TN Energy Meter

.

WHAT IS LCD?

As its name implies, Liquid Crystal is a material composed of dense particles in solid state that appear chemically in liquid form. It can be polarized according to the applied electrical energy. The use of this material, which was found by chance in 1888, in the image transmission technology began in 1962 with the first tests in RCA Laboratories. However, the tests performed in these years failed to achieve the desired results at room temperature, but only in 1966 and finally in 1972, the first active matrix LCD Display was produced by the United States.

George Heilmeier First LCD Test 1965
Ronald Friel First LCD Demo Setup 1968
Robert Lohman First LCD Clock 1968

HOW IT’S WORK

LCD Displays work according to the principle of passive display technology. Therefore, since they cannot emit light alone, they give the image of the natural light in the environment or with the help of the backlight placed on their backwards. They are preferred in applications where energy resources are limited (measuring instruments, clocks, meters, thermostats, etc.).

LCD Displays work according to the principle of passive display technology. Therefore, since they cannot emit light alone, they give the image of the natural light in the environment or with the help of the backlight placed on their backwards. They are preferred in applications where energy resources are limited (measuring instruments, clocks, meters, thermostats, etc.).

LCD Displays consist essentially of liquid crystal material placed between two transparent glass sheets. The inner surface of the glasses has channels coated with conductive polymer to apply voltage. According to the electrical energy applied to the liquid crystal in these channels, they are aligned in a polarized linear order, or they are aligned from one spiral surface to the other surface. This spiral structure bends the light so that light can be transported between the polarizing filters positioned perpendicular to each other. When electrical energy is applied to them, they curtain the light and create the image (dark black segment) on the LCD by lining them linearly behind each other.

.

28BYJ-48 Stepper motor basics

28BYJ-48 is a low cost stepper motor with a reduction system. 28BYJ48 is a low cost and low torque motor. Therefore this motor isn’t suitable for heavy load applications.

For the best driver of 28BYJ-48 stepper motor is L293D from ST Microelectronics and of course an Arduino for logic programing.

Upload below code into an arduino UNO/Nano controller and see your stepper motor swinging smootly clockwise and counterclockwise in a minute.

// Include the Arduino Stepper Library
#include <Stepper.h>

// Number of steps per output rotate
const int stepsPerRevolution = 200;

// Connection L293D Arduino
Stepper myStepper(stepsPerRevolution, 11, 10, 9, 8);

void setup()
{
  // set the speed according to 20rpm:
  myStepper.setSpeed(20);
  // initialize the serial port for debuging
  Serial.begin(9600);
}

void loop()
{
  // step one revolution in one direction:
  Serial.println("rotate clockwise");
  myStepper.step(stepsPerRevolution);
  delay(500);

// step one revolution in the other direction:
Serial.println("rotate counterclockwise");
myStepper.step(–stepsPerRevolution);
delay(500);
}

// Have fun!