tag:blogger.com,1999:blog-40417927691537644342024-02-07T20:45:56.372-08:00The Raspuino FilesReinoud de Langehttp://www.blogger.com/profile/14145260598363023898noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4041792769153764434.post-76892554356821987502017-12-29T12:01:00.001-08:002017-12-29T12:01:39.022-08:00LEGO Technics Elevator - powered by BRIXO<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIU2XlzDJHUkYCiPmPqmesHfsbLwaaC1E53zsL43NGKB73jHQ9qwovlQF78E92SAeFeSWFKC_mIbZ1q3g8ZNu1THTxvOHPiUk7dVdV3db66pYGXL91KyOPw2-XlDnjK7u3LkkqWaPhums/s1600/brixo-kit.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="953" data-original-width="1600" height="119" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIU2XlzDJHUkYCiPmPqmesHfsbLwaaC1E53zsL43NGKB73jHQ9qwovlQF78E92SAeFeSWFKC_mIbZ1q3g8ZNu1THTxvOHPiUk7dVdV3db66pYGXL91KyOPw2-XlDnjK7u3LkkqWaPhums/s200/brixo-kit.jpg" width="200" /></span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;">Some months ago I received my BRIXO kit, so now it was time to do something with it.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;">I decided to rebuild the elevator (together with my son) and control it with BRIXO.</span></span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
</span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4b9JyO__oxYdO7WAybDOHmFrlwu_gwwKewJo-mEgmhNdFKIsENocGvKINmZ2oUVEIXzHIDvhBSnY9Ik5kCmMT8VvWfhOfwdvHmZ-OcvccG7pgBOzRLmJyr_sSOUEo-izbyKS4pOnvwFo/s1600/lego-elevator-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="1600" data-original-width="1185" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4b9JyO__oxYdO7WAybDOHmFrlwu_gwwKewJo-mEgmhNdFKIsENocGvKINmZ2oUVEIXzHIDvhBSnY9Ik5kCmMT8VvWfhOfwdvHmZ-OcvccG7pgBOzRLmJyr_sSOUEo-izbyKS4pOnvwFo/s320/lego-elevator-1.jpg" width="236" /></span></a>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJIDmYYdMGfAYd1HVodrr0wjNyIjpbLEDoixnbOn6sWE3PvXiAWTc7YGyjKxpyzNoEZ6u3OACrc35chcHolYtifTQedF0JHv2E2AeUm0ZdX4zj4zgcstfAc9wHwZixtwLwpHcRTACUstw/s1600/lego-elevator-4.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="1185" data-original-width="1600" height="147" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJIDmYYdMGfAYd1HVodrr0wjNyIjpbLEDoixnbOn6sWE3PvXiAWTc7YGyjKxpyzNoEZ6u3OACrc35chcHolYtifTQedF0JHv2E2AeUm0ZdX4zj4zgcstfAc9wHwZixtwLwpHcRTACUstw/s200/lego-elevator-4.jpg" width="200" /></span></a>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPSkNUWf_H2Cv_On26_VeQ6QEBOcqKABnVECD3kYtYwwmRBwL1yiOlJdo_MttzCfaid5uNjNNgA9qyW1REqBrRiDKrZGpFi37QUrIFrM7X5HNWHrm7y_NyeC09JiHQQBAC9k9ozF4bbDg/s1600/lego-elevator-5.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="1185" data-original-width="1600" height="147" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPSkNUWf_H2Cv_On26_VeQ6QEBOcqKABnVECD3kYtYwwmRBwL1yiOlJdo_MttzCfaid5uNjNNgA9qyW1REqBrRiDKrZGpFi37QUrIFrM7X5HNWHrm7y_NyeC09JiHQQBAC9k9ozF4bbDg/s200/lego-elevator-5.jpg" width="200" /></span></a>
<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;">The result:</span><br />
<br />
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlRJMkWEPFi5mY_dB2FwSIIa8-Ic1SiVl6ZUVrq9qUSEt7dGtbx-KFyhlm09LEoFqIZXgCacwOH2CW9nW8-rTjjBiqSR5qZii4dRTQnN2hHGLublUsbON70fEbJ-Fmh03V2u-k43CPmeI/s1600/lego-elevator-7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="1600" data-original-width="1185" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlRJMkWEPFi5mY_dB2FwSIIa8-Ic1SiVl6ZUVrq9qUSEt7dGtbx-KFyhlm09LEoFqIZXgCacwOH2CW9nW8-rTjjBiqSR5qZii4dRTQnN2hHGLublUsbON70fEbJ-Fmh03V2u-k43CPmeI/s320/lego-elevator-7.jpg" width="236" /></span></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">In order to make it work I had to make some tweaks, I used microswitches (not included in BRIXO kit) and soldered a diode on each switch. The switches are used in 'normally closed' mode.</span></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">Schematics:</span></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg42Q5EsWonOJFluCHuBd7Zwg1chFKEk0GykREyyGiOtpU63dkaGbVyIM0bkATYa4VWLtig51UTy4E3Hi3uDlxcM_ZijvbopSjh7Y9Ohyxm99MtcKqQVM6ckcV5TXwLec7UtjbTZWdM5sI/s1600/Brixo-Elevator-schematics.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><img border="0" data-original-height="208" data-original-width="549" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg42Q5EsWonOJFluCHuBd7Zwg1chFKEk0GykREyyGiOtpU63dkaGbVyIM0bkATYa4VWLtig51UTy4E3Hi3uDlxcM_ZijvbopSjh7Y9Ohyxm99MtcKqQVM6ckcV5TXwLec7UtjbTZWdM5sI/s400/Brixo-Elevator-schematics.png" width="400" /></span></a></div>
<div style="text-align: left;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">The BRIXO battery box can easily switch polarity, so when the elevator reaches the top or bottom the switch will interrupt the current. When the polarity changes the diode will let the current pass and the elevator will move in reversed direction.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP-yLCI_4a2Bw6VFlXN1flaDU8tQLV0IquYvhDK8O5nqSLUYXqEQHQ_hVaT6gpfa-R8uNUta-CG7c48yJLxFy8zNG9k1gPfltSDQ2W6mOnt3OqVmqqQllL5vcH7cvTOMpoZb7A_Nuh6-s/s1600/lego-elevator-6.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="1185" data-original-width="1600" height="147" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP-yLCI_4a2Bw6VFlXN1flaDU8tQLV0IquYvhDK8O5nqSLUYXqEQHQ_hVaT6gpfa-R8uNUta-CG7c48yJLxFy8zNG9k1gPfltSDQ2W6mOnt3OqVmqqQllL5vcH7cvTOMpoZb7A_Nuh6-s/s200/lego-elevator-6.jpg" width="200" /></a>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJL_AG-_HVYhXN-Y9P5bId7Ku5_hM0yfM1BNldiDi4B-YnDeBtUpswz92GOZjpKIC7OUB_PZWXIkYvc8eILurk3_82KN3gSJGb93yF_M1GKs_klwGgjGfDCcboEJ68q6u8NeETP3G4abg/s1600/lego-elevator-8+-+Edited+%25281%2529.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJL_AG-_HVYhXN-Y9P5bId7Ku5_hM0yfM1BNldiDi4B-YnDeBtUpswz92GOZjpKIC7OUB_PZWXIkYvc8eILurk3_82KN3gSJGb93yF_M1GKs_klwGgjGfDCcboEJ68q6u8NeETP3G4abg/s200/lego-elevator-8+-+Edited+%25281%2529.jpg" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJL_AG-_HVYhXN-Y9P5bId7Ku5_hM0yfM1BNldiDi4B-YnDeBtUpswz92GOZjpKIC7OUB_PZWXIkYvc8eILurk3_82KN3gSJGb93yF_M1GKs_klwGgjGfDCcboEJ68q6u8NeETP3G4abg/s1600/lego-elevator-8+-+Edited+%25281%2529.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><br /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJL_AG-_HVYhXN-Y9P5bId7Ku5_hM0yfM1BNldiDi4B-YnDeBtUpswz92GOZjpKIC7OUB_PZWXIkYvc8eILurk3_82KN3gSJGb93yF_M1GKs_klwGgjGfDCcboEJ68q6u8NeETP3G4abg/s1600/lego-elevator-8+-+Edited+%25281%2529.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><br /></a><br />
<br />
<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;">If you look at the schematics you can see the similarities in the LEGO / BRIXO section below:</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkw_OUDaVWVoG9kV9OMV-deqkNeSd6cgAq9mmFYSurCKCD2HBAQvLEbubo1YnhpTbwCxm107pSc7DWXMAORDfmyCYKB3a1rYef-YylgM7pQZRr4k7E6d5hBoHq_Z7X-9AjXb8He1-YN8/s1600/lego-elevator-3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1185" data-original-width="1600" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkw_OUDaVWVoG9kV9OMV-deqkNeSd6cgAq9mmFYSurCKCD2HBAQvLEbubo1YnhpTbwCxm107pSc7DWXMAORDfmyCYKB3a1rYef-YylgM7pQZRr4k7E6d5hBoHq_Z7X-9AjXb8He1-YN8/s320/lego-elevator-3.jpg" width="320" /></a></div>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;">Elevator in action:</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/gUE4fxm7lVA/0.jpg" src="https://www.youtube.com/embed/gUE4fxm7lVA?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<span style="font-family: "arial" , "helvetica" , sans-serif; text-align: start;"><br /></span>Reinoud de Langehttp://www.blogger.com/profile/14145260598363023898noreply@blogger.com0tag:blogger.com,1999:blog-4041792769153764434.post-83046553784939569642014-08-31T08:21:00.000-07:002014-08-31T10:01:53.737-07:00Espruino roadtest - the (not so) useless machine<h2>
Espruino roadtest</h2>
<div>
I received an espruino microcontroller to test and review for element 14.<br />
An espruino is a microcontroller which is runs javascript.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3m4e5drf9XN1YnWJWrE3ESBnj21NrO2T6hq0B_Gx25ZyEJ0mifToomK28yCiCulpS7OUowkXK7e33VZSiR28ZX_25b-4NFEWTdf4-WNepM5AkDtzWNPdw5E4T8oxotrhKydLrAqwN1l4/s1600/Espruino1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3m4e5drf9XN1YnWJWrE3ESBnj21NrO2T6hq0B_Gx25ZyEJ0mifToomK28yCiCulpS7OUowkXK7e33VZSiR28ZX_25b-4NFEWTdf4-WNepM5AkDtzWNPdw5E4T8oxotrhKydLrAqwN1l4/s1600/Espruino1.jpg" height="240" width="320" /></a></div>
<br /></div>
<div>
<br /></div>
<div>
However, when I received the espruino I had limited time and we were soon to go on holidays for three weeks to Italy. Besides that it was also an objective to involve my son in programming the espruino.</div>
<div>
<br /></div>
<div>
So I came up with a simple idea to create a useless machine, not as sophisticated as many do but just a simple device to experience the programming and the hardware.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYaS9ujrgey9VGLGzBkzzbDhwwCgoFsxxast_BdnPnGirheZPxu80D90pjDJ800TNlJoGkvV0DiPFP1H3FyzrggdzspCO0JKI7tVtd7eUCS1MifFgw9r0WhHBHm-9iU6PWVmHWnDv0AMg/s1600/IMG_20140831_153202~2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYaS9ujrgey9VGLGzBkzzbDhwwCgoFsxxast_BdnPnGirheZPxu80D90pjDJ800TNlJoGkvV0DiPFP1H3FyzrggdzspCO0JKI7tVtd7eUCS1MifFgw9r0WhHBHm-9iU6PWVmHWnDv0AMg/s1600/IMG_20140831_153202~2.jpg" height="268" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The idea of a useless machine is that when you flip a switch an arm will appear and switch it off again. In our design the arm is not hidden, but in a 'rest' position.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Just before we went to Italy my son and I made the board on which the switch and servo were mounted and I made a PCB with some connections for the battery, servo and switch. I also soldered a resistor for the pull-down configuration and connection headers on the espruino. The hardware was finished, now only the software needed to be done.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
One nice part of the espruino is the IDE. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw5HQW462vElkkZhaDxp8zJTIoPH8vUcoP_z2pd0E3PKBbkMI5eIqIU2ItpuApgfT2hHnhhJ0NAR9oqUqQ17EfLBhK0zvfHgACHMExM4uFXhyYkCtNkuSoS6TLGug4a9sy3asjpqt8KdE/s1600/Screenshot+2014-08-08+at+13.56.03.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw5HQW462vElkkZhaDxp8zJTIoPH8vUcoP_z2pd0E3PKBbkMI5eIqIU2ItpuApgfT2hHnhhJ0NAR9oqUqQ17EfLBhK0zvfHgACHMExM4uFXhyYkCtNkuSoS6TLGug4a9sy3asjpqt8KdE/s1600/Screenshot+2014-08-08+at+13.56.03.png" height="358" width="640" /></a></div>
<div class="" style="clear: both; text-align: left;">
You can start with the graphical interface (blockly https://code.google.com/p/blockly/) and when you feel limited you can switch to the textual interface (javascript).</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfKWOxrq82inlGKd2gV1cvhSE3oyfj2RumGgLls46P0XCfj8z39c5RGPRh0kxx3pDNDZSiShLIU2bBqcz-frQ5wCFUHCgrKS3yOh4kPx4YsIZoAR8-2gbrBBMfaVd3IdA8Oc4Svf659VM/s1600/Screenshot+2014-08-08+at+13.56.03+-+Edited.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfKWOxrq82inlGKd2gV1cvhSE3oyfj2RumGgLls46P0XCfj8z39c5RGPRh0kxx3pDNDZSiShLIU2bBqcz-frQ5wCFUHCgrKS3yOh4kPx4YsIZoAR8-2gbrBBMfaVd3IdA8Oc4Svf659VM/s1600/Screenshot+2014-08-08+at+13.56.03+-+Edited.png" height="285" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Graphical programming using blockly</td></tr>
</tbody></table>
<div class="" style="clear: both; text-align: left;">
<br /></div>
<div class="" style="clear: both; text-align: left;">
A very nice aspect of this interface is that you can enter a command in the terminal interface and this command will be executed immediately. In this way you can test a command easily and when satisfied continue with your coding.</div>
<div class="" style="clear: both; text-align: left;">
<br /></div>
<div class="" style="clear: both; text-align: left;">
One other very nice aspect is that you can use the IDE on a lot of OS'es (Windows, OSX, Linux, etc.). I use a chromebook and this is the first microcontroller that I can program completely from my chromebook.</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
I like the espruino very much, it's easy to use and works very well with my chromebook. Also it's great for kids, my son really liked the blockly and coding with it!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTOhS3tiVVQWUoiNJeH29-gYuDvzXFjobxXFQk2gGoyC7Nq8ULEdrJ5PAex84z44ZpdW_HiFyhNOlYL-vQ1-E8250aef8f4rOZ4j8YN9ORLhk7uw-gUKi0F7wYc8wZEn6Dnm4xafGTng8/s1600/IMG_20140813_162559.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTOhS3tiVVQWUoiNJeH29-gYuDvzXFjobxXFQk2gGoyC7Nq8ULEdrJ5PAex84z44ZpdW_HiFyhNOlYL-vQ1-E8250aef8f4rOZ4j8YN9ORLhk7uw-gUKi0F7wYc8wZEn6Dnm4xafGTng8/s1600/IMG_20140813_162559.jpg" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1m_SVoJIWJKI98OG1qjzkPWcm1DTdHB05iBQLHrh1m1Th4tHwxiC9qdTPYnA0T9Bn8nBIghTJ1l3Ub6c_ZrkmwvQp4nLQOlFPGb9MVzDA0zUgsYsYKk5CB93gAyhGFLp1BZ0K87Ii7sw/s1600/IMG_20140813_161050.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1m_SVoJIWJKI98OG1qjzkPWcm1DTdHB05iBQLHrh1m1Th4tHwxiC9qdTPYnA0T9Bn8nBIghTJ1l3Ub6c_ZrkmwvQp4nLQOlFPGb9MVzDA0zUgsYsYKk5CB93gAyhGFLp1BZ0K87Ii7sw/s1600/IMG_20140813_161050.jpg" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8NGDkNdm9KuLusvpiD2uQfgpXAUtgYx_1axPgsc_9c-gCvW3ZsSbH1BV_qq0-e2JX3SknJ_De-a3krgAkhPqjep5bCIEx-UJc2wqLHFN38YOhqZs1RxoUpH7xiagot765jgqkZx-GHjQ/s1600/IMG_20140813_162445.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8NGDkNdm9KuLusvpiD2uQfgpXAUtgYx_1axPgsc_9c-gCvW3ZsSbH1BV_qq0-e2JX3SknJ_De-a3krgAkhPqjep5bCIEx-UJc2wqLHFN38YOhqZs1RxoUpH7xiagot765jgqkZx-GHjQ/s1600/IMG_20140813_162445.jpg" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After some explanation of servo's, pulses, frequency etc. my son was able to program the espruino so the useless machine worked:</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxLO9xTDT6O9sox4YxKs147J6098P7mkXEapjv5Hi-WLpLtg7k3oWMr79e7LRLPqpOAnxgzxE9sJzOLNNdmKWAsK3GYRSdkOxF30NbfGcs0GbK3jzborxAtncJbRXoBsy6_kZi5REqMXQ/s1600/IMG_20140831_183554~2.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxLO9xTDT6O9sox4YxKs147J6098P7mkXEapjv5Hi-WLpLtg7k3oWMr79e7LRLPqpOAnxgzxE9sJzOLNNdmKWAsK3GYRSdkOxF30NbfGcs0GbK3jzborxAtncJbRXoBsy6_kZi5REqMXQ/s1600/IMG_20140831_183554~2.jpg" height="400" width="301" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The pulse and the pull-down resistor</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNS2LKSP955N8NEFxYzHH9_PME6O4gtOMgyz6gWNAh8nELzYY_4a2WbqbTEDzUZW8MCMbXMgbt_MmHxYyap4xXgPtXpdoiE0Dr-8e-A4kigXwBJOMQAl6Ul3hy9o-TCoMzdteNDvxr04o/s1600/IMG_20140831_183335~2.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNS2LKSP955N8NEFxYzHH9_PME6O4gtOMgyz6gWNAh8nELzYY_4a2WbqbTEDzUZW8MCMbXMgbt_MmHxYyap4xXgPtXpdoiE0Dr-8e-A4kigXwBJOMQAl6Ul3hy9o-TCoMzdteNDvxr04o/s1600/IMG_20140831_183335~2.jpg" height="400" width="275" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">the 3 blocks of our program</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/InIKd_AUyRk/0.jpg" height="600" width="720"><param name="movie" value="https://youtube.googleapis.com/v/InIKd_AUyRk&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="720" height="600" src="https://youtube.googleapis.com/v/InIKd_AUyRk&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
<div>
<br /></div>
Reinoud de Langehttp://www.blogger.com/profile/14145260598363023898noreply@blogger.com0tag:blogger.com,1999:blog-4041792769153764434.post-61610365411753445632013-06-11T14:56:00.000-07:002013-06-16T09:09:31.174-07:00The Lego Technic Elevator - controlled by a Raspberry Pi and a PiFace DigitalThe idea of this project was born when we needed to test the PiFace Digital as a roadtest for element 14.<br />
<div>
<br /></div>
<div>
When I proposed the idea of building an elevator my son did not know where to start. So we explored the internet, saw some designs, but no building plan or instructions were found.</div>
<div>
<br /></div>
<div>
Then we stumbled upon Linda Hamilton's site: <a href="http://www.marshall.edu/LEGO/lessonplans/Elevator09/Elevator.html">http://www.marshall.edu/LEGO/lessonplans/Elevator09/Elevator.html</a></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx1aQcEP6jQ2lWA55OyMKB1RtbjDgfnrfRmyKCH7QO1n6YRGJaWaUM_SZhRaGT29QKiclob8GrCfecE4l_zJ3UO1J1E7sjpzeIkA9mL3vTfkB762qcIK5fz1MBi8JIzDmfYj911iOYi7I/s1600/ELEVATOR.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx1aQcEP6jQ2lWA55OyMKB1RtbjDgfnrfRmyKCH7QO1n6YRGJaWaUM_SZhRaGT29QKiclob8GrCfecE4l_zJ3UO1J1E7sjpzeIkA9mL3vTfkB762qcIK5fz1MBi8JIzDmfYj911iOYi7I/s320/ELEVATOR.JPG" width="290" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
So there was a design we wanted to build!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
We contacted Linda, and she was so kind to share her design with us using Lego Digital Designer (very nice tool!).</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
So with a few tweaks we built the elevator:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4EMlT6Ko93tTYH5WfcVUQgLzSQgtygYC4H8OocbTB-uk4Xq1rfaFi4cJ-TnzG-kDS_rY5OXVKz5dUZzIIzFGf9FRiLzOOWCcJ2-XliV2YoFAW81TKTGfO5Scd5c8VbGvff2aenYcbh7k/s1600/IMAG1509.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4EMlT6Ko93tTYH5WfcVUQgLzSQgtygYC4H8OocbTB-uk4Xq1rfaFi4cJ-TnzG-kDS_rY5OXVKz5dUZzIIzFGf9FRiLzOOWCcJ2-XliV2YoFAW81TKTGfO5Scd5c8VbGvff2aenYcbh7k/s320/IMAG1509.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio8v4yCbQGVV8JQrkYaBHlnRgSvBZiexo9T0_yu61-Jg9CtSWKwBJu8XBQF9p2oYa0mNBiOFrOuEm-UsYA43wNdOJ7zBynEAX8IiiGneasZlEZyxe7zY7cejofcwMKVrwTPmZ7hkhaF9s/s1600/IMAG1511.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio8v4yCbQGVV8JQrkYaBHlnRgSvBZiexo9T0_yu61-Jg9CtSWKwBJu8XBQF9p2oYa0mNBiOFrOuEm-UsYA43wNdOJ7zBynEAX8IiiGneasZlEZyxe7zY7cejofcwMKVrwTPmZ7hkhaF9s/s320/IMAG1511.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
And it works!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/ktdxkvuq6WQ?feature=player_embedded' frameborder='0'></iframe></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now it was time to let the Raspberry Pi control it!</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
We needed to create some special Lego bricks, like a connector for the motor:</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWu8CHwCZxuUxAfcB0CdeapPyPKTCJK2uIYIZtJIPWHLbVrjU_rJiPYRQfuQoDkbwSP1zTW8tie8yrkJeV7Udmw-4wjqJrQQRcU9Mi5dcozemZaqfAHCSmiWeG6blbuWrizHIIndZOHR4/s1600/964108_585718374796431_1752644448_o.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWu8CHwCZxuUxAfcB0CdeapPyPKTCJK2uIYIZtJIPWHLbVrjU_rJiPYRQfuQoDkbwSP1zTW8tie8yrkJeV7Udmw-4wjqJrQQRcU9Mi5dcozemZaqfAHCSmiWeG6blbuWrizHIIndZOHR4/s320/964108_585718374796431_1752644448_o.jpg" width="320" /></a></div>
<div style="text-align: left;">
<br /></div>
<br />
<div>
And the microswitches:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-vJnfJ3X6GKg/UbNqqWz_DnI/AAAAAAAAQCA/gQiSu9n3Keg/s1600/IMAG1506.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="http://1.bp.blogspot.com/-vJnfJ3X6GKg/UbNqqWz_DnI/AAAAAAAAQCA/gQiSu9n3Keg/s320/IMAG1506.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
So now we hooked it all up. We fitted the switches at the bottom:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwaxdWdAduv7j1uwpEVQ0oGY44P8YhYBYDOWYTL8czZXe1kv1NXtesoEPxXsTCPc-Siz_oT-BG4MXNdsPxrIlzHT6VzHcmKuwO_2XT6-FXxpXn8UOezhkajCssYO8ntB4b9C0RQExPWYs/s1600/IMAG1523.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwaxdWdAduv7j1uwpEVQ0oGY44P8YhYBYDOWYTL8czZXe1kv1NXtesoEPxXsTCPc-Siz_oT-BG4MXNdsPxrIlzHT6VzHcmKuwO_2XT6-FXxpXn8UOezhkajCssYO8ntB4b9C0RQExPWYs/s320/IMAG1523.jpg" width="320" /></a></div>
<br />
And at the top:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidytXDBdMFIz9OnSR0U4Ksf5JluR9LYFruUjnghQEtqh9T-CptLkBZnrCRqVPTRlz2OYhJVMB5B4hFurN7eOqExXxHK_ri3IlJV9R0WJ3dM-8milTMyvGJSopwHg8NoJzwzbHGt1OTcjA/s1600/IMAG1522.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidytXDBdMFIz9OnSR0U4Ksf5JluR9LYFruUjnghQEtqh9T-CptLkBZnrCRqVPTRlz2OYhJVMB5B4hFurN7eOqExXxHK_ri3IlJV9R0WJ3dM-8milTMyvGJSopwHg8NoJzwzbHGt1OTcjA/s320/IMAG1522.jpg" width="320" /></a></div>
<br />
Added a relay switch to be able to inverse polarity and direction of the motor:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGCwZcCYqkJTSWtC1DjF32R9a2t5oRwGsoT9MhOcKoDUhMMb8tHqmReIg2QeKKwLpvI7q8_vgFRpHlYEeALpmKj2AWmU-ytg7wpzUUjqzycGGElo3wfpfAlYwRNa7vSYuGAIcaNRjNGqg/s1600/IMAG1518.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGCwZcCYqkJTSWtC1DjF32R9a2t5oRwGsoT9MhOcKoDUhMMb8tHqmReIg2QeKKwLpvI7q8_vgFRpHlYEeALpmKj2AWmU-ytg7wpzUUjqzycGGElo3wfpfAlYwRNa7vSYuGAIcaNRjNGqg/s320/IMAG1518.jpg" width="320" /></a></div>
<br />
Connected the motor:<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRHIxpdmM81LOc9MaHrMFBTOB7S3svYGKxeIbwtMDgN6QSUhv4rOaR-JzV0wyBke2cLEZesMDGGDjH08zAv9o_jsvJBv4nJpq63d6loC5A8liodNr0gFK8TsqNCajcXpbvO64Wo7ahZdY/s1600/IMAG1519.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRHIxpdmM81LOc9MaHrMFBTOB7S3svYGKxeIbwtMDgN6QSUhv4rOaR-JzV0wyBke2cLEZesMDGGDjH08zAv9o_jsvJBv4nJpq63d6loC5A8liodNr0gFK8TsqNCajcXpbvO64Wo7ahZdY/s320/IMAG1519.jpg" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
And then connected it al to the PiFace:</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSzGypdqM_K7DQ2COLXvdmit-QW6IfPrz_O-zhVw2QQC4s3ajtUd8lMPPsuUQouCmBmHjHo8_OYnXL2BduBIyDPY63CTQhN_m48TAnB-nLLii9H2K-mXHitvkqxnaGRcvTKDhefgi7Ww4/s1600/IMAG1520.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSzGypdqM_K7DQ2COLXvdmit-QW6IfPrz_O-zhVw2QQC4s3ajtUd8lMPPsuUQouCmBmHjHo8_OYnXL2BduBIyDPY63CTQhN_m48TAnB-nLLii9H2K-mXHitvkqxnaGRcvTKDhefgi7Ww4/s320/IMAG1520.jpg" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Now it was time to do some programming:</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaCQRizuSP0-QQwramgomNR98KCtsvj8mkSMPyLCVwG98nME1KeCK3av1GoK2EU1m36dc7dmp6eWT9zynepZZfpT4LMjIJdmxZ3zVS-Rtjk9UI4YSWKfq1BxQWoIGs7MzTJS_8MJvnpB8/s1600/DSC_0273.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaCQRizuSP0-QQwramgomNR98KCtsvj8mkSMPyLCVwG98nME1KeCK3av1GoK2EU1m36dc7dmp6eWT9zynepZZfpT4LMjIJdmxZ3zVS-Rtjk9UI4YSWKfq1BxQWoIGs7MzTJS_8MJvnpB8/s320/DSC_0273.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjnnPminSulGoXMb43-xY7qy4CMDVUMcu15RC3dtPHaLtgv7xQU44eHvTN9K0jhjnZOeOfMNB2kR-M1kyB-qByY-FizDnaSwuqrqLp1N8CTtlNbSDDCJ8XIkHD7xQTH-sQpjt-cKScn_o/s1600/IMAG1521.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjnnPminSulGoXMb43-xY7qy4CMDVUMcu15RC3dtPHaLtgv7xQU44eHvTN9K0jhjnZOeOfMNB2kR-M1kyB-qByY-FizDnaSwuqrqLp1N8CTtlNbSDDCJ8XIkHD7xQTH-sQpjt-cKScn_o/s320/IMAG1521.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
And this is the result:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/7OIZCTDUF2o?feature=player_embedded' frameborder='0'></iframe></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Thanks for reading, and special thanks to Linda Hamilton for the design!!</div>
<br />
--- edit 16 june 2013 ---<br />
<br />
As you might have noticed, at the top the engine forces the elevator to tilt a little before the elevator stops. I assumed it was because of the slow perfomance of scratch, so I tried programming in Python. To my surprise, it made no difference.<br />
<br />
So I took a closer look at the mechanical construction, and modified the wheels:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjDB3jMM-UEy4b5rQrCwRvJucbDxvldHDrgZwlrZYZqQ2n01PHnPkvMJhJvUGT18I-HnZfoyc93FQ5zuVEuigh9eJsZ8VAtBgh1F8z5nh7hpIxx0XVmY_IAH7vi2XVI_3qhJNcZs-s24Y/s1600/IMAG1542.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjDB3jMM-UEy4b5rQrCwRvJucbDxvldHDrgZwlrZYZqQ2n01PHnPkvMJhJvUGT18I-HnZfoyc93FQ5zuVEuigh9eJsZ8VAtBgh1F8z5nh7hpIxx0XVmY_IAH7vi2XVI_3qhJNcZs-s24Y/s320/IMAG1542.jpg" width="320" /></a></div>
<br />
Now the elevator cage is moving smoother and when at the top the switch is pressed earlier, resulting in almost no tilting:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/yayMKsHmwEM?feature=player_embedded' frameborder='0'></iframe></div>
<br />
The python script:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwKst7ijqRh34U5-d1KSkH1JYLsm0VBcABwvAcbwjKrrbmmaQfQ1vYQddOPY6wlUUamtFth60ibHkn_SSa0RdE04RzBq7f8ZPmsng6uz8wm_MpcpVzEQrA1ZNt6ypghiOl6qzfOzDHytM/s1600/IMAG1548.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwKst7ijqRh34U5-d1KSkH1JYLsm0VBcABwvAcbwjKrrbmmaQfQ1vYQddOPY6wlUUamtFth60ibHkn_SSa0RdE04RzBq7f8ZPmsng6uz8wm_MpcpVzEQrA1ZNt6ypghiOl6qzfOzDHytM/s320/IMAG1548.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirbJuOwZDNEsrafBm5KUBvL3tYc0FRbJFcXiMjjutZCX7oEDJkC9cKYGpg3O1xdQUuVWVvweq5dEToF7grs0X4nO57EuvqsXyf-ptxeGxcKLprNoL-o-virlHYjO1yoCC0vxJOKvujDk0/s1600/IMAG1549.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirbJuOwZDNEsrafBm5KUBvL3tYc0FRbJFcXiMjjutZCX7oEDJkC9cKYGpg3O1xdQUuVWVvweq5dEToF7grs0X4nO57EuvqsXyf-ptxeGxcKLprNoL-o-virlHYjO1yoCC0vxJOKvujDk0/s320/IMAG1549.jpg" width="320" /></a></div>
<br />
I noticed that the Raspberry Pi still takes up 100% processor usage, probably caused by the while True loop?<br />
<br />
<div style="text-align: left;">
<br /></div>
<br />
<div>
<br /></div>
Reinoud de Langehttp://www.blogger.com/profile/14145260598363023898noreply@blogger.comtag:blogger.com,1999:blog-4041792769153764434.post-12944020848690830582012-12-03T23:46:00.001-08:002022-09-16T10:11:13.232-07:00Spin-off van Het Arduino - de Lange Programma<span style="font-family: Arial, Helvetica, sans-serif;">The Raspuino Files... waaat?</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Als een vervolg/spin-off van <a href="http://www.blogger.com/blogger.g?blogID=3713223929048155179#overview/src=dashboard" style="color: rgb(34, 34, 34) !important; line-height: 22px; margin: 0px; padding: 0px; text-decoration: initial; white-space: nowrap;">Het Arduino - de Lange Programma</a> wordt er ook geƫxperimenteerd met de Raspberry Pi gekoppeld aan de Arduino.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Raspberry Pi:</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
the case</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJsF3bdRun-55S8CGreZZSbWDJEnDKed13CrkaID0lsO8tHXOZLwobHmeplYVEBth1GbOs9DkJDw9RmArUghDOBQePJkKTX7uByL5gfyWx8klvnRKQ5o4kZgRNz02EvUt8L726RlaQN6M/s1600/IMAG0943.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJsF3bdRun-55S8CGreZZSbWDJEnDKed13CrkaID0lsO8tHXOZLwobHmeplYVEBth1GbOs9DkJDw9RmArUghDOBQePJkKTX7uByL5gfyWx8klvnRKQ5o4kZgRNz02EvUt8L726RlaQN6M/s320/IMAG0943.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
the contents</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKzXyVz5K0fy1DLSGI1B-THRfXqKi3LgbNifDCMyJlz3gYgHd304wo8iE3yXCB3Q9r9UIhZbgmHQWVuwPdqlnXn0YqDUy1OnzeoEkC_4xPevrkAWLk6qLaudGcN0xlOop-QOY3ZsxYXy8/s1600/IMAG0947.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKzXyVz5K0fy1DLSGI1B-THRfXqKi3LgbNifDCMyJlz3gYgHd304wo8iE3yXCB3Q9r9UIhZbgmHQWVuwPdqlnXn0YqDUy1OnzeoEkC_4xPevrkAWLk6qLaudGcN0xlOop-QOY3ZsxYXy8/s320/IMAG0947.jpg" width="320" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>Reinoud de Langehttp://www.blogger.com/profile/14145260598363023898noreply@blogger.com0