Wireless 3D Drawing Stylus

by EpicJefferson in Circuits > Arduino

18304 Views, 33 Favorites, 0 Comments

Wireless 3D Drawing Stylus

Wireless Stylus for 3D Drawing
IMAG3303.jpg

Let's make a wireless 3D drawing stylus!

This project was a collaboration with Madeline Gannon.

This stylus can be used to trigger object tracking on our motion capture system. Using a capacitive sensing circuit, we can send a message via Virtual Serial to Processing (or any other software that has access to serial) to begin recording the Stylus' position when the tip comes in contact with the skin.

Additionally, we can use a button to tell the system to trigger the recording without needing to touch the skin.

To track the stylus, you need a motion capture system. In our case it's an Optitrack.

Download the Arduino and Processing code, we'll use this later.

I've also included a copy of our BT Stylus_v2.stl if you want to 3D print it.

Ingredients

IMAG3259.jpg
IMAG3276.jpg

Here's the list:

  1. Lightblue Bean by Punchthrough Design
  2. 3.7 V, 150 mah lipo battery (you can also use a coin cell, but this will last longer)
  3. a random metal tip
  4. a metal strip
  5. momentary push button
  6. switch
  7. 1k ohm resistor
  8. 1M ohm resistor
  9. various soldering wires (solid core)

Capacitive Circuit: Tip

IMAG3261.jpg
IMAG3265.jpg
IMAG3263.jpg
IMAG3270.jpg
IMAG3269.jpg

Solder the 1M ohm resistor to pins 0 and 1.

Then solder the a wire between the resistor and pin 1.

Power

IMAG3273.jpg
IMAG3274.jpg

To get some more life out of the circuit, we're gonna add a 3.7 V 150mah Lipo battery.

To do this we need to solder some wires to GND and BATT pins.

Capacitive Circuit: Ground

IMAG3277.jpg
IMAG3289.jpg

Now let's add the ground for our capacitive circuit.

  1. Take the metal strip and solder it to the other GND on the Bean.
  2. Then, solder the 1k ohm resistor from the metal strip to pin 5.

Add Switch

IMAG3292.jpg

Add the switch. Adding the switch is good for battery life :))

Add Momentary Push Button

IMAG3297.jpg
IMAG3298.jpg
IMAG3299.jpg

Let's add a nice switch to the circuit.

  1. Solder one leg to the VCC to give it power.
  2. Solder the GND leg between the 1k ohm resistor and pin 5 (shown here as the yellow wire).

*Make sure you're using the correct legs on the switch, some switches have a NC leg (normally closed) and a NO leg (normally open), we want to use NC (normally closed). The middle leg is usually common (ground).

Add Metal Tip and Battery and Viola!!

IMAG3300.jpg
IMAG3303.jpg
IMAG3191.jpg

  1. Go to https://punchthrough.com/bean/guides/getting-start...
  2. Download the Bean Loader and upload our arduino sketch.
  3. Get https://processing.org/
  4. Run our sketch
  5. Test your circuit!!