LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Is is possible to modulate voltage

I am doing a project for school to control a DC motor using an Arduino Uno card. I want to know if it is possible to modulate the voltage output on any of the pins. What I would like to try to do is connect a dial input from the front panel that would allow me to increase and decrease the voltage to the motor. When testing the Arduino card I found that I get 5 volts out however my motor is rated at 1.5-3 volts. So I would like to be able to reduce the amount of voltage and be able to adjust it from the front panel. Can anyone help me do this?

0 Kudos
Message 1 of 11
(7,156 Views)

Hi

The arduino unodoes not have a real voltage output. It uses pulse width modulation to simulate that. Meaning a pulse is on for a shorter or longer time. If you let the coil of your motor intgrate this signal it looks as if a lower voltage/ power is supplied, but better use a H-Bridge extension to amplfy the output of the arduino.

greetings from the Netherlands
0 Kudos
Message 2 of 11
(5,293 Views)

That's quite interesting.   Ok at least I know. I actualy need to build a T bridge, that's what my professor wants use to use.  I do t know the difference but I guess that's the. Point of the project is to research it.  So pulse will make the control more interesting.  Ok so how do I use pulse in labview with the Arduino toolkit.  Is there built in sub vis?

0 Kudos
Message 3 of 11
(5,293 Views)

What pulse are you asking about?  The pulse that Albert mentioned is PWM from the analog pins.  You simply use an analog output voltage.

0 Kudos
Message 4 of 11
(5,293 Views)

In this groups home page click on the tab "Documents".  There you will the example "Basic Motor with PWM (CCW & CW)".  This example does what you are looking for.

hrh1818

0 Kudos
Message 5 of 11
(5,293 Views)

Ok i think I can try to make sense of that program thanks a bunch.  They are using analog pin, i have an arduino uno and my pwm is on the digital i thought... or am i wrong, are those analog pins 0-13.  the other side of the board shows analog but it says input...im new to the arduino thing and im trying to make sense of how it all functions, so forgive me if these questions are trivial.

0 Kudos
Message 6 of 11
(5,293 Views)

ArduinoUno_R3_Front (640x442).jpg

This is the arduino i have

0 Kudos
Message 7 of 11
(5,293 Views)

The Analog Write (PWM) function works with digital pins.  See:

<http://arduino.cc/en/Reference/analogWrite#.UxJayuNdU_o>

The example uses pins 4, 5, 6, an d 7.  Look at the right side of the front panel.

I don't know how the author of the example is using the analog pins.

hrh1818

0 Kudos
Message 8 of 11
(5,293 Views)

I've been playing around with the PWM.   What exactly does the digital write PWM input Duty cycle 0-255 do exactly?  Is that changing the pulse frequency?

0 Kudos
Message 9 of 11
(5,293 Views)

PWM doesn't change the frequency of the pulse. It instead varies the ratio of on time to the pulse period. Pulse period is the reciprocal of frequency.  For more information look at the graphs at the following web page.

<http://arduino.cc/en/Tutorial/PWM#.UxUPnONdU_o>

hrh1818

0 Kudos
Message 10 of 11
(5,293 Views)