Show Posts
Pages: 1 ... 14 15 [16] 17 18 ... 20
226  Using Arduino / Programming Questions / Re: Floats in array on: March 10, 2012, 01:38:12 pm
Thank you Rob, that code does look a lot cleaner smiley
227  Using Arduino / Networking, Protocols, and Devices / Re: How do you set up a wireless network for a project like a remote controlled car? on: March 10, 2012, 06:16:51 am
I'm using a couple of Nrf24L01 modules to remote control my Rover 5. They are cheap and well supported by Arduino.
228  Using Arduino / Programming Questions / Re: Floats in array on: March 10, 2012, 06:03:21 am
Oh damned, forgot about that  smiley-confuse
229  Using Arduino / Programming Questions / Floats in array on: March 10, 2012, 05:47:16 am
I've written a sketch to remote control my Rover 5 with another Arduino with an analog joystick attached. That code works. My motor controller has 4 pins that give a 0-5V output depending on the current the 4 motors draw (5V = 5A). So I wrote some code to sent the values to the serial monitor and I'm having some problems.
The sketch that works can be found here ->
When I add the following code to that sketch it stops working.

float current[3];   // Array with the 4 motor current values, to sent to remote control

void loop()
// 4 analog readings from motor controller = motor current
  int m1 = analogRead(A1);
  current[0] = m1 / 1024.0 * 5.0;      // 1024 = 5A
  Serial.print("current motor 1 = ");
  int m2 = analogRead(A2);
  current[1] = m2 / 1024.0 * 5.0;
  Serial.print("current motor 2 = ");
  int m3 = analogRead(A3);
  current[2] = m3 / 1024.0 * 5.0;
  Serial.print("current motor 3 = ");
  int m4 = analogRead(A4);
  current[3] = m4 / 1024.0 * 5.0;
  Serial.print("current motor 4 = ");

What am I doing wrong? I would like to sent the current[3] array to the remote control to display it on an LCD.
230  Using Arduino / Motors, Mechanics, and Power / Re: Why example code: stepper_oneReveution (28BYJ48+ULN2003) turns only clockwise? on: March 06, 2012, 04:33:47 pm
Take a good look at this ->
231  Using Arduino / General Electronics / Re: can UNO digital out pins drive 8 channel relay? on: March 06, 2012, 03:47:57 pm
What happens if you source to much current from the output pins? Does the chip just give the maximum it can source or do you risk destroying the pins or even the microcontroller?
232  Topics / Robotics / Re: Dagu Rover 5 chassis robot demo on: March 03, 2012, 02:40:15 pm
In your first post you said that the rover is sloppily wired. I got my share of that today, and needed to perform some surgery on my rover. I was trying out a sketch and suddenly one motor stopped running. I was fearing the worst thinking that one of the FETs on the motor controller had given up. Turned out to be a loose wire... one of the wires going from the coil to the connector had come loose. There was almost no solder to be seen on that connection so it's no surprise it came loose.
I've been working on an autonomous sketch using an ultrasonic sensor to detect obstacles. The code works but it keeps bumping into stuff. Think I need some more sensors and fancier code smiley
233  Using Arduino / Project Guidance / Re: Arduino with OBDII and Android on: March 03, 2012, 01:32:46 pm
This Arduino project may interest you:
234  Community / Website and Forum / Re: New language section request: Nederlands on: March 03, 2012, 09:25:49 am
Nederlandstalige sectie zal best handig zijn, sommige dingen zijn nu éénmaal makkelijker uit te leggen in je eigen taal. En het zal zeker helpen om mensen te overtuigen om met Arduino the beginnen.
235  Using Arduino / Sensors / Re: Problem on passing value from adxl to arduino mega on: March 03, 2012, 06:03:56 am
That page states that the default baud rate is 57600bps.
236  Using Arduino / Sensors / Re: Problem on passing value from adxl to arduino mega on: March 03, 2012, 04:46:55 am
What kind of development board do you have? The ADXL345 uses the I2C or SPI bus.
237  Topics / Robotics / Re: ROV on: March 02, 2012, 02:18:02 pm
What does ROV mean?
Maybe you can also consider NRF24L01 modules (version with amp, not the small ones). I have a couple of those and they work very well above water, no idea how they perform underwater smiley
238  Topics / Robotics / Re: 1st semi intelligent robot, suggestions please! on: March 02, 2012, 12:31:56 pm
Do you know how much amps the servos draw? You can use a voltage regulator to to get the voltage down to 5-6V for the servos. I wouldn't power the ultrasonic module straight from the battery, take 5V from your Uno.
239  Using Arduino / Motors, Mechanics, and Power / Re: New 28BYJ-48 library on: February 28, 2012, 11:49:19 am
The library is really good. Why not turn it into a "real" library and put it on github? These little steppers seem to be very popular, I think a lot of people could benefit from it smiley
240  Using Arduino / General Electronics / Re: I2C logic level converter 5V - 3,3V on: February 26, 2012, 01:27:39 pm
Yes, I have seen those IC's. They are a nice solution, but only available in a surface mount package. To difficult for me to solder myself  smiley-wink
Sparkfun sells this , based on 2 BSS138 fets. It's cheap but I'm in the EU, the shipping will be more expensive then the board itself.
I've just put the 2 2N7000's and ADXL345 on a breadboard, and it works.
Pages: 1 ... 14 15 [16] 17 18 ... 20