WiFly sensor pin readings

@ds18s20: I’m curious as to why you think my solution did not work.

Considering the scale factor of 5.7 that was applied to the data by tbalon, both solutions are equivalent. If you don’t believe this, work it out both ways.

And no, the modules are not identical. For some reason there is an offset to the ADC measurements that varies from one module to another, and the offset must be determined empirically by doing exactly what we just did. Take a look at the earlier entries in this thread to see a clear example.

jremington:
@ds18s20: I’m curious as to why you think my solution did not work.

My apologies; it does work to an extreme degree of precision. Darn that inpatient trigger mouse finger:

Hello!

I have a similar problem.

But the divisor 5.7 does not solve the problem.

I have 80990d on sensor 2 without signal and 80e846(59462 dec) with 160mV on pin.

59462*5.7 = 338933 mv.

Any ideas?

Good day.

Testing WiFly RN-XV module for measuring temperature sensor LM35.

I need technical assistance.

When measuring the reflected random peaks at 0.1 ° C high = 0.001V.

Sometimes the presence of a rare-Figure 1

Other times, the occurrence of very large - Picture 2

What could be the reason for this is my question.

My English is very bad. I translated using Goole compiler.

Thank you for your help.

[[](ImageVenue.com - 086019305_1383086019_122_251lo.jpg)](ImageVenue.com - 308601811_1383086018_122_28lo.jpg)

I seem to have turned off my email update preference so I missed all the interesting developments. GREAT WORK! I ended up back here due to finding large errors in my WiFly readings after a long time away from it. Once I started using sensors with larger reading ranges the inaccuracy of using my previous method became glaringly apparent. Clearly, a simple resistor network factor and ADC offset weren’t giving a very accurate picture. J, your least squares regression observation is a huge time saver!

You probably know by now, but the version 4 firmware and updated user guide now include a lot of the things we were complaining about. It’s still lacking, but at least it’s better.

hi

i have read a post on wifly pins but after a lot of reading and search, i dont have some clear ideas :?:

i have 3 grove bee carrier with a rn xv 171 and grove sensors (light, barometer, temperature…)

i receive the data by a GET /myscipt.php?DATA= XXXX00001111222233334444555566667777\n\n

Where XXXX is the GPIO data and 0000 through to 7777 are the values of the 8 analogue inputs expressed in hexadecimal.

my problem is that i dont understand to which pins are output data on grove carrier and the corresponding channel sensors on The rnXV-I/RM . there is 2 connectors on the grove xbee carrier and some sensor have 2 functions like the dth11 (humidity and temperature). how can i know that for example the d6 and the d5 wire connector or scl or sda on the xbee carrier are link on which channel on the wifly.

For exemple,i have the calculation for the light sensor based on the millivolt data but i dont know to search in the get data process because each channel with the show q command give a result

For dth11 with humidity and temperature i dont have the algorithm and i dont know what channel are involved when i put in d5 d6 connectors.each channel with the show q command give a result

For the barometric sensor, there are 4 results pressure, altitude, atmosphere and tempeature. i see in the datasheet some calculation but in this case, i dont know which data to use on the 8 channels results

thanks for a lighting idea on the pin data order on the grove carrier and a the sensors channels which can permit to have the data on my php script for doing the calculation. :doh:

thanks and forgive me for bad english

bruno

Bruno,

Sorry, I’m not familiar with the Grove product. I don’t think I can help with the readings. I would think you could vary some of the sensor reading on a large scale (shining a light on the light sensor, for example) and observe which sensor reading vary a lot.

hi

i do a script and try to see what channels are linked

about some readings, it seems that sen5 is link to grove d5d6 connector and sen2 to the scl sda connector

I read but dont understand how to have a precision reference voltage on one of the analog
inputs to calculate the offset
.

The analog input hardware specification is:

Input voltage range: 0-1.2V, however, the analog-to-digital converter saturates at 400 mV

Resolution: 14 bits = 12 uV

Sampling frequency: 35 us

WARNING

Driving these inputs above 1.2V can permanently damage the module.

show q 0x183 // Read channels 0, 1, and 7

Accuracy: 5% uncalibrated

The accuracy of each analog sensor reading can be offset by up to 5% due to variations

from chip to chip. To improve accuracy, Microchip recommends using a precision reference voltage on one of the analog

inputs to calculate the offset.

The offset is the same for all analog inputs. For example:

• Drive precision 200 mV reference on analog input 4.

• Read analog input 4 and compute the offset.

If you read 210 mV you know that the offset is +10 mV. When you read input 5, subtract 10 mV from the result.

And another thing, i use dth11 grove sensor. this sensor use a 40 bytes data to give humidity and temperature. i use channel 5 by a http get request with a php script.
i receive the data by a GET /myscipt.php?DATA= XXXX00001111222233334444555566667777\n\n
Where XXXX is the GPIO data and 0000 through to 7777 are the values of the 8 analogue inputs expressed in hexadecimal.
this is the way dth11 data are done. the 7777 values arent too small to content the 40bytes of the dth 11 data i’m not a mathematic convesion man… ? in that case how can i tansmit the 40bytes of data

DATA=16 bits RH data+16 bits Temperature data+8 bits check-sum

Example: MCU has received 40 bits data from RHT03 as

0000 0010 1000 1100 0000 0001 0101 1111 1110 1110

16 bits RH data 16 bits T data check sum

Here we convert 16 bits RH data from binary system to decimal system,

0000 0010 1000 1100 → 652

Binary system Decimal system

RH=652/10=65.2%RH

Here we convert 16 bits T data from binary system to decimal system,

0000 0001 0101 1111 → 351

Binary system Decimal system

T=351/10=35.1℃

When highest bit of temperature is 1, it means the temperature is below 0 degree Celsius.

Example: 1000 0000 0110 0101, T= minus 10.1℃

16 bits T data

Sum=0000 0010+1000 1100+0000 0001+0101 1111=1110 1110

Check-sum=the last 8 bits of Sum=1110 1110

by my search,i found a link bases on python to read data from wifly and a get process

http://www.digitaldiy.io/index.php/arti … 7xatvl_tr-

thanks for response