Hack Chip. Let’s get physical. (part 5 of /n)

So the other day while working on the Hack Chip I accidentally bricked it. Thanks to @nextthingco’s web flashing , I could factory restore the CHIP to it original and start over.

I was glad I was doing these write-ups cause they allowed me to get back to where I was pretty smoothly. (I have updated some of the older posts)

Also I ended up cleaning the back side of the Hack Chip cause with everything kinda put together as I went it became somewhat of a zombie-frankenstein creation.

I ended up having to rebuild the casing for the ubertooth one cause I modded the original case to much it became unusable. Besides I never really liked the case cause of the 3D printing looks. Yea not a big fan yet of 3D printing. Many have asked if I plan to 3D print an original case for the Hack Chip , and honestly I’m not interested in it yet. I feel it kinda takes away from the Hack Chip, in the sense that if I were to build an original case for it, why am I using it? I could easily pick a better single-board-pc as the core. Besides the fact that I don’t own a 3D printer. My goal is to keep as much of the Hack Chip stock as I can so that anybody could build one, as long you had some basic tools. (drill,saw,screw drivers etc)

So let’s get physical!

(if you don’t get the reference find somebody born in the 70’s)

Anyway I was going through my box of tech gadgets I have aquired over the years and found an old endoscope I just picked up giggles back in the day. It was sold as an endoscope for Android and it only costed $15 or so.

I kinda played around for it once or twice and it disappeared into the box.

I was bored and thought , “Hm…maybe I can get this to work.” Now the endoscope comes with a micro-usb connector, so I had to grab one of the micro-to-TypeA-plug converters. (I have a bag of usb connectors )

I plugged it into the Hack Chip and to my suprise it got recognized right away..

So that was easy. Now how do I get to view the camera ? There are numerous softwares that would take the input of the camera (endoscope) and record it to a file. I wanted to use the Hack Chip as a pure viewer of the camera feed.

So I decided to use mplayer (sudo apt-get install mplayer)

Now mplayer can take the feed of the camera and display it from the command line and take in some parameters.

So I launched it as

mplayer tv:///dev/video0 -fps 12

Since I’m not recording nor do I need a high quality video feed, I dropped the framerate to 12 frames /sec.

And we now have a Hack Chip Scope. I assume this would be the same for many webcams that work on a linux platform.

Now that I knew the Pocket Chip OS had multimedia support I dug up a mini-microphone I had and plugged it in.

Once again, no problem with the OS recognizing the device.

And we now have recording capabilities.

For recording I decided to use sox (sudo apt-get install sox ) You could use arecord which comes naturally with the OS but using sox gives me a capability perfect for physical recon ops.

Now we need to find out which device to use for the recording. so I issued:

chip@$arecord -l

this gave me the hw id I needed to use with sox. (i.e.:card 1)

now sox has a automatic silence trim capability , meaning that it will record a clip when the microphone detects a sound(noise) .

sox silence usage: [ -l ] above_periods [ duration threshold[d|%] ] [ below_periods duration threshold[d|%] ]

So issuing the command would be :

chip@$sox -t alsa hw:1 test.wav silence 1 0.1 1% 1 5.0 1% : newfile : restart

this will generate files everytime a sound is heard and start a new file after a silence has been detected. The files have sequential filenames.

So now the Hack Chip has also physical world recon capabilities.

Next Episode: Grease Lightning ! (no not really)



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store