Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Project Guidance / Re: Ubuntu server + arduino uno + webpage on: August 08, 2012, 11:07:59 am
Thank you, i will take a good look at that page.
2  Using Arduino / Project Guidance / Re: Ubuntu server + arduino uno + webpage on: August 08, 2012, 01:32:32 am
I don't realy know what that means but thanks.
3  Using Arduino / Project Guidance / Re: Ubuntu server + arduino uno + webpage on: August 07, 2012, 01:55:32 pm
Can't i control the sever over the network and make it send comands over the serial to the uno?
4  Using Arduino / Project Guidance / Re: Ubuntu server + arduino uno + webpage on: August 07, 2012, 01:37:08 pm
The second one looks much more fun  smiley
But i don´t have the money for a ethernet shield, any way around?
5  Using Arduino / Project Guidance / Re: Ubuntu server + arduino uno + webpage on: August 07, 2012, 12:45:27 pm
I know processing a bit. But how should i control processing over the network.
6  Using Arduino / Project Guidance / Ubuntu server + arduino uno + webpage on: August 07, 2012, 12:19:06 pm
Hi.
I'm wondering if it´s possible to connect an arduino uno trough usb to a computer installed with ubuntu server. Then control the arduino from a html webpage or something that is runing on the server. I want to control the arduino both from a phone and other computers if that is possible?

//Rasmus
7  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 26, 2012, 12:46:21 pm
The serial monitor isn't a very good terminal. It may be sending a CR or LF or both at the end, my JY-MCU doesn't like those either. You need something that sends the last 'N' in version then stops sending :-). (Maybe the serial monitor can be set to no line ending? I forget).
Yes, my serial monitor is set to no line ending.
8  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 26, 2012, 11:12:50 am
when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.

Are you really typing keys with your fingers? If this is the same firmware my board has,
that will never work - it uses timing to decide when it has gotten a message, and no one
can type fast enough for long messages to satisfy it. Try using cut & paste into your
terminal app.

Cut and paste doesn't work either, that's the thing.
9  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 26, 2012, 09:00:16 am
Do we have the same board? Mine says JY-MCU BT_BOARD 1.02. If it is the same board then I do not know how to proceed save for searching online.
I have same board (JY-MCU BT_BOARD V1.02), but here: http://www.ebay.com/itm/150763254858 says that default baud rate is 9600 and I tried with 38400 and 9600 and it works only with 9600.
But another problem: when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.
Maybe You connected State or Key pins on BT board?
Thanks!
Thats exactly the problem I got to.
10  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 25, 2012, 03:08:59 pm
Alright that's good that you got it communicating with you with AT commands. In my case when I sent AT+VERSION I got "linvor 1.5". If you get the version working then this might be different. Did you try the AT commands without the plus, like "ATVERSION"?
Did not work either.
11  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 25, 2012, 12:03:24 pm
That means you have the Arduino -> PC set up correctly, but the JY-MCU -> Arduino is not set up correctly. Check the baud rate and the RX/TX lines again. Try using the JY-MCU board in bluetooth mode to know that it works at the baud rate you expect.
Now i changed the baudrate in the arduino sketch to 9600, and now it works. When i send "AT" i get a ok back, but i can't get any other AT command to work. And i'm not writing them, i paste them in to the command line. My arduino serial monitor is set to 57600baud and "No line ending".
12  Using Arduino / Networking, Protocols, and Devices / Re: How to get the JY-MCU bt board to work on: June 25, 2012, 11:00:57 am
The JY-MCU module will only accept AT commands while not paired via Bluetooth, which means you have to send commands over the RX and TX pins of the module.

1. Use this code to create two serial ports on your Arduino and connect the JY-MCU RX to pin 3 and TX to pin 2. http://arduino.cc/hu/Reference/SoftwareSerial

You have to change the line that says
Code:
mySerial.begin(4800);
to
Code:
mySerial.begin(38400);
because the JY-MCU defaults to this baud rate. Open your Arduino serial monitor and set it to 57600. You should see "Goodnight moon!"

2. You should now be able to send "AT" and it should reply "OK". You can also pair with your computer bluetooth or phone bluetooth and anything you type in the serial monitor should now show up on your computer bluetooth or phone, but AT commands will not work while bluetooth is paired. If you get strange characters instead of "Goodnight moon!", your baud rate is not set correctly.

3. To change the baud rate, refer to this webpage: http://byron76.blogspot.com/2011/09/one-board-several-firmwares.html

In this case you want to send the command "AT+BAUD8", which should give a reply "OK115200". If it does not reply like that then you did not change anything.

Good luck.

I tried that, and i did get the "Goodnight moon!". But when i send "AT" nothing happens, it dosn't work with any at command.
13  Using Arduino / Programming Questions / Re: Count how many pulses per second on: June 19, 2012, 08:54:06 am
But don't understand. Becuase i send a value between 0 and 255 from processing to the arduno. Were do you get 490 from??
14  Using Arduino / Programming Questions / Re: Count how many pulses per second on: June 19, 2012, 07:49:05 am
Better?

Code:
#include <PinChangeInt.h>

volatile int pulseCount = 0;
int inPin = 2;
int pwmPin = 9;
int printVal = 0;
int pwmVal = 0;

void pulseFunc(){
  pulseCount = pulseCount + 1;

}

void setup(){
  pinMode(inPin, INPUT);
  pinMode(pwmPin, OUTPUT);
  PCintPort::attachInterrupt(inPin, &pulseFunc, RISING);
  Serial.begin(9600);
}



void loop(){
  cli();
  printVal = pulseCount * 60 / 2;
  pulseCount = 0;
  sei();
  Serial.println(printVal, DEC);
 
  if(Serial.available() > 0 ){
    pwmVal = Serial.read();
    constrain(pwmVal, 0, 255);
    analogWrite(pwmPin, pwmVal);
  }

  delay(1000);


}

15  Using Arduino / Programming Questions / Re: Count how many pulses per second on: June 18, 2012, 02:08:02 am
Interrupt 0 and Interrupt 1 are the only ones on an UNO that do edge detection. The rest only work on state change. That is a hardware limit regardless of how you interpret the library.


But why is it working lika i want then? The thing that isn't working is that it wont write the pwm value to the pin i connected to the pwm pin on the fan.
Pages: [1] 2 3 4