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:
- 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?
- 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?
- Compared to cytron SKKCA bluetooth, is XBEE more convenient to use in terms of Arduino programming?
Need some guidance here, thanks!!!