tag:blogger.com,1999:blog-3638154389625503178.post2129899628111708146..comments2024-02-28T11:56:46.898+08:00Comments on 葉難: Arduino練習:旋轉編碼器yehnanhttp://www.blogger.com/profile/13453592439537191882noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-3638154389625503178.post-56126378795148865902019-04-18T05:55:06.772+08:002019-04-18T05:55:06.772+08:00best anime sites<a href="https://www.techwiki.in/best-anime-torrent-sites/" rel="nofollow">best anime sites</a>Piyushhttps://www.blogger.com/profile/04063367849920124342noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-88145097064636686912018-08-21T19:52:56.859+08:002018-08-21T19:52:56.859+08:00extratorrent proxy all site
spacemovie
sportsare...<a href="https://techranc.com/extratorrents-proxy-unblocked" rel="nofollow">extratorrent proxy all site</a><br /><br /><a href="www.techavy.com/free-movie-sites-online/" rel="nofollow">spacemovie</a><br /><br /><a href="https://freemoviesite.me/sportsarefree-xyz-alternatives/" rel="nofollow">sportsarefree.xyz down</a>Anonymoushttps://www.blogger.com/profile/15680298505902843456noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-45140297284480680992018-05-01T15:06:44.885+08:002018-05-01T15:06:44.885+08:00好的我研究看看謝謝大大堤點好的我研究看看謝謝大大堤點Anonymoushttps://www.blogger.com/profile/00222097273449420012noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-85643151090907359662018-05-01T15:00:30.227+08:002018-05-01T15:00:30.227+08:00Stepper程式庫很難做到。
改用https://github.com/adafruit/Acce...Stepper程式庫很難做到。<br />改用https://github.com/adafruit/AccelStepper這套程式庫吧。<br /><br />呼叫currentPosition()可以取得目前走到的位置。yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-27951143430791622572018-05-01T14:46:32.318+08:002018-05-01T14:46:32.318+08:00不好意思我昨天可能問的不太清楚
因為我是arduino新手
很多程式都是參考葉難大大的文章及網路高手...不好意思我昨天可能問的不太清楚<br />因為我是arduino新手<br />很多程式都是參考葉難大大的文章及網路高手<br />來完成自己想要控制的東西<br />下面是我想問的問題比較詳細的問法<br />還麻煩葉難大大幫我解惑一下<br /><br />#include <br />#define STEPS 2048 我確定我的步進馬達轉一圈為2048步<br /><br />Stepper stepper(STEPS, 8, 9, 10,11);//我的馬達腳位設定(步數.腳位.腳位.腳位)<br /><br />void setup()<br />{<br /> Serial.begin(9600);<br /> Serial.println(" angle test ");<br /> stepper.setSpeed(11); // 我將馬達的速度設定成11RPM<br />}<br /><br />void loop()<br />{<br /> stepper.step(STEPS);//馬達正圈2048步<br /> delay(1000);<br /> stepper.step(- STEPS);//馬達反圈2048步<br /> delay(1000);<br />//到這邊讓馬達轉到一開始設定的角度我都沒什麼問題<br />//但是我想要知道的是的<br />//stepper.step(X)這句的意思好像是直接連續跑到我要指定的 X 步數<br />//那我能直接在"序列埠監控視窗中"<br />//即時顯示出我的馬達正轉到第幾步嗎?或是秀出轉幾度<br />//因為我想要讓我的馬達在轉的時候<br />//感應到東西時記住轉到第幾步或是轉多少度<br />//請問這樣子是否可行我該怎麼做 ?<br /><br />}Anonymoushttps://www.blogger.com/profile/00222097273449420012noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-37345992086716047942018-04-30T22:29:22.487+08:002018-04-30T22:29:22.487+08:00使用變數紀錄,一開始是0,隨著轉動增減。使用變數紀錄,一開始是0,隨著轉動增減。yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-55347249306744313052018-04-30T14:35:24.207+08:002018-04-30T14:35:24.207+08:00請問我要怎麼知道轉到第幾步?
能不能Serial.println說我現在轉到第幾格了?請問我要怎麼知道轉到第幾步?<br />能不能Serial.println說我現在轉到第幾格了?Anonymoushttps://www.blogger.com/profile/00222097273449420012noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-70337575589315007792018-01-16T03:19:19.573+08:002018-01-16T03:19:19.573+08:00Thanks for sharing this forum post!! it was very i...Thanks for sharing this forum post!! it was very informative and helpful!! All your posts have very relevant content and are resourceful! Keep posting! looking forward to your future posts<br /><a href="https://valentines-week2018.com/" rel="nofollow">valentine week list 2018</a><br /><a href="https://valentines-week2018.com/" rel="nofollow">valentine week 2018</a><br /><a href="https://valentines-week2018.com/" rel="nofollow">valentine's week 2018</a><br /><a href="https://valentines-week2018.com/" rel="nofollow">valentine's day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/happy-chocolate-day-2018-images-wallpapers-pictures.html" rel="nofollow">Chocolate Day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/happy-rose-day-images-2018-wallpapers-pictures.html" rel="nofollow">Rose Day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/happy-propose-day-2018-images-wallpapers-pictures.html" rel="nofollow">Propose Day 2018</a><br /><a href="https://valentines-week2018.com/" rel="nofollow">Chocolate Day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/happy-teddy-day-2018-images-wallpapers-pictures.html" rel="nofollow">Teddy Day 2018</a><br /><a href="https://valentines-week2018.com/" rel="nofollow">Promise Day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/hug-day-2018-images-wallpapers-pictures.html" rel="nofollow">Hug Day 2018</a><br /><a href="https://www.valentines-week2018.com/2018/01/happy-kiss-day-2018-images-wallpapers-pictures.html" rel="nofollow">Kiss Day 2018</a>ijoyeuxanniversairehttps://www.blogger.com/profile/17233392802854608836noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-20416141265783088262017-12-17T23:33:54.127+08:002017-12-17T23:33:54.127+08:00不知道耶,orz。不知道耶,orz。yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-78000470405574867502017-12-14T10:34:59.720+08:002017-12-14T10:34:59.720+08:00葉老師您好,我也出現Encoder有時候會先加1減1再加1的情況,請問這是因為loop不夠快嗎?葉老師您好,我也出現Encoder有時候會先加1減1再加1的情況,請問這是因為loop不夠快嗎?傑利米https://www.blogger.com/profile/10333571701623625033noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-17379798673795734292017-11-03T22:39:27.409+08:002017-11-03T22:39:27.409+08:00This comment has been removed by a blog administrator.Riuhttps://www.blogger.com/profile/12284101931201833224noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-19834229877285929752017-09-25T13:33:46.786+08:002017-09-25T13:33:46.786+08:00This comment has been removed by a blog administrator.ritu vermahttps://www.blogger.com/profile/01952603607311555834noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-36244895628198549432017-09-22T20:43:50.975+08:002017-09-22T20:43:50.975+08:00New Year is the time for celebrations and joy. Peo...New Year is the time for celebrations and joy. People have always celebrated New Year’s Eve with a lot of pomp and show<a href="http://www.happynewyearimages-2016.com/2015/09/happy-new-year-images-2016.html" rel="nofollow">http://www.happynewyearimages-2016.com </a><br /><br /><a href="http://www.happynewyearimages-2016.com/2016/11/download-happy-new-year-images-for-whatsapp.html" rel="nofollow">http://www.happynewyearimages-2016.com/2016/11/download-happy-new-year-images-for-whatsapp.html</a> and <a href="http://www.happynewyearimages-2016.com/2016/10/happy-new-year-status-for-whatsapp-in-english.html" rel="nofollow">http://www.happynewyearimages-2016.com/2016/10/happy-new-year-status-for-whatsapp-in-english.html</a> and <a href="http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-husband.html" rel="nofollow">http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-husband.html</a> and <a href="http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-girlfriend.html" rel="nofollow">http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-girlfriend.html</a> and <a href="http://www.happynewyearimages-2016.com/2015/11/top-new-year-image-2016-to-wish-your.html" rel="nofollow">http://www.happynewyearimages-2016.com/2015/11/top-new-year-image-2016-to-wish-your.html</a> and <a href="http://www.happynewyearimages-2016.com/2017/06/best-christmas-songs-for-kids.html" rel="nofollow">http://www.happynewyearimages-2016.com/2017/06/best-christmas-songs-for-kids.html</a> and <a href="http://www.happynewyearimages-2016.com/2017/06/download-free-merry-christmas-facebook-cover-photo.html" rel="nofollow">http://www.happynewyearimages-2016.com/2017/06/download-free-merry-christmas-facebook-cover-photo.html</a>Happy Singhhttps://www.blogger.com/profile/12660167915165415676noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-15835396107108275232017-07-23T08:14:08.902+08:002017-07-23T08:14:08.902+08:00內文:
可以一直旋轉,旋轉一整周被分為20小格,正轉逆轉皆可內文:<br />可以一直旋轉,旋轉一整周被分為20小格,正轉逆轉皆可yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-57184073884322760302017-07-22T22:55:51.778+08:002017-07-22T22:55:51.778+08:00請問 這是可以 360 度 旋轉的嗎?
像滑鼠滾輪那樣
請問 這是可以 360 度 旋轉的嗎?<br />像滑鼠滾輪那樣<br />Anonymoushttps://www.blogger.com/profile/13787376591235817252noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-15252120070099452252017-03-11T22:25:24.730+08:002017-03-11T22:25:24.730+08:00哈哈,抱歉抱歉,沒有把疑問打清楚,那我在試看看。謝謝哈哈,抱歉抱歉,沒有把疑問打清楚,那我在試看看。謝謝Anonymoushttps://www.blogger.com/profile/15458521284149087818noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-15301616039152309342017-03-09T20:33:03.243+08:002017-03-09T20:33:03.243+08:00你之前又沒提到EEPROM。
> 然後放EEPROM這方法是可以的?
可以,為什麼不行。就把...你之前又沒提到EEPROM。<br /><br />> 然後放EEPROM這方法是可以的?<br />可以,為什麼不行。就把數值存入EEPROM,下次開機時讀出來。<br />yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-33633905084416167202017-03-09T20:20:47.312+08:002017-03-09T20:20:47.312+08:00不不,我是想說數值直接透過外部零件改變,斷電後數值也會保留,所以用外部零件更改數值然後放EEPROM...不不,我是想說數值直接透過外部零件改變,斷電後數值也會保留,所以用外部零件更改數值然後放EEPROM這方法是可以的?<br />因為有看到EEPROM那篇,沒有提到能不能利用外部零件做數值改變才來問一下葉老師這樣。謝謝Anonymoushttps://www.blogger.com/profile/15458521284149087818noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-52113635956121555042017-03-09T17:38:58.512+08:002017-03-09T17:38:58.512+08:00當然可以。
加可變電阻,讀取其值,會是0~1023,使用map映射到你想要的範圍,
然後設定變數。...當然可以。<br /><br />加可變電阻,讀取其值,會是0~1023,使用map映射到你想要的範圍,<br />然後設定變數。<br />變數改變後,再根據變數去動馬達的角度。<br />yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-44019075388413871682017-03-09T00:31:13.377+08:002017-03-09T00:31:13.377+08:00葉老師您好:昨天有像你詢問伺服馬達問題,另外想說關於ARDUINO它有辦法從外部零件改變設定值嗎?!...葉老師您好:昨天有像你詢問伺服馬達問題,另外想說關於ARDUINO它有辦法從外部零件改變設定值嗎?!比如說寫一個伺服馬達控制角度或數值,但是我想用外部零件去更改它的角度或數值就好,不用在接usb設定後在整個sketch燒進去uno這樣。謝謝Anonymoushttps://www.blogger.com/profile/15458521284149087818noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-28011571735754116942016-12-18T20:45:35.792+08:002016-12-18T20:45:35.792+08:00不清楚。不清楚。yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-40324832297078887562016-12-18T20:22:55.562+08:002016-12-18T20:22:55.562+08:00請問您有提到"適合低轉速",一般腳踏車的轉速合適嗎?請問您有提到"適合低轉速",一般腳踏車的轉速合適嗎?Blender台灣使用者小聚https://www.blogger.com/profile/10463734833968937345noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-44282403222406441982016-08-01T21:14:27.726+08:002016-08-01T21:14:27.726+08:00嗯,
long AccelStepper::currentPosition() 可知道目前在哪,
前...嗯,<br />long AccelStepper::currentPosition() 可知道目前在哪,<br />前後相減,應就知道走了幾step。yehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-80990665564314367312016-08-01T17:12:52.668+08:002016-08-01T17:12:52.668+08:00想請問上面說的AccelStepper library 有辦法計算自己走了多少steps嗎?
還是一...想請問上面說的AccelStepper library 有辦法計算自己走了多少steps嗎?<br />還是一定需要接個旋轉編碼器才有辦法?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3638154389625503178.post-80284842149899140962016-07-22T09:56:49.280+08:002016-07-22T09:56:49.280+08:00上份程式碼使用「狀態機」的程式技巧。
請參考拙作
Arduino輕鬆入門:範例分析與實作設計
htt...上份程式碼使用「狀態機」的程式技巧。<br />請參考拙作<br />Arduino輕鬆入門:範例分析與實作設計<br />http://yehnan.blogspot.tw/2014/02/arduino_21.htmlyehnanhttps://www.blogger.com/profile/13453592439537191882noreply@blogger.com