» Electronics » Arduino »Smart backpack on Arduino

Smart backpack on Arduino

Smart backpack on Arduino

Schoolchildren, students, tourists, and even some office workers and workers carry backpacks. The backpack allows you to evenly distribute the carried load. But improper carrying a backpack, overload can cause serious health problems. The main problems can occur when: overload and incorrect adjustment of the belts, wearing a backpack for a long time, wearing a backpack on one shoulder, improper posture when wearing a backpack. How to wear a backpack so that there is no feeling of discomfort, pain and even spinal injury? The author decided to answer this question using modern technology.

The device that he made, solves the following tasks:
- calculates safe bearing weight and notifies if it is exceeded;
-balanced load distribution on the shoulders;
- warns of an incorrect position;
-notifies if the backpack filling volume is exceeded;

In addition, all data can be further collected for further analysis. In the manufacture of the author laid in the amount of about $ 40.
Tools and materials:

Sensitive Force resistors;
Accelerometer ADXL345 ();
-Arduino Nano ();
-Bluetooth module HC-06 ();
microcontroller ESP8266 ();
-buzzer;
-wire;

Step One: Sensor Placement
For his device, the author needed three sensors. He placed two of them on the straps. First you need to put on your backpack and adjust the length of the belts. Next, determine the place on the strap where the maximum pressure will be. It is necessary to determine such a place as accurately as possible, since an error of 2 cm will already significantly affect the result. Approximately this point is located in front 1 cm from the upper part of the shoulder. Optionally, both sensors must be equally spaced, as the code includes a calibration algorithm.


Another sensor must be placed on the back, at the point of maximum pressure. This sensor will track the filling volume of the backpack. If the volume of the backpack is exceeded, the load on the back will increase.

Step two: wires
Further, the author solders the wires to the contacts of the sensors. Wires pulls inside a backpack.


Step Three: Buzzer
Connects the buzzer, through a 100 ohm resistor, to Arduino 9 pin.

Step Four: Connect Modules
Now you need to connect the modules. Connects Vcc (plus) of all modules to 5V, and Gnd (minus) to minus Arduino.
It then connects the SCL and SDA of the ADXL345 to similar Arduino boards. Connects the ESP8266. TX to 3, and RX to pin 2 of the Arduino board.Further, after downloading the code, it connects the HC-06 to standard RX and TX pins.

Step Four: Case
In order for the device to be as compact as possible, assembled all this in a case from a guitar tuner.




Step Five: Code Files
Uploads code files to
and to
If necessary, you can change the contacts that are used to connect the components, the author defined them at the beginning of the code. It is also necessary to register the WiFi password on the ESP8266 module, as on home network.

Step six: connecting sensors to the module
Each sensor has two outputs. One output connects to a 5V network. The remaining ends: the left sensor is A0, the right sensor is A1, the central sensor is A2. For accuracy of measurement between Gnd and A0, A1, A2 connects a 22k resistor.
Now you can put the device in a backpack and do the software.
Step seven: application
For the device to work, you need to download the application from the store. After installation, import. Turn on the device and connect to the HC-06. Now you can start the interface.

Let's analyze the notation for the interface.
-Buzz-on and off buzzer;
-calibrate-calibration of sensors before use;
-set weight-sets the user's weight (when you enter the weight, the device automatically calculates and shows the safe weight of the backpack);
-IP-to find the device address on the network (use after connecting to Wi-Fi. Using this address you can check the status of the device via the Internet);

After calibration, the device will automatically save the threshold values ​​in the EEPROM (memory) and notify you that the backpack is not used correctly with the buzzer.
- about belt imbalance - low-frequency tone (300 Hz)
- about overweight - mid-frequency tone (1400 Hz)
- about the wrong angle of the body - high-frequency tone (2000Hz)

Also, the testimony can be checked via the Internet, for example, if the device is installed on your child’s backpack, and you are not at home. To do this, enter the IP address in the address bar and the screen will display the values ​​that are read by the device’s sensors. You can also turn off the buzzer online.


And a short video about the operation of the device.
10
7.8
8.6

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
23 commentary
Aren't they small? In the photo they are very long, and this one is only 6cm
Author
Look at here.
Hello! Please tell me where to get these resistors. We just can’t find it. How long should they be?
Quote: pogranec
in order not to startle, you need to have healthy nerves.

A better head.
Author
While I was not thrown a bunch of complaints and try to explain to me and to homemade.
1. Abaldet - if the belts are adjusted correctly and the correct loading will not float anything. Do you have a car with a seat belt alarm? How much you will not fidget there in the seat, it will still work.
2 Abaldeth The question is posed correctly. It is because of the excess volume of the backpack that the sensor will be triggered. Think with your head. By loading the portfolio with sledgehammers, the sensor does not work, the force acts down. Stuffing it with hay, it will bend, puff, and the sensor located on the back will work.
3 abaldet - there is nothing difficult to distinguish the tone of the buzzer.
Further there is nothing complicated to disable the buzzer. If someone did not notice, then in addition to Wi-Fi there is bluetooth there. I think everyone can connect? Further about the text - it’s not always correct to translate all the more so such technically complex text, in this case the only thing I did not write is the name of the sensors (but there is a description, a photo and it’s clear from the work what kind of sensor it is).But in principle, I can describe pistols and boats, no difficulty, rated a thousand. Next I’ll answer Valery. You are the most objective commentator, realistically looking at life. Such a backpack can be used for information collection and analysis. Children are different, everyone's health is different, and no one canceled sanitary standards and scoliosis. What seems to you to be useless to others is a useful device.
This is not for you. About what I understand. as if so carefully so as not to offend. Ivan, I understand that you are a techie to the bone, but life is not like that. I will give an example. At an official auto dealer, if a part fails, then the entire assembly changes, according to the regulations. And who, in his right mind, while repairing a machine, instead of replacing a ball, will he completely change the lever? This is about those standards. It is not possible in ordinary life to follow all the rules. Now about the delirium. It was written to the deeds privately in response to your flattering letter, but if you want I can betray both of them in public. And as for the article, I already wrote that your attempt to write an article (so to speak to join the ranks of co-authors) was unsuccessful. So I wrote, I am writing and will write. It is necessary for someone if Ivan does not want and you can’t.
but I almost forgot
you still have to “startle” every time these sounds appear,

in order not to startle, you need to have healthy nerves.
Now to the admin - you can ban me. but please do not delete koment until I read everything to whom it is addressed.
Quote: To Delusam
It turns out everything can be turned off.

Yeah, easy and simple:
Also possible online disable buzzer.
in almost one motion: went to the Internet, typed an IP address in the address bar, added / buzz = OFF.
Nothing is known about other options to disable.
pogranec
"You can discuss anything, but discussand not nonsense to write. As for squeaking, read the article carefully, buzzer can be disabled. And not an extra book ,"
So, I’m talking nonsense. I don’t know how to read, it turns out everything can be turned off. And ban me.
("Everything is already stolen before us")
xaxa
To the author of the article:
I respect your work, and I understand that looking for "prototypes" is becoming increasingly difficult, but ....
... discarding emotions, please answer the question that Delosius asked:

The author of the article is not obliged to answer this question; he only acquainted us with the home-made work of a foreign comrade. Delayusam asked him all the members of the site.
And enough for the "backpack" to wash the bones - consider this a warning

Posted by admin in a chat to Delausam ...

Since "such a booze has gone," I’ll write what I wrote about this invention:
I would like to advise the author of this “device” (not to be confused with the author of the article) to make “Smart cowards” with sensors that can determine when the owner wants cf ** b, which will immediately turn on the siren and flasher! help ... And so that "until the end of the process" it would be impossible to turn off either the flasher or the siren! And then he himself may not notice this and make a mess! shok
To the author of the article:
I respect your work, and I understand that looking for "prototypes" is becoming increasingly difficult, but ....
... discarding emotions, please answer the question that Delosius asked:
Is there anyone here who liked it and he wants to make such a backpack for himself?

Only real! Objectively, please!
I, as you know, after all, also with him, was "clashed", but in this particular case I also want to ask a similar question ...
Let's try to be objective!
... misinterpretations of terms and translation errors appear. For the reason that there, the same word has several meanings. To choose the right one, you need to know this.
That's it: technical terms do not always coincide with what auto-translators designed for averaging offer. The right choice can be made only by understanding, at least approximately, the essence of the translated. And sometimes the Russian text is distorted during retelling or significant details are not communicated.

And so the challenge is thrown.Not for the sake of ridiculous insults to the author, for the sake of the truth and usefulness of this invention. I apologize to the site participants, the truth is more expensive. To start, I will comment on my "Abaldet."
"1Abserte." Determine the pressure point on the strap with an error of 2 cm, this is what to make a mark on board a floating boat, to mark the place where you dropped an object into the water. This point is floating and will depend on many factors; from clothes, backpack loading, comfort socks (can move the straps) ....
"Abaldet 2"
Not only is the question posed incorrectly, claiming that this point will depend on the volume of the backpack, so it (fulcrum) may change with each content tab. Also floating.
"Abaldet 3"
"-
Not only do you have to learn to determine what tone and what it signals to you, you still have to “startle” each time these sounds appear, determining what is wrong. And it could be; the straps straightened the backpack, shook the backpack and misaligned, took the wrong posture (leaned more than CLOSE).
And what sound should sound if two or three sensors work right away?
And so imagine the practical application of this "miracle."
In the morning you fill up your backpack, and it grunts all the time (for example, being overweight, although the rest of the sensors are as if not at work (and somehow have to react too), leaving some of the items at home. You go on a “trip.” you buy a certain object, you cannot put it in a backpack, there you go to the eyeballs. You carry the object in your hands and then your phone rings, your hands are busy, how you answer the call, and there your offspring overloaded the backpack, took an extra primer I’ll have to carry it in my hands, and then a new call, I’ve bent over not so, it will ruin my posture. for a long time, of course, the skeptic will say, can all this be turned off, but then what is the point?
How long will your patience last? Will you be completely calm from the feeling of having such a backpack?
And this is again a cursory discussion of the problem of the backpack and its owners.
And further, i discuss topic presented by the co-author, not his personality. Although this is often connected, in response I hear personal insults.
I CONDEMN topics presented by the co-authors in which they are poorly understood themselves (and more often than not in the “tooth”), for this reason incorrect interpretations of terms and translation errors appear. For the reason that there, the same word has several meanings. To choose the right one, you need to know this. And with that they have strains.
So judge for yourself what’s what.
Weight depends on the volume very approximately: one thing is a sintepon blanket, the other is dumbbells. And the author says about the power: "Therefore we have to measure that force to make sure that it’s within the safe limit. "." we have to measure that force "-" we must measure this force. "
Author
Of course the weight, or more precisely the force (or pressure something like that) applied to it, depending on the volume of filling. At least as I understand it. I’ll try to ask the author a question if I remember the password from my Google.
pogranec,
You yourself confirm that the sensor determines the excess of weight, not volume.
Author
Maybe, but he writes
This sensor is used to determine if the backpack is overloaded. When overloaded, the form will be like a balloon and makes more effort on the ass. This can cause serious long-term back pain.
You can again put three sledgehammers and the backpack will not be like a "balloon", but there will be a lot of weight.
Author
It's just that I usually look for analogues in Russian. I didn’t find them or didn’t look for them correctly.
Quote: pogranec
power resistors, right?

Not. If literally - force measuring resistors, and if technically correct - strain gages.
But seriously, you did not understand that it is not volume that is being tracked, but a force proportional to weight. Weight and volume, for your information, are slightly different things.
Author
power resistors, right?
Author
Well, you don’t blame the pooh for stuffing helium into a backpack. But seriously, it can only be verified empirically. Because it matters (in this case), not weight, but shape. See how the kids go to school. They stuffed so many books there that the backpack becomes semicircular. And because of this, according to the author, the pressure force on the sensor changes. But then again, not all backpacks will work.
yes And I liked the description: -
". "
Abaldet -1 !!!
"."
Abaldet 2
""
Abaldet -3
And Abaldet to infinity ...... swoon
"
Filling question: - "After what time does the holder of such a backpack get into foolishness?"

And this, as always, is vain, without a "deepening."
Is there anyone here who liked it and he wants to make such a backpack for himself?
Force Sensors
Try right translate.
This sensor will track the filling volume of the backpack.
It is unclear how to track the volume of the backpack.
If the volume of the backpack is exceeded, the load on the back will increase.
Absolutely not necessary: ​​if you fill the backpack with a balloon with helium, the volume will increase, and the load on the back will decrease. :)

We advise you to read:

Hand it for the smartphone ...