Blog Image

a n d r e a s . s c h u t z

Flytten från Kalkatraz

The daily hassle (svenska) Posted on Wed, September 08, 2010 16:50:05

Då har vi landat i Uppsala hela gänget. Och det känns bra, jävligt bra!
Alla har kommit in fint i det nya urbana livet. Jag tycker nog att Lukas har lyckats särskilt bra, det är ju ändå för honom det är störst omställning.

Känslan av att flytta till Gotland beskriver jag i mina mest syniska stunder som om någon lade en blöt filt över ens liv. Det blev tyngre, fattigare, innehållslösare och mer svårjobbat. Människorna runt omkring blev tjurigare, mer snarstuckna och misstänksamma. Dom flesta kändes missnöjda med sin tillvaro.
Med en liten darr på rösten har väl jag och Sarah undrat om det kanske inte var Gotland som gjorde “filtkänslan”. Det var ju mycket annat som hände då. Vi blev föräldrar, köpte oss ett hus, vi bytte jobb och inte att förglömma, vi blev äldre (vuxna? smiley). Gud hjälpe, men kanske var livet såhär överallt då man fyllt trettio?

Nu vet jag svaret! Det var inte åldern eller föräldraskapet i alla fall. Lukas var förundrad första veckan här i Uppsala.
– Hur kan det komma sig att alla är så glada? Undrade han då en taxichaufför hälsade oss “trevlig kväll” efter att ha skjutsat oss hem en kväll. Vad svarar man? Synergy is a state of mind?

Nåja, nåja… filten är borta. Och fast vädret och havet inte längre gör sig påmint varje dag så är det lättare och roligare här…. Lite sorgligt mitt i alltihop…. Men ett faktum.



Kritisk massa är uppnådd!

The daily hassle (svenska) Posted on Sat, June 26, 2010 11:07:24

*skrattar*

Nu går det inte längre att stoppa. Huset är sålt, lägenhet i Uppsala är köpt, Lukas har skolplats och Sarah har jobb! Alla saker är på plats så när som på mig! Jag har fortfarande inte hittat något arbete. Och jag som trodde att jag skulle vara enklast att flytta på.

Nåja, hur som helst ser det ut som om designen på “vårt nya liv” i Uppsala blir utmärkt. Den nya lägenheten är på 104 m2 och vi håller som bäst på att möblera den virtuellt. Vi har fått alla mått och nu återstår “bara” att plocka ut vilka möbler som skall följa med härifrån Gotland och över till Uppsala.
Det är inte alldeles enkelt att krympa 300 m2 till 100 m2. Dessutom har stilen här på MYRE varit 1800-tal och nu blir det funkis. Hmmm….

Det känns skönt att vara på väg, jag älskar den lätta känslan som uppstår då man får möjlighet att revidera allt som är viktigt och betyder något. Det är nästan så man blir lite euforisk av att känna; passet, kreditkortet och tandborsten!



Då söker man jobb då…

The daily hassle (svenska) Posted on Tue, May 25, 2010 13:23:05

För första gången i mitt liv egentligen. Jo faktiskt. Hittills har allt rullat på utan att jag har behövt söka ett enda jobb. Men nu är det dags.
Gotland (och gotlänningarna) har sedan länge gjort sitt. Som småbarnsförälder kunde det ibland vara så idylliskt att bo här, nu är det svårt att hålla motivationen uppe från tid till annan.

Vi sneglar på Uppsala. För att få mental stimulans igen. Både för oss och för Lukas.
Vi sitter som bäst och kikar på arbetstillfällen och lägenheter… vi får väl se.



En tanke.

The daily hassle (svenska) Posted on Mon, February 08, 2010 16:02:36


Hur kommer det sig att man undrar? Visst?



En del pärlor…

The daily hassle (svenska) Posted on Wed, December 23, 2009 23:56:36

…hittar man aldrig tillbaka till. Jag fick söka länge innan jag som tur var hittade den här igen:

Guld är inte allt som glimmar

sedan vintersolen sjunkit röd

Det som bleks i ljusets timmar

får mot nattens väv sin glöd

Ädelsten som snökristaller

silversmycken som är månljus blott

Rikedom när stjärnor faller

det är mörkrets gåvolott

Guldglans överallt i natten

rovdjursögon bakom stock och sten

Norrskenslågor över frusna vatten

bländverk, irrbloss, återsken



SuSE 11.2 – lovley!

At work Posted on Wed, November 18, 2009 13:43:53

Hi again!

So for some days now I have been testing open SuSE 11.2. Found some party tricks I would like to share to save you other some hassle. But first of all I must really send my appreciations to the SuSE team. Darn, I think you made it again! 10.3 was good, this is excellent!

First, if you do have a network that acts up when you try to packet scale (i do have those subnets at work), before you try any network traffic leave the graphical installation with ctrl + alt + F2 and type “echo 0 > /proc/sys/net/ipv4/tcp_window_scaling” to disable packet scaling. Then simply return to the graphics with alt+F7 and continue.

Second. If you, like me, have an HP Pavilion DV7 vith a NVIDIA GeForce 9600M GT adapter inside. Download the driver from NVIDIA’s site and install it. That will make it possible to have all the new eye candy activated.

Third. Add the “enable_msi” with an value of “1” to get your sound card running without the jitter.

To add mp3 support and get a fully functional media player follow the suggestions here:
http://lizards.opensuse.org/2009/09/12/11-2-64-bit-and-mp3/

I added Skype yesterday and downloaded the SuSE package from their site. I had to add 32-bit QT to get i running, but that was pretty obvious from the error codes once you started it from the terminal.

I will add tricks here when I discover them.

Till then.



En iPhone!

HobbyHacks Posted on Wed, November 04, 2009 11:23:13

…har blivit min!

Det var länge sedan jag ägde en produkt från Apple och nu har det visst blivit dags igen. Fick erbjudandet av min fars vän att köpa en iPhone med spräckt skärm. Som ni vet vid det här laget var det ett alldeles för lockande erbjudande för en geek som mig.
Telefonen tingade ett pris på 1500 kronor och reservdelarna gick på ca. 300 kronor inklusive frakt. Så till ett totalpris av 1800 kronor skulle jag få en iPhone! Det gick inte att motstå. Jag nappade!

Så vad tycker jag då om min nykomling? För det första, ryktet om iPhone’s suveränitet är KRAFTIGT överdrivet. Om hälften av alla som lovordar den skulle äga en så hade det varit annat ljud i skällan. För det andra så är den inte särskilt “kunnig” som telefon. Om jag jämför den med min “gamla” Nokia 5310 Xpress music så känns iPhonen faktiskt lite spartansk.
Men den är snygg, rysligt snygg och känslan av “dyrgrip” eller juvel osar lyxigt och tungt runt den. Den är en glädje att hantera och “tafsa” på och det förlåter ganska mycket av dess inkompetens.

Sist men inte minst så går den att hacka, Jag tror att det tog en timme innan jag hade jailbreak’at den och fått konsollaccess på den. Och det behövs faktiskt, bristerna i Apple’s interface gör att man då och då måste in i operativsystemet och radera någon databas eller starta om något som inte längre svarar.

Tyvärr så får man ju då för första gången tillgång till filsystemet och chans att uppleva det. osX i all ära men gud så långt borta dom är i sitt operativsystem. Det känns i bästa fall som en linux a’la -95, men i stort så är det rätt bedrövligt. Osystematiskt, tillkrånglat och specialdesignat för användarovänlighet. Darwin/osX och Apple har enligt mig MYCKET att lära av Linux och open source.

Och kanske är det det som är den ultimata iPhonen. Jag läste att ett team håller på att porta debian till den. Bra idé. Åtminstonde för mig låter iPhone hårdvaran med ubuntu på som den ultimata PDA’n.



Lets play brushless!

HobbyHacks Posted on Fri, August 21, 2009 15:42:07

Today i bought a BLDC hub motor! Why? I don’t know really. Well of course I know why, but I haven’t got an application for it.

I want to learn how to control it. I want to use cool PIC microcontrollers that I recently have started to program again. And I want to fiddle with optimization on driving it with torque and power saving. But do I need it? Silly question, all we actually need is to choose and to die! smiley

The motor was cheap. But it didn’t come with any documentation what so ever. So my idea is to post information about it, and my progress with it, as i proceed.

Here are some data I have collected:
On the outside it is marked with 24V26C JS08030167

And when i took it apart:
3 poles, 36 teeth
40 magnets
3 hall effect sensors
2 ball bearings
3 thicker wires to the windings
5 thinner wires to the sensors (two for power and three for outputs from the sensors)

The hall effect sensors are three pin and connected like this:
Red +
Black GND
Green output from sensor one
Yellow output from sensor two
Blue output from sensor three

I added 5volt over the red and black wires and measured volts at the outputs while i slowly rotated the motor with my hand. I made a quick table over the values I got, it looks like this:
As we can see, one is always off. But i’ll have to read more about hall effect switches to know exactly what that means.

I read some more about different hall effect sensors and it seamed that the most common one (and the cheapest… a good way of finding out what is inside consumer products) is to be treated as a transistor witch sourches about 25mA. So I decided to drive som LED’s. Here is the movie:

Rename the file to whateveryouwant.3pg. It is a bad quality phone video, but it will show the rythm om the sensors quite well. When I reverse the rotation of the motor the sequence of the LED’s simply reverse too.

The overall quality of the motor is varying. Mecanically it is well made, but when it comes to the wireing and hall sensors it lacks bigtime. Even the thread is very poorly made and one of the bolts was broken on delivery. Like other chineese stuff I have seen it is a strange combination of high ambitions and unnessecery poor workmanship.

Here are some pictures:





As you can see there is som kind of marking inside the motor. I dont understand chineese. If somebody can read the markings, please let me know what it says.
Somehow I believe that theese markings is the factory name. Maybe this can help me in finding some documentation.

I think I have found my favourite way of driving the motor. I have been heavily inspired from http://www.ltu.se/polopoly_fs/1.35847!elektronikrapport.pdf and the BALDOS project at LTU. By reading their description and looking at their designs I finally found the missing link between the RC hobby motors and the more heavy duty hub motor.

I also finally found enough courage to energize the motor windings. I am by no means good att power electronics and I dont want my hub motor to end up in flames. I have been studying different ways of limiting the current to the windings to prevent melting while elaborating. I ended up using thin copperwire so that this thinner wire would melt long before the motor took any damage. I now know that the motor move when using only 12V. That makes things a lot easier to elaborate with since I can use a car battery.

I have decided to make the driver electronics in modules. That enables me to change some of the modules without starting all over again, should I regret any of the designs. I have settled on the following modules:

* CPU module, containing microcontroller and surrounding electronics.
* Sensor module, it will be nothing right now, when I use the hall sensors, but who knows, maybe I’ll try a sensorless design later.
* Driver module, containing the power electronics like the mosfet’s and their drivers.
* MMI module, the interface to us humans. Maybe a gas handle or a laptop application.
* Charger module, for battery charging. From 220 and regenerative from braking.

In practics I already have the CPU module. Several of them! Sensor module is not needed right now when sensors can be attached directly to the microcontroller. So the first module to build will be the driver module.

I think I finally found a good design for a driver module. My Idea is to have the IC IR2130 as a driver circuit. It contains some safety functions that could come in handy.
As the power-hexfet I think i will use IRFP460. It is one of the hexfets that is powerful enough yet almost affordable.
Each phase will be driven by a circuit like this:



« PreviousNext »