Although Electric Paint by Bare Conductive is water-soluble, what happens to it in a baby or cooking oil? To find out, I used a small syringe to transfer (some) body oil into a small plastic vial and remove the screw cap with a knife.
One or two drops of Electric Paint added. As it turned out, the individual splashes have merged into a mass.
Two toothpick long rods made of stainless steel, I have provided in the middle with heat shrink tube, so that they do not accidentally insert into the opening close the contact (this is supposed to eventually take over the conductive color).
The whole thing sealed with hot-melt adhesive, so that only leaks oil. The bar ends provided with a luster terminal, where I lead the two Wires to the Arduino.
> One Tilt Sensor cable to Pin 12: const int tiltPin = 12;
> Second Tilt Sensor cable to GND.
If the contact is open, the internal Arduino LED flashes on port 13. If the paint compound closes the two contacts, the LED stops flashing.
By the way, instead of the paint compound, a metal ball from a bicycle wheel bearing can also be used. If you wiggle on a tilt sensor, you hear the bullet hitting the wall in its interior.
On the website there is a nice light bulb example: as soon as the light bulb is on the side, the contacts of the light bulb are not closed anymore: it goes out. If you set it upright, the contacts get into the Electric Paint mass and are closed: it turns on.
I recommend this video to the german reader.
I'll go offline for this year and wish everyone a happy new year.