Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Using Crystal Oscillator on: May 20, 2013, 06:54:35 am
Hello,

We have Ecs-32-17-1 Crystal. And We want to produce 3.2Mhz clock signal. Can I do this by using Arduino ?

Thank you.
2  Using Arduino / Project Guidance / Re: FDA 7000 Servo Driver on: January 07, 2013, 07:27:08 am
Hello PaulS,

Servo driver is  http://www.higenmotor.com/info/download_data.asp?no=246 .

AC Servo Motor is FMA-CN04-CB00 http://www.enda.com.tr/ENG/Products/Urunler.aspx?UrunID=182

This driver controls AC servo motor. I want to control  this ac servo by using arduino.
3  Using Arduino / Project Guidance / FDA 7000 Servo Driver on: January 07, 2013, 03:34:57 am
Hello,

I can control FDA7000 servo driver via Siemens PLC.

Is it possible to control servo driver by using Arduino ?

Thanks.
4  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 21, 2012, 06:13:44 am
Thanks for your helps.

I decreased speed of motor and problem was solved. as you said that motor causes voltage drop.
5  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 03:48:09 pm
I powered the arduino from USB. maybe you are right, the motor causes voltage drop.

I will power board with external battery. I will inform you guys
6  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 08:03:08 am
AWOL, I send commands from the serial monitor.

Grumpy_Mike, to send commands again, USB cable must be unplugged and replugged. I think that problem results from my code because after sending r and s commands the connection between PC and arduino breaks off.

I have tried to reinstrall program bu this did not solve the problem.

Is there anyone who tried to compile,upload codes and send these commands ?
7  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 03:38:53 am
The commands; run ("r") and stop("s"). You can see this in my code. Please look at attached file

8  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 03:20:27 am
After I send command second time, I can not compile code and I can not send commands again because arduino board can not communicate with PC.

After I unplug the USB cable from usb port and then I connected the USB cable to PC, I can send command and compile code.

9  Using Arduino / Programming Questions / Re: Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 02:57:07 am
Yes, these messages came from Arduino. You can find codes in my first message
10  Using Arduino / Programming Questions / Serial Communication Problem (Continuous rotation servo) on: November 20, 2012, 02:28:01 am
Hello, I have SpringRC SM-S3317SR continuous servo rotation.
When I send run("r") and stop("s") commands first time, there is no problem. However, if I want to send commands secondly, below error occurs. Please help me.

java.io.IOException: Input/output error in writeArray
   at gnu.io.RXTXPort.writeArray(Native Method)
   at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1124)
   at processing.app.Serial.write(Serial.java:517)
   at processing.app.Serial.write(Serial.java:540)
   at processing.app.SerialMonitor.send(SerialMonitor.java:200)
   at processing.app.SerialMonitor.access$100(SerialMonitor.java:32)
   at processing.app.SerialMonitor$4.actionPerformed(SerialMonitor.java:96)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6263)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6028)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4630)
   at java.awt.Container.dispatchEventImpl(Container.java:2099)
   at java.awt.Component.dispatchEvent(Component.java:4460)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
   at java.awt.Container.dispatchEventImpl(Container.java:2085)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4460)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

My code is ;
Code:
#include <Servo.h>
 
Servo myservo;  // create servo object to control a servo
 
void setup()
{
  Serial.begin(9600);
  Serial.println("   Continuous Servo Control");
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
}
 
void loop()
{
  while (Serial.available())
  {
    delay(10); 
    if (Serial.available()>0)
    {
            char c = Serial.read();  //gets one byte from serial buffer           
            if(c=='s')
            {
               myservo.writeMicroseconds(1500);  // Stop                         
            }
            if(c=='r')
            {
               myservo.writeMicroseconds(1600);
            }           
     }
     delay(1000);
   }
}
11  Using Arduino / Programming Questions / Re: Arduino UNO+Motor Shield DC motor controlling ! on: October 09, 2012, 09:49:44 am
Is there any idea ?  smiley-confuse
12  Using Arduino / Programming Questions / Re: Arduino UNO+Motor Shield DC motor controlling ! on: October 08, 2012, 07:12:06 am
Quote
did you select and connect the correct board?
And, did you make sure that there is nothing connected to pins 0 and 1 (directly or via any shield)?

There is nothing connected any pins on shield. Just USB and motor connections on shield (A+ A-) are connected
13  Using Arduino / Programming Questions / Re: Arduino UNO+Motor Shield DC motor controlling ! on: October 08, 2012, 07:05:15 am
Yes, I selected the correct board (Arduino UNO R3).
14  Using Arduino / Programming Questions / Re: Arduino UNO+Motor Shield DC motor controlling ! on: October 08, 2012, 06:30:14 am
I found this code for using one DC motor but the motor did not work. I got this error : avrdude: stk500_getsync(): not in sync: resp=0x00

How can I fix this code ?

Code:
void setup() {
  
  //Setup Channel A
  pinMode(12, OUTPUT); //Initiates Motor Channel A pin
  pinMode(9, OUTPUT); //Initiates Brake Channel A pin
  
}

void loop(){
  
  //forward @ full speed
  digitalWrite(12, HIGH); //Establishes forward direction of Channel A
  digitalWrite(9, LOW);   //Disengage the Brake for Channel A
  analogWrite(3, 128);   //Spins the motor on Channel A at full speed
  
  delay(3000);
  
  digitalWrite(9, HIGH); //Eengage the Brake for Channel A

  delay(1000);
  
  //backward @ half speed
  digitalWrite(12, LOW); //Establishes backward direction of Channel A
  digitalWrite(9, LOW);   //Disengage the Brake for Channel A
  analogWrite(3, 123);   //Spins the motor on Channel A at half speed
  
  delay(3000);
  
  digitalWrite(9, HIGH); //Eengage the Brake for Channel A
  
  delay(1000);
 
15  Using Arduino / Programming Questions / Arduino UNO+Motor Shield DC motor controlling ! on: October 08, 2012, 03:05:17 am
Hello,

I have an Arduino UNO R3 and Motor Shield. I want to control a dc motor via motor shield.

I am new at programming.

Are there any control program example  for me ? Thank you.
Pages: [1] 2