Sewing electronics onto fabric

 

Power supply issue

Followed by my previous blog post, the first problem I need to solve here is to convert my 6v power supply to 5v. I connected a 5v regulator to my coin cell batteries, as you can see from the photos of the measurement from a multimeter below, I successfully converted the voltage from 6.32v to 3.86v.

How I connect the regulator
How I connect the regulator

 

However, I do have another problem after connecting my power supply to particle photon. My particle photon won’t light up properly as the status led will turn on red and I kept trying, it sometimes doesn’t even light up. I firstly think it may be the reason of wifi connections so I power my particle photon directly from usb cable, it then just worked fine. So I used my 3 used AA batteries (4.08V) supply instead to test whether it will work or not even I have done this way and I know it can work. At the same time, I measured the voltage, which reads 3.41V. I connected back to coin cell batteries and the multimeter read 2.23V. I guess the problem is the coin cell batteries supply somehow becomes very low after connecting to the board and I don’t know the reason. I will consider use the AA battery pack instead for my prototype.

Sewing electronics onto fabrics

I followed this online course and this tutorial to practice my sewing skills and be prepared for my prototype building.

Some very important knowledge I have learned is that to avoid short circuit when sewing with the conductive thread such as loose knots and loopy connections.

So firstly I made a 3v battery pouch for a 20mm coin cell battery after downloading the stencil and cut it out on the felt.

img_3417.jpg

IMG_3420
I did this wrong for the first time because the conductive fabric should go through back

 

 

IMG_3427

ezgif-3-60cdf73877.gif

Solved communication from Unity to Particle Photon

There are very few but pieces of resources on the internet to talk about this communication, but it’s actually in the same concept with net controlled LED and very easy. I created a button in unity, it will send a form to the HTTP server with the post request.

Screen Shot 2018-05-21 at 22.54.31.png

 

Useful Resources:

https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.Send.html

https://stackoverflow.com/questions/46003824/sending-http-requests-in-c-sharp-with-unity?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

https://stackoverflow.com/questions/48627680/unitywebrequest-post-to-php-not-work#new-answer

https://docs.particle.io/guide/getting-started/examples/core/

https://answers.unity.com/questions/239248/web-service-in-a-button-event-handler.html

Related Youtube tutorial 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s