Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: PWM at 500kHz on: October 19, 2012, 03:20:41 am
That particular code was for a Uno.

I note that your recent reply was the first time a Mega was mentioned in this thread.

You can help us to help you, by specifying as much detail as possible.

Sorry about that, I haven't got into any of nitty-gritty chipset specific code before now.

So the code will not work with my mega?
2  Using Arduino / Programming Questions / Re: PWM at 500kHz on: October 19, 2012, 02:20:59 am
See: http://www.gammon.com.au/forum/?id=11504

Scroll down to: "Modulating 38 KHz signal"

Change the constant timer1_OCR1A_Setting as appropriate.

So after using that code, the pwm on pins 11 and 12(I am using an arduino mega) should be running at my desired speed?
3  Using Arduino / Programming Questions / Re: PWM at 500kHz on: October 19, 2012, 01:58:13 am

With a 16 MHz processor you will only get 32 steps which is about 3% per step.  Is that acceptable?

32 steps is not great, but I think it will work.
4  Using Arduino / Programming Questions / Re: PWM at 500kHz on: October 19, 2012, 01:29:39 am

500 kHz (subject line)?  50 kHz?  Which?

Does the frequency have to be exactly 500 kHz (or 50 kHz)?


Sorry about that, it was a typo. I fixed it.

To answer your second question, yes it need to be exactly 500kHz.
5  Development / Suggestions for the Arduino Project / Re: Interest in overhauling the IDE user interface? on: October 18, 2012, 10:50:51 pm
I use ino and Sublime Text 2. They are a match made in heaven. Sublime's awesomeness and a simple "ino build && ino upload" to the command prompt.
6  Development / Suggestions for the Arduino Project / Re: Total rewrite of the Arduino App needed! on: October 18, 2012, 10:47:24 pm
I use ino and Sublime Text 2. They are a match made in heaven, Sublimes awesome fetures and then a simple "ino build; ino upload" to the command prompt.
7  Using Arduino / Programming Questions / PWM at 500kHz on: October 18, 2012, 09:49:10 pm
I am trying to control some Victor 884 motor controllers with pwm. The problem is I need pwm at 500kHz not the default 500Hz.

Can I do that like this, but when I try to do it with different duty cycles on multiple pins the code is hard to keep track of.

Code:
#define LED_PIN 13

void setup() {
    pinMode(LED_PIN, OUTPUT);
}

void loop() {
    digitalWrite(LED_PIN, HIGH);
    delayMicroseconds(1500);
    digitalWrite(LED_PIN, LOW);
    delayMicroseconds(5000);
}

So can I make the arduino have pwm that fast or do I need to build an external circuit?
8  Using Arduino / Motors, Mechanics, and Power / 24dc Wheelchair Motor Controller on: March 04, 2012, 02:07:01 pm
We have a old wheel chair with 2 24vdc motors on it. We are looking for a motorcontroller board that we could use to control them with arduino. I was wondering if anyone has worked on a similar project and could suggest a motor controller board(with a reasonable price tag).

Would we be better off building one from scratch? If so, can you link us to a good design?

Thanks,
giodamelio
toozinger
9  Using Arduino / Project Guidance / Re: Determine Wheel Speed on: November 23, 2011, 10:43:14 pm
Thank you for the quick reply!

So I was thinking of using that too, but I need higher accuracy.  Our wheel on the wheel chair has a diameter of about 10" and I am working with speeds around 1-7 mph.  I will be moving rather slowly, and would like to know our speed better, so we can more accurately determine our rotation, and distance. 
10  Using Arduino / Project Guidance / Determine Wheel Speed on: November 23, 2011, 06:44:49 pm
We are trying to measure the speed of a wheel chair, using some type of an encoder.  We need suggestions about the hardware that we should use.

Thanks,
giodamelio
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: Adding ints into one int. on: November 26, 2010, 08:54:32 pm
Thanks to both of you  smiley-grin . It worked great.
12  Forum 2005-2010 (read only) / Syntax & Programs / Adding ints into one int. on: November 26, 2010, 07:10:46 pm
I have a array of ints
Code:
num[0]
num[1]
num[2]

If the values are 3, 4 and 6 i need to make them into one number like 346.
I have no clue even where to start.
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: Servo testing on: May 28, 2010, 09:55:23 pm
thanks guys I figured it out.
billroy your link really helped.
14  Forum 2005-2010 (read only) / Syntax & Programs / Servo testing on: May 28, 2010, 07:33:05 pm
i have hacked into the servos in a RC car.
i would like help making a program that will control that programs.
i would like to be able to type a number(0-180) into the serial terminal and have the servo go to that position immediately without having to upload a new programs.

thanks
15  Forum 2005-2010 (read only) / Interfacing / Re: Interfacing The arduino with a java program on: August 17, 2010, 07:49:37 pm
I will post as soon as it works again.
Right after i sad it worked i ripped the whole thing apart to make it more advanced  :smiley
Pages: [1] 2