Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

We manage loads from COM or USB. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Computers

Comments on the article Comments on the article

Manage loads from COM or USB
(click to enlarge))

The circuit is based on shift registers 74hc595, which are controlled by the PIC18F252 microcontroller. The circuit outputs are logical, i.e. log "1" or log. "0". They are low-power, so amplifiers (keys) are needed to control some devices. Do not forget about the galvanic isolation of controlled devices with the circuit! The controller is controlled by the USART protocol directly from the computer. Methods for implementing the protocol are discussed below.

Consider two ways to get USART.

1st, easiest way:

This is an RS232 to USART level converter. The diagram of which is shown below.

We manage loads from COM or USB. RS-232

I think there is nothing to tell here. 7,8 pins are connected to the COM port of the computer, and 9,10 to the main circuit of the device.

2nd way: USB to COM converter

Almost all new computers do not have a serial COM port, and most of the old equipment works through this interface, the so-called RS232. The USB serial bus has appeared on new computers, but the communication protocol via USB is more complicated than via RS232.

Thanks to the development of the English company FTDI (Future Technology Devices International), it became possible to convert USB into a "virtual" serial port, data exchange with which is carried out by the usual well-known methods.

This is a USB to COM interface converter designed to connect a modem, scanner, various measuring equipment via the USB bus, i.e. in fact, any device that previously used the RS-232 interface. Moreover, the user does not need any knowledge about the device and the operation of USB. The software drivers supplied by FTDI give the impression that the communication is going through a regular COM port. Of course, this is only true if the software uses the COM port in standard mode.

Schematic diagram of the interface converter is shown in the figure. Its basis - the DD1 FT232BM chip is included according to the standard scheme recommended by the manufacturer.

Manage loads from COM or USB

The DD2 AT93C46 EEPROM chip can be omitted. It stores the manufacturer's identifiers (VID) and personal (PID), the serial number of the product and other data. This is necessary if several devices based on FT232BM chips are simultaneously connected to the computer via USB. The serial number is especially important, since the software driver relies on its uniqueness, associating one or another virtual COM port with a specific device. If there is no ROM, only one device forming a virtual COM port can be connected to the computer. Instead of AT93C46, you can use AT93C56 or AT93C66. The ROM is programmed directly in the device using a special utility supplied by FTDI.

Manage loads from COM or USB

I shortened the schematic a little and did it like this. Power made from the general circuit of the device.

Manage loads from COM or USB

RX and TX pins to the main circuit of the device. The driver for this MS can be downloaded from ftdichip.com for a specific OS.

The operation of the device is a two-way communication with a PC at a speed of 115200 Kbps. with command checksum verification. Those. erroneous data transmission is excluded. When the program starts, it polls for the presence of a connected device, and if it is found or lost in the process, the program will let you know.

This device is controlled by a program specially written by me and lies in the archive. In principle, the program, as it were, is a demonstration program, it can only control the outputs. So for an individual program, for a specific case, please contact us.

The archive contains a program for a PC and a demo firmware for the MK device. Firmware on PIC18F252 for a specific PC is original, to get it, write to me. Demo firmware works for 10 minutes, then the MK must be re-flashed.

In general, everything seems to be. Any questions, please write.

Download archive (87 kb)

The author accepts orders for the development of devices based on MK

Author: Alexey Klyushnikov Ivanovo, al.kl [dog] mail.ru; Publication: cxem.net

See other articles Section Computers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Metal foam - thermal insulator 21.03.2022

Scientists from the University of North Carolina (USA) have developed a lightweight metal foam that is able to insulate heat more efficiently than conventional metals and alloys.

Composite metal foam consists of hollow spheres of carbon or stainless steel or titanium embedded in a metal matrix.

The presence of air pockets allows such foam to effectively block heat, since heat spreads through air more slowly than through metal.

Americans have learned to make composite foam in two ways. The first technology is based on casting materials with a low melting point (aluminum) around hollow metal spheres made of materials with a high melting point (steel). The second technology is based on the sintering of metal powder around finished hollow spheres.

During the tests, foam samples measuring 6 x 6 centimeters and a thickness of about 1,8 centimeters were exposed to fire for half an hour and measured how long it would take for the heat to reach the opposite edge.

It turned out that a piece of stainless steel heats up to 800 C in 4 minutes, but a similar-sized sample of metal foam holds heat twice as long - 8 minutes.

Composite metal foam can be used to store and transport temperature sensitive materials, explosives and radioactive materials.

Other interesting news:

▪ Mini PC SZBOX S100

▪ JUICE space probe

▪ The water was heated to a record temperature

▪ Fruit picking robot

▪ Single-chip system Ambarella S3L

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the Antenna website. Article selection

▪ article by Henry Buckle. Famous aphorisms

▪ article What was the name of the Cape of Good Hope in the beginning? Detailed answer

▪ article Electrician VLS and radio. Standard instruction on labor protection

▪ article PowerAmper 250 amplifier. Encyclopedia of radio electronics and electrical engineering

▪ article Active three-way crossover. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:




Comments on the article:

a guest
It is very bad that tailoring DEMO.


All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024