this isn't a programming question, but a hardware question. I am trying to run the following program on a Arduino Duemilanova. I am using the serial pins TX(1) and RX(0) pins to transmit the code to a serial motor driver. After I uploaded the sketch, I made sure to remove the USB cord. After I do that, my TX light will not light up anymore. What do I need to do to get those two pins to function?
Are you sure you have send and rec wired correctly at the motor controller end, signal names can sometimes be misleading. The arduino pin 1 should wire to a input pin on the MC and the MC should have it's output pin wired to arduino pin 0. Check the MC documentation for what they mean by send and rec pins.
AWOL:
Does your code even compile with the # before "void setup" ?
I didn't inlcude # in the code, I just posted that on this thread to show where my coding starts.
retrolefty:
Are you sure you have send and rec wired correctly at the motor controller end, signal names can sometimes be misleading. The arduino pin 1 should wire to a input pin on the MC and the MC should have it's output pin wired to arduino pin 0. Check the MC documentation for what they mean by send and rec pins.
Lefty
I did make sure to make sure my MC output was connected to my Arduino input.
I did make sure to make sure my MC output was connected to my Arduino input.
Well to get the best chance of help you should post your code (in a # edit code window), a link to your MC user manual or datasheet and possibly a wiring diagram of your wiring. You did remember to wire a common ground wire between the arduino and the MC? Simple questions I know, but without a posted wiring diagram and code we can only guess at the possible reasons you can't get it to work.
I have another problem. After reading Lefty's comment regarding hooking up the ground, I realized I forgot to do that. After connecting the ground from the Arduino to to Serial Motor driver, I started receiving output from the M1 terminals on my motor driver. That is fine, but now it seems I can't upload any scatches to the Duemilanove board. I receive the following error.
avrdude: stk500_getsync(): not in sync: resp=0xaa
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0xaa
Is it possible i some how burnt up a component on my board?