Description: Intermittent failures in electronic systems are some of the most difficult to diagnose. This device is designed to run for days at a time looking for a failure and logging the event. The unit is based on a PIC16F84. Six digital data lines are brought in via a 74HC165 shift register. The shift register is connected to a set of series resistors so that any voltage from about 3 volts to about 30 volts will read as a high condition. A single analog line is read using an ADC8031. (Note: with today's PICs, it would be better to use one with the A/D built in). Once activated, the unit counts off time down to 1/100 second. Any change of state of the 6 digital lines causes it to store the time, the state of the six lines, and one analog voltage. If nothing happens within 10 minutes, it logs it as a non-event. The reason for this is to allow more dense storage of times in the EEPROM by storing delta times between events. The DOS-based program that reads out the data constructs an elapsed time table based on summing delta times. This is written to a text file - see this sample.
The circuit is designed to shut itself off either manually or when the EEPROM is full. No power is drawn in the off mode. The DOS capture program is written for COM1 and connects to a stereo mini jack on the unit.
Operation: Connect a 9-volt battery to the unit.
(without connection to computer serial port)
Switch on RB7 plays a medium tone burst and starts the unit running.
Switch on RB6 plays a higher tone burst and turns the unit off.
(with computer COM port connected)
Switch on RB7 plays just 4 tones and enters communication mode. Run PC software to download data to text file.
Switch on RB6 plays 2 tones and powers off.
So far, this unit has facilitated the repair of one RV-based propane refrigerator.
The device architecture employs a PIC16F84 microcontroller as the central processing unit, which is responsible for managing the timing, data logging, and communication tasks. The six digital data lines are interfaced through a 74HC165 shift register, which allows for efficient reading of multiple digital inputs using only a few microcontroller pins. The series resistors connected to the shift register ensure that voltage levels between 3V and 30V are reliably detected as high logic states, providing flexibility in the types of signals that can be monitored.
For analog data acquisition, an ADC8031 is utilized to convert the analog voltage into a digital format that the PIC can process. Although the ADC8031 is suitable for this application, it is noted that newer microcontrollers with built-in analog-to-digital conversion capabilities may offer enhanced performance and reduce component count.
The timing mechanism is precise, counting down to 1/100 of a second, which allows for detailed event logging. The device stores significant events, including the time of occurrence, the state of the six digital inputs, and the corresponding analog voltage. If no changes are detected within a 10-minute window, the event is logged as a non-event, optimizing memory usage by recording only meaningful data.
The EEPROM storage is designed to facilitate easy retrieval of logged events, with a DOS-based program enabling communication through a COM1 serial port connection. The data can be downloaded and saved in a text file format for further analysis. The design also incorporates power management features, shutting off the device automatically when the EEPROM is full or manually via user input, ensuring that no power is consumed during inactive periods.
The operational controls are straightforward, with RB7 and RB6 switches providing user interaction for starting, stopping, and entering communication modes. The audible tones serve as feedback to the user, indicating the device's status during operation. This design has proven effective in diagnosing intermittent failures, as demonstrated in its application to repair an RV-based propane refrigerator.Intermittent failures in electronic systems are some of most difficult to diagnose. This device is designed to run for days at a time looking for a failure and logging the event. The unit is based on a PIC16F84. Six digital data lines are brought in via a 74hc165 shift regiser. The shift register is connected to a set of series resistors so that any voltage from about 3 volts to about 30 volts will read as a high condition. A single analog line is read using an ADC8031. (Note: with todays PICs, it would be better to use one with the A/D built in). Once activated, the unit counts off time down to 1/100 second. Any change of state of the 6 digital lines causes it to store the time, the state of the six lines and one analog voltage.
If nothing happens within 10 minutes, it logs it as a non-event. The reason for this is to allow more dense storage of times in the eeprom by storing delta times between events. The DOS based program that reads out the data constructs an elapled time table based on summing delta times.
This is writen to a text file - see this sample. The circuit is designed to shut itself off either manually or when the eeprom is full. No power is drawn in the off mode. The DOS capture program is written for COM1 and connects to a stereo mini jack on the unit. Operation: Connect a 9 volt battery to the unit. (without connection to computer serial port)
Switch on RB7 plays a medium tone burst and starts the unit running. Switch on RB6 plays a higher tone burst and turns the unit off. (with computer com port connected)
Switch on RB7 plays just 4 tones and enters communication mode.
Run PC software to download datat to text file. Switch on RB6 plays 2 tones and powers off. So far this unit has facilitated the repair of one RV-based propane refrigerator.
A universal Windows-based software designed to work with any serial programmers for the PIC16F84, known as WPicProg16 V1.20. It is recommended to build this programmer before starting various interesting projects with the F84. Some PIC programmers support in-circuit programming, while...
When the 36 kHz infrared light emitted by the LEDs is reflected off an object, one of the receiver modules is activated. The PIC16F84 microcontroller then directs the robot to avoid the object by reversing one of the motors.
The circuit...
This document outlines a dual-channel quantizer design inspired by Chris List's ARP Style CV Quantizer. The implementation utilizes a Microchip PIC16F84 microcontroller, which enables programmable quantization of voltages in 1/12 volt (semitone) or 1 volt (octave) steps within a range...
Affordable PIC Programmer. This programmer is compatible solely with the PIC16F84 microcontroller. It is reliable, as it rarely encounters errors, and functions well with nearly all computer systems, in contrast to some alternatives.
The PIC programmer designed for the PIC16F84 microcontroller...
This web page outlines the installation and usage of ezlog data logging software. This software enables the measurement of the timing of various events, facilitating synchronization of different stimuli. Specifically, the software is designed to provide a detailed report on...
The F84 MRTC was my second design of a miniature real-time controller. This version uses PIC16F84 running with a low power X-tal 32,768Hz. The scheduler for 6-channel output was saved in EEPROM. No terminal for serial downloading of the scheduler....
An introduction to the PIC16F84 microcontroller, including connections for an ICSP programmer and a circuit example.
The PIC16F84 is an 8-bit microcontroller from Microchip Technology, widely utilized in various embedded applications due to its versatility and ease of use. It features...
This project was initiated in late 2003 with the aim of learning PIC programming. The goal was to create a functional device that performed a specific task.
The project involves the design and implementation of a microcontroller-based system utilizing a PIC...
All PIC IR decoders share the same easy-to-build hardware. All components for this hardware are readily available globally. Constructing it should not take much longer than one evening. At the center of the diagram is the PIC16F84 processor, accompanied by...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more