Show Posts
Pages: 1 2 [3] 4
31  Using Arduino / Programming Questions / Re: simple message lib not found on: February 07, 2013, 06:09:11 pm
Isn't SimpleMessageSystem really old and was replaced by http://playground.arduino.cc//Code/CmdMessenger

Just askin.
32  Using Arduino / Motors, Mechanics, and Power / Re: MD22 I2C motor driver + arduino uno on: February 07, 2013, 05:29:03 pm
When an Arduino talks to an MD22 to drive a motor it doesn't send PWM and direction signals like most motor shields/controllers do.

The MD22 has a chip on it that is talking to the Arduino using I2C.  I2C is a two wire communication protocol.   In I2C, each device connected to the Arduino has an address which is what you need to communicate with it.  In this case, the I2C address for the MD22 is defined as  MD22ADDRESS(0x58).  

When you write to the driver to control the motors you send two bytes, the motor and the speed. It appears that setting a speed of 128 stops the motors, 255 makes it go the maximum speed in one direction, and 0 makes it go the maximum speed in the other direction.  

The two motors are defined as MOTOR1(0x01) and MOTOR2(0x02).

PWM does happen but it is happening between the motors and a chip on the MD22.  The Arduino just sends this chip commands to send the appropriate PWM signals to the motors.

Not sure this answered what you wanted.
33  Using Arduino / Motors, Mechanics, and Power / Re: Motor Shield Capable of Driving 5 DC motors? on: February 07, 2013, 05:10:46 pm
I've not seen any shields that can handle 6A per channel but I have found boards that are relatively easy to wire up over at Pololu.
34  Using Arduino / Networking, Protocols, and Devices / Re: Connecting to more than 1 url. on: February 07, 2013, 04:45:20 pm

When you are done with the connection you should call client.stop() and client2.stop();
35  Using Arduino / Programming Questions / Re: ints and long calculation on: February 07, 2013, 03:31:47 pm
I originally posted this back in October

http://arduino.cc/forum/index.php/topic,125534.msg943800.html#msg943800
36  Topics / Robotics / Re: 12 Servo Quadruped - Servo Shield selection discussion on: February 07, 2013, 11:01:55 am
I've used an SSC-32 from Lynxmotion connected to an Arduino.   http://www.lynxmotion.com/p-395-ssc-32-servo-controller.aspx

They use it for controlling a number of their hexapods.  I have it connected to 18 Hitec HS-645MG


37  Using Arduino / Programming Questions / Re: Programming question in LED's (Stuck) on: February 07, 2013, 10:09:45 am
Should that not read:

Code:
int Num = Serial.read()  - '0';

Because Num would be the  ASCII value of the character he typed.

EDIT:  That was for your original post Erik.  Your modified code is correct.


38  Using Arduino / Programming Questions / Re: Bitbang PWM on non-PWM pins on: February 07, 2013, 08:35:35 am
Just a simple question.  Is there a reason you need to leave the loop() function at all? Would it not be a tiny bit faster and more efficient to simply put a while(true) loop inside of the loop() and never leave it?   
39  Products / Arduino Due / Re: External interrupts on: October 26, 2012, 07:21:39 pm
Indeed I think he will have it all done before the Due actually gets out to the customers.   

Thanks for keeping us in the loop over the progress.  Looking forward to playing around with it.
40  Products / Arduino Due / External interrupts on: October 22, 2012, 01:10:30 pm
According to the new product page for the Due it states "interrupts 0 and 1 (pins 2 and 3 respectively)".   This is the only mention of interrupts on the page.   Are there not more than just two?
41  Using Arduino / Programming Questions / Re: Is it possible to use the digital OUTs as INs? on: October 05, 2012, 12:19:51 pm
How does it not relate to the posters question?
I am saying yes you can "use the pins named "DIGITAL" as digital INs"
At least this is my take on it, maybe I am wrong?
Whats the problem?

The original poster was asking if an Arduino sketch that can perform digital reads on the digital pins.   You stated you need a GUI front end and then proceeded to give him a Visual Basic program that talks over the serial port (and you left out the corresponding sketch to boot).
 
Discussing a GUI front end in VB it is about as far away from "is it possible to use the pins named "DIGITAL" as digital INs" as one can get.

Not trying to be a jerk about it but your post is a bit off topic.
42  Using Arduino / Sensors / Re: Get value from RFID tag and store it as a string on: October 05, 2012, 09:00:55 am
Also you could try this http://www.gumbolabs.org/2009/10/17/parallax-rfid-reader-arduino/
43  Using Arduino / Sensors / Re: Trouble with HC-SR04 on: October 05, 2012, 08:56:53 am
By the way, you should set the trigger to LOW first before setting it to HIGH.  And you don't need 1000 microseconds.   The spec says 10 microseconds will do. http://www.micropik.com/PDF/HCSR04.pdf

Try ch
Code:
void loop() {
  int duration, distance;
  digitalWrite(trigPin, LOW);  //  Added
  delayMicroseconds(2);          // added
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);        // changed to 10
....
44  Using Arduino / Sensors / Re: How can I speed up the ADC? on: October 05, 2012, 08:47:32 am
"void" is the type of the function - you call it a "little function", not a "little void".

I dunno.  I looked at that function and it seemed a 'little void' to me.  smiley-grin (Sorry it's bad joke day and I am just trying to fill my quota).
45  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino Mega ADK Serial.print stale data issue on: October 05, 2012, 08:31:16 am
Code?

Does the Mega ADK  print out the header  "#HotJunction(C),ColdJunction(C)"  in your setup function?  Yet it is not re-printing it on the reset?
Pages: 1 2 [3] 4