Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Programming Questions / Re: How to make a loop within an IF statement (Bluetooth) on: April 20, 2013, 09:03:56 pm
The Arduino team spent a great deal of effort on the Tools + Auto Format tool to make your code readable. Why can't you use it?

Why are there extra curly braces in the code? They don't make you look smarter.

What are some of the ways you tried? What does "it didn't work" mean?

Why are you so ignorant and cocki on every post? do you think you're better than everyone? sitting behind a computer acting all smart, is this your way of making yourself look smart?. How about you leave this post go dig yourself a hole and sit in it then cover it up and stay there.
2  Using Arduino / Programming Questions / Help with making a loop.. Within on: April 20, 2013, 08:41:54 pm
d
3  Using Arduino / Project Guidance / Arduino+ RF on: March 13, 2013, 02:23:53 pm
I recently bought these:
https://www.sparkfun.com/products/10535
RF Link Transmitter - 315MHz
https://www.sparkfun.com/products/10533
RF Link Receiver - 4800bps (315MHz)

All I want to do is:
Light up an LED on another breadboard.
On one side I have Arduino>RF Transmitter.....RF Receiver< LED

Is this possible?
Just send a digital high to the input of the transmitter and connect the output of the receiver to an LED and it will work?
4  Using Arduino / Project Guidance / Re: Arduino+Xbee on: February 25, 2013, 07:59:50 pm
Quote
I cant write the code if I dont know how its going to work with using xbee's
If you "know the ins and outs" of the ping sensor, it should be obvious that the XBee, by itself, will not get data from a sensor that needs to be an output device then an input device.

You can't upload code to the XBees, so writing code for them is not going to happen.

I dont think you're understanding what I'm doing. It's possible.

Step 1:
arduino
step 2:
arduino-xbee
step 3:
xbee-ping
step 4:
ping

This guy does it I just can't interpret how:
http://www.techhive.com/article/252138/meet_the_robotic_luggage_that_follows_you_like_a_dog.html

Watch the video on the bottom forward to time 15:40
5  Using Arduino / Project Guidance / Re: Arduino+Xbee on: February 25, 2013, 06:18:50 pm
Quote
I know the in and outs of a ping)) sensor.
So, show us the code you are using.

You seem to think that the Arduino is not intimately involved in the process of making the ping sensor perform useful action. My ping sensors most definitely need to be controlled by a microprocessor.

I'm looking for the logic behind it, how it can be done.. no code has been written. I cant write the code if I dont know how its going to work with using xbee's
6  Using Arduino / Project Guidance / Re: Arduino+Xbee on: February 25, 2013, 01:14:18 pm
Quote
Sorry I did not clarify, I just want it to transmit. Not receive or anything.
What good is a ping sensor that only sends out the pulse? It isn't useful unless the pulse reflects off of something and comes back, and you measure how long that took.

I have used a ping)) sensor 50 times for numerous projects, I know the in and outs of a ping)) sensor. I want it to transmit, thats my project.

I've never used an xbee.

Im asking for help like I stated earlier on:
To ping(just transmit) a ping)) sensor wirelessly through an xbee.
So basically,
arduino-xbee.......xbee-ping sensor.
7  Using Arduino / Project Guidance / Re: Arduino+Xbee on: February 25, 2013, 12:55:43 pm
Quote
How can I ping the sensor through an xbee without a microcontroller?
You can't. The sensor needs to be turned on for a period of time, then turned off, and then the pins switched from output to input so that the time to receive the echo can be measured. The radio won't do that.
Sorry I did not clarify, I just want it to transmit. Not receive or anything.
All I want the ping)) sensor with the wireless xbee is to transmit when the xbee on the arduino tells it to.
8  Using Arduino / Project Guidance / Arduino+Xbee on: February 25, 2013, 11:22:53 am
I researched for some help on this couldn't find exactly what i was looking for.

I want to ping a ping)) sensor wirelessly through an xbee.
So basically,
arduino-xbee.......xbee-ping sensor.

How can I ping the sensor through an xbee without a microcontroller?


Or if someone has a better/cheaper more efficient suggestion that works, that would help.
9  Using Arduino / Project Guidance / Re: Autonomous Robot, motor driver on: February 24, 2013, 01:01:50 am
Now - with the motor driver - it's specs indicate that it "...can supply up to almost 3 A continuous current per channel...and it can tolerate peak currents up to 5 A per channel for a few seconds". Ok - well, we don't know what kind of current the motors your using are pulling. Maybe you should measure that. You can do it with a digital multimeter put into current measuring mode and inserted in series with the motor; hook it directly to the battery, run it on your surface, and measure the current draw.

I'd be willing to bet that your motor is exceeding (or coming close) to it's 2.5 amp .
So do your measurements, and figure out where the problem lies. You may need to purchase a more capable motor driver.
[/quote]

So, I did some calculations.. Long story short.. The motors are drawing 3.7 amps when at stall mode..
And basically the motor driver is not giving enough for the motors to get started.. When I gave the robot a small push, it drove fine.. So, in conclusion I'm getting a motor driver that would allow such continuous current to be achieved ..
10  Using Arduino / Motors, Mechanics, and Power / Re: Simple motor question.. on: February 23, 2013, 01:51:09 am
Don't forget that an h-bridge is changing the polarity all the time anyway.... that's how it gets it to change direction in the first place. So all you need to do is set it up in hardware and software any way that makes sense to you, given the physical orientation of each motor, so that each side of the vehicle goes forward when you want it to and backwards when you want it to.
There is no problem changing polarity on a permanent magnet motor so yes, you could just swap the wires, but couldn't you just do it in your code? I presume the motors will be bi-directional in the application anyway?

Thank you both for the reply. So the speed and current draw and everything is the same in clock-wise and counterclockwise?

I just noticed why that happened. I installed both wheels the same way.
Meaning: when holding both of them the same way they both operate clockwise, but when I installed them I put one on the left side of the chasses and one on the right side of the chassis, now the left is still clockwise and the right became counterclockwise when spun 180 degrees to be bolted on the chassis. get it?
11  Using Arduino / Project Guidance / Re: Autonomous Robot, motor driver on: February 23, 2013, 01:44:44 am

With a 298 in there he's going to lose 2-3 volts at the motors straight off the top....

Btw, have you tried to code the acceleration in, as I suggested and as you elaborated in code earlier?

And tried it on a floor with no carpet? As the wheel sinks in the pile, as it moves off it has to flatten the pile in front and that takes energy.

Yes I did it didn't work, the problem is not accelerate or the code. The motor driver kept shutting off from over heating, I guess the motors were drawing more than 2.5 amps, and the motor driver couldn't handle it.
12  Using Arduino / Motors, Mechanics, and Power / Re: Simple motor question.. on: February 22, 2013, 11:23:20 pm
How are you controlling them? Does this use an Arduino? If your just connecting a battery to a motor then yes it should not be a problem to switch the wires.

 If you want to be able to switch directions frequently I would buy this… https://www.sparkfun.com/products/9457. That way you can change direction without rewiring it each time.



Yes im using the arduino and a motor driver... its just that
I installed both motors on my robot I connected positive(red) to (+) on battery, and the common(black) on to the (-) of the battery.

They are both installed same way.

Problem: 1 motor goes forward, the other goes backwards. No clue why, I doubled checked all connections!

I was just wondering if hurts the motor if you switch the wires
13  Using Arduino / Motors, Mechanics, and Power / Simple motor question.. on: February 22, 2013, 08:50:13 pm
I have 2 brushed VDC motors.

I installed both motors on my robot I connected positive(red) to (+) on battery, and the common(black) on to the (-) of the battery.

They are both installed same way.

Problem: 1 motor goes forward, the other goes backwards. No clue why, I doubled checked all connections!

Can I just switch the wires and make it go forward? or its not good.
14  Using Arduino / Project Guidance / Re: Autonomous Robot, motor driver on: February 22, 2013, 08:00:30 pm
Ok try this, bypass the motor controller altogether. Wire the motors directly to the battery and see if it is able to move.

If your 7.2V battery is only powering the motors and it is able to move with a direct connection, then the problem is with your motor controller.

If it still does not work, even with a direct connection, then it is your battery.

Do this little test, and you will finally find the culprit to your problem.
GREAT NEWS!!!! I put that battery directly to those motors and it went forward about 10 yards in 1 second! lol So on the bright side we now know the problem is the motor driver, this is the one I was using:
http://www.pololu.com/catalog/product/1213
What do you think is the problem, I'm trying to find a better motor driver!

Thanks for pointing out this simple test!
15  Using Arduino / Project Guidance / Re: Autonomous Robot, motor driver on: February 22, 2013, 07:35:21 pm
Ok try this, bypass the motor controller altogether. Wire the motors directly to the battery and see if it is able to move.

If your 7.2V battery is only powering the motors and it is able to move with a direct connection, then the problem is with your motor controller.

If it still does not work, even with a direct connection, then it is your battery.

Do this little test, and you will finally find the culprit to your problem.
I'm going to do that right now!! check back for my reply!

Thank you for your help!
Pages: [1] 2 3 4