Monitoring System
kid
Posts: 19
Hi .........
I'm a beginner of these stuff
I have a Propeller BoE
LM34 temperature sensor (how to convert to Celsius).?l
Polar Heart Rate Transmitter
Polar Heart Rate Receiver
XBee Wi-Fi S6B
Using Spin
I created an account on Device Cloud ..I get results on xbee wifi cloud and PST
so my questions are
1. how to send reading (results) to specific server to store it on database or (text file for now)using the xbee (wiring?? , coding?)
2. how to reset the xbee? I tried use xcto but it couldn't find the xbee .. may be I should reset it first ?
3. can I use the two sensors (or more) at the same time and get readings? if yes how to wire and code that ?
please help .....
I'm a beginner of these stuff
I have a Propeller BoE
LM34 temperature sensor (how to convert to Celsius).?l
Polar Heart Rate Transmitter
Polar Heart Rate Receiver
XBee Wi-Fi S6B
Using Spin
I created an account on Device Cloud ..I get results on xbee wifi cloud and PST
so my questions are
1. how to send reading (results) to specific server to store it on database or (text file for now)using the xbee (wiring?? , coding?)
2. how to reset the xbee? I tried use xcto but it couldn't find the xbee .. may be I should reset it first ?
3. can I use the two sensors (or more) at the same time and get readings? if yes how to wire and code that ?
please help .....
Comments
Depends on the database. I would try a text file with comma separators first. Easy to import to a spreadsheet and import to a lot of databases.
Reset could be done by a propeller pin via the multi-purpose socket if needed.
Analog sensors could be connected to the adc like the lm34 is now and sent to the xbee by the propeller. Connecting, reading, and sending data from other sensors would would vary based on the specific sensor interface. You need to be a bit more specific and list the sensors you want to use.
http://forums.parallax.com/showthread.php/158187-Healthcare-Monitoring
Apparently the "Device Cloud" is a service provided by Digi.
can you give more details on answer 1 . 2 how to do that ?
on database what I need to know : domain address , name , port number ? how to code it ?
for Q.3 what if want to use LM34 and Polar Heart Rate Receiver ? how to wire and code it ?
thanks again...............
Thanks for pointing that out.
kid, can you post a block diagram of all four modules and the sensors that shows how you want to connect them as a starting point?
how to send the results to the database server using xbee?
can I use two sensors at the same time ?
sorry for repeating questions.....
I told that I'm a beginner......
ok that what I'm asking about......xbee codes(or configuration) to send reading to database server ??
I tried to use two sensors (LM34 and Polar Heart Rate) at the same time ...I couldn't ....is that possible ? if yes what is the codes ?
sorry for insisting....................
It's best if you take clear pictures of your wiring and post them along with the Spin code you are using.
As to your question about using more than one sensor, it depends of how often you need the sensors checked.
is usb adapter is necessary to use xctu ?
What is your ultimate goal because I don't think Device Cloud is designed to do what you say you want to do. Device Cloud appears to be designed to interact with the XBee Wi-Fi module directly based on what settings you specify. Digi has several examples on their website of hooking up different sensors directly to the XBee Wi-Fi, configuring the XBee using X-CTU or Device Cloud, and then adding Widgets in Device Cloud. I don't know if there is a COUNT widget which is what you would need to measure heart-beat.
The older XBee Wi-Fi Development Kit shows how easy it is to make XBee's talk to one another, and Chris Savage of Parallax did a great demo of a Propeller talking to another Propeller in Norway. Communicating with a website is a different matter though as a Sparkfun Tutorial using the Arduino shows. Sparkfun created their own website application for the Arduino to talk to.
https://learn.sparkfun.com/tutorials/internet-datalogging-with-arduino-and-xbee-wifi
You need to contact the makers of Device Cloud and ask them how to communicate with a microcontroller instead of the XBee directly, if that is even possible.
You asked about X-CTU needing USB and the truth is X-CTU talks to the XBee using serial but most PCs today only have USB. If you look at any XBee USB Adapater Board, such as the Parallax 32400, you will see that it has a Serial-to-USB chip on it.
I don't know how you combined the Heart Beat and LM34 programs together because they both work differently. The Heart Beat program loops continuously without a delay while the LM34 program delays for 1/35 of a second on every loop. Also notice that the LM34 program has code for sending text to a VGA monitor. The Propeller chip can send video to a TV or VGA monitor and the VGA interface circuit is already on your Board of Education.
Apparently you want to send data to a database or store it on a file. Did you know that the Board of Education has an SD Card interface?
http://learn.parallax.com/node/364
The Propeller can also use a PS/2 keyboard and mouse with 2 of these adapters.
http://www.parallax.com/product/28060
Take a look at the section that starts at page 128. On page 134 you can see a screenshot of StampPlot (now called MakerPlot) which works similar to Device Cloud but runs on a PC.
Look at this StampPlot screenshot on page 139. On page 149 you can see the Propeller doing a similar display on a TV.
http://www.parallax.com/sites/default/files/downloads/122-32450-XBeeTutorial-v1.0.1.pdf
The free Developer edition account is limited to a device transaction every 5 seconds.
The XBee Wi-Fi though can have a maximum sample rate of 3 ms.
The XBee Wi-Fi Cloud Kit uses a web application that unfortunately doesn't have a Counting widget.
There is an AT-Command, called IC or DIO Change Detect, where the XBee will only transmit when at Input changes state, such as with the Heart Rate Monitor.
The XBee Wi-Fi has a Maximum Analog Input voltage of 2-1/2 Volts.
XBee modules can be configured using X-CTU, Device Cloud, a uC (micro-controller), or remotely (if enabled by the other methods).
The modules can also be configured manually using a serial Terminal.
Device Cloud could use the Heart Rate Monitor if the Propeller counts heart beats and then feeds the XBee a BPM as a voltage to one of it's Analog inputs.
A voltage divider circuit is needed since the Propeller uses 3.3V but the XBee can't take anything above 2.5V.
There are also Frequency-to-Voltage ICs that do the same thing.
Connect any device to Device Cloud with Cloud Connector. Available for Android, Java SE/ME, Embedded and Kinetis devices, the family of connectors simplifies the process of managing dynamic device infrastructures and makes it easy to deploy devices and applications.
Incredibly small memory footprint
Supports any device operating platform
Two-way messaging for full cloud-to-device messaging and control
Device management and troubleshooting tools, including configuration edits, firmware updates and device reboots
Application development tools
Remote file system management
Secure connections
- See more at: http://www.etherios.com/products/devicecloud/connector#sthash.Y6wdUOmj.dpuf
Once configured XBee transmit whatever they receive so how you talk to a database, domain, or PC depends on how it is setup.
As far as your program is concerned, it will only use the XBee transmit and receive commands.
Do you know anything about the database, domain, or PC you will be using?
I know StampPlot (MakerPlot), which is a PC application, has a command for writing data to a file, and it's very easy to use.