Show Posts
Pages: 1 [2] 3 4 ... 41
16  Topics / Robotics / Re: Mirobot: an open source WiFi drawing bot on: February 15, 2014, 11:26:17 am
That looks cool! How long until you hit production?
17  Topics / Robotics / Re: R/C Rover 5 platform on: February 15, 2014, 11:24:58 am
Quote
that is remote controlled using arduino

What remote control/ receiver???  That completely changes how the program will work. If you don't have one I would go with an xbee system (long range) or Ir(short range). Sparkfun sells a nice Ir kit for cheap.  If you have your remote control let us know what kind it is.
18  Topics / Robotics / Re: Where do I go? Robot Idea on: February 14, 2014, 11:13:21 am
As far as the motors go I would look into Ampflow or AME. Paralllax sells a kit with AME motors that gives you the wheels and mounts. As far as steering I would go for 4WD. It would make turning extremely easy.
19  Using Arduino / Programming Questions / Re: Encoder + Motor Not working on: February 14, 2014, 11:07:22 am
Ok. So it turns out that  of my brand new encoders that I bought form parallax over 50% of them don't work. I finally found that buy unplugging  them them from the Arduino and testing each one with my multimeter.  I will be getting new ones (not from parallax).


Anyway I have a question with interrupts as far as the programing goes. From what I can tell when the state changes on one of the interrupts the Arduino breaks out of the current code and adds a count to the encoder. Will that affect the rest of a program?


Thanks!

20  Using Arduino / Programming Questions / Re: Encoder + Motor Not working on: February 13, 2014, 09:59:50 pm
Tested it with an Uno and it still did not work....
21  Using Arduino / Programming Questions / Re: Encoder + Motor Not working on: February 13, 2014, 06:14:19 pm
Ok I ran several tests with two different Arduino Mega boards , and several encoders. I used the exact code that comes with the library and powered my motors separately. I also changed the ports to interrupt pins during some trials. Still no luck. I'm convinced that this is a software issue. I know that some older libraries need to be modified to work with the new Arduino software is the encoder library one of them?  Is there any reason the the Mega might not work?  Thanks for any help!

http://www.pjrc.com/teensy/td_libs_Encoder.html

Code:
/* Encoder Library - Basic Example
 * http://www.pjrc.com/teensy/td_libs_Encoder.html
 *
 * This example code is in the public domain.
 */

#include <Encoder.h>

// Change these two numbers to the pins connected to your encoder.
//   Best Performance: both pins have interrupt capability
//   Good Performance: only the first pin has interrupt capability
//   Low Performance:  neither pin has interrupt capability
Encoder myEnc(5, 6);
//   avoid using pins with LEDs attached

void setup() {
  Serial.begin(9600);
  Serial.println("Basic Encoder Test:");
}

long oldPosition  = -999;

void loop() {
  long newPosition = myEnc.read();
  if (newPosition != oldPosition) {
    oldPosition = newPosition;
    Serial.println(newPosition);
  }
}
22  Using Arduino / Programming Questions / Encoder + Motor Not working on: February 12, 2014, 10:06:05 pm
Hello,

I have altered some example code from the encoder library yet it is not working. I'm justing trying to get some feedback from my motor encoder. Everything is hooked up correctly and the motors are moving, however, I never getting anything back on serial monitor except 0. Is there anything that is obviously wrong with my code? The only thing I can think of is that the two libraries are conflicting with each other.


Thanks!

Code:
/* Encoder Library - Basic Example
 * http://www.pjrc.com/teensy/td_libs_Encoder.html
 *
 * This example code is in the public domain.
 */

#include <Encoder.h>
#include <Servo.h>
Servo servo1;  // not a servo... it is a motor driver
Servo servo2; // not a servo... it is a motor driver  (not need, I just put it here encase I had the encoder on the wrong motor)

// Change these two numbers to the pins connected to your encoder.
//   Best Performance: both pins have interrupt capability
//   Good Performance: only the first pin has interrupt capability
//   Low Performance:  neither pin has interrupt capability
Encoder myEnc(23, 19);
//   avoid using pins with LEDs attached

void setup() {
  Serial.begin(9600);
  Serial.println("Basic Encoder Test:");
   servo1.attach(8);  // not a servo... it is a motor driver
  servo2.attach(9);   // not a servo... it is a motor driver  (not need, I just put it here encase I had the encoder on the wrong motor)
}

long oldPosition  = -999;

void loop() {
  
 servo1.writeMicroseconds(1900);  // make motor 1 move
servo2.writeMicroseconds(1900);  // make motor 2 move (not need, I just put it here encase I had the encoder on the wrong motor)

  long newPosition = myEnc.read();
  if (newPosition != oldPosition) {
    oldPosition = newPosition;
    Serial.println(newPosition);
  }
}


Thanks!
23  Using Arduino / Motors, Mechanics, and Power / Re: Outdoor Battery / Power Source on: February 12, 2014, 04:00:39 pm
Your going to need a bigger power source if you want your weather station to run for a useful amount of time.  Try something like this...
 http://www.all-battery.com/li-ion1865074v10400mahrechargeablebatterymodulewithpcb-31577.aspx
24  Using Arduino / General Electronics / Re: Arduino Mega current supply??? on: February 12, 2014, 03:55:37 pm
Ok. Thanks.
25  Using Arduino / General Electronics / Re: Component requires 24v on: February 11, 2014, 03:33:44 pm
Thanks for the specs. Here is what I would get...

http://www.ebay.com/itm/US-DC-24V-500mA-1A-Switching-Power-Supply-adapter-100-240-AC-/350681440782?pt=US_Surveillance_Cables_Adapters_Connectors&hash=item51a63e220e

or


http://www.amazon.com/Switching-adapter-100-240-AbleGrid-Trademarked/dp/B00D1SRAMY/ref=sr_1_6?ie=UTF8&qid=1392151317&sr=8-6&keywords=24v+500ma+power+supply


26  Using Arduino / General Electronics / Re: Component requires 24v on: February 11, 2014, 12:52:46 pm
Um what component are you using and what is its current draw? The amount of current it needs will greatly affect the size. Also is it AC or DC???
27  Using Arduino / General Electronics / Re: Arduino Mega current supply??? on: February 11, 2014, 11:19:29 am
Is there a general range of current output at 7.4v?   Like  less then 500mA or something.  I don't want to burnt the thing up!  

Also, would a heat sink help?


EDIT: I added everything up and I should need less then 300 mA from the 5v pin at any given time.
28  Using Arduino / General Electronics / Re: Arduino Mega current supply??? on: February 11, 2014, 08:12:47 am
I did not mean that I'm supplying power to the servos from the Mega!  That would obviously be way to much current of the Arduino to handle. I'm just controlling them with the mega which can still eat up a small amount of current.

Does anybody have the data sheet to the voltage regulator so that I can calculate how much current I will be able to supply. I will be using a 7.4v battery. Thanks!
29  Topics / Robotics / Re: help to build an ir transmitter on: February 10, 2014, 08:10:27 pm
This should help you out...

https://learn.sparkfun.com/tutorials/ir-control-kit-hookup-guide
30  Community / Gigs and Collaborations / Re: RE: Interested in making $ for a little freelance project? on: February 10, 2014, 08:08:27 pm
Well before anybody can write code we will need to know what motor driver you are using, and what Arduino is in use.  Also, what push button? They can very.


This is also in the wrong spot.
Pages: 1 [2] 3 4 ... 41