» From sites » Specialist »Toothbrush -" snitch "

Toothbrush - "snitch"




Precisely, except as a “snitch” you cannot call such a brush. The brush will track whether you brushed your teeth twice a day and for at least 2 minutes. If you are too lazy, then this will become known to all Twitter.

Tools and materials:
-ESP8266;
-Vibration sensor;
-RGB-LED -2 pcs;
-3.7 V lithium battery;
-Wire;
-Soldering accessories;
-Nippers;
-Knife;
-Metal ruler;
-Glue gun;
-Circuit board;
-Multimeter;
-Tweezers;
-3D printer;


Step One: Board
The circuit will be placed in a small case, so you need to minimize its size.
The wizard begins by mounting the ESP8266 on a breadboard. Then solder the legs of one LED to the legs of the second.
Connects a 5V Neopixel wire to the pin labeled BAT.
Connects the GND Neopixel wire to the pin labeled GND.
Connect the Din (INPUT) Neopixel wire to pin 15.
Mounts a vibration sensor. Solder the thicker leg of the vibration sensor to A0. Connect the thin leg of the vibration sensor to the BAT pin.

Toothbrush -





Step Two: Programming
You must first register an account with Adafruit IO and IFTTT. After registration, go to and create a new channel called "analog". In the future, this channel will be registered in the code Arduino. Logically, an applet will be created in which the action takes place (vibration is perceived by the sensor). This channel will be connected to the Arduino Huzzah board to monitor the status (how many times, how many minutes the vibration sensor was triggered). When the purge state is 0, the Arduino Huzzah will send a message to the feed. Information in this form will then be used in the applet to launch a tweet.

In the IFTTT “create new Applet” section, search for the Adafruit service after clicking “This,” and then select “Monitor a feed on Adafruit IO.” Then select the “Analog” channel and enter equal to 1. Then click “Create Trigger”.

Go to the "This" section. Find twitter and select "Post a tweet with image". You will be prompted to connect your account to the service. In the future, you can select the image and the record that will be published.

In order for the code to work, you need to download the libraries, according to the instructions, to the ESP8266.
The code allows you to measure vibration from the vibration sensor and perform the necessary actions. The code itself consists of about 3 parts.
In the cycle section, the sensor value is read from pin A0 whether the threshold value is exceeded or not. Then periodically, during the set interval of 12 hours, a check is made to see if the counter has a value that indicates cleaning for 2 minutes. If this does not happen, then the corresponding data is sent to Adafruit IO.After receiving a message from Adafruit, the color of the LED changes.










Step Three: 3Dmodel
The final step in manufacturing is the modeling and printing of the toothbrush body. When designing, you need to consider the dimensions of the board, the dimensions of the base toothbrush and the moisture resistance of the case.




Now everything needs to be assembled into the case and, in the future.


And do not forget to brush your teeth. Otherwise, your toothbrush "tapping" on you on Twitter)))
6.5
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
4 commentary
Guest Nikolay
reminders on the phone canceled?
trick lehko
who said that CLEANING needs TWO minutes? Advertising? So her dentists and pasta sellers filmed.

For those who do not know! Do not ruin your enamel.
A pair of movements along and across the tooth is enough! (How to polish cars and furniture seen?)
And yes, it takes two minutes for PASTA to envelop its teeth, saturate with calcium and strengthen enamel at the same time!
pogranec
in a more normal case, a lazy child brushing his teeth
Well, I don’t think that this is a good method of raising your child, and he will quickly figure out how to deceive a "snitch"!
Author
The device itself is damp, but the idea is cool. For example, such a brush, in a more normal case, a lazy child should brush his teeth. And not necessarily on Twitter. A message on the phone or a running line on the computer))) Yes, and you can adult lazy person.
And how convenient is it to hold in your hand, and even more so to manipulate this contraption?
When designing, you need to consider the dimensions of the board, the dimensions of the base toothbrush and housing moisture resistance.
But about the moisture resistance of the case, with loads at the junction of the case - the brush, I would like more details!

We advise you to read:

Hand it for the smartphone ...