<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4855589282539837316</id><updated>2011-07-07T13:58:01.077-07:00</updated><title type='text'>Networked Objects</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://guy-netobjects.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://guy-netobjects.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>guy</name><uri>http://www.blogger.com/profile/12947559558675315070</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm1.static.flickr.com/22/34764380_02e4df76d5.jpg?v=0'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4855589282539837316.post-7790992380763549416</id><published>2007-05-05T16:16:00.000-07:00</published><updated>2007-05-05T21:02:30.583-07:00</updated><title type='text'>Pong game!</title><content type='html'>這禮拜咱們&lt;被網路連結的物件們&gt;(英譯: Networked Objects)課程assignment狠過癮! 要來玩弄電玩史上經典之一的Pong game! (聽起來好像porn game, 對不起發音太差)&lt;br /&gt;I've never seen a so crowded classroom! The ethernet cables are insanely crawling throughout the table. I barely squeeze into the crowd and share the tiny space with Greg. Crazy but fun!&lt;br /&gt;&lt;img src="http://farm1.static.flickr.com/157/398840152_c0678ebc47.jpg?v=0" alt="" border="1" height="NaN" width="320" /&gt;&lt;br /&gt;&lt;br /&gt;Tom老吩咐到時候班上會分兩組, 屆時就了無新意但也最快速地 "左半邊 versus 右半邊", 玩法是一個緊接一個的pk制, 某人輸了之後, 他那組的下一位選手就立刻連上server為隊友報仇!&lt;br /&gt;&lt;br /&gt;基本上大家都用一樣的code, 小改當中幾行analog in/digital in(聽了去年修課的Josh兄建議, 決定採取比較不會出槌的digital switch), 然後花了好大部分時間處理莫名其妙的蠢網路問題&lt;br /&gt;serial monitor都看的到Arduino的訊息, 但Terminal就是看不到, 後來發現似乎是犯了極為愚蠢的失誤(RX,TX接錯地方,碼的賀!) ... 總之也終於算成功, 沒有喇賽!&lt;br /&gt;&lt;br /&gt;physical interface沒有花太多時間包裝, 只是用了簡單的(地上撿到的垃圾)小木塊, 挖洞, switch擠進去, wires拉出來, hook up到breadboard上, 大功告成! 操控方法如下:&lt;br /&gt;(1) 狠焦慮地拿木塊不斷敲桌面, 敲左面--&gt;paddle往左跑, 敲右面--&gt;paddle往右跑&lt;br /&gt;(2): 把小木塊輕巧地拿起置於鼻樑, 下巴中間, 利用左右兩手食指靈巧地壓左右兩面switch, 如同發呆雙手脫住下巴的無聊小gesture舉動, 然後, 輕鬆獲勝(一切都是幻想)!&lt;br /&gt;&lt;br /&gt;Basically we are using the same code from Tom. The only thing we have to deal with is a small change of analog/digital input. I chose the digital instead of analog input due to some suggestion form Josh who took this class in the last semester. From his saying, digital input could get more stable and continuous move of your pong paddle than analog (Actually it depends on how you write your code). Though getting a big help from Josh, I still struggled with the never-expectable hardware part. At the beginning, the signal only appeared on the serial monitor but terimanl. It took me a while to figure out that I shouldn't have hooked up the Xport's RX and TX to FT232R's TX and RX. Instead, they should go to arduino's TX and RX since FT232R in my circuit only did a job of providing 3.3V power and did nothing about transferrinf/receiving data. What a silly mistake!&lt;br /&gt;&lt;br /&gt;Here is the circuit i got:&lt;br /&gt;&lt;img src="http://farm1.static.flickr.com/181/398876024_bbab531f19.jpg?v=0" alt="" border="1" height="240" width="320" /&gt;&lt;br /&gt;The physical interface: a small block with 2 switches locate seperately inlayed into its right and left surfaces.&lt;br /&gt;&lt;img alt="" src="http://farm1.static.flickr.com/150/398876629_f682783175.jpg?v=0" border="1" height="240" width="NaN" /&gt;&lt;br /&gt;Playing with the block:&lt;br /&gt;&lt;img alt="" src="http://farm1.static.flickr.com/155/398876415_23a6b9d73b.jpg?v=0" border="1" height="NaN" width="320" /&gt;&lt;br /&gt;&lt;br /&gt;This video shows all steps of logging in/out the pong game server. Instead of really receiving/transferring data from/to the server, I fake it by typing comments in Terminal for a rehearsal test. 'C' means that the server sends a connection signal through Xport to arduino (in real playing, the connection is automatically made once i plug the Ethernet cable into Xport), and then I press a connect button on my breadboard to start the game. Several lines of 'C128.122.151.128/8080' instantly jumps up. Next step is to simulate the control of pong paddle. Pressing right button (R side of the block facing down) appears 'r' on Terminal screen while left button shows 'l'. Once I press the connection button again, I lose the connection and 'x' jumps out, which means sending a signal to ask the server to quit. DONE!&lt;object height="350" width="425"&gt;&lt;br /&gt;&lt;br /&gt;&lt;param value="transparent" name="wmode"&gt;&lt;embed wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/YmfsiMsGlD4" height="350" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;See more pictures of presentation at&lt;a href="http://www.flickr.com/photos/78guy/sets/72157594550362170/"&gt; Guy's flickr&lt;/a&gt; and &lt;a href="http://flickr.com/photos/bentobox/set%20s/72157594548746139/"&gt;Mike's flickr&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4855589282539837316-7790992380763549416?l=guy-netobjects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guy-netobjects.blogspot.com/feeds/7790992380763549416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4855589282539837316&amp;postID=7790992380763549416' title='41 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/7790992380763549416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/7790992380763549416'/><link rel='alternate' type='text/html' href='http://guy-netobjects.blogspot.com/2007/05/pong-game.html' title='Pong game!'/><author><name>guy</name><uri>http://www.blogger.com/profile/12947559558675315070</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm1.static.flickr.com/22/34764380_02e4df76d5.jpg?v=0'/></author><thr:total>41</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4855589282539837316.post-8472832076668395129</id><published>2007-04-21T22:15:00.000-07:00</published><updated>2007-04-21T22:39:16.294-07:00</updated><title type='text'>Better Bin presentation!</title><content type='html'>&lt;span style="font-family: lucida grande;font-size:85%;" &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm1.static.flickr.com/227/465324739_dd8f9c3eae.jpg?v=0"&gt;&lt;img style="cursor: pointer; width: 200px;" src="http://farm1.static.flickr.com/227/465324739_dd8f9c3eae.jpg?v=0" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here is the content of our final presentation:&lt;br /&gt;&lt;/span&gt;      &lt;p style="font-family: lucida grande;"&gt;&lt;span style="font-size:85%;"&gt;Recycling bins are important!&lt;br /&gt;1 ton of recycled paper = 17 saved trees&lt;br /&gt;117 lbs recycled paper = 1 saved tree&lt;br /&gt;&lt;br /&gt;How can we encourage the use of recycling bins?&lt;br /&gt;Give the user feedback and Make it more fun&lt;br /&gt;- Show them their current contribution&lt;br /&gt;- Display total trees saved by using this bin&lt;/span&gt;&lt;/p&gt;         &lt;p style="font-family: lucida grande;"&gt;&lt;span style="font-size:85%;"&gt;Hence... the Better Bin&lt;br /&gt;Lets users know they are REALLY making a difference&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: lucida grande;"&gt;&lt;span style="font-size:85%;"&gt;The hardware:&lt;br /&gt;Platform (made out of wood. lol!)&lt;br /&gt;(show pictures of platform)&lt;/span&gt;&lt;/p&gt;                  &lt;p style="font-family: lucida grande;"&gt;&lt;span style="font-size:85%;"&gt;4 FSR sensors&lt;br /&gt;Arduino + Xport&lt;br /&gt;&lt;br /&gt;The Pseudo Code:&lt;br /&gt;Php/MySQL&lt;br /&gt;Code runs every 30 seconds:(actually it's 10 seconds while in presentation's demo)&lt;br /&gt;Arduino gets latest value (weight) inserted into DB&lt;br /&gt;If current weight in bin is &gt; latest value, update db with new value and timestamp&lt;br /&gt;This is our daily scratchpad&lt;br /&gt;At the end of the day, this latest bin value is inserted into a new table called DAYS&lt;br /&gt;Similarly, at the end of the month, all values from last month are entered into a separate monthly table as well.&lt;br /&gt;So at anytime we can reference the LATEST, DAILY, MONTHLY or TOTAL recycled weight.&lt;br /&gt;&lt;br /&gt;The Visualization:&lt;br /&gt;Flash &amp; Actionscript&lt;br /&gt;This is our elegant, visual compensation for good recycling habits.&lt;br /&gt;(show picture and explain how visualization works)&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: lucida grande;"&gt; &lt;/p&gt; &lt;p style="font-family: lucida grande;"&gt; &lt;/p&gt; &lt;p style="font-family: lucida grande;"&gt;&lt;span style="font-size:85%;"&gt;Thank you!&lt;br /&gt;THE END&lt;/span&gt;&lt;/p&gt;  &lt;div style="font-family: lucida grande;"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4855589282539837316-8472832076668395129?l=guy-netobjects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guy-netobjects.blogspot.com/feeds/8472832076668395129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4855589282539837316&amp;postID=8472832076668395129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/8472832076668395129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/8472832076668395129'/><link rel='alternate' type='text/html' href='http://guy-netobjects.blogspot.com/2007/04/better-bin-presentation.html' title='Better Bin presentation!'/><author><name>guy</name><uri>http://www.blogger.com/profile/12947559558675315070</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm1.static.flickr.com/22/34764380_02e4df76d5.jpg?v=0'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4855589282539837316.post-1240740818472627174</id><published>2007-04-15T12:40:00.000-07:00</published><updated>2008-11-13T00:10:45.031-08:00</updated><title type='text'>Recycle bin saves trees?!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qrLlWvwaviQ/RiKADJhHHlI/AAAAAAAAAAU/nULZa30bmU0/s1600-h/show.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_qrLlWvwaviQ/RiKADJhHHlI/AAAAAAAAAAU/nULZa30bmU0/s200/show.jpg" alt="" id="BLOGGER_PHOTO_ID_5053742523445878354" border="0" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;span style="font-family: lucida grande;font-size:85%;" &gt;Greg and Guy are working on a great, meaningful and so environmental issue project! (Wow, it's so not my style) Basically the idea is to weigh the recycle bin on the floor by couple sensors and send the data onto a database.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4855589282539837316-1240740818472627174?l=guy-netobjects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guy-netobjects.blogspot.com/feeds/1240740818472627174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4855589282539837316&amp;postID=1240740818472627174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/1240740818472627174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4855589282539837316/posts/default/1240740818472627174'/><link rel='alternate' type='text/html' href='http://guy-netobjects.blogspot.com/2007/04/recycle-bin-saves-trees.html' title='Recycle bin saves trees?!'/><author><name>guy</name><uri>http://www.blogger.com/profile/12947559558675315070</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://farm1.static.flickr.com/22/34764380_02e4df76d5.jpg?v=0'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_qrLlWvwaviQ/RiKADJhHHlI/AAAAAAAAAAU/nULZa30bmU0/s72-c/show.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
