2014-12-16

OpenBCI

After doing some initial ECG experiments with a simple Arduino shield,
I got my OpenBCI from Kickstarter just in time for 31C3.
For the time being, I'll use this blog posting to collect some links and notes until I get things sorted out.
Much of the OpenBCI documentation on the official site and source code repository is still unwritten,
so I need to do a lot of hunting, gathering, guessing and experimenting.

Results so far:
  • I see clear signals with lots of SNR for muscle movements and eye movement
  • The OpenBCI_GUI app has way too little in the ways of signal analysis.
  • I'm having trouble using my Olimex EEG designs in BrainBay with the OpenBCI


Getting started
People/Talks/Blogs

SW

HW

Headware

2014-11-26

ECG/EOG/EEG experiments

I'm a backer of OpenBCI  but they still haven't delivered.
(Other people have, 3 days ago)
So I just ordered myself a "Shield-EKG-EMG" from Watterott.

I managed to get my heatbeat.
(That's the easiest you can do.)
Next step shall be tests of Electro Oculography (electric eye tracking).








Just some notes for myself:



EOG

Signal is in the range of 1mV peak to peak .
Eye-blinking artifact is very strong.
50Hz line noise must be removed (of cause). (notch fiter)
low-frequency cutoff to 0.02 Hz
high-frequency cutoff 50Hz


2014-11-21

Accuracy tesing 3D scanner



I want to know how well the Sense 3D scanner together with the Skanect software (since the Sense software only works on one computer per scanner and is pretty much crap without CUDA) captures mechanical dimensions.
Both in terms of absolute dimensions in millimeters (scaling of the entire part) and in terms of relative sizes of components to each other.

As a first test I scanned my camera. It's a small object and I had an error of about 10mm for a 130x70mm part in all 3 dimensions. Not very good.


Then I scanned my face.
Cleaned up that scan in Skanect, then NetFabb, then Meshlab (because the free NetFabb version doesn't allow you to fix some errors unless you buy the pro version).
Then imported that mesh into Geometric Design (my CAD program with 3D scanner and -printer integration).
Designed a mask with no allowance (not even under the nose or in the eyes).
Printed that mask on my Ultimaker II using default settings.
result?  It fits my face perfectly!

I'm currently waiting for a FabScan Cube to also scan small objects, where the Sense failes and am waiting for Skanect to support my higher resolution Kinect V2 for Windows. (I'll try the libfreenect2 software on MacOS/Linux next week.)




2014-11-17

Im Labyrinth der Telekom


Ich habe einen Business-Tarif. 3 SIM-Karten, nutzt viele Daten (>2GB), nutze ausgiebig die Telekom-Hotspots in den DB Zügen/Bahnhöfen/Mc Donalds, LTE ist mir egal, iPhones auch, telephoniere kaum 5 Minuten im Monat und verschicke keine SMS.
So weit so einfach.
....bis man mal auf der Website von T-Mobile seinen Tarif vergleichen und ändern will.




Ok, ich kann nicht mehr.
nach Wochen kann ich in diesem verd****** Labyrinth von Website bei T-Mobile mich weder einfach mal als Kunde einloggen,
noch meinen Tarif ändern
noch die Hälfte der Tarife ohne "nur für Neukunden",
weder mit "Mit Surfstick", noch "Mit Tablet zum Basic-Tarif"  noch "Mit Tablet zum Premium-Tarif"
 überhaupt sehen.
Geschweige denn mal sinnvoll vergleichen.
Man wird mit seitenweisen PDF Formularen zum ausdrucken ,ausfüllen und per Brief schicken belästigt um sich im Business-Bereich einzuloggen obwohl man schon 3 Logins hat.
Ich will keinen Lieferstatus für ein verd***** iPhone, LTE interessiert mich nicht die Bohne,
es interessiert mich nicht was ihr für bunte Preise gewonnen haben wollt,
ich will nicht noch ein neues Handy,
ich will keine @t-mobile oder @t-online Addresse,
kein Adressbuch, kein Spotify und keinen Kalender!
Ich will einfach nur meinen Tarif für meine Nutzung mit den aktuellen Angeboten vergleichen und bequem ändern können, wenn mir das Vorteile bringt.
Und zwar ohne mich erst zu Arbeitszeiten in's Auto setzen zu müssen, zu irgend einem Laden zu fahren wo ich stundenlang warten muss und dann nur einzelne Details von Tarifen an den Kopf geworfen zu bekommen ohne übersichtlich die Kosten mit allen für mich nötigen Optionen gegenüberstellen zu können.
Das kann doch nicht so schwer sein das Kerngeschäft eines Mobilfunkanbieters zu betreiben.
Jeder schmierige Versicherungsvertreter kriegt das besser hin!


2014-11-13

Micro Mesh Pad Holder

I'm using Micro Mesh mini sanding pads (regular and MX) extensively.
So I designed myself a pad-holder that would
  • keep them sorted
  • allow them to dry (wet sanding)
  • tell me the coarseness
  • have symbols to roughly compare the coarsness of regular and MX pads
  • interlock to extens this sorting system
  • add a module for bottles of Mr Surfacer while I'm at it anyway


I printed these on an Ultimaker II. Every module needs about 7 hours using the Cura medium quality default settings.

2014-10-30

Adventures with a Sense 3D scanner

I have a problem.
I got a used 3D Systems "Sense" 3D scanner as an Amazon warehouse deal.
(Same manufacturer as my CAD Software, so they integrate perfectly.)

The package did not include the activation code.
Some former user has already activated the software, so I can't activate it.
Amazon has no information about the former owner, so they can't contact him/her.
3D Systems does not answer the phone on their German hotline.
So I just sent them an email about the issue....maybe they can reset it or give me an activation code.

Update: Wow! After 17 minutes I git an email with an activation code asking for my user-name, so it can be associated with my account. That's damn fast customer service!

Notes:

  • I'm using 3D Systems Geomagic Design as my CAD software. Since they don't have a MacOS version, it runs in a VM with Windows XP.
  • The Sense software installs on XP but crashes on start. Only Windows 7, 8 and 8.1 are supported. :(
  • The Sense scanner registers with Windows as a Carmine Primesense and works with Skanect just like a Kinect but has MUCH BETTER RESULTS then an XBox 360 Kinect V1 sensor. (My Kinect V2 for Windows is not supported yet.) Also more ergonomic to handle.
  • The MacOS Sense software is not signed by a registred developer, so at first MacOS refuses to execute it unless you enter the system settings and add an exception for this program. 
  • On MacOS the Sense software FREEZES MY MACBOOK during entry of the activation code. No mouse or keyboard anymore. Not so on my desktop iMac.
  • The Sense software looses track every 2 seconds where Skanect works just fine, display a white page instead of the scan result and offers only ".ply" as an output format, no STL.
  • Displays a static image on the iMac. The movement commands for touchpad and 3-button wheel-mouse don't work (with a 1-button mouse).


2014-10-28

VisualSFM

After Autodesk 123D Catch didn't work at all even given a perfect series of photos,
I'm now trying to get VisualFSM to work.

...stay tuned.



FabScan

I just found the FabScan project of RWTH Aachen.
Aparently back in January it was still quite buggy but nowadays you can get complete kits and there is a very interesting 2-laser + Z stepper spinoff being developed.

This blog post is basically for myself so I don't forget these links. ;)

Rooting Jiake P6

I finally managed to root my Jiake P6 non-camera phone.



"Root Genius"  (worked)

http://www.gizchina.de/downloads/viewdownload/3-flashtools-firmwarebearbeitung/34-root-genius.html
http://www.gizchina.de/downloads/viewdownload/3-flashtools-firmwarebearbeitung/33-universal-adb-treiber.html


ADB method (did not work)

using the MTK or the Google driver
MKT Driver won't be offered as a driver for this phone after install
http://forum.fairphone-freunde.de/Thread-MT65xx-Android-Phone-Treiber-nicht-gefunden
http://developer.android.com/sdk/win-usb.html#top
http://forum.xda-developers.com/showthread.php?t=2247537

2014-10-27

Kinect V1 with diopters


Intended use

My CAD program of choice is Geomagic Design (started out as Alibre Design). Since the last major release it can import meshes (and even directly use 3D scanners of the same manufacturer) and convert these into solid geometries.
I already used these features heavily for 3D modelled meshes of organic, artistic parts.
What I want to do is use it's advanced features of reconstructing technical parts with flat surfaces, right angles and precise holes with an affordable 3D scanner.
So based on the promise that Skanect will support the Kinect V2 on the day of official sale, I preordered one with Microsoft half a year ago.

Current status 

Skanect still didn't deliver the promised Kinect V2 support and i am tired of waiting with my Kinect V2 in hand.
Thus I got myself a used XBox 360 Kinect V1 and am testing Skanect on MacOS with it to get some first experiences with 3D scanning using this device. Hopefully these will help me get better results with the Kinect V2 later.

...the 3D scan results are terrible so far.
Small object (size of a hand) are not much more then a blob with heavily rounded features.
It may be useful for object the size of a human, maybe barely useful for entire faces as long as dimentional accuracy is not important (no masks that actually fit well) but not for smaller objects.
I'm looking into hacks that may improve this by reducing the minimum focus distance and thus concentrating the low resolution fully onto the  (small) object.

+3 diopters didn't help at all.

Stock Kinect

Minimum focus distance in normal mode: 80cm  (1/0.8m = 1.25 dioptrien)
Minimum focus distance in near mode: 40cm  (1/0.4m = 2.5 dioptrien)
Near Mode is Kinect V1 for Windows only
Accuracy: 2-3mm in a distance of 1.5m
IR resolution: 640x480 but only 1 depth value per cluster.

Kinect V2 has a slightly lower IR resolution (only the color camera is FullHD) but 1 depth value per pixel.

Reading glasses hack

Literary taping +2.5 reading glasses (technically a dioptre[UK]/diopter[EN]) in front of IR-projector and IR-camera seem to reduce the minimum focus distance from 40cm to 35cm. Object appear 1.2x larger. (Based on the report in the thread below)

Normal Mode:
+2.0 result in 1/(1.25+2.0)  = 31cm  minimum focus distance, 1/2.0=50m maximum focus distance
+2.5 result in 1/(1.25+2.5)  = 27cm  minimum focus distance, 1/2.5=40cm maximum focus distance
+3.0 result in 1/(1.25+3.0)  = 24cm  minimum focus distance, 1/3.0=33cm maximum focus distance

Near Mode: (Kinect V1 for Windows only)
+2.0 result in 1/(2.5+2.0)  = 22cm  minimum focus distance, 1/2.0=50m maximum focus distance
+2.5 result in 1/(2.5+2.5)  = 20cm  minimum focus distance, 1/2.5=40cm maximum focus distance
+3.0 result in 1/(2.5+3.0)  = 18cm  minimum focus distance, 1/3.0=33cm maximum focus distance

I know that these also exist in higher quality as "near filters" for macro photography. I even used one of them on the Raspberry Pi camera to make it focus on closer objects to mount it on a Makibox 3D printer.

Single lens diopters cause color-halos.
Dual-lens diopters, called achromatic lenses correct these issues. (Obviously made for visible light while we are working in infrared)  There are achromatic lenses for the infrared spectrum.

You should not use a diopter stronger then 20% of the focal length of your lens.
The Kinect IR lens has a field of view of 57.8°, putting it in the 40mm ballpark.
So everything below +4.0 should be fine.

Links


Settings for ReconstructMe 

(I'm using Skanect where I can't use them)


camera_size_x: 640
camera_size_y: 480
camera_fx: 514.16
camera_fy: 514.16
camera_px: 320
camera_py: 240
camera_near: 100
camera_far: 2000
volume_size: 512
volume_min {
x: -250
y: -250
z: 400
}
volume_max {
x: 250
y: 250
z: 900
}
integrate_truncation: 10
integrate_max_weight: 64
icp_max_iter: 20
icp_max_dist2: 200
icp_min_cos_angle: 0.9
smooth_normals: false
disable_optimizations: false
extract_step_fact: 0.5

2014-10-22

Geomagic Design - Mesh to Solid suddenly missing


Update: FOUND IT!  You can scan meshes in the parts and the assembly editor but only in the parts editor are the other tools visible. Very confusing UI inconsistency. There's no reason this wouldn't just create a new solid part in the assembly editor.


My Geomagic Design suddenly decided to no longer allow me to convert Meshed to Solids.

That's the sole reason I purchased the last update.
I had positive email confirmation that the features would be in there (they where not on the website then, only in the promotional video for the new version) and based on that information I shelled out the money for the extended support contract that would give me that update.

My license states "Geomagic Design".
(Not "Geomagic Elements")
The website states that this feature is included in Geomagic Design.
I still used that feature extensively in May after having extended the support contract in March.
Now in October this most important feature is suddenly gone.

2014-10-12

White Ultimaker II studio case

Due to my work, I travel A LOT.
So as with my TravelCNC I'm custom making a studio case to keep my Ultimaker II 3d printer safe.
Since the Ultimaker has a nice, white case, the studio case is going to white too.

It will not be sound-proof with Basotect foam but use a hard foam to stand on and keep the Ultimaker II centered and a soft foam for padding.

Note:
You REALLY want to use buy a pneumatic rivet gun for this.
Mounting 150 rivets by hand alone is tiring, very loud and takes weeks.
...as opposed to silent operation (except of cause the compressor recharging since cheap rivet guns take a lot of air volume) of a few hours.




2014-09-18

SYSCLK DX on MacOS

I never got my 2 SYSCLK DX - USB oscilloscopes to work with their Windows software. So now I'm trying to buils the unstable version of sigrok pulseview and sigrok-cli on my Mac...

 The stable command line version seems to detect and identify the device but I can't figure out how to tell it what device to use to do any actual stuff. Last step doesn't seem to work.


bash-3.2# brew install --HEAD pulseview
==> Installing pulseview dependency: cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-3.0.2.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring cmake-3.0.2.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/cmake/3.0.2: 1641 files, 26M
==> Installing pulseview
==> Cloning git://sigrok.org/pulseview
Updating /Library/Caches/Homebrew/pulseview--git
==> cmake . -DENABLE_DECODE=y -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pulseview/HEAD -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
==> make install
1 error generated.
make[2]: *** [CMakeFiles/pulseview.dir/pv/view/viewport.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/pulseview.dir/all] Error 2
make: *** [all] Error 2
/usr/local/Library/Homebrew/build.rb:194:in `dump': can't dump anonymous class # (TypeError)
    from /usr/local/Library/Homebrew/build.rb:194:in `rescue in

'
    from /usr/local/Library/Homebrew/build.rb:179:in `
'
Error: marshal data too short
Please report this bug:
    https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula_installer.rb:511:in `load'
/usr/local/Library/Homebrew/formula_installer.rb:511:in `block in build'
/usr/local/Library/Homebrew/utils.rb:239:in `ignore_interrupts'
/usr/local/Library/Homebrew/formula_installer.rb:505:in `build'
/usr/local/Library/Homebrew/formula_installer.rb:181:in `install'
/usr/local/Library/Homebrew/cmd/install.rb:118:in `install_formula'
/usr/local/Library/Homebrew/cmd/install.rb:45:in `block in install'
/usr/local/Library/Homebrew/cmd/install.rb:45:in `each'
/usr/local/Library/Homebrew/cmd/install.rb:45:in `install'
/usr/local/Library/brew.rb:131:in `
'

2014-08-13

BMPCC display shade

I finally got around to design something again.
It's not perfectly refined yet but doing it's job.

I have a Blackmagic Pocket Cinema Camera with the Zacuto Z-Finder.
But often I don't want to use the Z-finder on my eye, yet I need something to keep the sun out.
So I designed this parametric display shade to attach to the Zacuto's quick release frame for quick swapping.

2014-07-23

Ultimaker II - first impressions

So I have my Ultimaker II for a day now and these are my impressions so far.

Reliability

It is super reliable IF before every print I freshly level the bed, then extrude some filament into thin air using the maintenance->expert->move filament function.
For that the extruder usually needs a bit of manual push on the filament.
Maybe it retracted AFTER cooling down too much, maybe it wants to start moving to early, I don't know. It certainly starts up with a bit of grinding every time.

As for reliable, my first prints where 16 and 15 hours. while I slept and while I was away at work.
Haven't done that since the RepMan 3.0 days.

You do hear a little bit of skipping all the time but it does seem to work fine nonetheless.

Cura

is easy enough to use, maybe a bit too easy.
I cannot set the name of the gcode file when using the "export" button (I probably can using the menu).
I cannot see what the 3 default settings are to just modify one or two parameters (such as infill).

Build times are very accurate and everything works very well so far.
The Ultimaker II does display a "time left", something I've never seen before as it requires out of band information from the slicer or a complete simulation of the entire g-code including acceleration and time to change temperatures. However for a 6 hour print it did jump from 6 to 15 hours and then to 5.

Cura does seem to have an issue in deciding how to support curved surfaces on a 20% infill grid.
It likes to start and stop flat areas right in the are between infill grids.
This does work out 2 or 3 layers later.

Also beware that a "Fast low quality print" will not be water tight in any way.

What next?

Next I'll prepare a specially shaped plastic bag to protect the filament mounted on the back from dust to prevent blocked nozzles.
I couldn't get +-0.05mm filament at the moment, so I ordered some +-0.1mm and will switch in a few weeks.
I also ordered a custom made stage box to transport the Ultimaker, just like I dd with my TravelCNC.

2014-07-22

Ultimaker II

Shortly after my Kinect II (Skanect doesn't support it yet),
I received my Ultimaker II.
It's not a perfect tool but still the most reliable 3D printer I have ever seen!

Both my Makibox 3D printers (one heavily upgraded, one in stock conditon) are still for sale.
They work.
It's just that what I need is a reliable workshop tool and a $300 3D printer just doesn't reach that level.

Same as for my TravelCNC I ordered a custom made flightcase for it.
But this time I'll have a pneumatic rivet gun instead of doing this manually. ;)
I'll also custom make some plastic sheets to protect the mounted filament from any dust.
My suspicion is that my frequent filament stalls did have something to do with the slightly dusty environment. I vacuumed the filament spool regularly but there would always be some dust on it.



2014-07-13

TravelingCNC gets a new spindle

I tried to replace the fried component in the spindle control but only managed to destroy that board completely.
Since Carving-CNC didn't answer and I could not find out the technical details to get a compatible board,
I went the easy way.
I'm replacing the 230W spindle with a 300W one that is supplied with 48W instead of require a heavy transformer spool.
Since I already have a heavy 48V supply for the steppers that should reduce the weight considerably.
For the time being I'll keep a separate supply for the spindle until I'm sure electrical noise is not an issue.

2014-07-02

TravelCNC broken

While installing homing switches on my TravelCNC,
I replaced the broken component in the spindle driver that only allowed to run at full speed anymore.
Result is...the spindle controller is now fully broken.

So currently I'm looking at getting a new 600W spindle+controller from China or to invest a lot and get a spindle with automatic tool changer, controller box and silent, portable 8 bar compressor.
That would be a huge and great upgrade but I'm reluctant to shell out that kind of money right after ordering an Ultimaker 2 for 2000eur. :/

2014-06-24

Makiboxes for sale



My two Makiboxes are for sale!
1 Makibox A6 HT with added heat-spreader on stock hotend. top Acrylic broke and some scratches but nothing that affects performance.
250eur fully assembled including 1 spool of ABS.

1 Makibox A6 H6 with E3D hotend, Airtripper extruder, Raspberry Pi+Wifi+Camera
350eur fully assembled including 1 spool of PLA.

Both sitting in Germany. Can be shipped via DHL or Hermes.

Anyone interested?  =>  Marcus@Wolschon.biz

2014-06-20

My Makibox status

I have 2 Makiboxes.
1 stock Makibox A6 HT and
1 Makibox A6 HT  with an Airtripper V3 BSP extruder and E3D V5 hotend but missing a working mount for the E3D.

I have given up on the Makibox and am willing to sell both.
That Makible is in trouble with it's investors doesn't help the case.
An Ultimaker 2 is already ordered.
Nonetheless I'm sitting in the GPN Karlsruhe at the moment trying to get both to work reliably.

I upgraded the stock Makibox to the new firmware v42 with PID autotuning.
(You use PID autotuning with the M303 command described here.)
I'm using it to print this E3D v5+LM4UU mount for the other Makibox.



PID results of stock Makibox:
< 02:45:13:  Clasic PID --  PID settings:
< 02:45:13:   M301 P7627 I57 D630
< 02:45:25: ** PID Autotune Cycle: 5 **
< 02:45:25:  bias: 39 d: 39 min: 199.00000 max: 201.00000
< 02:45:25:  Ku: 49.65638 Tu: 12.33100
< 02:45:25:  Clasic PID --  PID settings:
< 02:45:25:   M301 P7627 I61 D587
< 02:45:25: PID Autotune finished !
< 02:45:25: Place the above command in console to change the PID settings.

Result: IT WORKS. Pretty rough movement, so low in detail but it works now!
Printing more replacement parts while it still works.