Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Serial Stepper Driver - ASCII messaging for dummies on: September 25, 2012, 02:06:38 am
I am trying to interface an UNO with these stepper drivers.  http://machmo.com/stepperdrivers/UIM24104T-M-S.html 

The issue is I dont know Serial communcations at all and I am falling down trying to get the UNO to send a message to the driver.  I dont know ASCII so I am trying to figure out how I would code a message to this?  It is looking for a handshake message of "ABC;" and I am trying to simply send an "ENA;" after that. I dont understand this at all.  Could anyone help?  The manual for the driver is here: http://machmo.com/stepperdrivers/pdfs/UIM241Manual.pdf

Thanks in advance.
2  Using Arduino / Programming Questions / Re: Serial Motor Drive - Arduino Mini Pro - Coding problem on: January 21, 2012, 02:51:54 am
You all are so helpful!  I converted all of the commands to ASCII including the suggested mySerial.write(13);  worked famously.  Thank you so much.
3  Using Arduino / Programming Questions / Re: Serial Motor Drive - Arduino Mini Pro - Coding problem on: January 20, 2012, 08:47:37 pm
MarkT, I am not sure what you mean.  I was using the LED tied to pin13 and the code to verify that mySerial rx,tx was communicating.  Not sure if this is what its doing.  Can you explain a little more?  THanks for the reply.
4  Using Arduino / Programming Questions / Serial Motor Drive - Arduino Mini Pro - Coding problem on: January 20, 2012, 07:28:45 pm
I am currently trying to get my Arduino Mini Pro 5V 16Mhz to control the serial motor controller from Sparkfun ( linked here http://www.sparkfun.com/products/9571 ) and am running into a coding issue that I think may be the problem.  The commands of the serial driver call for an end command '\r' which the arduino will not output.  Instead I get all of the commands sans the '\r' to print.  Does anyone want to enlighten me on what I am doing wrong?  Code Below

#include <SoftwareSerial.h>

#define rxPin 2
#define txPin 3

SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);

int incomingByte = 0;   // for incoming serial data

void setup() {
       
}

void loop() {
 
  Serial.begin(9600);
  mySerial.begin(115200);

        // send data only when you receive data:
        if (mySerial.available() > 0) {
         
          mySerial.print('1');
          Serial.print('1');
          mySerial.print('F');
          Serial.print('F');
          mySerial.print('5');
          Serial.print('5');
          mySerial.print('\r');
          Serial.print('\r');
          mySerial.println();
          Serial.println();
               
          digitalWrite(13, HIGH);
         
          delay(1000);
         
        }
       
        else  {
         
          digitalWrite(13, LOW);
         
        }
}
5  Using Arduino / Networking, Protocols, and Devices / Re: Will arduino talk to a 2 wire RS232 device? on: January 16, 2012, 10:59:16 am
Thanks, I ordered the version sans-DB9 connector yesterday for this.  Looks pretty straight forward.  Appreciate the help!
6  Using Arduino / Networking, Protocols, and Devices / Will arduino talk to a 2 wire RS232 device? on: January 15, 2012, 09:40:18 pm
I am working with a stepper driver that has advanced functions which can be used only over a 2 wire RS232 serial interface.  The wiring diagram on the stepper driver shows Rx Tx and Gnd which I wired according to the Uno ports 0, 1 and Gnd.  The driver should respond and acknowledge ASCII codes on the serial port but I am getting no response or acknowledgement.  Does anyone know if it is possible to talk on a 2 wire RS232 network or if there is any homebrew RS232 interface?  The driver is a Mach Motion Products UIM24108T-M-S http://machmo.com/stepperdrivers/pdfs/UIM241Manual.pdf.  Thanks!
7  Using Arduino / General Electronics / Re: Dry Contacts - timing relay on: July 05, 2011, 11:58:04 pm
Sorry, the voltage present on the switch contacts of the relay is 5VDC @ ~30mA.  I haven't yet payed any attention in which way I connected this to the pins (whether I tied the common to gnd or vise/versa).  This would definitely matter right?
8  Using Arduino / General Electronics / Re: Dry Contacts - timing relay on: July 05, 2011, 11:07:47 pm
The relay is not like a typical relay as it does not need voltage to close the contacts.  It is an electronic tinge relay that has an external switch option.  Here is the link to the wiring scheme.  http://www.serelays.com/library/section5/105A_TDRPRO-5100.pdf

I think ll I really need is direct continuity and don't know how to achieve this. 
9  Using Arduino / General Electronics / Dry Contacts - timing relay on: July 05, 2011, 10:40:49 pm
I am trying to interface the Uno with a Magnecraft timing relay that will be switching a larger 90VDC load.  The relay is set up to accept a simple dry contact closure to close the coil.  I would like to use an output pin to do this from the Arduino but am getting some extremely spotty results.  Does anyone know of the simplest way to do this?  I don't need the 5VDC output, I just need to close the contacts.  Thank you for the help!
10  Forum 2005-2010 (read only) / Exhibition / Re: Self balancing vehicle lowcost Arduino based on: December 22, 2010, 12:10:07 am
Hi, can I please get a copy of the code?  I am stuck on a couple things.  Thank you.  Nice job!
Pages: [1]