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

Cell phone - voltmeter and oscilloscope. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Measuring technology

Comments on the article Comments on the article

The article describes a set-top box for a Siemens cell phone, which allows you to see on its screen an oscillogram of a signal fed to the set-top box input with respect to the scale along the time and voltage axes. Other cellular phones that have a serial port and support Java version MIDP 2.0 can be used in a similar way.

The cell phone has become a familiar item in everyday life, and many do not suspect that this is a fairly powerful computer (some phones have processor clock speeds exceeding 100 MHz) with a color screen, keyboard, and good sound capabilities. Many phones have a serial port that is programmatically accessible from Java applications (Midlets) with support for Java (J2ME platform) and MIDP 2.O. Through this port, you can interact with various external devices, greatly expanding the standard set of functions of a cell phone. Among Siemens products, the MIDP 2.0 specification is supported by cell phones of the 65, 75 series (for example, M65, S75).

Cell phone - voltmeter and oscilloscope

The proposed attachment turns a cell phone into a kind of oscilloscope with an input impedance of 1 MΩ, a sweep rate of 0,001 ... 1 s / div and a sensitivity of 0,5 ... 50 V / div. The average value of the input signal (its constant component) is displayed in digital form

The set-top box, the circuit of which is shown in the figure, is controlled by the PIC16F688 (DD2) microcontroller, which includes ADC and serial port controller blocks. Unfortunately, the built-in ADC is rather slow, but for a low-frequency oscilloscope, its speed (the maximum sampling rate is tens of kilohertz) is quite sufficient.

Cell phone - voltmeter and oscilloscope

Unlike the signal levels adopted in the RS232 standard, the serial port of a cell phone is characterized by the usual levels for logic circuits: log. 0 - about 0 V, log. 1 - at least 3,6 V. This simplifies the pairing of the phone with the MK, allowing you to connect them directly. The information exchange rate is chosen to be 9600 baud. With a larger value, some models and instances of phones work unstably. The HL1 LED lights up when a packet is being transmitted from the microcontroller to the phone.

The set-top box is powered by the phone. Since pins 5-7 of the XS1 connector connected to the phone's system connector are connected to a common wire, the phone controller considers that a DCA-500 data cable is connected to it and supplies 1 V voltage from its battery to pin 3,6 of this connector. The negative voltage for powering the op-amp of the set-top box was obtained using the DA3 polarity converter. On a parallel voltage regulator DA1 and op-amp DA2.2, connected according to the repeater circuit, a reference voltage source of 2,5 V is made.

An electronic attenuator is assembled on the DD1 multiplexer and DA2.1 op amp, which allows you to change the sensitivity of the device depending on the code that the MK sets at the address inputs of the multiplexer (pins 9 and 10 of DD1). The multiplexer switches resistors R1-R3 in the feedback circuit of the op-amp, the resistance of which must correspond with high accuracy to that indicated in the diagram. With code 00 at the address inputs of the multiplexer, the signal applied to the XW1 connector is transmitted to the output of the op-amp DA2.1 without change. For other values ​​of the code, the input signal is attenuated by a factor of 10, 100, or 1000 times. The last value is not used due to the insufficient dielectric strength of the resistor R4 and capacitor C1. Diodes VD1-VD4 limit the voltage at terminal 13 of the multiplexer at the level of 1,2 V (in absolute value). The cascade on the op-amp DA2.3 shifts the level of the signals arriving at the AN1 input of the MK so that the middle of the ADC scale corresponds to zero voltage at the XW1 connector.

The operation of the oscilloscope is controlled by a midlet (Java program) loaded into a cell phone in the form of a jar file. This MIDlet is responsible for controlling the operating mode, changing the scale along the time and voltage axes, and displaying information coming from the set-top box. The prefix is ​​controlled by transferring control bytes to it. The three least significant bits of the byte contain the code that sets the ADC start frequency, and the two most significant bits contain the position of the electronic attenuator. The rest of the bits are not used. In case of receiving a control byte equal to zero, the set-top box operates in the "idle" mode, without transmitting information to the phone.

Working with a serial port in J2ME is organized through the CommConnection interface, and the port itself has the name COM0. Before sending and receiving information, you must use the Connection.open method to establish a connection. To avoid blocking the application during the exchange of information, all reads from and writes to the port are moved to a separate thread. For more information about working with the serial port of a cell phone, see the Internet publication "Using Serial on Motorola J2ME handsets" - .

The MC of the set-top box, having received the control byte, sets the specified mode of operation of the electronic attenuator, and then starts the ADC at a specified frequency and writes the results of its work to the internal buffer. When the buffer is full, the MC stops the ADC and transmits the synchronization byte to the cell phone, followed by the contents of the buffer. Having received this information, the phone displays it as a curve on the screen, calculates and displays the average voltage value.

If the oscilloscope operates in the automatic voltage scale mode (the letter A is displayed on the screen), then with an average voltage value close to zero or the maximum allowable, the phone will generate a control byte with the attenuator position code changed in the appropriate direction. But this will affect the next measurement cycle.

The oscilloscope is controlled using a cell phone joystick: moving it vertically and horizontally changes the scale of the oscillogram along the corresponding axis. Enabling automatic zoom selection and exiting the application - through the menu.

The cell phone program is installed into it like a normal Java application. It is enough to copy the osc.jar (compiled program) and osc.jad (its description) files to the java/osc directory created in the phone's memory. This is done using special software that comes with the phone. After launching the application, the phone will ask questions about allowing access to the cellular port and to the accessory. Both must be answered in the affirmative.

The prefix was assembled by surface mounting on a breadboard, a printed one was not developed. ConnectorXS1 -special for connecting to a cell phone. Headsets and chargers are equipped with such connectors. Input connector XW1 - СР-50-73Ф or imported BNC series.

Instead of the TL431 chip, you can use KR142EN19, and instead of K561KP2 - CD4052. The AD8054 op amp will replace any other low current quad op amp such as the MC3403.

Before starting work with the oscilloscope, it is necessary to achieve a zero average voltage value displayed on the phone screen with a shorted input of the set-top box with a trimming resistor R11.

Programs for the microcontroller of the set-top box and cell phone can be downloaded hence.

Author: S. Kuleshov, Kurgan; Publication: radioradar.net

See other articles Section Measuring technology.

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

New series of quartz resonators 25.02.2007

Geyer Electronic has announced the launch of a new series of quartz resonators in KX-8 CMD packages. The dimensions of the products are 4,0x2,5 mm, and the height is 0,8 mm.

Frequency range from 12 to 60 MHz with a tolerance of +10 ppm to +50 ppm at temperatures from -20 to 70C°. Permissible load capacitance from 10 to 16 pF. The resonators are also available for an extended temperature range and are specified for solder fusion.

Resonators will find application in the field of telecommunications and wireless communications.

Other interesting news:

▪ Protecting spin qubits from external noise

▪ Hamster sleeps - telomeres grow

▪ Recycled battery

▪ Electric car VW ID.2all

▪ Kingmax M.2 SSDs

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Lightning protection. Article selection

▪ article by Claude Adrian Helvetius. Famous aphorisms

▪ article What are pigeons? Detailed answer

▪ article Gynandropsis stamen-pistillate. Legends, cultivation, methods of application

▪ article Programmer for AT89C51/52/55 microcontrollers. Encyclopedia of radio electronics and electrical engineering

▪ article Breaking banana. 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