Electronic heart. DIY gift - LED heart

An electronic LED heart on a microcontroller can be an excellent gift for a girl for Valentine's Day, March 8, or for her birthday, if of course you know how to solder. It will make a good gift, and also made with your own hands. In order to create such a trinket, we will need:

1) ATmega88 microcontroller
2) 22 red SMD LEDs (it’s better to take extra)
3) 22 SMD resistors 620 Ohm (similar)
4) 1 SMD resistor 10 kOhm
5) 1 SMD capacitor 0.1 uF
6) 2 SMD jumpers
7) Fiberglass
8) Programmer for AVR
9) Photoresist PV-ShchV
10) Soda ash
11) Caustic soda
12) Ferric chloride

Draw a diagram (click on the picture to enlarge). We will then lay out the board according to this scheme. From the circuit editor we then unload the NET sheet (list of circuits) and the archive library of used components.

We distribute the fee. All components are surface mount.

We glue the film photoresist onto the board, the main thing is to prevent the formation of air bubbles. We wrap the board in paper and pass it through a laminator 2 times so that the photoresist sticks to the board better.

We print a photo template. We will place the photomask with toner on the board, so we print it as a mirror image.

We place the photomask on the board and press it with glass on top. Turn on the UV lamp for 3 minutes. According to science, you should use plexiglass, but with glass taken from a bookshelf, everything works out just fine.

After exposure, remove the top protective film and prepare the developer. To do this, take ordinary water, passed through a filter or boiled, to reduce its hardness. As a rule, there are problems with ordinary tap water. We also need soda ash (NaCO3). The concentration of the solution is a teaspoon per 100 ml of water. We show the board. The pattern that was illuminated by ultraviolet remains on the board, everything else dissolves.

Developed board ready for etching:

Prepare an etching solution of ferric chloride. To do this, we need, surprisingly, ferric chloride and water (now you can directly from the tap). We divide 1 to 3. We poison the board. We must be careful, since ferric chloride is difficult to wash off hands and furniture and is extremely difficult to wash off clothes.

We make a solution for removing photoresist. We take water (again from the tap) and caustic soda, the concentration is already familiar to us - a teaspoon per 100 ml of water. We remove the photoresist, do not forget to use rubber gloves, since the solution is quite caustic, after which we rinse the board in water, tin it and solder the parts according to the drawing.

And we start coding. For programming and firmware, the WinAVR package is enough for us. It’s not a sin to spend the whole evening and night programming - it’s a very interesting toy, you can pervert it as much as your imagination allows. We stayed up until 4 am. After all the procedures described above, batteries and a reed switch were soldered to the board, then the board was placed in a box with a magnet on the lid, which, when the box is closed, opens the reed switch with a constant magnetic field.

And now a video illustrating the operation of an LED heart:

I don’t pretend to be a new idea or execution, but it may be useful to someone.
Actually, this device was made for my wife for her wedding anniversary, although you can quite easily repurpose it for other holidays.

Photo of the device

The electrical circuit diagram was found on the Internet and was safely lost there. That's why it won't happen. Yes, in principle, it itself is not needed because This device is a logical continuation of the first attempts to light LEDs. The idea itself was to please my wife and prove to her that it’s not in vain that I sit with a soldering iron in the evenings.

As you can see from the printed circuit board there is nothing special about it:

  • Atmega8-tqfp32
  • Resume for 100k

  • Conder 0.1 µF
  • 22 smd leds
  • 22 smd shortcut
Regarding LEDs and resistors, perhaps choose them so that they do not exceed the threshold voltage value of +5V. I took super bright ones at 3V, current 20 mA, respectively, the cutters were 120 ohms.
Without thinking too much, there are a bunch of online calculators.

There is no connector for ISP programming in the usual sense. Stupid wiring. By the way, everything is signed there for convenience. I think it is not advisable to present the process of “LOOTING” the board and explaining the technology here, because those who can and know will understand, and those who do not, Google will help him.

And of course, as in the Russian joke about an airplane, “Now roughly handle it with a file”
I’m just learning about soldering, so don’t criticize too much, and in general this is one of my first projects. Regarding the code, I’m also learning so there will only be a firmware file without source codes (otherwise I think they’ll get stuck).
Yes, I almost forgot the video. I apologize for the quality - what was on hand.
I guess that's all. Project file.

Articles are published as they are received. For an organized thematic
search, use the block

The electronic heart is made in the form of two switching circuits.
This device will decorate any family holiday, celebration, New Year tree, or store window. Switching of LEDs is controlled by a generator made on a 555 series universal timer chip. The device is compact and can be battery operated.

Switching of LEDs is controlled by a generator made on a DA1 universal timer chip. The operating frequency of the generator is determined by the values ​​of resistors R1, R2 and capacitor C1. Transistor switches VT1, VT2, switching LEDs, prevent overloading of the output stage of the DA1 chip. Diode VD1 protects the device from failure if the power source is incorrectly connected.

List of elements

R1- 20 kOhm
R2- 8.2 kOhm
R3- 1 kOhm
R4, R5- 22 Ohm
C1- 22 µF/16…50 V
VD1- 1N4148, KD522
VT1- BC547, BC548
VT2-BC327, BC557
DA1-HA17555, 555 series timer
Red LED - 40pcs
A514 (PCB 72x74 mm)


Railroad crossing

This circuit flashes two red LEDs for a model railroad crossing.

Brightness control.

This circuit will adjust the brightness of one or more LEDs from 5% to 95%.

Alternating LED flashing

Some LEDs are paired, for example red and green. This circuit causes red/green bi-color LEDs to flash alternately

Flashing bipolar LEDs

The following circuit makes paired LEDs of different polarities blink.

Red/green bipolar LEDs flash alternately

Roulette

This circuit creates a rotating LED circle that starts spinning very quickly when your finger touches the touch wire.


When the finger is removed, the rotation slows down and stops.

Multiple LED Control

The 555 timer can withstand up to 200 mA and 12v voltage. The following diagram shows the maximum number of white LEDs that can realistically be connected to the 555, but we have limited the total current to 130mA since each LED is designed to carry about 17mA to 22mA maximum.


The voltage across the white LED drops 3.2V-3.6V, meaning that only 3 LEDs can be placed in series.

3D cube

The circuit is a 3x3x3 cube consisting of 27 white LEDs. The 4020 is a 14 pin binary counter and we used 9 outputs.


Each output drives 3 white LEDs connected in series. The 4020 chip produces 512 different codes before the sequence repeats, you have to build the circuit to see the 3D cube effect for yourself.

Ivan Vitalievich Bezrodny

Electronic heart

Title: Buy the book "Electronic Heart": feed_id: 5296 pattern_id: 2266 book_author: Bezrodny Ivan book_name: Electronic Heart

The girl turned gracefully, and her light fur coat slid off her fragile shoulders like an innocent fluff, falling to her slender, chocolate-colored legs. “Are you not being noticed? Are you not completely confident in yourself? Need a little MORE happiness? Take just one step to success and fame! Use our new, improved mini-solarium “Nova Stella S46 Double Plus” every day! - Peter immediately came to mind. - And your problems, undoubtedly, they will decide! However, something else was advertised. The girl, who turned out to be an android, was wearing only a bikini, the bra of which was made in the form of stylized copper taps, which in ancient times were placed on wine and beer barrels. On her stomach there was an inscription in all the colors of the rainbow: “Didn’t you already drink beer at Uncle Tony’s today?!” Don't be an idiot, cowboy! Come in and have a drink and relax! Tell everyone you were here!!! Next turn to the right, thirty feet - and we have you!

Mister, you should definitely try our signature dark beer “Bull No. 23”! - the girl chirped joyfully to Peter and smiled professionally, showing an even row of small snow-white teeth.

Peter winced with annoyance, awkwardly walked around her, and, despite her inviting, languid gaze, went into the supermarket, near which she settled down, apparently driving a decent number of thirsty men with dry throats crazy.

In the aisle, with his hands clasped behind his back and towering a full head above everyone, stood a formidable android security guard with a television camera in his eye and an automatic weapon strapped to his hip. He looked suspiciously at Peter's bag, but said nothing, immediately turning his attention to some not entirely sober, or, most likely, drugged-out guy who stumbled in after him. Peter took a breath of relief and, without taking the cart with him, which earned him disapproving glances from the store staff, went to the hardware department.

Only our powder - “Magnificent Bella” erases whiter than white!!! - unctuously rushed from the speakers hidden under the ceiling. - You save up to fifty percent of your sweat and blood earned money! "Bella" easily washes and these stains!!!

The voice imperceptibly enveloped Peter like a sticky web, penetrated his every organ, and there was no way to hide from it. The gaze automatically slid to the shelf, where stacks of packs of various sizes and colors of Gorgeous Bella washing powder were stacked. Below it were exactly the same packs of “Magnificent Anna”, and above it were “Valentina”. In fact, there was no difference between them. Wow, as much as fifty percent! Extortion unhealthy wish, Peter walked a little further, to the farm implements section.

Shots and screams were heard from the ceiling. There was a huge stereo viewer hanging there, on which the two thousand seven hundred and eighty-second episode of the next soap opera “You Don’t Go There” was playing. The good soldiers of the Outer Patrol were rescuing a beautiful naked blonde. She ran as fast as she could from a very vile and very fanged green monster with seven heads and at least nine penises. The action, of course, took place on the Surface, in the middle of some destroyed city. Against the backdrop of bravura music there was unimaginable noise, din, squealing, roaring and screaming, as well as completely unfunny, but very vulgar jokes of the main character of the film - a shirtless guy named Archie Rip-Off, interspersed with another block of sugary advertising.

Peter had seen this countless times before. He chose a large baking powder (“Only our baking powder will satisfy the most discerning owner! Your soil will love it!”), an elongated shovel (“Dig for your health!”) and a small plastic bucket that, without its contents, could be folded like a sheet of paper (“ There is more on the inside than on the outside! Buy it and see for yourself!"). Then he took several different dietary supplements for plant growth (“Grow faster than your desire!”) and a powerful flashlight (“A candle always, a candle everywhere, I will help you in trouble!”). “My old flashlight doesn’t work at all in open spaces,” Peter thought and walked to the cash register.

Seeing the quantity of goods being purchased, the pretty young cashier with the “don’t wake me at dawn” haircut immediately broke into a satisfied smile:

Oh sir, how kind of you to shop at our supermarket! This is such an honor for us...

Then she took a closer look at Peter, and her cordiality somewhat disappeared. He smiled bitterly to himself. The bright blue mark on his left cheek, glowing treacherously even in complete darkness, spoke volumes.

Do you have a credit card... Mister?- she asked, looking indifferently over his head.

Peter was not such a simpleton.

No, I have cash,” he said, taking out his wallet.

The cashier pursed her thin lips and began scanning the price tags.

Thirty-seven credit cards,” she finally said and nervously drummed her fingers on the counter.

“I shouldn’t have gone into such a large store,” Peter thought, “it would have been simpler and safer on the outskirts.” He paid and, putting his purchases into a bag (fortunately, it was a big one!), went out into the street. The “beer” girl still periodically took off her fur coat and flashed inviting inscriptions on her electronic belly. Four teenagers with unimaginable tufts of wildly colored hair sticking out in all directions crowded around her. Laughing loudly, they danced on the spot and made dirty jokes at her expense. The policeman on duty some sixty yards away didn't give a damn.

Peter, slowly, walked down the street, trying not to attract undue attention to himself, giving way to passers-by who were absolutely indifferent to his person. Whenever possible, he avoided crowded places and chose secondary streets and passages.

Shiny electric cars with carefree couples sitting in them rushed past, along the lower highway and along the canopy multi-tiered overpass, humming rhythmically, like multi-colored giant beetles, trucks on a paramagnetic cushion, hurrying about their production business, large ones, almost entirely made of transparent plastic, drove sedately municipal buses. Peter got into one of them and half an hour later got off at the final stop, not far from the Industrial Zone. There was not much left, another twenty to twenty-five minutes, and he would be at the Elevator. Taking out a lollipop from the bag (“Suck - don’t suck!”), Peter put it in his mouth and continued on his way, smacking his lips with pleasure.

As we approached the very outskirts of the city, we increasingly saw ugly painted sports electric bikes, saddled by exalted, loitering young people, who in the evening posed a certain threat to a lonely traveler. Of course, the police did not visit this area very often, but this was to Peter's benefit now.

The work of city ventilation due to the close location of factories left much to be desired here, so it was quite dusty. Wide, bright shop windows were replaced by miserable little shops, loud, intrusive advertising gradually faded away. The houses became low, uniform, monotonously gray and inhospitable, turning away with the dark eye sockets of the windows. The street narrowed indecently and began to wind unpredictably among them, but Peter had long since studied this area well, trying to take different paths each time lately.

There were almost no passers-by. Here he came across only one android, apparently some kind of factory clerk. Glancing briefly at Peter, he brushed past, muttering something under his breath.

“Nobody cares about anything,” he once again sadly complained to himself, “they are all closed in their pitiful, self-sufficient, selfish little world and are as happy with their position as their own pride, vanity and fear allow them. Secretly from themselves, they are afraid of losing this illusory satisfaction from the insipid way of life, chewed to the smallest detail by the authorities, flavored with the sweetened pills of our civilization. No wonder that this Gotcha. However, like thousands of other half-robots, half-humans. It would seem that artificial intelligence should effectively resist the onslaught of a totalitarian state, this massive, large-scale duping of the population, the ruthless processing of brains, regardless of its type, but... With electronic filling Them it often turns out to be much easier to deal with..."

There are no more residential buildings. Peter crossed an old rusty narrow-gauge railway, found his own tunnel covered with a sheet of iron under a high concrete fence, climbed through it with some difficulty and found himself in the territory of an abandoned warehouse. Everything was calm. He shook himself off and, looking around, trotted to a dark gloomy hangar, in the side of which there was a ragged hole.

Turning on the flashlight, Peter crouched and went inside. Stacks of empty boxes, mountains of garbage, and parts of some machinery were piled around. And there was a thick layer of dust on everything. He picked up a broom lying at the entrance and, backing away and carefully covering his tracks, reached the far end of the hangar. Then he climbed over a pile of half-rotten rags and found himself at the screen masking the entrance. Behind it, in the stone wall of the Perimeter, there was a small but massive door.

My heart was beating wildly. He wiped away the sweat on his forehead with his sleeve and strained to turn the large locking wheel. Something clicked at the door, it reluctantly opened, and he slipped inside. This was the elevator. He caught his breath and carefully, almost gently, pressed the lift button. Somewhere the engines howled, the Elevator cage trembled and, picking up speed, rushed upward. Peter leaned against the wall, trembling with impatience.

How many times had he already walked this path, and still could not get rid of fear. Over time this will pass. Must. I just have to. Otherwise, he will make mistakes and everything will be in vain. His whole plan will collapse like a house of cards. And how much remains to be done! What a pity that he is alone now!.. But there is still more to come. We must hope and believe. Because to live the way All, he couldn't take it anymore.

Almost six hundred feet. Six hundred feet to the Surface of the Earth. It's a long way up on an old transport elevator. Peter gradually calmed down. Everything is fine. All according to plan. Otherwise it can not be. But something bad, some small malicious worm was spinning inside him like a spinning top and did not give him peace, forcing him to constantly remain on his guard.

Finally, Lift surfaced at the top platform. Peter got out and opened the vestibule door, which was much more massive than the one below. He passed it, dealt with the next door and, climbing a long wide staircase, along which there was a transport escalator that had long been inoperative, found himself in an empty vast room, carved right into the rock. Slowly, cautiously, he walked to the end of it, to where a faint glimmer of light could be seen. It was an outlet for personal staff, staff that had long since ceased to exist. During the Fourth World War, the central entrance was completely filled with molten rocks. The same exit, located on the other side of the fortification, was incredibly lucky.

Peter parted the dense, tough stems of pungent-smelling bushes with long, leathery leaves studded with powerful thorns. A year ago, he transplanted them here to cover the hole from prying eyes, although very unlikely, in his opinion. After all, the guys from the Outer Patrol are not fools either. True, for some time he had a vague suspicion that this legendary team had long ceased to exist, no matter how they described it in various soap operas, comics and history textbooks.

He climbed out and climbed onto a rocky heap. It was a beautiful warm May evening. Sun!.. The present The sun was slowly setting to the west. The sky was completely cloudless, only a light haze hung far in the east. A playful breeze caressed my cheeks, carrying from somewhere the smells of the earth warmed up during the day, the air was fresh and transparent, and the jagged line of the horizon, on which the distant mountains were blue, was visible clearly and clearly. Peter looked carefully at the yellow, rolling plain that lay before him and sighed heavily.

For he was Criminal No. 1. The enemy of the entire People and State. He violated the Main Law. And justice will be as merciless as possible towards him.

Raising clouds of dust, Peter ran away from the pile and rushed towards one of the hills, overgrown with withered and dusty grass. Walking around it, he found a wide double-leaf hatch in the slope, camouflaged with spotted netting, and with difficulty unlocked it. Inside the small hangar stood a powerful electric bike on four giant wheels. “Soon we will need to recharge the batteries,” Peter thought worriedly, put a suitcase in the luggage compartment, where several bags were already lying, sat on it and drove out. The motor ran clean and almost silent. "Old but reliable!" - Peter smiled to himself. He closed the hatch and quickly drove between the hills, deftly maneuvering between boulders scattered everywhere.

Peter immediately forgot all his fears and worries. He was overcome with indescribable delight. And what can compare with driving such a big, strong car in the fresh air, on real ground, with potholes and bumps, dust and the wind hitting your face?! This is not the refined “super-super-safe” driving in the Central City Square with a robot driver...

Twenty miles later, Peter entered the foothills, where the speed had to be slowed down somewhat due to the narrowing of the road, especially since it was easy to get lost in the intricate interweaving of gorges, some of which the sun did not penetrate even during the day, and was already beginning to get dark.

He circled a couple of small mountains, slipped through several canyons, overcame a long pass and, finally, when it was completely dark, arrived at the Place. It was a small valley, now covered in impenetrable primeval darkness.

If Peter had a lens built into his eye, he would still be able to see That what was different This a place from the usual landscape of the last century, stretching for many thousands of miles around. But he just knew What should have been there.

Peter stopped the electric bike and looked down into the valley, gasping for air.

They will understand, I will prove it to them! - he muttered as if in oblivion and abruptly rushed from his place, scaring some large night bird in the bushes.

* * *

Colonel Mitsuko chuckled with satisfaction and handed the night vision device to young Lieutenant Burrell.

We'll take it in the morning,” he said.

But really... - Captain Hastings began, but the colonel, who was constantly at odds with him, remarked irritably:

And you, captain, just keep quiet. Your task is to destroy as completely as possible... THIS... - he spat in the sand with disgust, unable to find a harsher word. - And this will have to be done in daylight. In normal bright light. So that not a molecule remains! You've been given plenty of napalm. I will personally supervise the process.

My proposal about the bomb... after all... was... - the captain mumbled, puzzledly fiddling with his earlobe.

The colonel also preferred the idea of ​​a powerful explosion, which could later be presented to the population from the only correct political position, but since it originally belonged to Hastings, he went on principle.

“Very stupid,” he said and, after a pause, added for emphasis. - And in general, my orders are not discussed. The operation is top secret.

Hastings shrugged and dived inside the armored personnel carrier, grimacing with displeasure. Damn this old brat, he thought furiously once again.

And you, Barrel,” Mitsuko turned to the young lieutenant, “must take him alive, don’t forget about it.” I will personally then shake out of him the names of all members of his criminal group, hiding places, ideas, plans, and so on...

Yes, sir! - Burrell clicked his heels loudly, instantly looking up from the binoculars.

Relax, Lieutenant! - the colonel smiled. - Like on the parade ground, by God... What do you even think about all this? - Mitsuko pointed to the valley with his chin. - What are your feelings?

This is simply incredible! - Burrell shouted angrily in youthful fervor. - He couldn’t, you see, like other law-abiding citizens, do this Houses! How can he! Yes, even the death penalty will not be enough for him! - He impatiently banged his palm on the armor of the car. - We'll pour it on him. himself napalm and set it on fire so that he knows how to violate the holy of holies - the Constitution! Main Law! His First Article! He's not just came out to the surface, he... he... - the lieutenant choked on his own saliva and coughed.

The Colonel patted him on the back in a fatherly manner. He will make a good officer, he thought contentedly. True, he’s still green, but that’s okay, he’ll gain his wits and cool down. Such we need! Tomorrow is his first serious task, let's see what he is capable of!

It's not even a matter of What what he’s doing there, although it’s very regrettable - it’s contrary to common sense and, most importantly, the law,” he said, and a single man’s tear rolled down his cheek. - Peter Kamowski betrayed our WAY OF LIFE, our holy IDEA... THE IDEA of our fathers!..

* * *

The morning was foggy and cold. Peter got out of his sleeping bag, quickly cleaned himself up and ate a quick snack. There was a lot of work to be done. The sun had already risen, but twilight still reigned in the valley. The rays of the star will reach it only in about an hour.

Peter walked slowly along the path he had trodden. God, he thought, how wonderful! To his left, for a good hundred yards, stretched a plot of large, simply wonderful bright red tulips, to his right were long rows of common cornflowers and buttercups, and a little further away, lilies of the valley bent their lovely bells to the ground. The fabulous aromas, not yet very strong after a rather cool night, were pleasantly invigorating and slightly tickled the nostrils. We need to see how the daisies have taken root there, he decided and quickened his pace.

However, even the charm of this place could not distract Peter from his bitter thoughts. It served as a Reminder of the Cause. The world is gradually going crazy, he thought to himself. We went down the wrong path. This began to be noticed back in the middle of the twentieth century, and how much time has passed since then! We were bewitched by technology, we simply could not imagine life without it and were tied hand and foot by it. But technogenic civilization, in the end, becomes obsolete, because it is completely artificial, unnatural, fake! Yes, I myself am a magnificent example of a product of this very civilization, but this is a completely different question that does not depend on me.

We constantly fought with nature, tried to curb it, subjugate it, enslave it. We unsuccessfully remade it in our own way, forced the world to bend under us, but it turned out as always... We moved more and more away from our roots, forgot who we are, and pride overwhelmed us, and we were overthrown from the face of the earth . With my own hands.

After the Third World War, no one dared to build any significant objects on the surface of the earth, but built at a depth of one hundred to three hundred feet. Completely self-sufficient, viable objects. But even then, Humanity could save its soul, turn back...

Cities underground continued to grow, turning into megacities. The problem of nutrition, for example, was somehow resolved by the creation of artificial food, the lack of energy - by the discovery of the paramagnetic field and miniature nuclear, and, subsequently, hydrogen reactors, mini-tokamaks. But the last war, as one might expect, taught society little. The international situation soon deteriorated again, and the population from the surface quickly moved underground. A period of protracted local wars began. During the period of anarchy, communication with many megacities was lost, and some of them, numbering more than a hundred million people, became in the full sense of the word separate states, like Sparta or Athens in Ancient Greece.

Who and why started the Fourth World War is no longer clear. But it became the most destructive war in the history of Mankind, which was saved due to the fact that it had mostly moved underground. Life on the surface of the planet was practically destroyed. Radiation gave rise to terrible mutations, and this was the worst of all, because people were also among the mutants. Under the current conditions, only a totalitarian, military state could effectively survive, and this, of course, left an imprint on all subsequent development of city-states that completely isolated their existence from the corroded, disfigured surface.

Several generations of people who were born and died underground have replaced each other. Modern people can no longer imagine what it is like to run barefoot on grass damp from the morning dew, to climb a mountain peak with a backpack on your back, or to walk under the moon with your beloved along the river bank. In the first hundred years, underground life justified itself, but gradually the level of radiation returned to normal, and surviving representatives of flora and fauna developed. After all, a mutant does not mean bad...

And people became truly Underground Dwellers, not wanting to associate with the surface, which treated them so cruelly. “I, the Surface, gave birth to you, and I will kill you.” This is how the new governments “explained” the policy of the Upper Residents-Mutants, supposedly living in countless numbers above, only dreaming of how to deal with the underground metropolises of Normal people.

Thus, the highest sin was penetration onto the surface of the earth, which was regarded as betrayal, desertion, hidden mutation, dangerous extravagance and the like, punishable by the laws of war with an exemplary death penalty. This right of government was enshrined in the Constitution, in the First Article itself.

The totalitarian government in a state where there was not even a hint of any democracy found this state of affairs beneficial, and it made every effort to ensure that everything remained in its place forever and ever. It wanted and was a seasoned wolf that crawled into the flock of sheep. For the easiest way to govern is a stupid, fooled population, to whom you give only bread and circuses, and don’t care about anything else. The people were well-fed and satisfied, they stared at the stereo and admired the sobs of the heroines of soap operas who had lost their men in the fight against the Upper Evil.

And only a few guessed, rather in spite of than thanks to, about the real state of affairs. The strangest thing is that Peter was one of them. At first there was a group, purely ideological. But they no longer had anyone like him. As long as Peter could remember, he was always different from others... the same

He was at one with them. They fought for a just cause, for something worth dying for. They wanted Humanity to return Home to the surface, to revive the Holy Land in its pristine purity, or at least begin to make some efforts in this direction. The group operated by preaching and agitation. Perhaps it was a somewhat idealistic approach, sometimes smack of religion, but, in any case, they were not allowed to turn around, and Peter, miraculously escaping from the police, managed to stay alive, unlike many...

After this incident, having lost contact with the others, Peter went to the other tactical extreme. He decided to use a concrete example, to show everyone from his own experience that on the surface one can again live, work, and love. You can finally switch to natural food again, you can run barefoot on wet grass again...

Recently, Peter worked part-time at the Botanical Museum and had access to ancient reserves of a wide variety of seeds and seedlings. He came up with the idea of ​​​​creating something like an experimental field, a nature reserve somewhere up there, where a variety of flowers, fruits, and vegetables would grow. Of course, the Underground Dwellers, as Peter now contemptuously called THEM, had an idea of ​​flora (but a very vague idea of ​​fauna). Many wealthy citizens had small greenhouses blooming at home, but they contained purely decorative, rather monotonous plants, mostly of very small sizes, because cramped conditions dictated their own rules.

And he dreamed of planting a beautiful orchard. For example, cherry. Or apple. Oh, how he wanted to try a large, juicy, red with yellow veins, sweet, crunchy apple!

He went the other way! He'll show them! He will certainly prove it to them! All is not lost yet! Justice must prevail, how could it be otherwise?!

He believed...

* * *

Peter was filled with happiness. It completely captured and absorbed him; all the parts of his body enthusiastically sang a song of praise to Mother Nature, Father Sun, Brother Wind, Sister Flowers. Freedom. That Freedom that makes your head spin, makes your blood foam and calls you to accomplish great feats. He wanted to take a full lungful of life-giving air and shout joyfully, whistle fervently, hoot, and fool around carefree. AND sing. Yes, sing! Himself! Maybe not so sublime, maybe not so beautiful, but sing! Fun and playful display simple harmony, invent it yourself simple words, and put ordinary ones into them, natural feelings!..

So that the Underground Dwellers say when they see him here, having heard him here? Has he gone crazy? That he's abnormal? That this is impossible? A mistake, someone's unfortunate mistake!..

They would say: “Kill him!” They would say: “Curse him!” They would say: “Forget him!”

A whole sea of ​​magnificent tulips swayed majestically from side to side, driven by gusts of a light breeze blowing from the high snow-capped mountains. Someday it will be truly endless! And will belong everyone!

How beautiful! Stretching his arms to the sides, he closed his eyes and threw back his face, exposing it to the warm rays of the gentle sun peeking out from behind the top.

Then a noise began to reach his ear, approaching from behind. He opened his eyes in surprise and wrinkled his forehead. The noise was getting closer. His heart skipped a beat and the hair on the back of his neck began to rise. He realized that the foreboding that had visited him the day before was nothing more than an intuitive prediction of the future that was now approaching. For long quiet months this premonition hung like a silent gun on the wall, and then it went off...

Peter turned sharply and saw a line of soldiers with machine guns at the ready, jumping out from behind the slope and rapidly approaching him. It was about fifty yards away when he woke up and started running as fast as he could. Just not to crush the flowers, one single thought was pounding in his brain.

He was in good shape, and the soldiers were somewhat behind. There were no screams or shots. Everything happened as if in a bad dream. Suddenly, right in front of his nose, a military man jumped out of the tulips and shouted, waving a pistol, his voice hoarse from effort:

Don `t move! In the name of the law, I order you to stop!

It turned out to be a young lieutenant. A mustache had just begun to emerge, and a pink blush covered his somewhat plump cheeks. Peter simply physically could not stop right away. He ran into the lieutenant, and they grappled and rolled head over heels on the ground, crushing the flowers and uprooting them.

I order... - the officer wheezed, trying to strangle Peter with one hand and free the second one, with a pistol, which the “criminal” successfully grabbed.

You can’t... - Peter jabbered. - You do not understand! You can not do it this way!..

The lieutenant suddenly howled, with the last of his strength he jerked and almost freed himself. Peter fell on top of him, frantically determining the location of the pistol, when a dull shot was heard. The lieutenant jerked and immediately went limp. Peter shuddered, pushed him away in fear, and jumped to his feet. Barrel lay on his back, arms outstretched, and looked into the clear sky with open, full of childish surprise and bewilderment, but already motionless blue eyes. There was a bloody stain spreading across his abdomen.

It was an accident, Peter thought, stunned. It's not me.

Screams reached his ears. The soldiers, already in a shapeless heap, were about thirty yards away. A burst of machine gun fire rang out, and it was as if a hammer had hit him on his left shoulder - Peter was spun around and thrown to the ground. The soldiers roared. Bullets whistled overhead again.

I won’t last long, but I won’t die alive, he decided. Sparks rained down from the torn blade and physiological fluid flowed out. Switching to emergency mode, he jumped to his feet and, ducking and weaving, ran away. The soldiers shouted angrily again and began to shoot continuously.

First, his right hand was torn off by twisting the hinges, then the bullets dug into his thigh, ricocheting off high-quality molybdenum steel. The servomechanisms hummed pitifully at the limit of their speed, the air compressor could not cope with its work, and problems appeared with the chassis. Then a couple of bullets struck the skull. Peter lost his hearing and there was interference in the video image. After this, a whole line entered the battery compartment, and the main engine began to malfunction. Acid and boiling machine oil dripped from the hole in my lower back. Small flames licked his chest, and thick, smoky smoke poured out from somewhere.

This is the end, Peter realized, he suddenly stopped and slowly turned to face the soldiers, having difficulty maintaining his balance. They also stood ten yards away, noisily catching their breath and not knowing what to do next. He smiled wryly. But I just wanted to give them flowers!.. To give the earth to Humanity...

Fire! - the corporal finally realized and was the first to press the trigger.

* * *

The air smelled strongly of burning, and black flakes of soot were still falling from the sky. Breathing through a handkerchief soaked in cologne, Colonel Mitsuko wandered gloomily through the ashes. Hastings did a good job, you can’t take that away from him, he noted. I just feel sorry for the guy. And I had already begun to place certain hopes on him... It seems that he grew up without a father, only his mother and little sister. No problem, Megapolis will pay them a monthly allowance. The state does not forget its heroes! The report will need to describe what happened in some more colorful way... Maybe they’ll even make a film about it. Multi-episode. It would be nice. For the edification of generations! For the glory of the City! Amen.

He approached the smoking remains of Peter, who had not yet been touched by anyone.

Damn Android! - Mitsuko said angrily and used the toe of his boot to pry his left hand, which was almost broken off from his body. - That’s where you want to go!

Peter's mechanical fingers slowly unclenched. The Colonel shuddered and took a step back. Then his attention was attracted by some light spot on the android’s burnt, black palm. The colonel stared at him, dumbfounded.

It was chamomile. An ordinary field chamomile grown by Peter - Public Enemy No. 1. It was almost unharmed, only its delicate petals were slightly crushed.

It emitted a bright, living light for many dozens of yards around, discordant with the surrounding black, bare, scorched space.

And she sang. She sang about Mother Nature, Father Sun, Brother Wind, Sister Flowers. She sang about endless green fields, lush meadows, a blue sky in which cheerful curly clouds float, a deep sea, high mountains, a fast, full-flowing river, where a large, strong fish with silvery scales glistening in the sun splashes. She sang about herds of red deer, a squirrel on the branch of a giant spreading oak tree, about a very little foolish bear cub that had just torn itself away from its mother’s breast. She sang about Man. About love and glory, duty and honor, life and death, wisdom and folly, evil and hatred, devotion and betrayal. She sang about him, Mitsuko. About Barrel. About St. Petersburg.

She didn't demand revenge. She was just singing.

I don’t pretend to be a new idea or execution, but it may be useful to someone. Actually, this device was made for my wife for her wedding anniversary, although you can quite easily repurpose it for other holidays.

Photo of the device

The electrical circuit diagram was found on the Internet and was safely lost there. That's why it won't happen. Yes, in principle, it itself is not needed because This device is a logical continuation of the first attempts to light LEDs. The idea itself was to please my wife and prove to her that it’s not in vain that I sit with a soldering iron in the evenings.


Signet in Sprint Layout

As you can see from the printed circuit board, there is nothing special in it: Atmega8-tqfp32, 100k rezuk, 0.1 uF conder, 22 smd LEDs and 22 smd rezuk.

Regarding LEDs and resistors, perhaps choose them so that they do not exceed the threshold voltage value of +5V. I took super bright ones at 3V, current 20 mA, respectively, the cutters were 120 ohms.

There is no connector for ISP programming in the usual sense. Stupid wiring. By the way, everything is signed there for convenience. I think it is not advisable to present the process of “LOOTING” the board and explaining the technology here, because those who can and know will understand, and those who do not, Google will help him.

Immediately soldered scarf.

And of course, as in the Russian joke about an airplane, “Now roughly handle it with a file.” I’m just learning about soldering, so don’t criticize too much, and in general this is one of my first projects. Regarding the code, I’m also learning so there will only be a firmware file without source codes (otherwise I think they’ll get stuck).

Yes, I almost forgot the video. I apologize for the quality - what was on hand. I guess that's all. Project file: . About Fuse - we leave it at the factory.

Source: we.easyelectronics.ru


This diagram is also often viewed: