tag:blogger.com,1999:blog-34206756644270419652024-03-13T23:00:56.864-07:00Legwinskij's GadgetsLegwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.comBlogger59125tag:blogger.com,1999:blog-3420675664427041965.post-24401855594518930902014-08-09T16:08:00.001-07:002014-08-09T16:08:46.716-07:00Raspberry Pi cooling fan<div style="text-align: center;">
</div>
<div style="text-align: center;">
</div>
<div style="text-align: left;">
Hi ! So, after quiet some time I've decided to post something here. Recently I've been working with Raspberry Pi more often, and I noticed that even with small load for longer periods of time it can get hot, and that lead me to decision to add a small fan to it.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9lGZqJ8PcjGtzyawVJw9aH-GubF8wgh2hFTJTJDMNIO1C3RwuBGLOjMGEWNnAv2QIvo7st5zZxtWoQ1Z-ca4pkcW5eRukcjcRwGYVhSByRdliLZx_TWMn1F30DyhwQ_G-pwTjcanaqQI/s1600/20140809_182912.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9lGZqJ8PcjGtzyawVJw9aH-GubF8wgh2hFTJTJDMNIO1C3RwuBGLOjMGEWNnAv2QIvo7st5zZxtWoQ1Z-ca4pkcW5eRukcjcRwGYVhSByRdliLZx_TWMn1F30DyhwQ_G-pwTjcanaqQI/s1600/20140809_182912.jpg" height="300" width="400" /> </a> </div>
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
You can check temperature of your Pi in Celsius via terminal by typing one of these two commands :</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
/opt/vc/bin/vcgencmd measure_temp </div>
<div style="text-align: left;">
cat /sys/class/thermal/thermal_zone0/temp (divide by 1000)</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
After one hour of pretty much idle sitting, Pi can get all the way up to 53.5 °C, which may not be critical but it's not ideal, taking in consideration fact that while performing demanding tasks temperature will grow higher. I went for 30x30 mm fan, that can sit directly above the processor. Screw in the mounting hole available at the Pi alongside with the s-video jack hold it in place. I wanted to keep 2x13 GPIO pin headers intact, so instead I've used <a href="http://www.panu.it/raspberry/R2.jpg" target="_blank">P5 pins</a>, that have all that is <a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/09/Raspberry-Pi-GPIO-Layout-P5-Underside.png" target="_blank">needed</a> in order to make this work. I've then added simple header connector that has a 2n2222 transistor on it, base of which is controlled by GPIO pin number 30. By changing resistor value you can pretty much vary fan speed. One I've used is rated 5V and 72mA, but I decided to use 10k resitor on the base which together with beta of transistor (~ 100) gives around 45 mA to the fan, so that it runs smoothly and very quietly. At the bottom you can see simple bash script that is executed in rc.local to run as a background process everytime Pi is turned on. It's basically constantly checking whether temperature has crossed the threshold and when yes it activates the fan for 5 minutes. Of course you can go even further, use python for instance that will give you with help of RPi.GPIO library ability to use PWM to scale the speed to current temperature, but I wanted to keep it simple. </div>
<div style="text-align: center;">
<br />
<iframe allowfullscreen="" frameborder="0" height="284" src="//www.youtube.com/embed/MorxOj0c26Y" width="504"></iframe>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIbPCiIGjGL-YKaAcriRf8t5LKBxdB4dx9erYZarcQldKk_TDK4YwKnu7d0D9d-QZPDUrotTEaCx_dX_W9QlkTXKR6DC7zLX_8k4ZViGuxW2zC37cVsU2az3Oek51N0N9AkpY6s4Tkdas/s1600/2014-08-09-18-26-44.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIbPCiIGjGL-YKaAcriRf8t5LKBxdB4dx9erYZarcQldKk_TDK4YwKnu7d0D9d-QZPDUrotTEaCx_dX_W9QlkTXKR6DC7zLX_8k4ZViGuxW2zC37cVsU2az3Oek51N0N9AkpY6s4Tkdas/s1600/2014-08-09-18-26-44.png" height="188" width="400" /></a></div>
<div style="text-align: center;">
<br />
<br />
<br /></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com1tag:blogger.com,1999:blog-3420675664427041965.post-12708812645944589712013-12-27T10:28:00.000-08:002013-12-27T14:40:05.105-08:00STIGA table hockey custom scoreboard<div style="text-align: justify;">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
<w:UseFELayout/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]-->
Hi there ! First of all merry Christmas and happy new year. I am sorry that I wasn’t active for a long time, but things have changed lately. I had to overcome some things, I can’t tell you whether I’ll continue with this blog, but for right now I want to. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidF4jLThSBrpqj0FhBMlCSZeyY6kLQg0-2ti73o4CgZ-6bdNx8p-TfaLjTp8q5owUvx-g13uy3mGgJUGFUrl1C3_YbxVLb7FfjNcYAU3o4Ky7S0nzdjvGVJpoHGHaHcqX4FOwn8-eLif8/s1600/20131224_230356.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidF4jLThSBrpqj0FhBMlCSZeyY6kLQg0-2ti73o4CgZ-6bdNx8p-TfaLjTp8q5owUvx-g13uy3mGgJUGFUrl1C3_YbxVLb7FfjNcYAU3o4Ky7S0nzdjvGVJpoHGHaHcqX4FOwn8-eLif8/s400/20131224_230356.jpg" width="400" /></a></div>
<br />
<div style="text-align: justify;">
So, few weeks back my brother had called me, and he said that he would like to restore an old STIGA table hockey, that we used to play with, when we were younger. I thought it was a great idea, so he wanted me to create a scoreboard, since game itself had only mechanical one that was not very appealing. They also came up with new goals and nets for them and we’ve ordered original NHL teams. So when designing I went for the easier option, so I have found <a href="http://www.ebay.com/itm/7-Segment-4-Digit-Display-Serial-I2C-interface-Normal-Clock-Type-/310728114730?pt=UK_BOI_Electrical_Test_Measurement_Equipment_ET&hash=item4858d6c22a" target="_blank">these</a> I2C display modules, because multiplexing eight 7-segment displays with single atmega328 would be suicide. They came right before Christmas, and I brought home with me few tools to put it all together. It wasn’t as easy as though at the beginning since library provided by the seller wasn’t directly for the version of the displays we’ve ordered. That’s the reason why it took me some time to figure it all out. After that it was pretty straight forward. You can see the working scoreboard in the video, also Brandon Dubinsky scoring brilliant goal ! </div>
<div style="text-align: center;">
<br /><iframe allowfullscreen="" frameborder="0" height="284" src="//www.youtube.com/embed/CKfI52EpG4k" width="504"></iframe>
</div>
<div style="text-align: center;">
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqM-ugjYklgTPpO7XEjXlMqjldm0dAgZTSpcCJup1he7oMdiPyybz2JMpQ5aD23wI0J04zoTV_bNNONQ-5N9mgeriulVWiPa0YLiWSMPs92xsEtk7YuAT1F26K5DpRvpdtpjJd8xZi2Zo/s1600/FB_IMG_13874585887970706.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqM-ugjYklgTPpO7XEjXlMqjldm0dAgZTSpcCJup1he7oMdiPyybz2JMpQ5aD23wI0J04zoTV_bNNONQ-5N9mgeriulVWiPa0YLiWSMPs92xsEtk7YuAT1F26K5DpRvpdtpjJd8xZi2Zo/s400/FB_IMG_13874585887970706.jpg" width="400" /> </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/AVvXsEjG_vSDlRpHbA0wsrdo7x1vL5y5ZxCIiuzSrO8Tr4aj2Q63uskllxvs3WPhEgjmUTC3jD9zbGQ2YffjdZzFA0NBhrfsb5aNsB2PUMSrbBExOqPSk4b2gEYDgUaX63enaVoI9jZLzuKuUDs/s1600/FB_IMG_13878578291017377.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG_vSDlRpHbA0wsrdo7x1vL5y5ZxCIiuzSrO8Tr4aj2Q63uskllxvs3WPhEgjmUTC3jD9zbGQ2YffjdZzFA0NBhrfsb5aNsB2PUMSrbBExOqPSk4b2gEYDgUaX63enaVoI9jZLzuKuUDs/s400/FB_IMG_13878578291017377.jpg" width="400" /></a></div>
</div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com6tag:blogger.com,1999:blog-3420675664427041965.post-37028043768645682732013-06-01T07:17:00.000-07:002013-06-01T07:17:05.510-07:00NewsflashHi there ! Last week I had final exams at my secondary grammar school, so I want to apologize for inactivity, but there was no time for that. Good news is that I passed, and I've been accepted to the Brno University of Technology, so I'll be moving to Brno during summer. Thing is that I have almost 4 months of summer in front of me, so I will try to build as many cool things as possible, thanks for your support :).Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-72046857908984142452013-03-31T14:32:00.002-07:002013-03-31T14:32:47.083-07:00Portable Power Supply<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>SK</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
<w:UseFELayout/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><br />
Hi ! First of all happy Easter to everyone. If you haven’t seen it yet, <a href="http://www.youtube.com/watch?v=EHxhes3V1aY" target="_blank">go watch my reel</a>, I hope you’ll like it.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpwtpydyiR5XOe0DY6eFIsyUGME-Zdvsf63GMRcjr4tWoJWt8_dxxg5yvJ_OqxbhFvAxcAd2URzd0XcuvFPaax5t4VAmOKIhxnIS3Awg51LoJsSYNYdNBLueCuZIiHe8cHSzXq5OPeguw/s1600/DSC01687.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpwtpydyiR5XOe0DY6eFIsyUGME-Zdvsf63GMRcjr4tWoJWt8_dxxg5yvJ_OqxbhFvAxcAd2URzd0XcuvFPaax5t4VAmOKIhxnIS3Awg51LoJsSYNYdNBLueCuZIiHe8cHSzXq5OPeguw/s400/DSC01687.JPG" width="400" /></a></div>
<br />Currently I’m working on a project that uses Raspberry Pi, but it requires Pi to be portable. This raises a question of power supply. Of course, I could just use 4 AA batteries or something temporary, but idea of portable power supply has been in my mind for some time. Once again I decided to use Nokia LiPo batteries, since they are great, and I have a lot of them. I used 3 x 1500 mAh ones so it gives me about 4.5 Ah to work with, which is not bad at all. At ebay I found <a href="http://www.ebay.com/itm/1-x-PCB-Li-ion-Lipo-Battery-3-7V-step-up-Convert-to-Output-Power-DC-5V-DLX-UPDC-/130725341903?pt=LH_DefaultDomain_0&hash=item1e6fd66acf" target="_blank">these 3.7V to 5V booster converters</a>, they’re great so I’ve already bought two of them. There was some problem with grounding, because circuit wasn’t working after resetting, so I had to connect battery and output ground with schottky diode, which solved the problem. I decided to put it all in an altoids tin. I still have lot of them from the times when I was building portable circuits. I have to say this thing is a beast, it has no problems with powering things like Arduino, Raspberry Pi or even charging my phone. Only problem is that circuit doesn’t have control of how much is being drawn from batteries, so when I’m charging my phone, circuit is giving out something like 1 ampere, and it gets really hot immediately. But that doesn’t matter since I will only be using it on my bench. Having handy 5V supply available every time is great.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ49EZCpwVhUOj90jMBC7Xtgm8o8Asj-dvTKCsS_L8O9IyMF1K3Zfx_J9iEfnS_3OeCsqcqwS3acNTD3FoqpBVg4pl6-X1OCej6QRh7OjzS49HumUSOWNd5K6Cj3qDgoagTAOTnNlT4j0/s1600/DSC01692.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ49EZCpwVhUOj90jMBC7Xtgm8o8Asj-dvTKCsS_L8O9IyMF1K3Zfx_J9iEfnS_3OeCsqcqwS3acNTD3FoqpBVg4pl6-X1OCej6QRh7OjzS49HumUSOWNd5K6Cj3qDgoagTAOTnNlT4j0/s400/DSC01692.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8q7s2ZDnuCC2uZve1t_-ygMoMRmYBscmUtSHHhIx-dTNajI4xEFg0_U6I8NGIQ3YGokVZmDsmU2hwuZO7KVgKFOZTVF-dGWVezxlGkmTdca1-80od30jyy22ooFd_VMO6uiibnf0yXS4/s1600/DSC01693.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8q7s2ZDnuCC2uZve1t_-ygMoMRmYBscmUtSHHhIx-dTNajI4xEFg0_U6I8NGIQ3YGokVZmDsmU2hwuZO7KVgKFOZTVF-dGWVezxlGkmTdca1-80od30jyy22ooFd_VMO6uiibnf0yXS4/s400/DSC01693.JPG" width="400" /></a></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com3tag:blogger.com,1999:blog-3420675664427041965.post-81899058320023673542013-02-09T16:38:00.003-08:002013-02-09T16:38:46.595-08:00Observer Reboot [2.0]<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
</style>
<br />
Hi ! First of all I want to apologize for not being active for quiet some time. I was working on something big, but it was going slow so I had to make a break and I decided to reboot the observer !<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEcRQbaaaK3AGRNvYKohyJu1QQ9_IIzFWzwEZi0n_toOFwdg49oFKR6hmRuwL3VSQ7_r4NiJLnTDICdP2mExCEly_XNhGP8bwTQKPT5U1YXbO6a8liqdMVWmGf7HTzvUnB7xXs1jXM2HM/s1600/DSC01660.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEcRQbaaaK3AGRNvYKohyJu1QQ9_IIzFWzwEZi0n_toOFwdg49oFKR6hmRuwL3VSQ7_r4NiJLnTDICdP2mExCEly_XNhGP8bwTQKPT5U1YXbO6a8liqdMVWmGf7HTzvUnB7xXs1jXM2HM/s400/DSC01660.JPG" width="400" /></a></div>
<br />
Year ago I lost all of my data including code that was on observer, since that I'm storing all of my data on cloud, and a usb drive aswell. So when I was wondering what could I do with xbee modules, I thought that I could finally write some new code for observer, but at the same time I wanted to make some improvements. So I decided to use control glove, which has a lot of potential, even more now since I've added bend sensor to the index finger. So I've built small bracelet that has xbee inside and antenna. I etched new board for observer, which used a transistor to control whether servos are on or not, but that wasn't working quiet well because transistor wasn't able to provide enough current and to switch servos fast enough and it caused servos to jitter. Reason was that control glove sends data every 50 ms and observer refreshes itself every 45ms in order to make turning and speed control smooth enough. I am also using two power supplies now, because I like to separate logics from servos. It was quiet hard to synchronize data sending/receiving, and as you can see in the video it's far from being perfect.<br />
<br />
<div style="text-align: center;">
<object height="284" style="clear: both; float: center;" width="504"><param name="movie" value="http://www.youtube.com/v/15cNiRDZR0s?hl=en_US&version=3"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/15cNiRDZR0s?hl=en_US&version=3" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnoJzE3WeSiQfsynUix4H9ZYUwsgwTby2JWurp04sq8xH_bCMIUsLqnjs4TSKDZulrxh7IcJz9WpIXo6s5snqhZhIqpIyI9ASYkH62WfQkH9oGspEt8A4e6Ik9RbUCVVGeP3Z5CpPEeRA/s1600/DSC01656.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnoJzE3WeSiQfsynUix4H9ZYUwsgwTby2JWurp04sq8xH_bCMIUsLqnjs4TSKDZulrxh7IcJz9WpIXo6s5snqhZhIqpIyI9ASYkH62WfQkH9oGspEt8A4e6Ik9RbUCVVGeP3Z5CpPEeRA/s400/DSC01656.JPG" width="400" /></a></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/AVvXsEibfvARg8QFnSFlktpF6JZ4-YsgI5MlBJYsa7962GlzTsOPmlztgcNaT9zJb1EqdqfucR8m0s-GxtmZsm-gZJrNWWbn0OgqFbAxXUeUaexjzzWrwdS4iN5r0PLeldnRtcGXJp2PdG9Ufq0/s1600/ObserverRev2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibfvARg8QFnSFlktpF6JZ4-YsgI5MlBJYsa7962GlzTsOPmlztgcNaT9zJb1EqdqfucR8m0s-GxtmZsm-gZJrNWWbn0OgqFbAxXUeUaexjzzWrwdS4iN5r0PLeldnRtcGXJp2PdG9Ufq0/s320/ObserverRev2.png" width="248" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
This is the first time I've decided to make a proper narrated video, so please let me know what you think of it, because if it's bad I will return to the old way of doing short videos with music in background. So if you liked it please like it or let me now in the comments. As for my future plans, I'll get back to that big secret project and I hope, it won't take me lot of time to finish it.Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-60618830370233674332012-12-31T06:30:00.000-08:002012-12-31T06:30:46.536-08:00PF 2013 !I want to wish you all a great year full of joy and happiness !<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsuGLgHtaMEMtL52JVWwQajsCkccB4b4tcLiwvSfXCOvUiRll2AkHDPWxPDJrMjkVkIhEYw_FQDJ2SjC1VA1FobOz34_d_h0i3LnoZJjEgIKXa_enPr0WMYw1t-F3YfmtCDRr5vY5Nn2Y/s1600/braceletcontroller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsuGLgHtaMEMtL52JVWwQajsCkccB4b4tcLiwvSfXCOvUiRll2AkHDPWxPDJrMjkVkIhEYw_FQDJ2SjC1VA1FobOz34_d_h0i3LnoZJjEgIKXa_enPr0WMYw1t-F3YfmtCDRr5vY5Nn2Y/s400/braceletcontroller.png" width="400" /></a></div>
<br />
From my perspective year 2012 was really good, I feel like I moved to a next level with my skills and everything. I build my best project yet - Bracerbot, which is still not finished, but I am really happy that I was able to bring my ideas to real world. Good news is that for Christmas I got tablet with the pen ! At first I thought I wouldn't be able to fully use it since I'm not an artist, but then I sketched some things and here you can see some things that come out. So I will maybe create new category called concepts for things that I have in mind, but I can't really realize them.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6u8UXXTAs6MVoNbEMFckez-yE-WzMso__O8KNG6rEpjcww8cilDMofunICaBtYk8d0pUCFb7AdF7FOnDs41qwQKtRcZgGbmfoeIogktUTYR9OvFueO0acIxGTrqoVV7J8ElqIuUJHbAc/s1600/Biped.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6u8UXXTAs6MVoNbEMFckez-yE-WzMso__O8KNG6rEpjcww8cilDMofunICaBtYk8d0pUCFb7AdF7FOnDs41qwQKtRcZgGbmfoeIogktUTYR9OvFueO0acIxGTrqoVV7J8ElqIuUJHbAc/s400/Biped.png" width="280" /></a></div>
<br />
So what's next in 2013 ? Well I hope a lot more projects that you will like (I will probably start with that Biped on picture).Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-37630334072917173722012-12-23T12:50:00.000-08:002012-12-23T12:50:24.430-08:00Merry ChristmasI want to wish you all Merry Christmas !<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdrIhpBmpTVxWmKm8l_GOEzWhjM_CiTXOdN0CrBtFtPHcp4Zi-tplkTAeWZsJi8YryTdo6jOoZZXg-KyMJOQ_UxBVemuMbNhJkehz0Ypryy5dvRHh0C4VUSbSVssrLNfyXO73Vw9Z4aCU/s1600/christmas.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdrIhpBmpTVxWmKm8l_GOEzWhjM_CiTXOdN0CrBtFtPHcp4Zi-tplkTAeWZsJi8YryTdo6jOoZZXg-KyMJOQ_UxBVemuMbNhJkehz0Ypryy5dvRHh0C4VUSbSVssrLNfyXO73Vw9Z4aCU/s400/christmas.jpg" width="400" /></a></div>
<br />Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-46337754214290729652012-12-08T13:12:00.000-08:002012-12-08T13:12:31.745-08:00XBees have arrived !
<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
--</style>Hi there ! Reason I was inactive for some time is that I was still setting up at a new flat.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCrKEPGwaA3wNbyk1JO8dEiFc5b7d_DNELdOtGV0pg4GXnEcx4MAo5HZnqs6wqTIPEqNtlA0CyFjezf0lrPM9dRa2nwkUNPPnmGLjXtyCXIjJvY0fTqRrwECLdlS2O_jrZWUfUQwBqsI/s1600/DSC01560.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCrKEPGwaA3wNbyk1JO8dEiFc5b7d_DNELdOtGV0pg4GXnEcx4MAo5HZnqs6wqTIPEqNtlA0CyFjezf0lrPM9dRa2nwkUNPPnmGLjXtyCXIjJvY0fTqRrwECLdlS2O_jrZWUfUQwBqsI/s400/DSC01560.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I am also waiting for some things I've ordered from e-bay. But big news, Christmas have come earlier this year, as I've ordered 2 xbee modules from local store and I already have them ! I spent some time with setting them up, but eventually I was able to send data between them. I'm quiet happy that I've acquired them, and I'm looking forward to use them in some future projects. There is one problem though, I bought ones without antennas (not even surface mount ones), they have only u.fl connectors, so I need to buy some, because range now is only about half meter. I hope I'll be able to finish my next project before Christmas, but it all depends on whether things I've orders arrive soon enough.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdZoUxQxuP2JYM0whKgk6nDxENUVr9T35rRrIvfTXc-a3UDUZrv0ZhXLCcEwchjHpQv5grHSEUUpGQ-PaCshmxQDi__JSuqRVm2k22ltNO0eK_KuPsz3eWIYMYWEhHGEiQAWmZdTbZ4TY/s1600/DSC01572.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdZoUxQxuP2JYM0whKgk6nDxENUVr9T35rRrIvfTXc-a3UDUZrv0ZhXLCcEwchjHpQv5grHSEUUpGQ-PaCshmxQDi__JSuqRVm2k22ltNO0eK_KuPsz3eWIYMYWEhHGEiQAWmZdTbZ4TY/s400/DSC01572.JPG" width="400" /></a></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-87158496780920187872012-11-06T15:01:00.001-08:002012-11-06T15:01:51.070-08:00First steps with Raspberry Pi
<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
--></style>Hi there ! I've been inactive for few weeks because we have moved to a new flat. It's in the same city, but my PC was disassembled for few days and I'm still putting together my workplace.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCJh4Qdp40Bv4tYOzGkGv6ASjm4Yiz-XFnb4-7GeQYBJud2wJ6FoTitSS4j5ia4QEfejLcGSPvK8wlqtOB8OEAuYDgC9uCIZ7tLD0VIYsH7jB4Ehdak1yp1NWw9ZBFXP_zpuNW7HLOPM/s1600/DSC01369.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCJh4Qdp40Bv4tYOzGkGv6ASjm4Yiz-XFnb4-7GeQYBJud2wJ6FoTitSS4j5ia4QEfejLcGSPvK8wlqtOB8OEAuYDgC9uCIZ7tLD0VIYsH7jB4Ehdak1yp1NWw9ZBFXP_zpuNW7HLOPM/s400/DSC01369.JPG" width="400" /></a></div>
<br />
In spite of that, I've been playing with Raspberry Pi and <a href="http://www.ebay.com/itm/PC-Mini-Bluetooth-Wireless-Keyboard-Google-TV-Media-Control-Touchpad-for-ps3-/270885290326?pt=Other_Tablet_eReader_Accessories&hash=item3f12058156" target="_blank">this awesome Bluetooth keyboard</a>, that has already arrived, and a I have to tell that it's amazing ! No problem with pairing, charges really fast, can be connected to virtually anything, has amazing function keys, USB Bluetooth dongle can be stored in it and it has laser pointer and back-lighted keys ! I have to say it's one of the most useful things I ever bought. Raspberry Pi itself is amazing as-well, I wasn't expecting it to be fast, actually I've expected it to be slow as hell. At first I used Occidentalis from Adafruit as OS, but it turned out that there are some issues with the kernel and the new model of Pi that has 512 MB RAM, so I downloaded newest Wheezy, which is basically debian. I myself prefer Ubuntu, but on a piece of hardware like that, you don't wan't to waste any of your processing power. First thing I did was that I've overclocked ARM 11 processor from 700 MHZ to 950 MHZ and with 450 (usable) MB or RAM this device has quicker response than I've imagined, of course if you're installing something via terminal, it takes a lot of time. Second thing I did was that I've used a small script to automatically bind that Bluetooth keyboard to Raspberry, because it's not wireless, but bluetooth keyboard so you have to connect it manually. This script allows me to work with this keyboard immediately, with no need of wired keyboard or mouse. After that was done, I wanted to play with some GPIOs, but there was a problem, ribbon cable. I only had 40 pin one, and Pi uses 26 pin. So long story short, I've 'adjusted' cable with some pliers for metal and hot glue.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi47l-ssGyPprdmRwxq2qhIjQqndIosHsXfwHQJyUTKUO4Pz61d0xrdkPUS4XEMbgkZcoRSN1HnXPzAGQ4SNSAb-L4Xn6EgmM09SUR9KBd6I8m-TScjWE5u_DlGwp0UDu65VVG85iRza0U/s1600/python.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi47l-ssGyPprdmRwxq2qhIjQqndIosHsXfwHQJyUTKUO4Pz61d0xrdkPUS4XEMbgkZcoRSN1HnXPzAGQ4SNSAb-L4Xn6EgmM09SUR9KBd6I8m-TScjWE5u_DlGwp0UDu65VVG85iRza0U/s400/python.png" width="400" /></a></div>
<br />
After that I downloaded Geany, which is really lightweight IDE for various languages. Then you need to download RPi.GPIO library via terminal and you're good to go. This was first time when I saw python, I have to say I like this language, it's easy, simple, portable yet have lot of possibilities. So if you're considering buying Raspberry Pi, I recommend you to, because for that amount of money it's an amazing piece of hardware and it's really fun to play with and you can definitely expect some projects that will use it.Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-51730749238486243882012-10-17T06:00:00.000-07:002012-10-20T00:57:04.430-07:00Raspberry Pi<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
</style>Hi ! First of all I would like to thank all of you, because I've recently hit 50,000 views on youtube ! It makes me proud and motivates me to do more and better stuff. <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsenmR_8bjxn__Fi9M9wsg5ldVYgrblU4cO4uaklLg5W8B_xiws3zxNxiYd6jyuaGvsPXTcehoWJSjv-uMLtCQ5JsR7GbuVzaQpjdlWnF1jaMzOSfAsFlmRTGTVg_NJWHp9SM-xhEyvBY/s1600/DSC01148.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsenmR_8bjxn__Fi9M9wsg5ldVYgrblU4cO4uaklLg5W8B_xiws3zxNxiYd6jyuaGvsPXTcehoWJSjv-uMLtCQ5JsR7GbuVzaQpjdlWnF1jaMzOSfAsFlmRTGTVg_NJWHp9SM-xhEyvBY/s400/DSC01148.JPG" width="400" /></a></div>
<br />
Next important thing is that my Raspberry Pi has finally arrived ! (it took 75 days) Original one that I've ordered got lost, so they had to send new one, on the other hand it's probably even better, because they've send me new model B with 512 MB RAM. I've already bought HDMI cable, Acrylic case and SD card. I want to make my raspberry fully portable, so expect some mods in near future, for that reason I've ordered this <a href="http://www.ebay.com/itm/PC-Mini-Bluetooth-Wireless-Keyboard-Google-TV-Media-Control-Touchpad-for-ps3-/270885290326?pt=Other_Tablet_eReader_Accessories&hash=item3f12058156" target="_blank">mini bluetooth keyboard with mouse pad</a> from ebay. It's small, portable, wireless and uses only one USB port.Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-57079271558916322432012-09-28T13:51:00.003-07:002012-09-28T13:51:56.315-07:00Bracerbot Beta UI<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
</style>Hi there ! I'm back with another update. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgok9C0xdILlFHfS_LRwrmN-78VYIueZ0Dy1VIRiI5HJoqsZwwJRHJ_VQGZ64N7cS4n5JDwd_YecGw3HD2p-aKMBDUFqgwYqgN-m8x-TQI4gl1Q17xIJnXfyd9kYkEbfWogN3WN1HFEbbw/s1600/screen.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgok9C0xdILlFHfS_LRwrmN-78VYIueZ0Dy1VIRiI5HJoqsZwwJRHJ_VQGZ64N7cS4n5JDwd_YecGw3HD2p-aKMBDUFqgwYqgN-m8x-TQI4gl1Q17xIJnXfyd9kYkEbfWogN3WN1HFEbbw/s400/screen.png" width="382" /></a></div>
<br />
This time I finally focused on sending data from bracerbot to PC via Bluetooth. At the same time I've written small application in Processing that acquires the data and displays them on the screen using controlP5 library, which is great. This application also allow you to control robot. So in next week or so I will finally program gait and make this application look kinda better. Also notice that light sensor is showing 1023 because its not yet soldered to the board.<br />
<br />
<div style="text-align: center;">
<object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/H5oCP71hv-c?version=3&hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/H5oCP71hv-c?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-31852875879324970452012-09-18T10:15:00.002-07:002012-09-18T10:17:28.245-07:00Bracerbot Beta [update]<div style="text-align: left;">
</div>
<div style="text-align: left;">
<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }</style>Hi ! First of all I want to thank all of you for 15,000 views ! and I just want to show this quick update.<br />
</div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi70kd14_DIifxYlrsr4lWqGqnuaONsa34_5YROv_qnP-df4NWWBO6izhhJC44EJ8sKe61nJa3wYVsf4QDvHTjIBbub__vsO2-rQOq5RAuSwm7q1wdbLl0jH8CB71KeuT_8OmJQsSDpaU/s1600/DSC01143.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="297" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi70kd14_DIifxYlrsr4lWqGqnuaONsa34_5YROv_qnP-df4NWWBO6izhhJC44EJ8sKe61nJa3wYVsf4QDvHTjIBbub__vsO2-rQOq5RAuSwm7q1wdbLl0jH8CB71KeuT_8OmJQsSDpaU/s400/DSC01143.JPG" width="400" /></a> </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: left;">
Finally he's walking ! Still need to work on it though. I've also spay-painted legs to black I think it looks much better. I'm still wondering whether I should keep is as it is or create some case for batteries from acrylic. Well gait is currently priority, but I also want to start with data acquisition. Then I want to make Processing app with full movement control and then perhaps I will try to make Android app in eclipse. </div>
<div style="text-align: left;">
<br /></div>
</div>
<div style="text-align: center;">
<object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/ZNZ8looYIbQ?version=3&hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/ZNZ8looYIbQ?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com1tag:blogger.com,1999:blog-3420675664427041965.post-23185055722605181292012-09-02T11:33:00.001-07:002012-09-02T11:52:25.845-07:00Bracerbot BetaHi there ! I am so sorry that it took me so long, but finally Bracerbot is here, Even though it's still in beta mode. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3wdHV4Q7MpUo-_S8aq7R4X7gewQ-Yowya7mQp0OIselpeA2o_9ZHKHhaZFrSbPwDkrUTFJ_sJtyt32GHMCURMKZ1KZeJwbwPOxToiU5-K4cXrTbuDxti5qMpnYEPQEGSM_t7w17b1ZL4/s1600/DSC01104.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="298" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3wdHV4Q7MpUo-_S8aq7R4X7gewQ-Yowya7mQp0OIselpeA2o_9ZHKHhaZFrSbPwDkrUTFJ_sJtyt32GHMCURMKZ1KZeJwbwPOxToiU5-K4cXrTbuDxti5qMpnYEPQEGSM_t7w17b1ZL4/s400/DSC01104.JPG" width="400" /></a></div>
<br />
It all began early in July when I was thinking about what should I build next. I was positive that I wanted a quadruped, but there's lot of them, so I wanted mine to be somehow special. Since Iron Man is my favorite hero I always dreamed of building something that I could actually wear. Well what could I wear was question then. I ended up choosing bracelet (sort of). After that I've ordered some servos from ebay and started to draw some ideas in sketchup. It took me a week to make a final design. Then I started to put it all together. It uses 2xNokia batteries (I love those !) for board, bluetooth and sensors and 4x1.5V AAA batteries for servos (one battery in one leg, seemed like a good idea before I had to make wiring). You can see process of transformation in video. Currently I'm programming walking and I think it'll take me some time. I'm also thinking of using some sort of thin plastic as a mask, because as you can see it doesn't look very nice. To be honest I like the idea, but overall I think I failed because robot is too heavy as a bracelet (around 300 grams) and it doesn't look very nice as-well. So there will be some updates as I proceed with programming and Raspberry Pi still haven't arrived yet so I'm waiting.<br />
<div style="text-align: center;">
<br />
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="284" src="http://www.youtube.com/embed/tqkaLHUOovU" width="504"></iframe>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJQ5OSe5lPOsiOpssJ9JnQvoUW-qXoNObCqQSryff5Y05kM597YTGINmF4Y16bKOnceFoIRyhu7iBsmQvGQSqXMoOufhl5fHV1HlpvQ8q6uFh1PjtgsUOC-wF4fTf5qutaeQRpAKBSbdw/s1600/DSC01080.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJQ5OSe5lPOsiOpssJ9JnQvoUW-qXoNObCqQSryff5Y05kM597YTGINmF4Y16bKOnceFoIRyhu7iBsmQvGQSqXMoOufhl5fHV1HlpvQ8q6uFh1PjtgsUOC-wF4fTf5qutaeQRpAKBSbdw/s400/DSC01080.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTYt1Tb6ggi7wJ5NFbw7xRCIyNPOCUIUq-_Lnzv_qb4hpr4n3KqNG1bKSlPDRVQEA-hImP1N_EPBROUs4LJWXwdMW-Kpu8oNyYPPeQsUyzN9CFoRLCP7ZU1CPt5QSXwSP3x_7UsX8Pb8/s1600/DSC01097.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="298" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTYt1Tb6ggi7wJ5NFbw7xRCIyNPOCUIUq-_Lnzv_qb4hpr4n3KqNG1bKSlPDRVQEA-hImP1N_EPBROUs4LJWXwdMW-Kpu8oNyYPPeQsUyzN9CFoRLCP7ZU1CPt5QSXwSP3x_7UsX8Pb8/s400/DSC01097.png" width="400" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEP792lM-X5-i7i2uJ8dKrNRuG2fuYZMGkv502go3RAODS-7wYiTAkpWlpHMclROikUyiXkOqLtIIaHxsp1g-gAVJnEAkFIEkoLK88yamFWN4h3L5KCsW5pxtFASpPFDEyoVjkgXyqjIU/s1600/DSC01100.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEP792lM-X5-i7i2uJ8dKrNRuG2fuYZMGkv502go3RAODS-7wYiTAkpWlpHMclROikUyiXkOqLtIIaHxsp1g-gAVJnEAkFIEkoLK88yamFWN4h3L5KCsW5pxtFASpPFDEyoVjkgXyqjIU/s400/DSC01100.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitmgkqmaO69ncr_cjw_d4tJqdMcWSMkSpZ3nnkoZT3VDyDNgs1vR6S8a3f9UiaHa3l3dM4Wq8KkyWdqwrgXnzjJFo9CgQV72tbJmZMYdPmrcPxPNTIvVLS8gQusXWJWAgPsONqXn5gJxY/s1600/DSC01105.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitmgkqmaO69ncr_cjw_d4tJqdMcWSMkSpZ3nnkoZT3VDyDNgs1vR6S8a3f9UiaHa3l3dM4Wq8KkyWdqwrgXnzjJFo9CgQV72tbJmZMYdPmrcPxPNTIvVLS8gQusXWJWAgPsONqXn5gJxY/s400/DSC01105.JPG" width="400" /></a></div>
Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com7tag:blogger.com,1999:blog-3420675664427041965.post-51969236632221067202012-08-10T15:28:00.001-07:002012-08-10T15:29:25.306-07:00Servo Breakout Board<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
--></style>Hi ! I am currently working on something big, so I apologize for not being active for some time. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK840UGEfkAKqFv20-s7I2sh33Ofk-xpW9XXnW7zAvRxIqU0YhkijA18oaf5r_jXTUWLDMD9CgO9PtJovf0iralRosSzzG7Kr_J1VVokYveT1f2xhBwV9aoFIL6HfxilIjQ2Zx57b4EZw/s1600/DSC01084.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK840UGEfkAKqFv20-s7I2sh33Ofk-xpW9XXnW7zAvRxIqU0YhkijA18oaf5r_jXTUWLDMD9CgO9PtJovf0iralRosSzzG7Kr_J1VVokYveT1f2xhBwV9aoFIL6HfxilIjQ2Zx57b4EZw/s400/DSC01084.JPG" width="400" /></a></div>
<br />
I can't tell you what exactly I am working on, because it's sort of a secret. Only thing I can tell you is that it uses 8 servos. Well I am a lazy person and I don't like to attach servos. So I've decided to make a small breakout board that will allow me to test up to 12 servos easily with separate power source. It's quiet easy project that I put it together in one evening but it is quiet useful. I also want to tell you that I've finally ordered my Raspberry Pi so after I will receive it there will be some projects using it, because I really want to learn to program in Python. So sorry for less posts and I will try my best to finish this secret project ASAP.Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-24264638361566397242012-07-10T10:41:00.001-07:002012-07-10T10:43:16.892-07:00Voice Controlled Light<div style="text-align: left;">
<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
-->
</style>Hi there ! First of all Happy Nikola Tesla Day ! And secondly I would like to apologize for not being active for some time. </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/AVvXsEg4eCqJZEGicl0eny789xf0zaNwsMGSxuKWZrAysrLRmWYu6cngOaTyQJH_PuisdTvIfAABQ14xsiq5zXB2x_-8HS-1cenmCyReAMj_2ATs99XU4IXV1VWeuzbapwgD9nHc2Oi6Mvs9_is/s1600/DSC01066.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4eCqJZEGicl0eny789xf0zaNwsMGSxuKWZrAysrLRmWYu6cngOaTyQJH_PuisdTvIfAABQ14xsiq5zXB2x_-8HS-1cenmCyReAMj_2ATs99XU4IXV1VWeuzbapwgD9nHc2Oi6Mvs9_is/s400/DSC01066.JPG" width="400" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: justify;">
<div style="text-align: left;">
But since summer is here I will hopefully have more time to work on my projects. Today I want to show you sort of an Intro. Finally I had some extra money so I've bought some relays. For quiet some time I have this idea in my mind. It's an idea to change my room in one big ecosystem, that would preferably be controlled by voice via PC or Android phone. Yes once again this idea comes from Ironman. So I've build simple setup in a box and connected arduino with a Bluetooth module to it and wrote some simple code to look for word “light”. You can see the result in a video. Google voice recognition seems to work pretty fast, but you need to have internet connection in order to use it. That's the reason why I want whole system to be controlled from my desktop. So I need to find right voice recognition software and install a microphone somewhere.</div>
</div>
<div style="text-align: center;">
<br />
<iframe allowfullscreen="" frameborder="0" height="284" src="http://www.youtube.com/embed/sxJZtnqc6CI" width="504"></iframe></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-7119884203882811062012-06-12T12:55:00.001-07:002012-06-12T12:56:08.225-07:00Control Glove as Game Controller<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
-->
</style>
<br />
Hi there. Sorry for bit of a delay, but I'm unable to buy new Bluetooth module for dummy and there are few other problems with it. So sadly, I am forced to postpone this project for some time. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDZgLuXosCCCnr9bSZbwAvzvT-VjfLEHbUojXS28VR1vb8oWMbqB03qguG7BljGJQcbrunLyw8YUK5d54GfmuxkTpy-pqMGMLlr8I68FyOGXMOoGfbs0l2TGJoO8IFgzjIoxK5I7vpUQE/s1600/ControlGlove.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDZgLuXosCCCnr9bSZbwAvzvT-VjfLEHbUojXS28VR1vb8oWMbqB03qguG7BljGJQcbrunLyw8YUK5d54GfmuxkTpy-pqMGMLlr8I68FyOGXMOoGfbs0l2TGJoO8IFgzjIoxK5I7vpUQE/s400/ControlGlove.png" width="400" /></a></div>
<br />
But don't worry I'm still working on Control Glove, because I feel that it has some potential. Since I have nothing to control in real world, I've been thinking what different can I control. When I lack creativity (most of the time), I'm playing some classic PC games from my childhood. I've been playing Re-Volt once again and it suddenly hit me, I can create sort of a game controller. Well that's easy to say, but harder to do. For some time I was totally lost. But then I found out that I can trick it. It basically works the way that Control Glove sends data from accelerometer to PC via Bluetooth. That data goes to a Application written in Processing. Processing is great, because you can export application directly for Windows/MAC/Linux. I have used a little trick, when you turn you hand to the left, processing will send (VK_left) via java Robot when you turn hand to the right Robot will send (VK_right). I found this to be the easiest method. Of course is not the best solution. Right now I'm planning to add few buttons to the glove to make proper controller out of it.<br />
<br />
<div style="text-align: center;">
<object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/H5xiU9QwE6Q?version=3&hl=en_US">
</param>
<param name="allowFullScreen" value="true">
</param>
<param name="allowscriptaccess" value="always">
</param>
<embed src="http://www.youtube.com/v/H5xiU9QwE6Q?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-60373334562192009872012-05-16T12:23:00.000-07:002012-06-12T11:31:19.736-07:00Control Glove<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
-->
</style>
<br />
Hi there. First of all I would like to thank all viewers because recently I hit 40.000 views on videos on my youtube channel and also 10.000 views on this blog. So few weeks ago I showed you beta of dummy, well I haven't been working on it so much since, I just made a PCB, but I've been working on this glove.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2aneNG2enxxzMrVG34uCtXt0YcO3hBaz9dZVaW6Sb3ukx0tIF-ZSQXw3JVPQeUeEvPgqNvIEvK5nb1mpZqqm1GBp4MPJ1A6DqTYPUc4LqpfNaixpgRDsxXzEDECn52ED_nONURpqR2WU/s1600/glove.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2aneNG2enxxzMrVG34uCtXt0YcO3hBaz9dZVaW6Sb3ukx0tIF-ZSQXw3JVPQeUeEvPgqNvIEvK5nb1mpZqqm1GBp4MPJ1A6DqTYPUc4LqpfNaixpgRDsxXzEDECn52ED_nONURpqR2WU/s400/glove.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
You might ask why glove ? Well because I always wanted to make one and I couldn't think of a better way of how to control Dummy. Even this glove is still in sort of beta state. It uses Atmega8 with the bootloader that has BOD (Brown-out detection) level set to 2.7V so this board can easily operate at 3.3 volts. I chose this option because of the fact that I wanted to implement battery to glove and that meant, that battery has to be small and light. I chose a battery BL-5B from an old Nokia. If you have one of these phones just laying around use that batteries, they have lot of power and 3.7 volts is all that you need. Board also have headers for FTDI or Bluetooth module, which operates at 3.3volts. Accelerometer that is for now the only sensor on this glove, operates also at 3.3volts which gave me the opportunity to use that Nokia battery and 3.3v regulator. Remember that when you are using different than 5V power source you have to put power on AREF pin and in the setup of the code declare that you are using EXTERNAL analog reference. In the future I would like to add few more sensors (probably flex). So I hope you like it and once again thanks for your support.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<object height="284" width="506"><param name="movie" value="http://www.youtube.com/v/wukiiVV-12c?version=3&hl=en_US">
</param>
<param name="allowFullScreen" value="true">
</param>
<param name="allowscriptaccess" value="always">
</param>
<embed src="http://www.youtube.com/v/wukiiVV-12c?version=3&hl=en_US" type="application/x-shockwave-flash" width="506" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object> </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/AVvXsEh89526wBC2LI6N-M4QKxUrt73wqauEc3RyPF7xrp1zin6gAlIk0-fbL9IxB4vsuZe4yCtZFpT0jN39EfR0A9eZ1POfBqu1ogjlMPNLn9-KecHk7wWM5m0WHW-L-QzbCfGIt88T36s3gs8/s1600/DSC01034.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh89526wBC2LI6N-M4QKxUrt73wqauEc3RyPF7xrp1zin6gAlIk0-fbL9IxB4vsuZe4yCtZFpT0jN39EfR0A9eZ1POfBqu1ogjlMPNLn9-KecHk7wWM5m0WHW-L-QzbCfGIt88T36s3gs8/s400/DSC01034.JPG" width="400" /></a></div>
<br />
<br />Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-13291925854333743812012-04-22T11:25:00.000-07:002012-08-10T15:24:05.756-07:00Dummy Pre-Alpha<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #00000a; line-height: 115%; widows: 2; orphans: 2 }
P.western { font-family: "Calibri", serif; font-size: 11pt; so-language: sk-SK }
P.cjk { font-family: "Droid Sans Fallback"; font-size: 11pt; so-language: en-US }
P.ctl { font-family: "Calibri"; font-size: 11pt; so-language: ar-SA }
A:link { color: #0000ff; so-language: en-US }
-->
</style>
<br />
Few weeks ago I started working on a robotic hand, it's still in pre-alpha phase, because of the claws that are not yet operational, but I wanted to show you my progress.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<object height="284" width="506"><param name="movie" value="http://www.youtube.com/v/X6NaRcD196s?version=3&hl=en_US">
</param>
<param name="allowFullScreen" value="true">
</param>
<param name="allowscriptaccess" value="always">
</param>
<embed src="http://www.youtube.com/v/X6NaRcD196s?version=3&hl=en_US" type="application/x-shockwave-flash" width="506" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<br />
Well, you may wonder why to call it Dummy ? Its name comes from the Iron Man movie, where Tony Stark has a robotic helper but it's not working well so it completely fits to my arm. I'm still working on a way how to send data from controller (which I would like to implement to a glove) to hand itself. I wrote some code for sending data in a packet form, because I would like to make the whole arm wireless. Problem is that I have to send positions of all 4 servos (now it sends just position for two of them). This project is definitely more complex than I've expected, so it's going to take me more time to finish it, and that's the reason why there will be more smaller updates.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzZaHpuz957dbSnJ0Ik3vZUF48YyJt5clgJEf4TIRE7Rn1aCyZTEACxAnCtQxClKM-HpRX0yq4FJWgw02MWXfiaiS5Jv3Y65MV8hIiAQ0Yoc3-mSHqDlARt7BspvBIUkjYHDwrd-322_8/s1600/DSC01030.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzZaHpuz957dbSnJ0Ik3vZUF48YyJt5clgJEf4TIRE7Rn1aCyZTEACxAnCtQxClKM-HpRX0yq4FJWgw02MWXfiaiS5Jv3Y65MV8hIiAQ0Yoc3-mSHqDlARt7BspvBIUkjYHDwrd-322_8/s400/DSC01030.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnp_BICUJk3P5bI8Esh6leUxL_gKc3jLPjY9g4BzedPsrOuvagFU3GlXC9SyFefWwhYY69c0TCE9rURXX7mzJU3nXD5Ex6QvehrFztpTTuTButcFm_BLx8o4KJxL8zB3Fvpk1UJlr-yw/s1600/DSC01025.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnp_BICUJk3P5bI8Esh6leUxL_gKc3jLPjY9g4BzedPsrOuvagFU3GlXC9SyFefWwhYY69c0TCE9rURXX7mzJU3nXD5Ex6QvehrFztpTTuTButcFm_BLx8o4KJxL8zB3Fvpk1UJlr-yw/s400/DSC01025.JPG" width="400" /></a></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-84448984023781522152012-04-16T07:11:00.000-07:002012-04-16T07:11:20.248-07:00AR.Drone<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in; direction: ltr; color: #000000; widows: 2; orphans: 2 }
A:link { color: #0000ff; so-language: zxx }
-->
</style>Hi there. First of all, I would like to apologize for almost 2 months of inactivity. I had lot of other things, but I was working on a new project. Unfortunately it's not finished yet. <br />
<div style="margin-bottom: 0.02in; margin-top: 0.02in;"><span lang="en-US"> </span> </div><div style="margin-bottom: 0.02in; margin-top: 0.02in;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh20aDVWNnx9MY-8mfigjEXrIaAAGBwB1mfz3BkiYSd7hH8yoVVm5YRiV9AZu2dIH2nppsRYCTPEsVaDtkQBXXIfICVuukteJo2CjC2vVKEXbr4AVUg7MDH1QRVmkoy7mL_09KHmmQN_oo/s1600/DSC00938.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="321" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh20aDVWNnx9MY-8mfigjEXrIaAAGBwB1mfz3BkiYSd7hH8yoVVm5YRiV9AZu2dIH2nppsRYCTPEsVaDtkQBXXIfICVuukteJo2CjC2vVKEXbr4AVUg7MDH1QRVmkoy7mL_09KHmmQN_oo/s400/DSC00938.JPG" width="400" /></a></div><br />
Awesome thing is that I get an AR.Drone for my birthday, to be honest quadrocopter had been in my mind for quiet some time. I'm really excited about working/playing with it. I also found a processing and arduino libraries for it. I'm considering to buy a wi-fi xbee radio to control this drone with arduino. And about that project I mentioned above, I hope that it will be finished soon.Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-39208481105092195432012-02-27T08:24:00.000-08:002012-02-27T08:24:17.495-08:00Observer 1.4 [update]<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US">Hi there. I am presenting you version 1.4. </span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlgzhDm46_dVKwmlcgpCXJF7RCKSNELo5U1GzVqTNvT0EP4uAxhy8p4q955bxSRY5qZZwzG_NKhqyJcHs2u1-Zt5VPg-gYAw-pgZOGOQQQozF9tSxP9u6pgLOZqk_YXd6tAlJJNqVq9o/s1600/DSC00905.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlgzhDm46_dVKwmlcgpCXJF7RCKSNELo5U1GzVqTNvT0EP4uAxhy8p4q955bxSRY5qZZwzG_NKhqyJcHs2u1-Zt5VPg-gYAw-pgZOGOQQQozF9tSxP9u6pgLOZqk_YXd6tAlJJNqVq9o/s400/DSC00905.JPG" width="400" /></a></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><br />
</span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><br />
</span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US">The mayor change is that I’ve added third wheel to the back. I’m still experimenting with that but as you can see in the video observer can now drive over various obstacles without any problems. Also I moved Bluetooth module under the PCB to use the space that was there. Right now I’m drawing new PCB for observer, so that means next update will be version 2.0. I don’t want to spoil it, so I just say there’s going to be multiple sensors and when all will work out well I believe that version 2.0 will be awesome.<o:p></o:p></span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><br />
</span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/5LBGvOng3K8?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/5LBGvOng3K8?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com1tag:blogger.com,1999:blog-3420675664427041965.post-55669526839131367852012-02-12T08:00:00.000-08:002012-08-10T15:24:24.223-07:00Observer 1.3 [update]<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span lang="EN-US">Bluetooth module has arrived, so I want to show you pics of another update. </span></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span lang="EN-US"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9sBdy9HHFNYnUTJYS5xN60HqF2-7YwPQLr2WLYr7HKYZ-keDUFYnEJFDrCmQ8Jc8q4VU6fxr7F_p_jizFJyro9b-TJFDf_SQvNY0Fi4UGT70bU_Fuwc_mwtFyHMGIl44hH60e3Niv76I/s1600/DSC00890.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9sBdy9HHFNYnUTJYS5xN60HqF2-7YwPQLr2WLYr7HKYZ-keDUFYnEJFDrCmQ8Jc8q4VU6fxr7F_p_jizFJyro9b-TJFDf_SQvNY0Fi4UGT70bU_Fuwc_mwtFyHMGIl44hH60e3Niv76I/s400/DSC00890.JPG" width="400" /></a></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span lang="EN-US">Reason that version 1.2 is missing is that this version (controller) was build on breadboard. At first I thought that I would put controller in some case, but then I decided to leave it like this. So what’s new? I’ve added analog stick that I’ve desoldered from old gamepad. But there’s still option to control robot via accelerometer. For that purpose I’ve used pushbutton that is part of analog stick. There’s still one breaked-out analog pin on Observer waiting for some sensor. I’ve been trying to add there LM335, but I’m dealing with analog reference issue. I found out that AAA batteries aren’t very good for such robot and that having separate power sources for servos and for microprocessor would be much better.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<br /></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<div class="separator" style="clear: both; text-align: center;">
<object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/Q-Ssn_LPIpg?version=3&hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/Q-Ssn_LPIpg?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<span lang="EN-US"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKATsoWKtzvR5uAcJHEE7CCPko1BQjE_Hs4U6uOeaLELfG8U6gZwZszj59Xm1opttQGvK_-OrC77qgHJpn28Ivr7ohiMPs3UdZ6CB_4PHkEq_YGWbhDBkGVnsYW4vuNU4EytBF8JfLLeY/s1600/DSC00898.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="268" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKATsoWKtzvR5uAcJHEE7CCPko1BQjE_Hs4U6uOeaLELfG8U6gZwZszj59Xm1opttQGvK_-OrC77qgHJpn28Ivr7ohiMPs3UdZ6CB_4PHkEq_YGWbhDBkGVnsYW4vuNU4EytBF8JfLLeY/s400/DSC00898.JPG" width="400" /></a></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span lang="EN-US"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqnsdszcjc9Z1ekv8cj0HVqzoEE7JHg275pr02X9q7-rjSJndnOx6dcnGQWWQ_0zWg_oyYx2g3ZCnEiXIGU13Vgwm7OTsbcRXIXLJbSeYSQ690MQucWUGbgRFUK-BKHHWfkYncWLsc06k/s1600/DSC00893.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqnsdszcjc9Z1ekv8cj0HVqzoEE7JHg275pr02X9q7-rjSJndnOx6dcnGQWWQ_0zWg_oyYx2g3ZCnEiXIGU13Vgwm7OTsbcRXIXLJbSeYSQ690MQucWUGbgRFUK-BKHHWfkYncWLsc06k/s400/DSC00893.JPG" width="400" /></a></div>
<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;">
<span lang="EN-US"><br />
</span></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-35046170791850974502012-01-29T08:09:00.000-08:002012-01-29T08:10:24.513-08:00Observer 1.1 [update]It took me more time then I've expected, but here's and update.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp7jHstcYcV3IjnZ0_48PI_O2bMoHekrJznKYu7t1u9lZq5qA7qKdPwTCije4Rg9JXPek4O9Adsaz2h487BKs6RoXICsFD3aKvuZRZRznMkUerGPaVN23hGWBheifplDDDBYvR4M88ROI/s1600/P126000425.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp7jHstcYcV3IjnZ0_48PI_O2bMoHekrJznKYu7t1u9lZq5qA7qKdPwTCije4Rg9JXPek4O9Adsaz2h487BKs6RoXICsFD3aKvuZRZRznMkUerGPaVN23hGWBheifplDDDBYvR4M88ROI/s400/P126000425.JPG" width="400" /></a></div><br />
I have used second Arduino (Duemilanove) as an controller. For now robot is being controlled via laptop, but I have already ordered second bluetooth module for standalone controller. I thought adding LED's as front lights would be cool also.<br />
<br />
<div style="text-align: center;"><object height="284" width="504"><param name="movie" value="http://www.youtube.com/v/Ii_mpxklnN0?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Ii_mpxklnN0?version=3&hl=en_US" type="application/x-shockwave-flash" width="504" height="284" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2tag:blogger.com,1999:blog-3420675664427041965.post-78062425110266576372011-12-11T08:43:00.000-08:002011-12-11T08:43:43.111-08:00Observer Alpha<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="" style="clear: both;">So I was finally able to build my first driving robot. </div><div class="" 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/AVvXsEgukzp75QjTdnOPjw_KXVkXGH2VqT5tpQzkPpXaSgMyY33mSoDoQ-QwucKQa0jItvWugI2YZeIacwVdMeDlW9YrK4lpe-4ER_c37caKI5msIyg4VF6020KaEMxJcuIgltrJhP_IeRxRGhk/s1600/DSC00782.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgukzp75QjTdnOPjw_KXVkXGH2VqT5tpQzkPpXaSgMyY33mSoDoQ-QwucKQa0jItvWugI2YZeIacwVdMeDlW9YrK4lpe-4ER_c37caKI5msIyg4VF6020KaEMxJcuIgltrJhP_IeRxRGhk/s400/DSC00782.JPG" width="400" /> </a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both;">It's still an Alpha version so it has no special functions but in future I would like add more sensors and maybe even a digital camera that will record what's going on around. Since this is just first release I won't put here any code or tutorial but I will be updating this post. </div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div style="text-align: center;"><iframe allowfullscreen="" frameborder="0" height="284" src="http://www.youtube.com/embed/1lpRZEYJfi0" width="504"></iframe></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com0tag:blogger.com,1999:blog-3420675664427041965.post-7322349077029508742011-11-21T10:34:00.000-08:002011-11-21T10:34:10.110-08:00Servo etcherSince I like to fabricate my own PCB’s, it’s obvious that I etch a lot. For that purpose I’m using old CD container.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwAixjgBHzm89HrFbBYqbB-nDFrBSZ2AcCI1qoMmtxHQSlgLszYfASSc3wzDYAPClpQ0shyUd-YLeeVFLyuA8tE1fBRuBr9lSdgz8a2UpSnqOrYKBcLKl4UvhQpnefvTQxA100sht8F6o/s1600/DSC00772.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwAixjgBHzm89HrFbBYqbB-nDFrBSZ2AcCI1qoMmtxHQSlgLszYfASSc3wzDYAPClpQ0shyUd-YLeeVFLyuA8tE1fBRuBr9lSdgz8a2UpSnqOrYKBcLKl4UvhQpnefvTQxA100sht8F6o/s400/DSC00772.JPG" width="400" /></a></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">Thing that I hate is that the whole process is slow and ineffective. Thus I’ve decided to use one of the servo’s that was lying around. I’ve hot glued servo to the plastic cover of CD container. All I needed then was to program an Arduino, so it could change speed of servo with a values that comes of a potentiomer.</div><div class="MsoNormal">(Code I'm using is "Knob" from Arduino IDE Servo library) </div><div class="MsoNormal"><div style="text-align: center;"><br />
</div><div style="text-align: center;"><iframe allowfullscreen="" frameborder="0" height="284" src="http://www.youtube.com/embed/4IptcwdmSfc" width="504"></iframe></div><br />
</div><div class="separator" style="clear: both; text-align: center;"></div><div class="MsoNormal"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFnB34blfT6HpDUycyldb6oOjOc-tGybcB9hSpfuRiGPeXAZwmDnAVhE7ixTIxdJAhyjBjjqz9JpqYckJSzXkCszV_lhmF_7yutJkqUripTQaM1aVc0v_oLWny274cyKmc4getf2RNNWI/s1600/DSC00777.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFnB34blfT6HpDUycyldb6oOjOc-tGybcB9hSpfuRiGPeXAZwmDnAVhE7ixTIxdJAhyjBjjqz9JpqYckJSzXkCszV_lhmF_7yutJkqUripTQaM1aVc0v_oLWny274cyKmc4getf2RNNWI/s400/DSC00777.JPG" width="400" /></a></div><br />
</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="MsoNormal"><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwD-tCIaVL9f5oIjl2Mi3AT7eQAI3f1rdvs5C2O8vNrMRs-fePIdHtrLC7oxZc9uGVqNFtmGxZS2ikUEvZ7_OLfiQC8IDz-o-tXQ-ucBi4k-kYSSVHP3W84QBUBqbkRXqwcoWK5WxFp1M/s1600/DSC00780.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="311" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwD-tCIaVL9f5oIjl2Mi3AT7eQAI3f1rdvs5C2O8vNrMRs-fePIdHtrLC7oxZc9uGVqNFtmGxZS2ikUEvZ7_OLfiQC8IDz-o-tXQ-ucBi4k-kYSSVHP3W84QBUBqbkRXqwcoWK5WxFp1M/s400/DSC00780.JPG" width="400" /></a></div></div><div class="MsoNormal"></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com1tag:blogger.com,1999:blog-3420675664427041965.post-81847188680983174652011-10-30T12:42:00.000-07:002011-10-30T12:42:21.740-07:00Evil Pumpkin<div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US">I'm from Europe and we’re not celebrating Halloween, but I always wanted to carve a pumpkin.</span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><o:p></o:p></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2Rj3ru0bICbZ0xTB8qrBBjcP8tLPGJI7ntzaf7CVeQFpql-iTQvj88NfYGyTX_eQQW6C9_Mqzb-ewTG0nrfR37iKsgNCloKiQj66lIt9yRKIshr2xt-7fri6qCR7tBKr8eNRpAcP7Uek/s1600/DSC00758.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2Rj3ru0bICbZ0xTB8qrBBjcP8tLPGJI7ntzaf7CVeQFpql-iTQvj88NfYGyTX_eQQW6C9_Mqzb-ewTG0nrfR37iKsgNCloKiQj66lIt9yRKIshr2xt-7fri6qCR7tBKr8eNRpAcP7Uek/s400/DSC00758.JPG" width="400" /></a></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><br />
</div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US">So I’ve bought one and I carved it. At first I thought that a simple candle inside would be enough, but then I decided to go with arduino, LED, speaker and distance sensor. I’ve used my Nano, and for sensor I used my IR sensor. Here’s the video and code.</span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><br />
</div><div class="MsoNormal"><iframe allowfullscreen="" frameborder="0" height="284" src="http://www.youtube.com/embed/yCRcwF48niE" width="504"></iframe></div><div class="MsoNormal"><br />
code:<br />
</div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">int IRSense = A0;</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">int IRTrans = 2;</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">int Flick = 10;</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">int valueAmbient = 0;</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">void setup() {</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> pinMode(IRSense, INPUT);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> pinMode(IRTrans, OUTPUT);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> digitalWrite(IRTrans,LOW);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">}</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">void ambient()</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">{</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> digitalWrite(IRTrans,HIGH);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> delay(20); </span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> valueAmbient = analogRead(IRSense);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> delay(20);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">}</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">void loop() </span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;">{</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> ambient();</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> digitalWrite(IRTrans,LOW);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> delay(20);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> int value = analogRead(IRSense);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> int value2 = round(value - valueAmbient);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> int dist = (((value2+15.0)/(value2*(value2+100.0)))*2000.0);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> if(dist<20) </span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> {</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> analogWrite(Flick,random(0,256));</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> tone(8, 38);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> }</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> else</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> {</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> analogWrite(Flick,0);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> noTone(8);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #666666;"> } </span></div><div class="MsoNormal"><span lang="EN-US" style="color: #666666;">} </span></div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><br />
</div><div class="MsoNormal" style="mso-line-height-alt: 0pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span lang="EN-US"><o:p></o:p></span></div>Legwinskijhttp://www.blogger.com/profile/11684955679943511848noreply@blogger.com2