{"id":16,"date":"2019-08-21T10:46:41","date_gmt":"2019-08-21T10:46:41","guid":{"rendered":"http:\/\/hansfix.nl\/electric\/?p=16"},"modified":"2019-08-21T13:33:16","modified_gmt":"2019-08-21T13:33:16","slug":"motor-controller","status":"publish","type":"post","link":"https:\/\/hansfix.nl\/electric\/2019\/08\/21\/motor-controller\/","title":{"rendered":"Motor controller"},"content":{"rendered":"\n<p>To control the speed of the motor, you &#8216;ll need a controller. And some additional hardware&#8230; Of course it is possible to build these parts completely yourself, but the currents in part of this hardware is so high, that any small mistake will lead to a small cloud of smoke. Remember, the motor is 10 kW, at appox. 48V, this gives a current of 200 A! To prevent to much smoke (after the magic smoke has escaped the things don&#8217;t work any more) I went looking for a controller, again on marktplaats.nl I found a Sevcon MOS90 controller, again this is from an old fork lift. The only problem was, I couldn&#8217;t test it and couldn&#8217;t get it to work. So I contacted HSCT and they helped me. It proved that I didn&#8217;t connect it correctly, because when I connected it according to there circuit diagram it worked perfectly. They also adapted the settings a little bit (ax current 300A e.g.). It seems that I also have the most robust one, the one that can handle up to 400A!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"625\" src=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon-1024x625.jpg\" alt=\"\" class=\"wp-image-62\" srcset=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon-1024x625.jpg 1024w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon-300x183.jpg 300w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon-768x469.jpg 768w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon-1200x733.jpg 1200w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/sevcon.jpg 1521w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Sevcon MOS90 motor controller.<\/figcaption><\/figure>\n\n\n\n<p>So that is the base of the controller, but with that controller, it can only run in one direction, so you need a heavy relay (and heavy relays are called contactors) to switch the polarity of one of the windings in the motor. In a series motor there are two: the stator and the rotor, if you change the polarity of one of them, the motor runs in the other direction. If you change both, the motor runs in the same direction again.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"696\" src=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor-1024x696.jpg\" alt=\"\" class=\"wp-image-63\" srcset=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor-1024x696.jpg 1024w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor-300x204.jpg 300w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor-768x522.jpg 768w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor-1200x816.jpg 1200w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/motor.jpg 1513w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Motor with modified connections for stator and rotor. Also visible the contactor to change direction.<\/figcaption><\/figure>\n\n\n\n<p>Because this motor was build to drive an oil pump, it was not possible to change the polarity of one of the windings, only both at the same time. That doesn&#8217;t make sense, so somehow I had to break the connection of the two windings, and get the wires to outside the motor, to connect to the contactor. Luckily this was not to difficult, the wires were easy accessible and two connections were made on a small piece of trespa. So now we had the possibility to let it run in two directions (with a switch), and control the speed with a potentiometer. Not optimal, but workable.<\/p>\n\n\n\n<p>On a boat (and also on It Paradyske) it is normal to have a single lever throttle control. If you move the lever forward, the motor runs forward, and if you pull it backwards, the motor spins the other way round, the further you push the lever, the harder it spins. Yes, fine, but the potentiometer doesn&#8217;t work that way, it only controls fast and slow, and the direction is controlled via a double throw switch, how to adapt this?<\/p>\n\n\n\n<p>One way is to solve it in a mechanical way, but wait, I am a software engineer, and also studied electronics, so why not&#8230;?<br>Yes, solve it in a smart way. Get a microcontroller, a throttle lever, and some nice gadgets (remote control), do a little bit of mechanical modification to the lever and write some software to glue it all together.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1-1024x576.jpg\" alt=\"\" class=\"wp-image-55\" srcset=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1-1024x576.jpg 1024w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1-300x169.jpg 300w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1-768x432.jpg 768w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1-1200x675.jpg 1200w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/20190513_190631-1.jpg 1651w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Mechanical push pull wires removed, and potentiometer added to throttle lever.  This is an almost identical throttle control as mounted on It Paradyske, so I hope this one will fit flawlessly. <\/figcaption><\/figure>\n\n\n\n<p>One of the options I didn&#8217;t mention yet, is the possibility to use a 0-5V voltage level to control the speed of the motor via the MOS90 controller. So basically the microcontroller reads the position of the lever, determines which side of the direction contactor should be activated, instead of a double throw switch some relays are used to control this, and controls with an analogue output the speed of the motor. <br>Of course there are some nice to have things: Standing on the pulpit, and controlling the speed when docking! So a simple remote control was added.<\/p>\n\n\n\n<ul class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"519\" src=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/remoteControl.png\" alt=\"\" data-id=\"57\" data-link=\"https:\/\/hansfix.nl\/electric\/2019\/08\/21\/motor-controller\/remotecontrol\/\" class=\"wp-image-57\" srcset=\"https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/remoteControl.png 617w, https:\/\/hansfix.nl\/electric\/wp-content\/uploads\/2019\/08\/remoteControl-300x252.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure><\/li><\/ul>\n\n\n\n<p>And some temperature sensors to measure the temperature of controller and motor, and a hall effect sensor to read the speed (rpm) of the motor, and an LCD-display to show all these parameters.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To control the speed of the motor, you &#8216;ll need a controller. And some additional hardware&#8230; Of course it is possible to build these parts completely yourself, but the currents in part of this hardware is so high, that any small mistake will lead to a small cloud of smoke. Remember, the motor is 10 &hellip; <a href=\"https:\/\/hansfix.nl\/electric\/2019\/08\/21\/motor-controller\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Motor controller&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"_links":{"self":[{"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":4,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/posts\/16\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hansfix.nl\/electric\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}