Tag Archives: Serial

CH340E, A New Small Serial to USB Chip

WCH, a Chinese integrated circuits manufacturer, has just released a new serial to USB chip called CH340E. Unlike other CH340 chips, it doesn’t require an external crystal and also needs less PCB space and BOM.

CH340 is a 3x3mm tiny chip comes in MSOP10 package and has 10 pins. Although it is smaller than other alternatives, it is a little more expensive than them. But considering other components and PCB size needed, the total cost of the BOM may be lower.

According to Electrodragon, it needs only two external parts to build a full function circuit. They also tested it with up to 150,000 baud rate to flash an ESP8266 chip. Most features and technical specifications are the some for CH340 family including CH340E, so the same drivers will work with it.

CH340E features

  • Full-speed USB device interface, compatible with USB V2.0.
  • Emulation standard serial port used to upgrade the original serial peripherals or add additional serial port via USB.
  • Computer applications under the Windows operating system serial port are fully compatible, without modification.
  • Hardware full duplex serial port, built-in send and receive buffer, support communication baud rate 50bps ~ 2Mbps.
  • Support common MODEM contact signal RTS, DTR, DCD, RI, DSR, CTS.
  • Through the additional level conversion device, providing RS232, RS485, RS422 and other interfaces.
  • Software compatible CH341, CH341 driver can be used directly.
  • Support 5V supply voltage and 3.3V supply voltage or even 3V supply voltage.
  • Built-in clock, no external crystal.
  • Available in SOP-16 and SSOP-20 and MSOP-10 lead – free packages, RoHS compliant.

The chip costs about 42 cents with a minimum order of 5 pieces on Eelectrodragon store. There is also an option to get a small board featuring the CH340E for about $1, and maybe cheaper in the future. Finally, the most powerful feature of this chip is that you can easily add USB connectivity to your own design.


Source: CNX-software

HC-12 433MHz wireless serial communication module configuration

HC-12-433MHz-wireless-module-1024x651

HC-12 are cheap 433MHz wireless serial port communication modules with a range up to 1800m in open space. Each costs about $5 when bought from China, and 2 of them can create wireless UART link that can be used, for example, to transfer telemetry data from UAV. Or drive IoT device. Or connect sensors. Or whatever else one can think of.

HC-12 433MHz wireless serial communication module configuration – [Link]

Basics of the SPI Communication Protocol

Introduction-to-SPI-Multiple-Slave-Configuration-Separate-Slave-Select

circuitbasics.com talks about the SPI serial communications protocol:

One unique benefit of SPI is the fact that data can be transferred without interruption. Any number of bits can be sent or received in a continuous stream. With I2C and UART, data is sent in packets, limited to a specific number of bits. Start and stop conditions define the beginning and end of each packet, so the data is interrupted during transmission.

Basics of the SPI Communication Protocol – [Link]

Chrome Apps and serial port communication

rtcsetup-gui

Luca Dentella writes:

During the development of my electronic projects, I sometimes need to develop a graphical user interface (GUI) that talks using serial communication with the devices I create.

In the past, I usually chose to develop those interfaces in C# and using the .Net Framework; framework which allows a rapid development, offers great ways to customize the interface (for example the ability to use custom fonts as in the GUI for RTCSetup) and makes easy to access all the different graphical elements of the operating system, like the systray (cfr the GUI for Type4Me).

Chrome Apps and serial port communication – [Link]

How to do serial comms using the cheap RF 433/315 MHz modules

RFmodule_pinout2

RomanBlack.com explains in details how to use 433/315Mhz modules for serial communication.

These cheap RF modules usually come in a pair, with one transmitter and one receiver. A pair can be bought on ebay for as cheap as $4, and even as cheap as $2 a pair if you buy 10 pairs.

Much of the information on the internet from people’s projects is sketchy and not very comprehensive. I test these modules out, and show how to get good reliable serial comms direct from USART -> USART, and I also show how to greatly speed up the data rate and reliability by using an alternative bit encoding system.

How to do serial comms using the cheap RF 433/315 MHz modules – [Link]

Hardware serial port monitor over WiFi

Arduino_TX_Wifi

This tutorial shows how to connect Arduino to the TX line (of a router, RPI) and display serial data on smartphone over WiFi.

Arduino listens for serial port communication on its hardware serial port. Then it sends every received line of data trough software serial port to ESP8266. ESP8266 puts every received line of data into circular buffer. ESP8266 also runs code for webserver and a website which pools the buffer for new data and displays it on the website. (Sadly there is no websockets support for ESP8266.) To see this serial data all you have to do is open the website (IP) on your smartphone and enable javascript.

Hardware serial port monitor over WiFi – [Link]

Dual USB Serial and I2C Converter

IMG_20160223_143440347-624x351

Jesus Echavarria has posted a new project, a dual USB – Serial and I2C converter to communicate with serial and I2C devices.

Hi all! After a couple of months with a lot of work, I come here again with the last board I develop before Christmas. It’s a dual USB serial and I2C converter based on two MCP2221 Microchip 2.0 USB-Serial bridges. I develop it as a need on my work with the last project I’m involved. I need to monitor a serial communication between two devices. With only one converter, I must choose between RX and TX lines to monitoring the traffic.

Dual USB Serial and I2C Converter – [Link]

Serial Port Communication in C#

50e1ce8bce395fb62b000000

Maurizio tipped us with his latest article on how to use Serial Port in C#. The article does cover the basic code needed to achieve serial communication.

The serial port of the PC is a very important resource both in industrial environment and in home-made electronics, due to the wide popularity of the UART interface which is to be found on many microcontrollers or on many test and design instrumentation (programmable power supplies, multi-meters, oscilloscopes etc).

Serial Port Communication in C# – [Link]

SerialUSB: A cheap USB proxy for input devices

687474703a2f2f67696d782e66722f696d672f73657269616c7573622f73657269616c7573622d6370323130322d776972696e672d732e706e67

Serialusb is a cheap (~$5) USB proxy intended to be used with input devices. It is the combination of:

  • a PC software operating the host side of the proxy
  • an atmega32u4 firmware operating the device side of the proxy

SerialUSB: A cheap USB proxy for input devices – [Link]

Serial Port Communication in Excel (VBA)

Fig0077

Maurizio @ dev.emcelettronica.com discuss how we can do serial communication in Excel environment. He writes:

The purpose of this article is to demonstrate how you can perform serial port communication in the VBA (Visual Basic Applications – script editor included in any typical Microsoft Excel distribution) but without using the MSComm control or any other third party add-on or ActiveX.

Serial Port Communication in Excel (VBA) – [Link]