Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 2190|回復: 1
打印 上一主題 下一主題

Need A Help!

[複製鏈接]
跳轉到指定樓層
1#
發表於 2014-9-23 19:45:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
I start A project of control servo motor through AI2And I need to control 6 servo motor
I use a bluetooth to connect the server motor controller and arduino
And I need to send it a commend to arduino and send to servo controller
Here is the command:  #12500T1000\r\n    [#1 : servo motor , 2500: the angle of the servo motor , T1000:The time of this command run , \r\n:Just the finish code of the command]
And Here is the question:
I use a slider in AL2 And i need to send the silder reading to arduino and arduino output command to servo controller
like 2500 500 1200
Then the command become This:
#1"2500"T1000\r\n  "2500"stand for the reader of slider , That mean "2500"become varible!

But how can I make&send this command to arduino?
Please Help Me!


P.S AL2 stand for app inventor 2
"Sorry for pour english :P"
2#
發表於 2014-9-23 23:21:31 | 只看該作者
回復 1# gunonlinn


   what is your server motor controller max and min value to each servo motor?example :500 ~ 2500,
you just need set slider between 50 ~ 250,
at arduino code got the value to * 10,
that is ok,
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-4-25 20:14 , Processed in 0.209913 second(s), 9 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表