Hello I’m a Moroccan student, i just started working with arduino i want to collect data from my T/H sensor and send it by wifi to a raspberry card by Xbee and stock those datas in Excel file.
i wonder if any one can help with that.
I managed to get the temparture and humidity values but i don’t know how to send them
Thank you and sorry if my english is not understandable
yea but it's a university project i have to use the components that i mentioned before
Oh no not that old chestnut again. You don't have to use those components, you misunderstand your lecturer or you misunderstand the project brief.
send it by wifi to a raspberry card by Xbee
That is impossible because as you have been told Xbee doesn't do Wi-Fi. If your lecturer thinks you can then he knows nothing, so go back to him and say that Wi-Fi and Xbee can not be inter-operable. If he refuses to listen then go to the admin office and demand your tuition fee back.
Hello i miss choose words i think
This is what i'm trying to do it's to do a gateway using Xbee
and use the data collected by the temperature/humidity sensor by the raspberry
Arduino end
Look at the Xbee examples for the Arduino and use the serial mode of the Xbee and just send the readings at what ever rate you want.
Pi end
What language are you using? I am assuming Python.
Enable the serial port in python by using:-
ser = serial.Serial('/dev/ttyACM0',115200, timeout=2)
with the 115200 replaced by the baud rate you are sending with the Arduino.
The read the serial port with
a = ser.read(4)
Replacing the 4 with how many bytes you expect to read. If there are no bytes to receive within the timeout period the variable “a” will contain a null.
didyi:
Hello i miss choose words i think
This is what i'm trying to do it's to do a gateway using Xbee
and use the data collected by the temperature/humidity sensor by the raspberry
Have you studied the links I gave you in Reply #3. They should give you a lot of what you need.