Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / Networking, Protocols, and Devices / Kit 433 mhz- How to improve their range? on: April 18, 2014, 07:17:45 am
Hello

I'm using an RF kit working with two arduinos.

After changing the transmitter for another one module with an antenna, I improved the range up to 50 meters without obstacles.
In the specifications, the say that the range it's between  500-800 meters.

The receiver haven't got any antenna because it works better without one ( The antennas that i tried aren't good antennas)

Anyone have same problems with this kits?

Here I left my tutorial with all the code
     http://controlrobotics.rodrigomompo.com/2013/09/tutorial-arduino-kit-rf-433mhz-part4.html 

And the specifications of the transmitter

http://www.dx.com/es/p/zsd-t3-315-433mhz-ask-high-power-rf-transmitter-module-yellow-228289


Probably the best solution it's to change the type of transmitters, but I want to explore the limit of this kits and write the conclusions for everyone that use this kits.


thanks everyone


2  Using Arduino / Programming Questions / Re: Howe can I get a button to start a RF 433MHz transmitter to send a message? on: April 18, 2014, 06:50:05 am
Hello

I made a complete tutorial about this kits in my blog

controlrobotics.rodrigomompo.com

If you're kit is already working, you just see Part 4 of the tutorial. In my case I used a jostick for controling a robot car.


Good Luck
3  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 24, 2014, 06:08:04 am
In this case, duplicate the code but changing the variables.

If you use the same variables (Just copy and paste) it won't work.
4  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 18, 2014, 11:04:36 am
Hi


Really when moving a robot, you have two motors (L motor and R motor)
So you have 4 possible combinations (could be more).

going straight (L forward ,R forward)
Back (L backward, R backward)
Right(L forward, R backward)
Left(L backward, R Forward)

you use a switch case with the four positions using the previous code.

How to obtain the case be need. There are different forms, for my robot I use this:
Code:
x= analogRead(0);// values
y = analogRead(1);//

if(x > 700){
go straight}
if(x <400){
back}
if ( 400< x < 700){
      if(y > 700){
        left}
      if(y <400){
         right}
      if(400< y < 700){
      stop}
}

I recomend you to use this limit values, because I obtain it after trying hours through  you should try and discover yours.

Also It's important to put the stop mode, you don't want your robot going ahead and falling from the table  smiley-eek-blue smiley-red

Try it and post your code

5  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 10, 2014, 03:46:51 pm
yes


My robot use this model too.


Just connect digital output  to the arduino and linear output without any wire.
6  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 07, 2014, 05:29:51 pm
Your welcome



After testing it, you can improve your robot controling it using RF. With two arduinos and an Rf link kit 433 mhz you can have a very cheep set up


Here you have a complete tutorial controlrobotics.rodrigomompo.com
7  Using Arduino / Motors, Mechanics, and Power / Re: Possible to buy Rover 5 geared motors separately? on: February 07, 2014, 10:02:21 am
But this solution it's a bit expensive for me, with 17 years old. You only have Christmas for upgrading your setup.
8  Using Arduino / Motors, Mechanics, and Power / Re: Rover 5 + 4 Motor Driver. Problem on: February 07, 2014, 10:01:17 am
I think it's time to take my neighborhood crashed RC cars and take some batteries,tires and components.



My battery setup will be dual:

   One battery 5 volts 12 Amps ( A Christmas gift for the mobile phone  smiley-grin smiley-grin smiley-grin)
   Another battery  between 12 and 11 volts about 3000mah only or rover 5 motors (Li-po)

How many time does your robot move with your battery johnboy888?
9  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 06, 2014, 05:07:01 pm
Here it's the final code for one motor
Controlling two motors will be a bit different.

I recommed you to not start using the motor at 512. Because the motor will not be full stop never. The middle in  joysticks it's not 512. Depending the alienation I have some with 456  the center and some with 598 the center . My limits are the result of hours trying different limits.

Code:
// 2,3,4 are the pins that controls the motor
// In some motor drivers I1 =2 ; I2=4; EA(Enablepin) = 3
sensorRead = analogRead(0);
if(sensorRead > 700){
 speed = map(sensorRead,512,1023,0,255
digitalWrite(2,HIGH);
digitalWrite(4,LOW));
analogWrite(3,speed);}
if(sensorRead < 400){
 speed = map(sensorRead,0,512,255,0);
digitalWrite(4,HIGH);
digitalWrite(2,LOW));
analogWrite(3,speed);}
10  Using Arduino / Motors, Mechanics, and Power / Re: Rover 5 + 4 Motor Driver. Problem on: February 05, 2014, 12:49:45 pm
I test it usign 12 volts of battery and 2500 mah (by the fabricant).

The robot was running about 1 hour without charge = equals a 2 hours with 5000 amh, the last batery.


So I think now I having a reasonable use of the battery



If I want to have better batterys (lipo maybe) what should I use? I need 12 volts and at least 2500mah.


11  Using Arduino / Motors, Mechanics, and Power / Re: Rover 5 + 4 Motor Driver. Problem on: February 05, 2014, 12:05:47 pm
Thanks for the replay.

The batteries say to have 2500 mah. About the type, think of the worst type, this will be the type of battery. I can't give you more detail about them.


Also I'm sure that it's the motor battery because all the hardware it's still working perfectly after motor battery ends.

I made some researches and I found that the motor driver needs 4 volts more  than the nominal output of the motor. So I test it with 12 volts battery. I see that motor are working better. I will made another test for knowing with 12 volts battery how many time it will we ruining. 

I will post the results as soon as possible.

Also I break one of the gearwheels. I need to replace it and i haven't got any extra pieces. Do you know anyone how prints 3d pieces?

Thanks very much.
12  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 05, 2014, 08:42:03 am
I recommend to use something like this:

http://dx.com/es/p/l298n-stepper-motor-driver-controller-board-for-arduino-120542#.UvI-WT15N8E. Here it's very cheap and would make the thing easier. It cost R$ 13,55 or 5,62 US$

Can you understand Spanish ? Here you have a good tutorial, with this type of controller and with a code. Google translator it's a good way too.

http://blog.bricogeek.com/noticias/tutoriales/tutorial-robot-4x4-con-arduino/#more


Then any question that you might have ask here.
Quote
Well spotted, which makes for a bit of complication since OP presumably wants the joysticks centred to be 0 speed and then left to tuen one way, right the other. Need to think about the mapping for that....
JimboZa ,any easy way of doing that is:

Code:
sensorRead = analogRead(0);
if(sensorRead > 700){ speed = map(sensorRead,512,1023,0,255);}
if(sensorRead < 400){ speed = map(sensorRead,0,512,255,0);}

The reason of using 700 and 400 it's for my experience. In real live the middle isn't 512. This way you have enough sensitive and not to much sensitive


You can see fotos of my robot in this post http://forum.arduino.cc/index.php?topic=215164.msg1574518#msg1574518
 
13  Using Arduino / Motors, Mechanics, and Power / Re: Rover 5 chassis (4WD) with Dagu motor controller motors drawing too much current on: February 04, 2014, 05:49:17 pm
i had the same problem and your solution works fine for me.
14  Using Arduino / Motors, Mechanics, and Power / Re: Possible to buy Rover 5 geared motors separately? on: February 04, 2014, 05:38:56 pm
I have a Dagu rover 5 with two motors.

I want to upgrade it. Have you got extra motor for you Dagu Rover 5? Where you buy it ?


Thanks very much
15  Using Arduino / Motors, Mechanics, and Power / Re: I need help to control 2 dc motors with a ps2 analog joystick on: February 04, 2014, 10:06:21 am
Quote
I want to control 2 dc motors with the joystick,but i don't know how to mix two pwm outputs for the motors.
here is my initial code
I have a robot with two motors controlled with a joy stick. (You control the robot like an Rc car)

Quote
Direction control needs an h-bridge to reverse the polarity on the motor.  Can you post a circuit diagram?

My setup it's with an H bridge. Depending on the model the code changes a little.. As jimboZA said post your setup and then we can see what solution is the best. I also have some problems using motors and an H bridge. I'm asking in http://forum.arduino.cc/index.php?topic=215312.0;prev_next=next#new this post and then if i have time I will write a post for my blog with the information controlrobotics.rodrigomompo.com

The code seems to use analogWrite with negative values. If you read the arduino reference you will see that you can only write values form 0 to 255 http://arduino.cc/es/Reference/AnalogWrite
Pages: [1] 2 3 ... 5