Digital tachometer for PIC16F628 microcontroller. DIY digital tachometer on AVR ATtiny2313, KR514ID2 and optocouplers Description of the robotic tachometer on the PIC16F628 microcontroller

This digital tachometer is suitable for hydrating several types of internal combustion engines. The tachometer should be adjusted to less than 50 rpm. To display the result, a four-digit LED display is used.
To customize the robot mode, you need to select the “Select” button. First, press on to display the continuous robot mode on the display. The rotation mode is the third one, if the sensor sees two pulses per revolution of the flywheel. Obviously, the message P-2.0 will appear on the display.

Pressing the button on the foot changes the robotic mode of the foot tachometer. There are nine of them: 0.5, 1, 2, 3, 4, 5, 6, 7, 8 imp./revolution, apparently, they set the number of pulses that are seen by the sensor per one revolution of the flywheel. The greater the intensity of the pulses, the more accurate the simulation.

After selecting the robot mode, you need to wait 5-10 seconds. During this hour, the tachometer will record the robot mode for the riddle about the microcontroller and enter the operating mode. Remove the tachometer and immediately switch to operating mode when power is supplied. There is a need to re-adjust the tachometer by pressing the “Select” button and re-adjusting the tachometer again.

Varto increase respect for the parameters and device of the input lancet. For a specific type of ignition, it is possible to adjust the ratings through different ignition devices in different types of cars. It is necessary for the tachometer to work well with the main harmonics and not react to other harmonics. Without such adjustments, the accuracy of the tachometer is impossible.

The updated firmware version includes the indicator verification function. It is necessary to carry out a two-second test to detect sensor malfunctions.

Attached files:

Firmware

Simple automatic monoblock on TDA1560Q Automotive throttleless power supply based on IRS2153 for laptops and mobile phones External USB connector in the car radio

Why are you so excited? tachometer? The tachometer is a device that is used to determine the rotation speed (revolutions per revolution) of any body that turns around. Tachometers are based on contact and non-contact ones. Non-contact optical tachometers use laser and infrared laser technology to control the body's wrapping. There is no need to worry about the cost of the hour spent on one wrapper. From this material, taken from one English site, we will show you how to create a portable digital optical tachometer with help Arduino Uno. Let's take a look at the expanded version of the device with an RK display and a modified code.

Tachometer circuit on a microcontroller

Circuit Parts List

  • Microcircuit - Arduino
  • Resistors - 33k, 270 Ohm, 10k potentiometer
  • LED element – ​​blue
  • IR LED and photodiode
  • 16 x 2 LCD screen
  • 74HC595 register zsuwu

Here, the replacement of the optical sensor is a substitute for me. This way, they won’t have to worry about the thickness of the rotor, the number of blades won’t change the reading, and they can read the drum wraps, but the pressure sensor cannot.

So, first of all, for the sensor you need a high-performance IR LED and photodiode. How to pick him up - shown in the instructions. Click on the photo to increase the size.

  • 1. For the cob, you need to sand the LED and photodiode to make them flat.
  • 2. Then fold the paper onto the paper, as shown on the baby. Build two such structures so that the light-emitting diode and photodiode sit tightly to the new one. Join them together with glue and coat them in a black color.
  • 3. Insert the LED and photodiode.
  • 4. Glue them together using superglue and solder the dots.

Resistor values ​​may vary depending on which photodiode you use. The potentiometer helps to change or increase the sensitivity of the sensor. Solder the sensor wires as shown on the little one.

The tachometer circuit is a Vikorist 8-digit register ZSUVU 74HC595 with a 16x2 LCD display. Make a small hole in the housing to secure the LED indicator.

Solder a 270 ohm resistor to the LED and insert it into pin 12 of the Arduino. An insertion sensor is attached to the cubic tube to provide additional mechanical integrity.

That's it, the device is ready for calibration and programming. You can download the program as quickly as you can.

Video of a self-propelled tachometer


A high-voltage protective device - an electric hedgehog. Today we continue to talk about structures that are necessary for the protection of our life. A device that we will now look at is used for the protection of an apartment, office, cottage, or car. It's called a device - a high-voltage electric hedgehog!

Tachometer changes the frequency of wrapping of parts, mechanisms and other vehicle components. Tachometer It consists of 2 main parts - a sensor, which has a flexible wrapper and a display where the values ​​will be shown. Basically, the tachometer is calibrated on the covers.

You can create such a device on your own by using the circuit with an AVR Attiny2313 microcontroller. With such a microcontroller you can adjust 100 - 9990 rpm. , the accuracy of the vimir becomes +/-3 revolutions per line.

Characteristics of the ATtiny2313 microcontroller

EEPROM 1 KB
Analog inputs (ADC) 0
Input voltage (limit) 5.5 Volt
Input voltage (recommended) 4.5-5 Volts
RAM 128 bytes
Clock frequency 20 MHz
Flash memory 2kB

Instead of installing 11 resistors with a nominal value of 4.7 kOhm, do not change the nominal value, and the sensor will become unstable when connected to a single-wire circuit.

In contrast to other circuits, 4 transistors and 4 resistors were used here, and the circuit was thus simplified.

The circuit has 8 segments per each symbol, 5 mA each, the total amount will be 40 mA, so there is no great importance on the port. I'll marvel at the graphics I'll add.

From the graphs you can note that the flow can reach from 60mA to 80mA at the pin output. For accurate adjustment, it is necessary to select interconnecting resistors with a nominal value of 470 ohms.

The choice of display is not critical, choose any LED indicator for any number, or choose from several LEDs. Vikorist the red indicator so that it is clearly visible on the sun. The tachometer operates on 12 volts.

Quartz resistor vibrations at a frequency of 8 MHz, for accurate and stable vibration. The input filter is designed to be connected to the outlet of the heating coil.

You can find this in the firmware in the 17th row.

17. #define byBladeCnt 2 //1 - two cats, 2 - one cat, 4 - a motorcycle...

This parameter needs to be changed, if you have a Russian car, then set it to 2, if you have a motorcycle, then set it to 4, and if you have a car with a heating system with two coils, then set it to 1.



A simple universal tachometer on an ATtiny2313 microcontroller

This simple tachometer on the ATtiny2313 can be used to measure a wide range of engine speeds, power cycles, power cycles, etc. It can be used in auto-mototechnics to change the engine wraps. In this case, it does not matter at all how many strokes or cylinders the engine runs. It can also be used in conjunction with electronic controllers of electric motors, either single- or three-phase.

The tachometer circuit is very simple - one ATtiny2313 microcontroller and a four-character LED indicator. Transistor switches for simplified daily life. The indicator can be selected either from the ignited cathode or from the ignited anode - but is selected from the output. The tachometer can be wrapped either for a second or for a second to make it completely universal.

Additionally, the device may have the possibility of software redundancy: it is initially reduced. If the jumper is open, then the initial brightness is installed. When the contacts are shorted, the brightness changes.


Press to make it bigger
Let's move straight to the diagram. If the device is connected directly to the motor controller with TTL levels, pulses can be simply applied to output 6 of the microcontroller. In another case, the simplest transformation of the level on a transistor can be found.

To remove and stabilize the +5 volt supply voltage, the 1117 linear stabilizer has low voltage drops for greater economy.

As an LED indicator of stagnation, the indicator comes from a microfiber oven with a carbon anode. Since you have 220 Ohm resistors in your system, the smell will not be transferred to the other board.


There are as many as 10 jumpers on the top side of the wired board, which are very easy to install.


On the reverse side, SMD components are installed: two 22 pF capacitors for the quartz resonator, a stabilizer microcircuit and capacitors for filtering.

The quartz resonator for the ATtiny2313 microcontroller can be installed at 8 or 4 MHz, which is set at the output and is adjusted by the prescaler.

The mode of displaying wrappers - per second or per hour - is set in the same way as for the weekender. To display the number of wraps per piece, the number of wraps per second is simply multiplied programmatically by 60. It is possible to programmatically round up the uninsurable values. These nuances are commented on in the output code.

When flashing the microcontroller, it is necessary to install the function:

CKSEL1=0
BODLEVEL0=0
BODLEVER1=0
SPMEN=0

Journal of my writings C Codevision AVR. From another project - a tachometer for a tri-blade helicopter.

Briefly about adjustment: it is necessary to calculate in advance how many pulses per 1 revolution will be supplied to the tachometer input. For example, if their main purpose is a three-phase motor controller on the LB11880, you can see from three impulse to the skin revolution of the spindle. The output code then has a value assigned to it.

Indicator selection – from the carbon anode or from the carbon cathode (unnecessary values ​​– comment):

//#define Anode
#define Cathode

Number of tachometer pulses per 1 shaft revolution:

#define byBladeCnt 2

Vibration frequency of the quartz resonator – 0x00 for 4 MHz, 0x01 – for 8 MHz:

#define Prescaler 0x01

Select the type of wrapper for the beef:

lTmp = (62500L * 60L * (long) wFlashCnt);

To display the number of wraps per second, multiply by 60:

lTmp = (62500L * (long) wFlashCnt);

To enable rounding values, you need to comment out the following rows:

If (byDisplay > 4)
{
wRpm++;
R + = 10;
}

Since this particular design of the stool has a specific indicator, the wiring of the other board is not applied.