Wednesday, December 31, 2008

Friday, December 19, 2008

New intake manifold with throttle-body injection

Look what I got as a christmas present today. Ole Mobeck has finished
the machining of my intake manifold. The manifold is supposed to replace the original shown to the right. It has a fixture for a Bosch fuel injector which will make throttle-body injection (Central Fuel Injection/Single-point injection) possible. Now I only need to drill a few mounting holes and two holes for the map sensor and vacuum diaphragm.

Wednesday, December 17, 2008

Home made electronic ignition and fuel injection for my 1961 Fiat 600 - part 2

I finally got some extra time to figure out how to build the actuating part of the home made ignition + injection. I got the final bricks to build the circuit after reading about how to interface high current loads (up to 10A) with a microcontroller from this really nice web page.

In the last post I figured out how to get sparks with a 12V input directly from a battery and a subaru impreza igniter. This time I wanted to use a microcontroller to create controlled sparks. As a bonus I wanted to check if the same circuit could switch the two Bosch injection coils that I got.

To make a quick setup for the microcontroller I set up the arduino NG that I got to read the input from a potmeter (0-5V) and adjust the on time for the digital output from 0 to 2.048ms. I know from literature that 1.2ms usually is sufficient to make a nice spark. I was a little bit uncertain to wheter this would be sufficient for a waste spark system that I am using.

I set up the circuit as shown below to the left:

Ignition + Injection circuit test


The physical test - lots of wires

After some fumbling around, double checking that all the wires were correctly installed, I turned the knob on the potmeter. Voila - The sparks were exactly as I wanted them - nice and blue. The sparks were steady at approximately 1/3 adjustment for two spark plugs, which indicates that a minimum of 0.7ms would be necessary. I am not sure what turn on time would be necessary while the cylinders are with pressure.

After successfully testing the prototype for the ignition i removed the ignitor+the spark plug pack from the circuit. I installed a snubber diode, as shown on the reference page above, to avoid high current back emf.


Connected to a injection coil with a snubber diode

The setup produced a nice clicking sound when connected to the orange injector shown above. The fully black injector had no reaction when adjusted to maximum coil charging time. A multimeter showed that the orange coil had 16ohm and the fully black 2.5ohm resistance. It might be that the black injector needs more charing time for the solenoid to open.

To summarize: I have figured out how to actuate the spark plugs and one ignition coil with a 5V output from a microcontroller. Now I need to start measuring some input from the sensors to correctly adjust spark advance/retard and injection time/pulse width. I allready have the old mechanical settings for the spark diagrams from a workshop manual.
Posted by Picasa

Saturday, November 08, 2008

Media Center / carputer in a IKEA EMU

I found this really cheap main board from Intel: D201GLY2 about half a year ago. My first thoughts were that I could use it as a cheap media center, as a carputer or as a replacement for more complex projects where microcontrollers are involved.

I got 1GB RAM, a hard disk, a PSU, a wireless keyboard+mouse, a USB wifi card and some fans. I bought the cabinet from IKEA: A IKEA EMU box that I cut holes in with a dremel and drilled holes for the mounting screws. The rest was fixed with a hot glue gun. Now I only need a protection grid for the cabinet fan in order to avoid cutting my fingers when moving the box :-(

The reason for choosing the IKEA EMU box was that it was way cheaper than any regular cabinet and the dimensions fitted nicely inside our TV cabinet as well as in an enclosure inside the back of my car.

I have recently tested the computer as a media center, and had no problems running movies with great resolution (up to 1080p with slight skipping). This came as a surprise as the graphical capabilities are not very good. I have skipped using media centers like XBMC, MediaPortal and Elisa as they seem to be way to heavy for the computer to handle.

My future thoughts for the computer is to further test the computer as a carputer for things like playing music and running real time OBDII.



Posted by Picasa

Home made electronic ignition and fuel injection for my 1961 Fiat 600 - part 1

















Ever since I got my 1961 Fiat 600 about three years ago I have been thinking a lot about what I want to do with it. Since I have been quite interested in diy stuff and playing around with microcontrollers for a while I thought that electronic ignition for my car would be a challenging project. I have by the way had quite a few problems with making it run well in all sorts of weather with the old points/distributor+carburetor.

After reading a lot and discussing with colleagues who are heavily involved in racing, motors and all kinds of vehicles I decided not only to make my own ignition system, but also a fuel injection system. This is due to the two systems sharing many of the same sensors and modifications would be made on only a few parts.

Last year I bought a waste spark ignition coil, MAP sensor, EGO/lambda sensor, a trigger wheel and a trigger/hall effect sensor. My colleague Ole Mobeck also started making a new intake manifold to integrate the MAP sensor, a central injector and an air temperature sensor.


I removed the cap to the centrifugal oil filter. The filter is connected to the crank shaft and is the ideal place to mount a trigger wheel. I machined the trigger wheel to fit the lid, so now I only need to mount it to the car and make a fixture for the trigger sensor.

The high power part of the electronic system has been a challenge both since I only have a limited electrical knowledge. It has also been a challenge since I know this is dangerous stuff. The voltage through the secondary coil generates approximately 40kV output and could be lethal.

After trying to make an ignition with different transistors bought from online electronic stores and building a ignition system found on the web my releasing moment happened yesterday: Ole Mobeck cut off his Subaru Legacy ignition module and waste spark coil and gave it to me as a "christmas present".

Today I figured out, while Synna was taking her nap, how to connect the ignition coil from a Subaru Legacy wokshop manual. I tested the ignition module in several steps:


















1. Check to see if gate was normally open or normally closed. If the gate was normally closed the ignition module would send 12V through the transistor when connected. I connected 12V via a blinker relay to OC1, G to GND and made a voltage divider input with a potensiometer with the central lead connected to IB1. I set the voltage to zero before turning it. The blinker relay started when the voltage was over 12V. This means that I need another transistor to turn on the ignition modul with an input from a 5V microprocessor.



2) After finding that I needed 12V for the igniter I wanted to check if I got a spark. I now omitted the voltage divider. I now connected the coil where the blinker relay was, and connected the blinker relay as a safety to the input of the igniter as shown. I connected a spark tester before one of the spark plugs.


















An very tense moment was exchanged for relief and excitement when I saw that I had spark. The test lamp was lighting up and the spark was nice and blue.


The next steps are to connect the ignition to a 555 or a microcontroller and find an okay spark time. In parallel I want to test the trigger wheel and get a nice signal as well as try to finish the fuel manifold.
Posted by Picasa

Thursday, September 25, 2008

Real time accelerometer reading via xbee pro

I am working on a project transferring two axis accelerometer data as fast as possible to a pc via xbee pro. Here is what I have discovered:

  • At high speed the xbee picks up noise from the surrounding 50Hz, 220V.
  • I am able to use 5V for VCC, VREF as well as ADC input.
  • The highest transfer rates can be achieved by setting samples before TX (ATIT) to the maximum of 22 (0x16) and sample rate (ATIR) to 1 (ms). You should in theory be able to send data at 1kHz
  • The interface data is critical to be fast in able to read data fast. Xbee transfers data at 250kbps via RF, but the baud rate can only be set up to 115200 at standard data rates.
  • For non-standard data rates you could only set them via a terminal by using the command ATBD and then the speed. I nearly lost contact with one xbee when setting the data rate to 230400. The data sheet says that xbee should handle data rates up to this speed, but I could not talk to the xbee after setting this. I luckily discovered by trial and error that I could interface the device at 240000 baud, and that the true setting was really 250000 bauds (0x3D090).
  • With everything set to maximum I am able to transfer data at approximately 760kHz.

The xbee pack contains the following:
byte 1: 0x7E, the start byte
byte 2-3: packet size
byte 4: API identifier value
byte 5-6: Sender's address
byte 7: RSSI, Received Signal Strength indicator
byte 8: Broadcast options
byte 9: Number of samples to follow
byte 10-11: Active channels indicator
byte 12-N-1: 10-bit ADC values, sent like this: ADC1-MSB, ADC1-LSB, ADC2-MSB, ADC2-LSB and so on
byte N: Checksum of the values sent: see xbee data sheet

N=12+2*ADCs*ATIT, example: 2 channel accelerometer, ATIT=22 => N=12+2*2*22=100

Monday, September 22, 2008

First impressions of ELM327 (ver 1.2A)

I bought a box for on board diagnostics (OBD) for my car with the striking name of "ELM327 (ver 1.2a)" as mentioned earlier in my blog. Unfortunately I haven't been able to test it until today.

Here are my impressions:
  • The box contains two key components necessary to do on board diagnostics: The very versatile ELM327 chip and the FTDI USB to serial cable. I am unsure if they are original.
  • Most of the software solutions I tested had trouble communicating with my car. I have a Skoda Octavia 2003, and it is not recognized as a car with standard OBD/OBD2/CAN. I will have to test it with a different car to see if it is the car or the ELM box that is causing the problems.
  • The software that can communicate and read sensor data are only able to read them quite slowly. I am unable to speed up the connection by changing the update rate or the baud rate. I am not sure if I could change to a higher speed than 9,6kbauds. Perhaps it could be possible to set them by using AT commands?
  • Many of the interesting sensors like the lambda sensor are missing. I am unsure if there is a problem interpreting the car's ECU or if the ECU is not exposing the data to OBD. I have to read a bit about this.
To sum it up - I am pleased that I can read sensor data but sorry that they are too slow to be useful at the moment

Screen shots:

Charts made for my car

Gauges shown

Posted by Picasa

Thursday, September 11, 2008

How to upgrade XBee via FTDI's TTL-232R USB cable

It is quite convenient to use FTDI's USB cable to communicate with the XBee. Recently I found that I was unable to upgrade the firmware of the XBee via the cable. And without the upgrade I was unable to use the IO features of the XBee. Calling "ATD02" would cause an error. After some frustration I found that the problem stemmed from the missing DTR line of the FTDI cable. The solution to the problem was quite simple: Just pull the DTR of the XBee low by connecting it to GND.

Wednesday, September 10, 2008

Short course in mnemonics


Yesterday I attended a quick intro course in mnemonics which was held for free at NTNU for three hours. The presenter was Oddbjørn By, norwegian memory master and international Grand Master. He has also published books under the title "Memo" which contain his teaching in the subject.

The course lasted for about three hours containing small tricks from how to remember the ten largest countries in the world to how to prepare for speaches and exams. He finished the lecture by memorizing a full deck of cards within 1,5 minutes.

I found the lecture very interesting since I recently read the book "Mind Performance Hacks" (MPH), which contains many mnemonic tricks. What was striking was that most of the techniques preferred in the book was also the ones preferred by Oddbjørn By:

The techinque that By seems to prefer in most cases is the ancient "Journey" system described by Ron Hale-Evans. While the journeys are described as "little journeys" by Hale-Evans, By uses big journeys containing more than ten places to store most of the things he would like to remember. Hale-Evans describe a expanded journey system by Scott Hagwood where objects could be stored in "nooks and crannies" for up to ten spaces in each room, making space for ten times the storage capacity (100 containers).

The second techinque By seems to use a lot is similar to the Dominic system in MPH.

A quick explanation of the Dominic system invented by World Memory Champion Dominic O'Brien: The Dominic system uses the letters OABCDESGHN for each number from zero to nine. By combining two letters you could store numbers from zero to ninetynine. The associations are made by a combination of a person and an action, for instance 26=BS=Britney Spears singing "Hit me baby one more time". You could remember four numbers by mixing one person with another persons action, for instance 6326=SC BS=Santa Claus singing "Hit me baby one more time". If you make the list of hundred persons and actions and remember them, you are able to store numbers up to 9999. You could make a story out of characters and actions to store larger numbers or you could make a big hotel with 100 floors to be able to remember more than 10 000 things. A very powerful system.

By's system for storing large numbers is similar to the Dominic, but the letters for the numbers are OITERSCLAg. The letters have a shape similarity to the numbers and easier to remember because they form something similar to a german word. By uses the system a bit different by making the letters the start of a word, for instance 34=TE=TEst,3435=TETRis etc.

The third method, which By seem to use to some extent is the number shape system, but he seems to use it only to support other systems.

To sum the evening up: By's intro course was very inspiring, showing that everybody is able to remember vast amounts of information. The techinques By finds most efficient are also the ones described as most efficient by other sources. You could remember things faster and more smoothly than just practising and repeating, freeing your brain for other tasks. My inspiration led me to start learning the countries of the world and their capitals. Yesterday was North America, today might be Europe. You never know when that might come handy...

Monday, August 25, 2008

How to make the best out of GTD and mnemonics

I have been a great fan of David Allen's Getting Things Done (GTD) ever since my friend Arnstein introduced it to me over a year ago. I feel that GTD has revolutionized the way I work, making me more efficient and goal oriented and feeling more at ease knowing that all my agreements with others (and myself) are met. That being said I still fill that there is a lot to be improved in ways of implementing Allen's system to my personality - I am making progress every day.





Recently I have been reading "Mind Performance Hacks" by Ron Hale-Evans. It introduces you to plenty of small tricks/hacks on how to improve performance. There are more examples of usable than unusable hacks for me in the book and I think I will try to implement many of them in the near future. I highly recommend reading the book if you find this topic interesting.

Most of the hacks collected in the section "Memory" in "Mind Performance Hacks" are mnemonics (tricks on how to remember things). I find "the Number-Shape system", "Lots of Little Journeys" and "the Dominc System" to be the most interesting and usable ones.



David Allen's GTD is based on the fact that you are unable to store too many things in what he calls "psycic RAM", and thus you should store them in action reminder lists to avoid remember things by yourself. I completely agree that It is totally impossible to remember all things that you should do/want to do in the near and far future, but the problem appears when you actually want to start doing things ("cranking widgets") and your lists are not where you are.

How are you supposed to bring your actions with you in the right context? My solution to this has been and will be to store my action lists on the internet. This solves some of my problems as I have access to the internet at home and work as well as other places. When I want to do several tasks in the same context, for instance doing errands, I write out a list of the things at the context and bring it with me. Others are suggesting making "hipsters", low tech cards with the actions in priority. Both of these techinques works, but it takes time and effort to do.

The other thing I am missing is a system for remembering actions that you are doing on a regular basis. On mondays I do my weekly/montly review and check a random article on wikipedia (another hack). I mainly use outlook to remember this, but I have no ability due to IT security reasons to sync these and other actions to my home. I leap over this problem by only remembering scheduled activities at work.

This is were the mnemonics comes to play. By using mnemonics (for instance the "number shape system") you should be able to remember the context specific activities and the regular activities quite simple. It only takes the effort to find a system that works for you and start using it on a regular basis.

Monday, August 11, 2008

Yess! Make Magazine rett i postkassen for $50









For den som ikke kjenner til make magazine så er det et relativt tykt blad fylt med masse gjør det selv-stoff. I motsetning til det vi forbinder med gjør det selv, så omhandler bladet ikke bare snekring og håndtverk, men alt som har med laging av ting. Bladet har en dreining mot elektronikk og mikroprosessorer og utgis av anerkjente O'reilly. Bladet har også en online blogg der masse oppfinnelser leggges ut kontinuerlig fra ulike ressurser på nettet(en av mine favorittsider). Make magazine og online siden har etterhvert fått en stor fanskare av småe og store skapere rundt om i verden.

Jeg har tidligere sjekket hva gamle nummer koster via amazon og funnet at det ble alt for dyrt. Av en eller annen merkelig grunn har jeg aldri sjekket makezine sine egne abonnementsvilkår. Det viser seg at bladet kun koster $50 for fire nummer (et år), dvs ca 67 kr bladet med forsendelse. Sammenliknet med hva et uinteressant blad fra Narvesen koster så får du plenty for pengene. Make magazine er tross alt et kongeblad.

Sunday, August 10, 2008

Trøbbel med waypoints og Garmin Mobile

Jeg tenkte jeg skulle forberede meg på turen til Stockholm og Tallinn ved å legge diverse hoteller, restauranter og severdigheter for stedene inn som waypoints på Garmin Mobile på min Nokia N73. Dessverre har det vist seg vanskeligere å få til enn nødvendig.

Ved overføring av punktene blir de liggende i en fil med navnet temp.gpx (evt current.gpx) og kan importeres inn i Garmin Mobile vha "import gpx". Før importering inneholder xml filene de riktige koordinatene, men etter import forsvinner all informasjon etter komma. F.eks. blir "lat="59.4342756"" gjort om til "lat="59.000001"", noe som gjør at koordinatene blir helt feilplassert og samlet i ei klynge. Jeg har forsøkt å endre informasjonen bak kommaet samt endre koordinatformatet som Garmin Mobile benytter, men uten hell. Til slutt har jeg bare måtte bite i det sure eplet og gjøre det på gammelmetoden - å legge koordinatene inn manuelt :-(

Det tok sin tid, men nå er det gjort. Endelig kan jeg dra på tur uten å føle meg på villspor. Inntil neste tur håper jeg at Garmin får fikset problemene.

Wednesday, August 06, 2008

Førsteinntrykk av iphone 3G

I dag fikk Sunniva sitt SIM-kort og det var mulig å sjekke ut hvordan iPhone 3G fungerer. Dessverre må hun (og jeg) vente til 15. august med å få aktivert SIM-kortet. Telefonen kan derimot brukes til alt annet i mellomtiden. Det kan på forhånd nevnes at jeg ikke har stor erfaring med Apples produkter tidligere:

Positive erfaringer:
  1. iPhone har et rålekkert design både utvendig og softwaremessig
  2. Alle programmer responderer råkjapt i mine øyne
  3. Layoutmessig ligger programmene helt perfekt plassert på skjermen og du har tilgang til så og si alt du trenger: sms, kalender, bilder, kamera, gps/kart, været, klokke, kalkulator, notater, telefon, mail, webbrowsing, iPod
  4. Touch funksjonaliteten er bare herlig - zooming og paning fungerer helt perfekt og gjør det faktisk mulig å se webinnhold på en mobiltelefon
  5. Det innebygde akselerometeret flipper bilder slik du ønsker å se de i portrett eller landskapsmodus.
  6. Jeg kan streame radiokanaler fra f.eks. videoer fra f.eks. youtube smertefritt
  7. Jeg kan spille lyd, bilder og quicktime filmer fra tversity server
  8. Appstore ser ut til å ha tilgjengelige masse herlige programmer som det er bare å legge inn. Dette er fordelen med at det er andre generasjons iPhone som kommer til Norge
  9. Bruk av trådløst nett funger smertefritt mot både web og email og det er enkelt å sette opp f.eks. gmail
  10. Synkronisering mot outlook fungerer smertefritt
  11. GPS-info kan f.eks. settes på bilder slik at du vet hvor bildet ble tatt
Negative erfaringer:
  1. All overføring av bilder, musikk og programmer foregår enten via iTunes eller via AppStore på mobilen
  2. iTunes er som ei mor fra helvete - masse unødvendige spørsmål som må besvares hele tiden (nesten som windows Vista)
  3. Tastaturet kan nesten være for lite for mannsfingre. Etter litt bruk går det derimot både raskt og (nesten) feilfritt med to fingre (touchmetoden)
  4. Prisen på godt over 6000,- var vel drøy, men tatt i betraktning at man i dette får ca 1,5 time ringetid, 100 smser, 100mb dataoverøring per måned samt fri surfing på netcoms wifisoner så synes jeg det er en god pris
  5. Apple tar seg betalt av alle ting for at programmerere skal lage programmer.
  6. Det er kun Apples støttede mediaformater som kan benyttes (Video=Quicktime, Audio=MP3). Mulig det finnes tredjeparts programmer for dette.
Spenningen knytter seg til:
  1. Kan iPhone vnc klient kjøres mot mine pcer?

Trøndersk matfestival






Turen til Stavanger og besøket på gladmatfestivalen var veldig trivelig. Man glemmer gjerne som alle andre trege trøndere at vi faktisk har vår egen matfestival i Trondheim. Denne gangen er det lagt til 7.-9. august, med blant annet grillmesterskap på agendaen. På http://www.tronderskmatfestival.no/ finnes det mere informasjon om festivalen. Kanskje vi rekker et lite besøk midt i helgas innspurt til bryllupet vårt?

Tuesday, August 05, 2008

Nær ir på webkameraet mitt


Denne modifikasjonen gjorde jeg for et par år siden. Jeg har ikke rukket å teste den før i går. Jeg har fjærnet ir-filteret som sitter foran linsa slik at jeg også ser nær ir. De fleste kamera-chipene har et utvidet frekvensområde i forhold til det som vises. Dessverre ser det ut som jeg monterte innmaten opp ned...
Posted by Picasa

Friday, August 01, 2008

Dings for motorovervåking










Etter ca 14 dager fikk jeg tilsendt en dings for 130kr (ink. forsendelse) fra Hong Kong som jeg har gledet meg til å få: En boks med tilhørende kabel som kan lese feilkoder og overvåke motoren på nyere biler (fra 95 og frem til i dag). Moderne biler gjør det mulig via standardiserte kommunikasjonsprotokoller (CAN/OBD/OBD2) å hente ut ganske mye informasjon. Målet er å kunne lære mer om samspillet mellom de ulike sensorene og tenning/innsprøytningskurvene henger sammen. Dessuten er det kjekt å kunne gjøre elektronisk feilsøking uten å sette bilen på verksted. Foreløpig har jeg koblet boksen til VW Polo leiebilen som vi har, og dette ser ut til å fungere utmerket. Medfølgende software (Scantools) er noe begrenset, og jeg ser derfor frem til å se på mer avanserte pakker fremover.
Posted by Picasa

Tuesday, July 29, 2008

Hell i uhell























Jeg var heldig som slapp med skrekken...
Posted by Picasa

Problemer med publisering

Jeg hadde store problemer om å ta opp denne bloggen igjen og bruke den som mobil blogg etter inspirasjon fra Jon Vidar. Dessverre har det vist seg svært vanskelig. Etter mye feilsøking og sammenlikning med Sunniva og min sin fellesblogg har jeg funnet ut at jeg har blitt registrert som mulig spamblogg. Nå har jeg endelig funnet ut av dette og håper at det vil bli fikset snarlig:
----
Bloggen krever ordbekreftelse
Bloggers roboter for beskyttelse mot spam har oppdaget at bloggen din har de samme karakteristikkene som en spamblogg. (Hva er en spamblogg?) Ettersom det er en virkelig person som leser dette, er bloggen din antageligvis ikke en spamblogg. Automatisk spamregistrering er upålitelig av natur, og vi beklager på det sterkeste for denne feilen.
Den 29. juli 2008 mottok vi din forespørsel om å låse opp bloggen. På vegne av robotene beklager vi å ha låst den søppelfrie bloggen din. Vi håper at du kan vise tålmodighet mens vi tar en titt på bloggen din og bekrefter at det ikke snakk om søppelinnlegg.
Finn ut mer om hvordan Blogger bekjemper spamblogger.
----
Forespørsel mottatt
Vi har mottatt forespørselen din om å kontrollere at bloggen din ikke er en spamblogg. Vi vil se på bloggen din og sende et svar på epost.
Finn ut mer om hvordan Blogger bekjemper spamblogger.
----

Rekkverket kommer på plass


Stolpene som skal brukes til rekkverk kommer på plass
Posted by Picasa

Start bygging av terrasse

Vi har lenge vurdert om vi skal bygge veranda. Jeg kom først godt i gang i midten av mai. Her har jeg akkurat blitt ferdig med de 12 pilarene som skal holde terassen i riktig høyde.
Posted by Picasa