Misc SonarPen DIY

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,780
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
389
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
389
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,376
Trophies
0
XP
2,780
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,376
Trophies
0
XP
2,780
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
51
Location
California
XP
1,864
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,401
Trophies
4
Location
Space
XP
14,048
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
588
Trophies
1
XP
1,993
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,376
Trophies
0
XP
2,780
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
389
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.
 

Imancol

Otak Productions
OP
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,780
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,376
Trophies
0
XP
2,780
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
389
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
  • RedColoredStars @ RedColoredStars:
    Sorry you're not good with Windows Sylvester. lol
  • RedColoredStars @ RedColoredStars:
    Because co-pilot doesnt even show up on my pc. Not in the taskbar, not in the start menu search, and the option in settings to turn it on and off in the taskbar is not even displayed.
  • SylverReZ @ SylverReZ:
    Well, I complain about Microsoft all the time. You seem to enjoy it, no offense. If you like using Windows, that's fine by me.
    +1
  • SylverReZ @ SylverReZ:
    Everything is my own opinions.
  • RedColoredStars @ RedColoredStars:
    Liking Windows or not is an opinion. Yes.
  • RedColoredStars @ RedColoredStars:
    Being able to disable copilot is not an opinion. lol. its a fact that it can be disabled.
  • RedColoredStars @ RedColoredStars:
    Yet you just laugh about it when I tell you, like Im lying
  • RedColoredStars @ RedColoredStars:
    People can dislike Windows all they want. But I will call out the over-exaggerations, misconceptions, half truths, and lies about it.
    +2
  • RedColoredStars @ RedColoredStars:
    Tired of the entire "BUT BUT BUT WINDOWZ SPYWARE!!!" thing too, when the same people give out tons of their personal info to plenty of other companies but say nothing about it.
    +2
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Companies do the exact same thing with other companies as well, so it's not just Microsoft. There are 3rd-parties like 'data brokers'.
  • RedColoredStars @ RedColoredStars:
    I'm 52 years old and one of my jobs in life was marketing research. Im well aware. I've been online for around 30 years. Everyone and their grandmother already has my personal information. One more having my email address isn't ruining my life or even effecting me in any way whatsoever.
    +1
  • RedColoredStars @ RedColoredStars:
    In fact. I freely give info. Stuff like gasoline apps, to save $, grocery apps, lots of cash back from rakuten, etc. etc.
    +1
  • RedColoredStars @ RedColoredStars:
    $300 back last year from Rakuten for allowing them to track my purchase. I'll take the money for them to know I bought a bunch of stuff for my cat and some video games. lol
  • K3Nv2 @ K3Nv2:
    No matter what you sign up for your info is out there
    +1
  • RedColoredStars @ RedColoredStars:
    Thats what im saying
  • SylverReZ @ SylverReZ:
    @K3Nv2, Exactly.
  • RedColoredStars @ RedColoredStars:
    And for people to say things like "But I use all fake info". No, they don't. lol. They use fake info for all of their banking and online shopping? Fake shipping address, fake payment info? lol
  • RedColoredStars @ RedColoredStars:
    Fake name, address and payment info for internet service, etc? lol. Ill say it again. Everyone freaks out about OMG WINDOWS!! But crickets on anything else they do.
  • RedColoredStars @ RedColoredStars:
    Other windows stuff people complain about hypocritically too. Like "But but but Windows bundle junk apps!!!!" Yeah?? So do many Linux distributions. Dont like it? Use one without them. Same with windows. Either find a pre-made version without the bundled stuff, or very easily make your own installer with what you want and do not want.
    +1
  • console @ console:
    I agree with all above! Microsoft made a biggest mess with us and everyone! I wish Microsoft company should be fired then lost it. LOL :rofl2:
    +1
  • RedColoredStars @ RedColoredStars:
    I dont like the stuff added either. I have zero use for copilot or recall. But I also just simply disable it and move on.
    +2
  • RedColoredStars @ RedColoredStars:
    Always disabled dumb cortana from day 1 too.
    +2
  • K3Nv2 @ K3Nv2:
    When you're a billion dollar company even upper management is just peons to the company
    +1
  • RedColoredStars @ RedColoredStars:
    MS is funny. Insider programs for both Windows and Xbox, where they listen to absolutely none of the insider feedback and just do what the fuck they want. lolol
    +1
  • K3Nv2 @ K3Nv2:
    Xbox idea to make midrange consoles saved them this Gen and buying your wife
    K3Nv2 @ K3Nv2: Xbox idea to make midrange consoles saved them this Gen and buying your wife