Misc SonarPen DIY

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
Since ColorsLive has released this tool for the Nintendo Switch, I am curious how their Stylus called SonarPen work. These Stylus are connected by the audio jack and in a connected earphone it emits a submerge that acts as a kind of vibration that detects the pressure with which it is made on the screen.

I have the theory that if it is less than the vibration it generates with the frequency it emits, it will detect that a pressure is being exerted on the screen and it will draw on the screen accompanied by some object that simulates touching the touch of the Nintendo Switch.

Could you make a homemade Sensor or is it something very sophisticated?


Upgrade:

In this video you can see the components you are using.

colors_sonarpen_10colors.png




1632792620587.png

1632792654976.png

1632792684156.png

1632792727195.png

1632792758575.png



Searching the internet, the main components are:
Male audio jack with 4-pin cable.
board for button and microphone (you can use the one for a hands-free)
Pressure Sensor (Fsr 402)

You can get all of these components (excluding any recyclable frame styling) for less than $ 10 or $ 20, compared to Colorful's SensorPen over $ 40.

I would like to continue using this thread for the construction of a Homemade SonarPen.
 
Last edited by Imancol,

Anderxale

Well-Known Member
Member
Joined
Jul 10, 2021
Messages
404
Trophies
0
Age
40
XP
388
Country
United States
I doubt it's any different from any stylus that needs a ground to simulate a human grounding by touch.

Stylus that require ground connect the tip of the pen to the device chassis. This is also the negative signal in the headphones.

Stylus just focuses the grounding simulate touch to a point.

So basically any headphones cable will work, touching the negative wire to the screen.

They advertise pressure sensitivity, could be a built in potentiometer hooked to the tip changing the grounding negative voltage?
 
Last edited by Anderxale,
  • Like
Reactions: jeffyTheHomebrewer

Blaze163

The White Phoenix's purifying flame.
Member
Joined
Nov 19, 2008
Messages
3,932
Trophies
1
Age
36
Location
Coventry, UK
XP
2,250
Country
I have this game and can confirm the pen is pretty great. Responds well to various levels of pressure, it's accurate as long as the touch screen is clean. I have no idea how it works, but it does. Game's a little lacking in features but with a touch of imagination you can make some good stuff. Well, everyone else can anyway. In my case you can make out I was trying to paint a cat, that's about it though. Nobody's gonna be hanging that on the wall any time soon.
 

Anderxale

Well-Known Member
Member
Joined
Jul 10, 2021
Messages
404
Trophies
0
Age
40
XP
388
Country
United States
Nevermind, is supposedly sonar. A speaker hooked to the tip is feeding a mic without interruption means no pressure. The more the audio from the speaker is dampened, the less audio picked up from the mic, the more pressure the app assumes.

This isn't recreatable at home without a precise ohm speaker and mic.
 
  • Like
Reactions: Imancol

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
Nevermind, is supposedly sonar. A speaker hooked to the tip is feeding a mic without interruption means no pressure. The more the audio from the speaker is dampened, the less audio picked up from the mic, the more pressure the app assumes.

This isn't recreatable at home without a precise ohm speaker and mic.
Wait, but now that I remember, Nintendo Switch does not support microphone or does not have that function built into the Jack. Although the SonarPen shows that it has 4 connectors (Audio L, R and Mic or function button)
 

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
I have this game and can confirm the pen is pretty great. Responds well to various levels of pressure, it's accurate as long as the touch screen is clean. I have no idea how it works, but it does. Game's a little lacking in features but with a touch of imagination you can make some good stuff. Well, everyone else can anyway. In my case you can make out I was trying to paint a cat, that's about it though. Nobody's gonna be hanging that on the wall any time soon.
Would you dare to take photos of the internal components? I'd like to see what sound sensor you use for pressure.
 

6adget

GBAtemp's official atheist
Member
Joined
Sep 12, 2016
Messages
234
Trophies
0
Age
50
Location
California
XP
1,842
Country
United States
I wish i could try this before buying the pen. although it's not expensive at all. My pen for my bosto kingtee took a shit today. its $100 for a new one. I know this can't get close to being a replacement, but it would be nice to be able to kick back on the couch and get some of my rough sketches out of the way while drinking my coffee in the mornings. especially if we could get krita ported to the switch. one can always dream, right? has anyone tried this pen and colors yet? is it any good? can u export your work in a layer friendly format?
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,246
Trophies
4
Location
Space
XP
13,798
Country
Norway
Wait, but now that I remember, Nintendo Switch does not support microphone or does not have that function built into the Jack. Although the SonarPen shows that it has 4 connectors (Audio L, R and Mic or function button)
It does, Fortnite uses it. Nintendo just chose not to allow voice chat in anything else for whatever reason.
 

ciaomao

Well-Known Dude
Member
Joined
Feb 20, 2014
Messages
569
Trophies
1
XP
1,909
Country
Albania
I have to test that. Normally, the easiest way is to detect a "pressure" on a PCAP if you evaluate the signal width. This often works by firmware and does not require additional mechanics. For example, I am working here with controllers that can distinguish 8 bits. I'm curious to what extent this pen works better!
 

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
IbisPaint supports SonapPen, so you can test it there. I tried an electric foot that I had on hand and it seems that it works. But a pressure sensor is recommended. It could be recycled from old PS2 and Original Xbox controllers. (Rubber and flex)
 
  • Like
Reactions: jeffyTheHomebrewer

Anderxale

Well-Known Member
Member
Joined
Jul 10, 2021
Messages
404
Trophies
0
Age
40
XP
388
Country
United States
capacitive tip
https://a.aliexpress.com/_mLhsf50

pressure sensor
https://a.aliexpress.com/_mPzU6GS

I will buy these components and make a homemade Sensorpen. I could use a concealer as a mold
https://a.aliexpress.com/_mLVAVZg

Nice, I'm excited to learn if it works or not and what connections you need to use on the 4pin 1/8 in jack.

Has anyone tried if a simple light resister between L-R audio channels and Mic channel work (for a constant "pressure" simulation)? I'm mean if you can figure out the pins before investing in the parts...

I'll try it on my V1 of I can get a copy of the game.
 

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,901
Country
United States
I really, really can't tell if this is more "hobby project" or "I'm too cheap to buy the real one" and I just find that hilarious. Best of luck, guys.
 
  • Like
Reactions: OkazakiTheOtaku

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
I really, really can't tell if this is more "hobby project" or "I'm too cheap to buy the real one" and I just find that hilarious. Best of luck, guys.
I find your comment too inappropriate. You are a clear example of the culture of cancellation. Think what you want for me, but if you don't have anything good to say, look for other topics of your interest.
 

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
Nice, I'm excited to learn if it works or not and what connections you need to use on the 4pin 1/8 in jack.

Has anyone tried if a simple light resister between L-R audio channels and Mic channel work (for a constant "pressure" simulation)? I'm mean if you can figure out the pins before investing in the parts...

I'll try it on my V1 of I can get a copy of the game.
Use a test piezoelectric. A headphone pin and microphone pin are connected.

 
Last edited by Imancol,

Anderxale

Well-Known Member
Member
Joined
Jul 10, 2021
Messages
404
Trophies
0
Age
40
XP
388
Country
United States
Use a test piezoelectric. A headphone pin and microphone pin are connected.

Definitely, or a potentiometer, with a gear and rubber or a spring.

You beat me to it hahaha! I'm looking for one of my crappy headphones with a mic on it for a 4 pin headphones so that I could test a volume nob. My switch is ready though.



Sent from my SM-G998U1 using Tapatalk
 
  • Like
Reactions: jeffyTheHomebrewer

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: :rofl2: +1