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

The controller of a two-color light cord Flexilight on the microcontroller. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

The controller is used with the Flexilight light cord to achieve various dynamic lighting effects. Flexilight is a flexible material for illuminated advertising, an alternative to "neon" advertising. Made from a solid PVC tube with a diameter of ~12 mm, filled with miniature light bulbs with a pitch of ~25 mm. Usually used to decorate and highlight the corners of buildings, roads, stairs, create inscriptions, pictures, etc. The controller provides a smooth change in brightness in color channels. There are three control buttons: two buttons - change the speed of the effects (faster - FAST, slower - SLOW) and the third button to switch between effects (PROG). Effects are switched in a circle: 1-2-3-..-1-2-3-.. The controller has a simple internal language for describing effects, which makes it easier to write them.

The first version of the controller is made on PIC16F84.

The controller of a two-color light cord Flexilight on the microcontroller. Schematic diagram of the controller of the two-color light cord Flexilight
Fig.1. Schematic diagram of the Flexilight two-color light cord controller (first version) (click to enlarge)

To adjust the brightness, a phase-pulse method is used. At the beginning of the network half-cycle, the triac closes, then after the time interval set by the timer, the triac opens with a short pulse and remains open until the beginning of the next network half-cycle. The smaller the value loaded into the timer, the greater the brightness. Since the bulbs of the light cord are powered by an alternating sinusoidal voltage of 220 V, the dependence of the brightness on the moment the triac is turned on is non-linear. In order for the brightness change to look linear, the program has a table that contains the timer coefficients for each brightness gradation.

Attention! The controller does not have galvanic isolation from the 220 V network, therefore, appropriate safety measures must be observed during installation and operation. When using the triacs indicated in the diagram without radiators, the power of the switched load should not exceed 200..300 W, which approximately corresponds to 10 m of a light cord.

The second version of the controller, in order to reduce the cost, is made on the PIC12C509 using an internal RC generator.

The controller of a two-color light cord Flexilight on the microcontroller. Controller diagram for a two-color Flexilight light cord (second option)
Fig.2. Controller diagram for a two-color Flexilight light cord (second option) (click to enlarge)

A demo version of the program for the first version of the controller (for PIC16F84) is available for download. The firmware is in the file bi_demo.zip (2,151 KB). The demo version has 3 effects with a limited execution time. After this time, the controller stops the effect from executing. To continue working, press the PROG button.

Documentation (Datashit) for MK PIC16F84A

Author: Evgeny Soloshenko, solosh@ukr.net; Publication: cxem.net

See other articles Section Microcontrollers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Dell Expands Range 29.10.2003

Dell, a well-known computer supplier, has announced the expansion of its activities.

The firm intends to establish a trade in music files and offer customers such products as digital music players and flat-panel TVs. The company plans to get a part of the market with its old trick, offering new items before the holidays.

In the Internet music market, however, the firm will have to compete with Apple iTunes, which has successfully started selling MP3s to Mac users and plans to switch to Windows users as well. Also, several other firms have already chosen the online music market.

Other interesting news:

▪ 125W Thinkplus Lipstick Charger

▪ Shoes with GPS will tell you the route

▪ Found the secret to perfect coffee

▪ LD39100 - Series 1A LDO Regulators from STMicroelectronics

▪ Ultrasonic dry cleaning at home

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site for the Musician. Selection of articles

▪ article One more last tale. Popular expression

▪ article How to convert a black and white TV to color mode? Detailed answer

▪ article by Ivan da Marya. Legends, cultivation, methods of application

▪ article Designs based on the KR1182PM1 chip. Encyclopedia of radio electronics and electrical engineering

▪ article The correct amount. Focus Secret

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

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

www.diagram.com.ua

www.diagram.com.ua
2000-2024