Show Posts
Pages: [1] 2
1  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit Motor Shield on: December 25, 2011, 02:45:48 pm
I got the AFMotor library to work. The problem was noise from the motors, and not the library. Thanks for your help!
2  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit Motor Shield on: December 25, 2011, 11:27:06 am
I tried setting the pins labeled M# to analog(200), and the direction pins to HIGH. got nothing. How exactly would I do this?
3  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit Motor Shield on: December 24, 2011, 10:44:26 am
I tried hooking the servo directly up to pin 13 (which isn't used by the shield), gnd and 5V, and the motor to M4, running off of the seperate power brick, and the servo still had irregular motion. If I wanted to control the Adafruit shield without the AFMotor.h library, I could just use analogWrite for PWM and digitalWrite for direction, right?
4  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit Motor Shield on: December 24, 2011, 09:47:50 am
The power source is 6x AA batteries.
5  Using Arduino / Motors, Mechanics, and Power / Adafruit Motor Shield on: December 23, 2011, 09:44:29 am
I recently purchased the Adafruit Motorshield. It can flawlessly run either motors or servos, but if I try to run the motors (any of the 4 channels) the servos go beserk. Here is my test code:
#include <AFMotor.h>
AF_DCMotor motor(4);

void setup() {
  myservo.attach(9);
  yourservo.attach(10);
  motor.setSpeed(200);
 
  motor.run(RELEASE);
}

void loop() {
  motor.run(FORWARD);
  delay(1000);
  motor.run(BACKWARD);
  delay(1000);}

I checked, no bridged pins or the like, all the pins are functioning normally. I am using a Arduino Mega 2560.
Thanks!
6  Using Arduino / Microcontrollers / Re: Power on: July 24, 2011, 05:54:31 am
Thanks  Techone.

What I am thinking in way of steps forward in getting the shielded ribbon, and trying that with the relays mounted into a project box affixed to the top of the strip. That way they are isolated from the main power. I was hoping to completely integrate the relays into the strip, but as you pointed out, the interference and the danger of short circuit is too great.
7  Using Arduino / Microcontrollers / Re: Power on: July 23, 2011, 08:04:10 pm
The rats nest:

http://www.flickr.com/photos/58035235@N02/5968719736/

Sorry the pic is blurry. I'll try to get a better one.

Major components are noted.
8  Using Arduino / Microcontrollers / Re: Power on: July 23, 2011, 06:21:45 pm
Sorry if there was some confusion. The decoupling problem in the arduino is fixed. I am now asking how to route the ribbon cable through the power strip, and what cable to use. The pictures are of the power strip, which I believe is the pertinent part.
9  Using Arduino / Microcontrollers / Re: Power on: July 23, 2011, 05:34:15 pm
Revision. Fixed with a light load, if more than ~1 amp is pulled from the strip, no go. Also pumps screw it up.

Thus:

Pictures  smiley smiley smiley smiley smiley

http://www.flickr.com/photos/58035235@N02/5967831575/in/photostream/
(Just click your way through the photostream to see all the pics of the strip. Last one is a schematic of the Relay Boards themselves.)
I know the issue is that I am running a data line next to a power line, but the question is how do I fix it?

Would this shielded wrapped flat work?

http://www.mouser.com/ProductDetail/3M-Electronic-Solutions-Division/3659-10-CUT-LENGTH/?qs=sGAEpiMZZMsJiFh04Lj2rhlO6VJHoBHcsjsxNUrSjEE%3d
10  Using Arduino / Microcontrollers / Re: Power on: July 23, 2011, 01:26:04 pm
A month later...............

It's FIXED!!!

How, you might ask?

I routed the data line from the relay boards to the microprocessor right past a transformer. Re-routed, added a 100 uF cap on main arduino 5v supply, and a 33uF and .1 uF on the LCD power itself, all problems fixed.

Thanks!
11  Using Arduino / Microcontrollers / Re: Power on: June 24, 2011, 09:37:59 pm
I have a NKC electronics MegaProtoShield. The LCD is wired up exactly per Adafruit's LCD tutorial, 5V and GND going to their respective buses on the shield. All other 5v and GND is wired to these buses as well.
12  Using Arduino / Microcontrollers / Re: Power on: June 24, 2011, 07:45:49 pm
The text becomes extremely dim (backlight stays perfectly lit) and is random characters and  numbers.
13  Using Arduino / Microcontrollers / Re: Power on: June 24, 2011, 07:05:39 pm
I read the article/page, and since the only "official"  ICs I am using, outside of the Arduino itself, are in the LCD, I assume I need to decouple the LCD logic power supply, correct? And would the "usual" 47 uF and .01 uF caps work? If not, how would I determine the correct cap sizes? The equation he gives is all well and good but how do I apply it?
14  Using Arduino / Microcontrollers / Re: Power on: June 24, 2011, 07:09:34 am
The boards ( i have 2) are just directly hooked up to the Arduino for data and 5v; the 12v, as I said, is supplied by a separate transformer.
15  Using Arduino / Microcontrollers / Re: Power on: June 24, 2011, 07:06:38 am
http://www.flickr.com/photos/58035235@N02/5573548577/

Are decouplers even necessary when the 12v is isolated by opto-isolators?
Pages: [1] 2