Go Down

Topic: Arduino Leonardo and Cytron Bluetooth SKKCA (Read 709 times) previous topic - next topic


Feb 16, 2013, 04:16 am Last Edit: Feb 16, 2013, 11:16 am by tanchorzheng Reason: 1
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!!!


There is another person having similar issues. Perhaps the two of you could get together:
The art of getting good answers lies in asking good questions.

Go Up