Pages: [1]   Go Down
Author Topic: Arduino bluetooth heart beat sensor  (Read 1539 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So i'm not really new to arduino, but i reaally run out of any ideas of how to make this work. So i hope anyone could help.

The whole circuit is a little bit complicated and i would not go into detail yet, but as i am concerned now is that I am trying to read sensor value on analog pin 0, and send it over serial port to a Bluetooth module, that sends data to the computer. On arduino i'm basically just printing on serial port the value, and in my Processing code, i'm reading value from the com port that my bluetooth connection is established.

My problem is that if i have the arduino connected on external power supply, it isn't sending anything, but when i connect it on usb, it opens the serial port and also send via bluetooth.

Any help, would be really appreciated.
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
My problem is that if i have the arduino connected on external power supply, it isn't sending anything, but when i connect it on usb, it opens the serial port and also send via bluetooth.
How did you connect the bluetooth module? Are you using SoftwareSerial to talk to it?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The bluetooth is normally connected on the serial pins, bluetooth tx to arduino rx and bluetooth rx to arduino tx.

I'vr followed numerous tutorials regarding this, i've changed the baud rate using AT commands, so everything is on 9600.
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but when i connect it on usb, it opens the serial port and also send via bluetooth.
That doesn't make too much sense.
The Tx/Rx pins are now connected to both BT and the FTDI?
You should see at least 2 different new serial ports: one for the FTDI chip, one for the BT.
Quote
it opens the serial port
Which of the serial ports gets opened? For the FTDI or for BT?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so basically my setup is this. http://arduino.cc/playground/Learning/Tutorial01/. Like this it is working sending data from the computer, but not the other way around.
And yes, it opens the serial port for the ftdi, and also sends on the BT. If i have the uC barboned and i have only the BT connected to the tx and rx, nothing happens.
I have tried also initializing on a different serial port the BT, on other digital pins, but still with no results.

I was thinking that the processing i have should send something so the board knows when it should start sending, like probably when i open the serial via ftdi, the arduino interface resets the board and sends something.



Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any ideas? i've also tried with the amarino toolkit, with the sensor graph program. It doesn't work... Any ideas of the steps i should take care of when implementing this ideea? I'm shure there is someone who managed a bluetooth connection with the arduino before..
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm shure there is someone who managed a bluetooth connection with the arduino before
This post may be useful for you:
http://timewitharduino.blogspot.ca/2012/04/wise-clock-4-with-bluetooth.html
You just need to take it one step at a time, identify the problem/issue, then solve it. Don't add to many things to the mix (amarino, graphs etc etc).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think i discovered what seems to be the issue. If i connect the arduino to the board, with the external power supply from my boost converter, it seems to be working. But when i connect the uC dirrectly to the board, it stops working and also deletes the bootloader from the uC. I think it is because the boost converter flickers in current, because of a blinking led of the bluetooth. Can anyone tell me if this might be the issue?


Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
also deletes the bootloader from the uC
How do you know?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Because when i put it back on the board the arduin ide dosnt' recognize the board. I burn the bootloader again, and all is ok. I guess that's the problem, but still no solution...
Logged

Pages: [1]   Go Up
Jump to: