go_away

Author Topic: Xbee , ardiuno uno  (Read 975 times)

0 Members and 1 Guest are viewing this topic.

Offline ATRmakerTopic starter

  • Jr. Member
  • **
  • Posts: 16
  • Helpful? 0
Xbee , ardiuno uno
« on: June 14, 2011, 05:12:43 AM »
Hi , I am building a robot tank
My setup is
4 motors
I have 2 Sabertooth 2X12 motor driver
I want connect the motor drivers to ardiuno mircocontroller and control by xbee module
i have looked at a couple sites and they have different setups ( components )
For example
Arduino USB mircocontroller, xbee arduino shield and many others

What is the simpliest and cheapest way to control the motors


Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,943
  • Helpful? 98
Re: Xbee , ardiuno uno
« Reply #1 on: June 14, 2011, 06:51:23 AM »
Quote
What is the simpliest and cheapest way to control the motors
With an On/Off switch.

Sorry, I couldn't resist.

First, there have been other posts asking this question. Some searching of the forum will find them for a wider discussion and details on how to do this.

Break the project into parts and get each part working.
1- Get Ardiuno code to turn on an LED on and off.
2- Get Ardiuno code to turn on/off one motor through a Sabertooth module.
3- Get Ardiuno code to change the motor speed.
4- Get Ardiuno code to control all four motors.
5- Get Ardiuno code to send and receive data through its UART to/from your PC (do use a MAX232 or equivalent IC).
6- Design a data command structure to send to the Adriuno from the PC the control the Bot.
7- Last is replacing the hardwired serial communication with Series 1 XBees running 802.15.4 in transparent mode (AT command mode).

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: Xbee , ardiuno uno
« Reply #2 on: June 14, 2011, 08:03:40 PM »
ATRmaker, the Sabertooth can accept serial commands (see manual). This means you can hook up an Xbee directly to the motor driver. You don't need an Arduino for this. :P

Offline ATRmakerTopic starter

  • Jr. Member
  • **
  • Posts: 16
  • Helpful? 0
Re: Xbee , ardiuno uno
« Reply #3 on: June 15, 2011, 02:20:04 AM »
Thanks for the help

It does but it also says for two sabertooth motor drivers you can use in slave mode where it is attached to a mirco controller.

just in case i decide to add other features

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: Xbee , ardiuno uno
« Reply #4 on: June 15, 2011, 07:14:04 AM »
For clues, you might want to look at my Axon II demo software (for the one in the below video). It uses bluetooth, but it's the same as xbee in terms of software.


How to Make a Robot with Axon II MCU

 


Get Your Ad Here