Robofun 機器人論壇

熱搜: 活動 交友 discuz
查看: 1406|回復: 1

Need A Help!

發表於 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"
發表於 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, 2021-11-29 22:44 , Processed in 0.231535 second(s), 9 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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