Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Re: external feed or PC feed ? on: January 22, 2013, 08:53:09 am
Yeah using a PLC will be to use a massive weapon gun to kill a small bee ...
What should i do in this case if the power regulator is not powerful enouth ?

Thanks for the help.
2  Using Arduino / Project Guidance / Re: external feed or PC feed ? on: January 22, 2013, 08:48:56 am
I am using incrementally to get to 5v ... if u connect just 18v to 5v the 5v one will broke right ? But yes in the project i just need 18v and 5v
3  Using Arduino / Project Guidance / Re: external feed or PC feed ? on: January 22, 2013, 07:06:36 am
A good detail is ... the 7818 is working pretty fine and the sensor that requires 18v is working.
4  Using Arduino / Project Guidance / Re: external feed or PC feed ? on: January 22, 2013, 07:03:03 am
Sure,

I am using 2 series 12V bateries to have 24V output (because one of my sensores requires 18-30v)
Then i am using a 7818 (for 18V), a 7812, a 7808, and finaly a 7805 for the arduino, one sensor and the display.
The output level of the 7805 is 4,7V ... is that 0,3v a problem for the display ? how can i have 5v then ? i have tried a lot of diferents 7805 just to be sure it is not a chip problem
5  Using Arduino / General Electronics / external feed or PC feed ? on: January 22, 2013, 06:38:43 am
Hi there,

I did a project right here to a device that control 3 sensors and it will be used in the railroads of my city.
I just have one trouble with that, when i plug my arduino UNO on PC it is working pretty fine on the board, but this project is for railroads and I need it to work with bateries. My batery system is working because the red light of my arduino uno turns on but anyother thing happen. I mean my display does not turns on and even my sensors.
Does arduino have any problem when you use an external feed ? Is there anything that I can do to fix that ? Anyone else had that problem ?

Thanks so much for your attencion and I ll be glad for any help that you can provide.

Best regards.
6  Using Arduino / Project Guidance / external feed or PC feed ? on: January 22, 2013, 06:21:24 am
Hi there,

I did a project right here to a device that control 3 sensors and it will be used in the railroads of my city.
I just have one trouble with that, when i plug my arduino UNO on PC it is working pretty fine on the board, but this project is for railroads and I need it to work with bateries. My batery system is working because the red light of my arduino uno turns on but anyother thing happen. I mean my display does not turns on and even my sensors.
Does arduino have any problem when you use an external feed ? Is there anything that I can do to fix that ? Anyone else had that problem ?

Thanks so much for your attencion and I ll be glad for any help that you can provide.

Best regards.
7  International / Portugues / Mouse óptico para sensor de distância on: November 09, 2012, 08:50:14 am
Bom dia,

Estou tentando fazer um sensor de distancia com a utilização de um mouse óptico ou mesmo usando o seu chip interno o OM21PS.
Dei uma lida em materias sobre o mouse mais nao achei nada muito especifico e interesante.

Alguem tem alguma dica ? de como devo começar ou aonde devo procurar ?

Desde já agradeço.
8  Using Arduino / Programming Questions / Re: Reading ascii in hexadecimal, need it in decimal. on: October 16, 2012, 08:57:57 am
sorry,
i mean it meaning by the code.
i tried the  strtoul() fuction with the "c", and with the "buf" for both it does not compile.
9  Using Arduino / Programming Questions / Re: Reading ascii in hexadecimal, need it in decimal. on: October 16, 2012, 08:50:07 am
it does not compile with  strtoul()
it says invalid conversio from 'char' to 'const char'.
10  Using Arduino / Programming Questions / Re: Reading ascii in hexadecimal, need it in decimal. on: October 16, 2012, 08:03:40 am
it almost worked,

i first tried something like this :

Code:
char c;
void loop() {
      int i = 0;
      char buf[32];
      portOne.write('x');
      delay(200);
      do {
            c = portOne.read();
            if(c != -1)
                  buf[i] = c;
            i++;
            delay(10);
      } while ( c != -1);
      Serial.print("x = ");
      Serial.print((buf));

and that gave anwers like
ldadswdnajsndlka x = 32000

the number was correct and i like that, but the just needed to put off the "iuhuiasdansdn",
then i tried with the atoi fuction just changing the last line for  Serial.print(atoi(buf));
it that gave me:
x = 32000
x = -32000
its working for -500 to -32000 then it goes to 32000 and get lowering to 500 for the other side of the inclinometer.
That wasnt bad but what i need is 500 to 64000 (and thats what sensor send i tested it on realterm).
Any idea what it could be ?
thanks
11  Using Arduino / Programming Questions / Re: Reading ascii in hexadecimal, need it in decimal. on: October 16, 2012, 07:44:43 am
You want to convert an ASCII string to an int. Seems like exactly what the atoi() function was invented for.


Thanks PaulS i will search for atoi() function smiley-grin
12  Using Arduino / Programming Questions / Reading ascii in hexadecimal, need it in decimal. on: October 16, 2012, 07:03:54 am
Hi all,

I got a sensor that send me 16 bits in ascii values, the sensor send the values in ascii (between 500 and 64000). If the sensor is on middle range (32000) i get with the fuction Serial1.read() that same values in hexadecimal value of the ascii so i recive 51 50 48 48 48 (3 2 0 0 0).
I need that value (32000) to make math fuctions with that so i cant use a string to do that, so, anyone have any ideia what can i do?

the sensor is an inclinometer 0729-1752

thanks all
13  Using Arduino / Programming Questions / Re: trouble with rs232 comunication (solved) on: October 15, 2012, 09:41:14 am
I solved the problem smiley-grin i dont know why but the computer recognized what i was tried to type when i used this simple code below
with this schematic tutorial http://extremeelectronics.co.in/avr-tutorials/rs232-communication-the-level-conversion/

Code:
#include <SoftwareSerial.h>
SoftwareSerial portOne(6, 7);

void setup()
{

  Serial.begin(9600);
    portOne.begin(9600);
}



  
void loop()
{


  portOne.write('x');
  float x = portOne.read();
  delay(100);
  portOne.write('y');
  float y = portOne.read();
  delay(100);

  Serial.print(x);
  Serial.println(y);  

}  
ty all
14  International / Deutsch / Re: Nach Zustandswechsel nur 1 mal senden on: October 15, 2012, 08:45:11 am
du muss post das am deutsch forum
15  Using Arduino / Programming Questions / Re: trouble with rs232 comunication on: October 15, 2012, 08:44:14 am
i´m tring to comunicate the arduino with the computer rs232 port using hiperterminal software (im doing that for a test to comunicate with a rs232 sensor later but for now forget the sensor) the both tutorial that i posted is for that arduino <--> max232 <--> pc.
Pages: [1] 2