» Electronics » Arduino »Scale distance indicator with sound signal

Scale distance indicator with beep



Readers are invited to homemade author of Instructables under the nickname Gearboxmakers, which displays the distance between the object and the range finder on a scale indicator, and if it is too small, it plays a melody.

The master begins work on the design by drawing up its scheme:



The conclusions for supplying the power to the rangefinder are not shown in the diagram, but on the rangefinder itself all the necessary notations are available.

Shift registers 74HC595 (KR1564IR52) here are the second most important components after Arduino. They are often used when you need to manage many loads, using only two outputs from the microcontroller. Very simplified, their principle of action can be described as follows. You type on the keyboard - physical or on-screen. Naturally, at the same time you press the keys in turn, sequentially. The result is a line, all the signs of which you see on the screen at the same time - in parallel. The number of controlled loads is easy to increase by adding more shift registers to the chain. The number of outputs of the microcontroller involved will not increase, but with a constant data transfer speed, the maximum frequency with which each of the loads can be turned on and off will decrease.

Since the number of simultaneously turned on LEDs changes, the master fails to manage with one common resistor - you have to add a resistor to each LED.

The wizard assembles the device do it yourself on a breadboard of the perfboard type and connects several wires to the Arduino, which serve to parallelize the power lines and the common wire, as well as exchange data with the microcontroller. Control signals from the shift registers, sound emitter and emitter of the rangefinder are transmitted from the Arduino to the device, and the signals generated by the receiver of the rangefinder upon receipt of reflected oscillations are transmitted to the device. Next, the board is shown partially assembled:



The wizard starts working on the software, he gets the following sketch:



After completing the assembly and filling the sketch, the wizard shows that he succeeded:



The device may, for example, inform an employee of a photo shop, copy center, metal repair, etc. about the appearance of the client.
7
9
9

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose
5 comments
R555
A friend called the other day, asked him to make automation for a moonshine
I had a friend, a KIP-sheep, so he had a flask with a braga on the automatics. It turns out that the temperature regime of fermentation greatly affects the quality of the final product! drinks
......
About 15 years ago, a radio circle, guys who drill, who solder, in one corner they set up gadgets, in another they lost Australia, this trio sits side by side with their laptops and occasionally talk. Suddenly, screaming and almost cuddling, so happy. It turns out that the multivibrator model has worked for them. They immediately soldered this multivibrator in 3 minutes, such as that you, relatives, were tormented for two hours, so you just calm down ... Now they’re grown men, but it's nice to remember.
I feel it’s time for me to master Arduino. With writing programs for microcontrollers of the PIC family and their firmware figured out about 8 years ago. There is a good programmer of our own design and manufacture. I think I’ll deal with Arduino without too much difficulty. boss A friend called the other day, asked him to make automatic equipment for a moonshine still. drinks xaxa
In centimeters. 2-400 centimeters + - 1 cm. These are the characteristics of the HC-SR04.

The scale makes it possible to calculate Jay with Silent Bob, hanging out near the store, but not going inside.
distance between object and range finder
In what units and with what accuracy?
The device can, for example, report ... about the appearance of a client.
And what for scale? nea

We advise you to read:

Hand it for the smartphone ...