Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Running MULTIPLE engines with Mega2560 on: May 06, 2013, 10:22:13 pm
Sorry for the late reply, I just got back in town. And thank you for the answer, I've been wondering about why it needed a second power source. It's a bit late tonight, but I'll try hooking up the grounds together Tuesday morning. 
2  Using Arduino / Project Guidance / Re: Running MULTIPLE engines with Mega2560 on: May 02, 2013, 09:50:13 pm
My project has three power sources. The primary source, powering the ESC/motors is my 9S LiPo. The circuit/controller has two power sources. One is the D battery/usb connection from the Mega, powering my yaw vanes. The final power source is my 2S LiPo and a UBEC powering the... the escs?

Actually, one side note. My ESCs are Castle Creations ICE HV2 80s, currently discontinued. It has 2 big wires that connect to the battery, 3 big wires that connect to the motor and a three wire cable that connects to the 'transmitter,' which in this case is the Mega. What am I powering with the positive/gnd wires on the cable? I get why a signal line is needed, but why the other two? What are we powering?

Back on topic, my 'circuit' is a bread board. I have a 5V and a gnd wire connected to one side of the board, and the 2S LiPo (which goes through my UBEC) to a positive and a gnd wire on the other side of the board. These are on the pos/neg 'lanes' on either side of the breadboard. What I was thinking was if I connect all the gnd wires from both yaw vanes and the ESCs to the gnd 'lane' from the Mega while keeping the ESC pos wires connected to the 2S LiPo/UBEC 'lane'. I was wondering if the ESCs not being connected to the gnd from the UBEC was going to be a problem.

I hope that actually made some sort of sense.
3  Using Arduino / Project Guidance / Re: Running MULTIPLE engines with Mega2560 on: May 02, 2013, 02:37:31 pm
Thanks for the ideas PeterH, although I haven't started using the inputs from the sensor yet. Assuming the individual tests go alright, how would you start bringing them together? Any particular order? I was thinking the individual testing, then the yaw vanes (2) then start adding the escs one by one.

I also had a couple ideas and I'd like some advice on them...

1) On the mega there is pin slots for analog, digital and pwm(?). Would switching from analog to one of the others have any effect?

2) I was looking at an older post where you mentioned the following. "If your Arduino is producing a 5V PWM signal but the motor controller ground is at higher voltage than the Arduino ground then the motor controller would not see the full 5V." I do use the gnd from the 2S LiPo there... If I used the same gnd for the servos for the escs, but supplied power through the 2S LiPo, connecting the LiPo gnd into a slot with nothing in it... what do you guys think?

3) I am using a breadboard to connect all the pins. Is there something that better makes connections on the wires? Did that make any sense?
4  Using Arduino / Project Guidance / Re: Running MULTIPLE engines with Mega2560 on: May 01, 2013, 10:29:46 pm
Sorry, that post was made a few minutes before I had to leave the house. I've modified the post to be more descriptive as well as the link to the video that finally finished uploading. Please take a look and tell me what you think.
5  Using Arduino / Project Guidance / Running MULTIPLE engines with Mega2560 on: May 01, 2013, 05:48:24 pm
Hello world. I'm having issues running my setup with my Mega2560. I'm hoping someone will notice something EASY that I missed... but I'll take any ideas on how to get this up and running. I have uploaded a video (address below) which I hope will help.

Here is the setup:
Power: 9S LiPo battery for motor/escs. 2S LiPo battery for additional power for the escs.
ESCs: 3x Phoenix ICE2 HV 80 ESC
Motors: 3x Himax HC5030-390
Board: Arduino Mega2560

Problem:
The engines are not running as it should. To be more specific, they are running when they are not supposed to. The original program had the UAV testing the controls one by one in the following order:

1) Left yaw vane
2) Right yaw vane
3) Left engine
4) Right engine
5) Back engine

Please note that the code has them running ONE AT A TIME.
However, the engines were going crazy (please see video) so I'd thought to isolate the problem by commenting out steps 2-5. So now only the left yaw vane should be tested. However, the engines are still running.

The engines are starting from 0% thrust to 10% then 20% like it's supposed to, but that bit of code is commented out. Also, the throttle commands are separated by a delay(1000) command, but they are running with each other. Not quite at the same time, but one after another, starting before the others had a chance to wind down. The video should make more sense.

The Video:
http://www.youtube.com/watch?v=aIQrBPdkNCM&feature=youtu.be

Code: The entire code has 13 headers/files... but most of those are for the 9DOF stick. I've attached the ones that involve the control stuff.
6  Using Arduino / Project Guidance / Re: Running engines with Mega2560 on: May 01, 2013, 05:26:50 pm
Just saw the hijacking. ... Hope retrolefty's advice helped you as well as it did me. And it seems you got the code tags.  smiley Well, have a good day folks.
7  Using Arduino / Project Guidance / Re: Delays between commands to multiple servos. on: February 24, 2013, 04:31:24 pm
I'm using the writeMicroseconds() function from the servo library. Can you explain "A mark of 1500 micros will center the servo." And 1500 micros is what, 1.5 millisecond?
8  Using Arduino / Project Guidance / Re: Delays between commands to multiple servos. on: February 24, 2013, 12:34:37 am
Sorry for the late response, just started a new job today and my ISP was on the fritz yesterday.

To zoomkat: I can't remember, it was an article about a year ago... and I have not tried without the delays.

To GoForSmoke: Um... what is IMO? Googling got me international maritime org. I'm pretty sure that's not what you're talking about.

To retrolefty: Please excuse me if I'm being an idiot, but the way I understood your response is: Since the signal to the servos are on different pins, the delay shouldn't matter. Just wanted to put it in my own words so I know I understood your answer correctly.
9  Using Arduino / Project Guidance / Re: Delays between commands to multiple servos. on: February 22, 2013, 06:08:48 pm
If the delay is for only 10 milliseconds, does it matter if I use delay instead of millis? And I have 2 servos and 3 escs.
10  Using Arduino / Project Guidance / Delays between commands to multiple servos. on: February 22, 2013, 05:38:08 pm
Hello, I had a question. I read a long time ago that there should be slight delays between commands to servos and escs. Is that true? If so, how long? I'm building an auto-leveling UAV, so I'd like the delays to be short as possible... my current code is running delay(10); which is just a placeholder until I have an actual value.
11  Using Arduino / Project Guidance / Re: Running engines with Mega2560 on: February 14, 2013, 02:06:37 pm
That did it. Thank you again, retrolefty. And thank you all for taking a look and suggesting.
12  Using Arduino / Project Guidance / Re: Running engines with Mega2560 on: February 14, 2013, 10:14:46 am
To michinyon: The application is a UAV, and the motor is connected and controlled by a ESC. I've been assuming when PeterH says motor controller, he means a ESC. But again, assuming.

To PeterH: The ESC is connected to a breadboard, and I'm using the +/- slots on the sides. Those slots(? What are they called?) Are connected to the Mega's 5V and Gnd pin. The signal is coming from the analog pin number 8. But none of that should cause floating, should it?

13  Using Arduino / Project Guidance / Re: Running engines with Mega2560 on: February 13, 2013, 06:00:13 pm
Can you clarify something is 'floating'?

# Is this coding?

Code:
Is it working now?
Okay, the brackets and the words code not capitalized is working.
Note to self: Keep code in between brackets.


Thank you for that tidbit, by the way.
14  Using Arduino / Project Guidance / Re: Running engines with Mega2560 on: February 13, 2013, 11:48:42 am
Intermittent, like it spun up once or twice in 10 minutes without any input or changes in wiring. I'm wondering if the Serial.begin(9600) might be interfering somehow. And, actually, no one told me about [ CODE ] [ /CODE ] . What does it do?

[ CODE ] [ /CODE ]
This is a sample so I can what this does.
Please ignore these lines.
15  Community / Website and Forum / Re: forum impovement suggestion on: February 12, 2013, 05:44:38 pm
Found it, never mind.
Pages: [1] 2