Putting Some Smartness Into A Smart Fortwo

I have been a happy owner of a 2006 700cc Smart Fortwo since last Summer. But I have been want to put some automation to it for a while. I started my endeavor to making windows open even when ignition is off. There is easy to  follow instruction on the net.

I plan to have a spesific feature which for example a coupe BMW has. When door is opened, door window automatically lowers a bit and when closing the door, window goes automatically up. I want it because every time I close the door I feel overpressure in the cabin. It seems there is no pressure relieve valve like in more ordinary cars. Windshield is the biggest window in the car and because overpressure the sealing of it get much stress when closing doors. A very common problem with Smart Fortwo is a leaking winshield. My car had it also. I think that leaking is caused by overpressure. Luckily I managed to find leakage before my control unit got wet. By the way, that control unit controls pretty much everything in this car so it really should stay dry. It is located below dashboard so it easily get wet if windshield leaks.

That window feature is not implemented yet but I have made some testing. Maybe I’ll write something about it when it is done.

At the moment I just finished a very early alpha version of the control of seat heating. A small microcontroller(Arduino) controls with relays contact pads of seat heater switches. It puts them on automatically when head lights are switched on. After 30 seconds it puts them off and they stays off until lights are cycled off and on again. Convenient! Heating time is short because heating element is so powerful.

As I want more, I equipped control system with a rotary encoder, a temperature sensor and an LCD. My plan is that user can control various variables in the system, for example heating time. And of course temperature depended heating. When environment is warm enough one do not want his/hers seat to be heatened! LCD can display temperature readings and/or how much heating time is left.

Here are some pics taken during the process:

The initial plan was to install everything here.

001-Environment-20160324_180158

Started to work by removing the Safety Triangle and dissassembling it.

002-Triangle-20160219_008

The journey continues by re-engineering.

003-Re-engineering_traces_20160218_003

The very first version of connection board.

004-First-revision-of-conn-board-20160303_013

Here one can see it from another side. I planned to use PC817 optocouplers for isolation but along the way I switched to relays. More on that later. I took the liberty to use USB-connector for connection with car’s electric system. D9 is for rotary encoder.

006-First-revision-of-conn-board-with-PC817_opto-20160312_075803

This is a starting point for house making to rotary encoder. Black case is from an old wall charger for Nokia mobile phone. Knob is from an old car stereo or something like that.

007-Rotary-control-knob-20160220_003

Here is a rotary encoder soldered in place. When I was continuing this build I realized that I should have put rotary the other way around, three legs pointing to left instead what it is now. Well, it happens to all of us..

008a-Rotary-progress-20160220_006

I also had to install capacitors to reduce interference. It still needs something, readings are not reliable enough.

008-Caps-for-encoder-20160313_103113

There is something in the mess, I rarely see a workbench which is tidy and clean. Hmm, except Quin Dunki’s bench. Her work is amazing.

Anyway, some progress has achieved.

012a-Testing-20160312_101144

This is my power supply. In it’s early life it served as 12V mobile phone charger. Through this I can safely use my small embedded systems in electrycally noisy car environment.

012-PSU-20160311_162310

This is my new connection board equipped with relays. As mentioned, previous plan was to use optocouplers. I did not managet to get them work, maybe because of some my stupid coding error. Anyway, I switched to relays.

Those relays “push” the triangle’s buttons when commanded by Arduino. Smart has conveniently system I like very much: Pushbutton is ON-OFF state information for car’s computer instead of some resistance change. This way relays can be used to “push” buttons.

From left to right connectors are: Black: Temperature probe connection, USB: Power to my system and controlling buttons and D9 is for rotary as earlier mentioned. Temperature connector in salvaged from an old PC’s motherboard. It is an audio connector. In the future there might be coming a minor problem with D9. In the end of cable is a quite heavy connector and stiff car’s suspension combined with that weight might do some issues by removing solder joints during time. That is to be seen.

015-Conn-board-rev_2-20160320_094237

This is a starting point for facade. The white plate is salvaged from an old laptop LCD monitor.

017-Starting-to-make-frontplate-20160312_083032

And here we are: Casing for encoder is ready, temperature sensor(red thing) is ready, main unit is ready. Now it only needs to be installed. And it maybe need some clever programming also. Now it is only a timer ) :

018-Assembled-20160324_174743

This is only temporarily mock-up.

020-Fitting-20160324_202349

From another angle. When thinking how to install main unit on top of dashboard wisely(read: do not drill holes in that dashboard) I got an idea: Why not make a console in front of gear stick and stuff the whole system inside it? That way there is room for that earlier mentioned window-control also.

Yes, that is a good idea. But then again that means a lot of work and no automated seat heaters yet. And Summer is coming. Also, I finally want to enjoy the work of my hands. It has been a long building process. What to do? Naturally install the system. Temporarily, of course. 😉

Encoder is located beside the gear stick. Temperature sensor is on the floor, for now. Wires needs to be sorted. But it works. Hooray!

021-Another-view-of-fitting-20160324_202440

Here is a link for video

That’s all for now!

 

 

 

 

Advertisements

Servicing an Child’s Electric Piano

Recently we were given a small toy piano. Grandmother has bought it from the flea market. It is a very common cheap toy. Somewhere during the road it has had some bumps because half of the keys did not produce any sound at all.

Open it I did.. And it revealed it’s secrets to me. A piece of circuit board was missing, actually the whole board was cut in half. Luckily I managed to find that missing piece.

20150722_001

20150722_003-pala

After some thoughts it was clear what to next. I inserted some cyanoacrylate and then I could go repairing those broken lines. I had to remove some coating that solder could stay in place.

20150723_001.jpg

Then some soldering and it looked like this:

20150723_011.jpg

When reassembly was done I recognised that it works!

20160317_232851.jpg

Honda Quad Starter Motor Repair

20160314_190640-quad

A friend of mine has a Honda quad. He told me that it’s starter motor has gave up a ghost. Naturally I had to crack it open. During dissassembly process turned out that my buddy had rolled the quad upside down a couple of times which explains the motor oil inside of starter motor. After some cleaning it was okay, except brushes which were totaled.

20160302_012-worn-brushes

Especially the another one. It looks like there has been some sparkling if I interpreter those craters right. 20160302_005-craters

My friend ordered the spare parts and a couple of days later them arrived.

20160314_175514-old-vs-new

During the assembly process we cleaned the anchor’s contact pads with sandpaper and a cordless drill. Not worthwhile compare to the lathe, but with limited resourses one must do what is doable..

20160314_180230-cleaned

Of course test drive went south. At first it started and ran fine, but during the second flight it stopped and did not started at all. No power, no nothing.  A closer inspection told me that somebody forgot to connect the ground wire to the motor. After reconnecting the quad ran fine and we back in business. Hooray!