Pages: [1]   Go Down
Author Topic: Arduino Leonardo and Cytron Bluetooth SKKCA  (Read 373 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm doing project on force sensing resistors (FSRs) and wanna get FSRs data transmitted wirelessly from Arduino Leonardo to computer via Cytron Bluetooth SKKCA.

I have few queries here:

1. I basically know how to analog read the data by using analogRead(Input) function, but I do not have any idea on transmitting the data thru TX (transmit) pin of the arduino to computer, is the coding like this?

int fsrtx = 1
pinMode( fsrtx, OUTPUT) //set it as output just like normal digital output pins

or any other way?

2. the map function " map(value, fromLow, fromHigh, toLow, toHigh)"
Are the fromLow and fromHigh the values (in bits) of read by analogRead  and toLow and toHigh the values output (in bits) to be sent wirelessly?

For example,
map(input, 0, 1023, 0, 255)
Input value is 10 bit size and the input value is mapped into 8 bit size to be output.

Is it correct?

3. Compared to cytron SKKCA bluetooth, is XBEE more convenient to use in terms of Arduino programming?

Need some guidance here, thanks!!!
« Last Edit: February 16, 2013, 05:16:41 am by tanchorzheng » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 50243
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is another person having similar issues. Perhaps the two of you could get together:
http://arduino.cc/forum/index.php/topic,149302.msg1121344.html#msg1121344
Logged

Pages: [1]   Go Up
Jump to: