Driver SN754410 and Arduino Mega 2560 Noise

Hi

I have connected a DC motor (supply 9V) trough the driver SN754410 via Arduino Mega 2560. I use Labview for control of the DC motor via USB. After the starting of the program I measured that between pins 3 and 7 where the motor was connected, there is a signal up to 6V. I suppose that this is a noise but I am not sure. After 6 seconds after the initialization of Arduino this signal desapears. This is a problem because when the motor is connected to Arduino, the program stops working and the communication between Arduino and my PC stops too.

My question is how to eliminate this noise signal of 6V?

Regards

Please supply a schematic of how you have wired up everything and post your code in code tags (</> )

The 6V from 9V input is normal because of the transistor voltage drop in the chip.

May be 6V to input it is a normal signal during the initialization of Arduino at the beginning. But I would like to set a control voltage to the motor when I push a button from the software application. This voltage at the beginning is trying to start the motor. That is the problem.

Regards

When the Arduino starts up all the pins revert to inputs by default. This means that they "float". If you want a pin to be at a specific logic level during initialisation then use a 10K pull up or pull down resistor on that pin.

Here is my diagram.

I made the following experiment. I set the pin 2 with 5V. It is OK. When I try to set the same pin with 0V, I read by the oscilloscope 1.24V.

Regards

Scheme_ArduinoDriver1.jpg

From your diagram I note that your SN754410 has no logic supply decoupling capacitor and your 9V motor supply has not got a common ground with the Arduino.
These need to be addressed either in real life or the diagram or both.

I found my mistake with the pin 2. The pins 3 and 4 were not connected to the ground. I am apologize.

Regards

I have connected the ground of the adapter to the ground of Arduino but I haven't present it at the diagram. I am apologize.

Regards

I have corrected my diagram according to your suggestions. I put 2 pull-up resistors to the pins 8 and 9 of Arduino. I have connected the minus of the adapter to the ground of Arduino. I put one resistor (100 microfarads) between the logic supply (5V) and the GND.

Now, have 9V between the pins 3 and 6 of the driver during the initialization of Arduino at the beginning. There is an error I think.

Regards

Now I have a signal not so stable, achieving sometimes 4V between the pins 3 and 6 of the driver at the beginning.

Regards

The 100uF is not very good at combating high frequencyes, to need to add another capacitor which is 0.1uF and of the ceramic type, this will stabilise things.

If not then you need to post the code you are using and also a photograph showing of your wiring so we can check it is right.

Hi,

I have connected a capacitor 0.1uF of ceramic type but the signal is still not good between the pins for control of the DC motor. I am sending my diagram for corrections.

Regards

You have not got the hang of this forum have you. You gave me a photograph of a solderless bread board with components loosely scattered over it.

The only thing I can tell from that is that the 0.1uF capacitor is no where near the chip. It has to be as close to the chip's pins as possible to do any good.

Now code please.

Hi,

I would like to know if my schematic is OK. Then I will make an electronic board.

Here is my code written in labview.

Regards

Sigh.
The code in the freeking Arduino is what I was expecting. This is the first mention of LabView it changes everything I have said about the software so far.
Very cross with you, you are a time waster.
In reply #1 I asked for your code and we have to get down to #13 before you tell me this!
So what the chuf is in the Arduino? Is it Firmatra?

Hi,

Thank you for your answer. I don't know where to check for the chuf of Arduino. Could you please explain?

Regards

Grumpy_Mike:
So what the chuf is in the Arduino? Is it Firmatra?

I will try again.
What code is in the Arduino?

I think that it is Firmata. I found this library in C:\Program Files (x86)\Arduino\libraries\Firmata

Regards

I think that it is Firmata.

Think? You should know. How can you hope to get anything working if you don't know?

If it is Firmata your "problem" is entirely with LabView and nothing to do with the Arduino.

I suspect that your LabView VI is doing something silly when it powers up, I suggest you ask in a LabView forum.

Hi,

Thank you for your answer. Could you please give another working solution how to control a dc motor using arduino mega and labview?

Regards