در این مقاله قصد داریم از طریق سنسور G گوشی موبایل خود ربات خودرو را کنترل کنیم و تنها با چرخاندن گوشی قادر خواهید بود ربات را حرکت دهید. ما همچنین از برنامه Arduino و RemoteXY برای این ربات کنترل شده با سنسور G استفاده خواهیم کرد. برنامه RemoteXY برای ایجاد رابط در تلفن هوشمند برای کنترل ربات استفاده می شود. ما جوی استیک را در رابط اضافه خواهیم کرد تا ربات نیز با جوی استیک و همچنین با چرخاندن گوشی کنترل شود.
G-Sensor یا Gravity Sensor در اصل شتابسنج در گوشی هوشمند است که برای کنترل جهت صفحه نمایش گوشی استفاده میشود. شتابسنج جهتهای X، Y، Z نیروی گرانشی را حس میکند و صفحه را بر اساس تراز تلفن میچرخاند. امروزه از حسگر ژیروسکوپ حساس تر و دقیق تری در موبایل ها برای تعیین جهت صفحه نمایش استفاده می شود. در پروژه ما، ربات ماشین بر اساس جهتی که گوشی در آن کج می شود حرکت می کند، مانند زمانی که گوشی را به جلو کج می کنیم، سپس ماشین به جلو حرکت می کند و ما آن را به سمت پایین کج می کنیم و ماشین به عقب حرکت می کند. این مانند زمانی است که ما برخی از بازی های ماشین را در موبایل بازی می کنیم، آنها همچنین از سنسور G برای حرکت ماشین استفاده می کنند. ویدیو را در انتها بررسی کنید، همچنین سایر پروژه های رباتیک ما را در اینجا بررسی کنید .
قطعات مورد نیاز:
- شاسی ماشین ربات دو چرخ
- آردوینو UNO
- کنترل کننده موتور L298N
- ماژول بلوتوث HC-06 (HC-05 نیز کار خواهد کرد)
- منبع تغذیه یا سلول
- سیم های اتصال
برای جزئیات بیشتر:
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
In this article, we are going to Control the Robot Car through the G sensor of our mobile phone and you will be able to move the Robot just by tilting the Phone. We will also use Arduino and RemoteXY app for this G-Sensor Controlled Robot. RemoteXY app is used to create the interface in the Smart Phone for controlling the Robot. We will add the joystick in the interface so that Robot can also be controlled by Joystick as well as by tilting the phone.
G-Sensor or Gravity sensor is basically Accelerometer in Smart phone which is used to control the screen orientation of the phone. Accelerometer senses the X,Y, Z directions of the Gravitational force and rotate the Screen according to alignment of the Phone. Now days, more sensitive and accurate Gyroscope sensor is used in mobiles for deciding the orientation of the Screen. In our Project, Robot car will move, according to the direction in which phone is being tilted, like when we tilt the phone forward, then car will move forward and we tilt it down then car will move backward. This is same like when we play some car games in Mobile, they also use G sensor to move the car accordingly. Check the Video at the end, also check our other Robotics Projects here.
Required Components:
- Two wheel robot car chassis
- Arduino UNO
- L298N Motor Controller
- HC-06 Bluetooth module (HC-05 will work too)
- Power supply or Cells
- Connecting wires
For More Detail: