I am currently working on a sensor board for a project. I am thinking of having an ATTiny85V on the board, to read in 2 I2C values, and if I can work out how, a Dallas 1 wire temperature reading. I would then like to send this data via serial, to an Arduino or a computer. I was thinking that the data could be sent as one serial string, and decoded at the other end. I was wondering which pins on the Arduino/ATTiny I need to connect, and whether this would work. Also, is there any difference between sending serial data to an Arduino and, say, a Raspberry pi?
AntMan232:
I am thinking of having an ATTiny85V on the board, to read in 2 I2C values,
You will probably need the I2C / TWI Master library for the ATtiny85; middle of the webpage...
http://code.google.com/p/arduino-tiny/
and if I can work out how, a Dallas 1 wire temperature reading.
I believe it works unmodified on Tiny processors...
http://www.pjrc.com/teensy/td_libs_OneWire.html
I would then like to send this data via serial, to an Arduino or a computer. I was thinking that the data could be sent as one serial string, and decoded at the other end. I was wondering which pins on the Arduino/ATTiny I need to connect, and whether this would work.
Tiny Debug Serial...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285218245/25#25
Or you can use NewSoftSerial (I can't find the posts describing the necessary modifications but it does work).
Also, is there any difference between sending serial data to an Arduino and, say, a Raspberry pi?
No.
To use asynchronous serial communications will have to tune the processor...
s there any difference between sending serial data to an Arduino and, say, a Raspberry pi?
Yes, a vast difference.
You can actually have an Arduino, but a Raspberry Pi...?