PiDome Forum

PiDome platform forum.

You are not logged in.

#1 2015-03-28 07:15:32

Dallco
Member
Registered: 2015-03-15
Posts: 15
Website

Utility Measurements error

Trying to get the power sensor set-up working. 0x32 is seen by the server, led is blinking once for a rotation, hardware and arduino + communication to pi looks ok.

I2C - check:
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi ~ $


Get this error in the applog:

2015-03-24 22:26:59,771 [WEBCLIENT:192.168.1.2] INFO  org.pidome.server.services.plugins.PluginService - Started plugin: PiDome Utility Measurements
2015-03-24 22:27:21,252 [WEBCLIENT:192.168.1.2] INFO  org.pidome.server.system.hardware.devices.Devices - Modified device: 23, (new) name: Power, id: 23
2015-03-24 22:27:21,321 [WEBCLIENT:192.168.1.2] ERROR org.pidome.server.connector.drivers.devices.devicestructure.DeviceControlsGroup - Error creating 'data' control: Control suffix can not be more then 6 characters in data control
2015-03-24 22:27:21,324 [WEBCLIENT:192.168.1.2] ERROR org.pidome.server.connector.drivers.devices.devicestructure.DeviceControlsGroup - Error creating 'data' control: Control suffix can not be more then 6 characters in data control
2015-03-24 22:27:21,327 [WEBCLIENT:192.168.1.2] ERROR org.pidome.server.connector.drivers.devices.devicestructure.DeviceControlsGroup - Error creating 'data' control: Control suffix can not be more then 6 characters in data control
2015-03-24 22:27:21,395 [WEBCLIENT:192.168.1.2] INFO  org.pidome.server.system.hardware.devices.Devices - Device: PiDome I2C Tripple reflector sensors has been loaded

I can not choose a proper device in Plugin management -> Utility measurement settings.

Any idea?

ps:  http://platform.pidome.org/devices states that the passtrough driver is used from package PiDome.Devices?
       PiDome I2C Tripple reflector sensors  0.0.1     PiDome Server info passthrough driver       PiDome.Devices

Last edited by Dallco (2015-03-28 10:20:31)

Offline

#2 2015-03-28 12:56:02

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

This is an error in the device definition, i will update the server with a correct definition, my apologies! Expect an update later today probably this evening (gmt+1)

Last edited by John (2015-03-28 12:56:29)

Offline

#3 2015-03-28 13:21:12

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

I have created an issue for this to make sure also other devices are being checked:

https://bitbucket.org/pidome/pidome-ser … ifications

Offline

#4 2015-03-28 15:15:24

Dallco
Member
Registered: 2015-03-15
Posts: 15
Website

Re: Utility Measurements error

Great, glued together the hardware today. Breadboard is free again for more testing!

Offline

#5 2015-03-28 15:49:12

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

Very cool, do you have a picture of the hardware? If you got any questions about the hardware i will tap Marcel on his shoulder, he created the stuff smile

Offline

#6 2015-03-28 16:21:33

Dallco
Member
Registered: 2015-03-15
Posts: 15
Website

Re: Utility Measurements error

See the pictures on twitter. Made small adaptatiions using tcrt5000 + 2 resistors for sensor. All on 3.3v arduino-mini.
Made a small change to the code with a high and low treshold to get a nice signal.

void readSensor1() 
{
  int s1 = analogRead(sensorPin1);     // Electricity get value
  if (!validSensor1 && s1<1000) 
  {
    validSensor1 = true;
  }
  if (s1 >= highthresholdSensor1)
  { 
    gotPulse1 = true;
    digitalWrite(sensorLED1, HIGH);
  }
  if (s1 < lowthresholdSensor1 && validSensor1 && pulseCounterSensor1 < 9999 && gotPulse1 == true ) 
  {    
    gotPulse1 = false;
    digitalWrite(sensorLED1, LOW); 
    pulseCounterSensor1++;    
  }
}

Offline

#7 2015-03-28 16:38:22

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

I have seen it, very nice!

How are the results of the tcrt5000? because the one we used where quite fluctuating sometimes

Offline

#8 2015-03-28 17:17:06

Dallco
Member
Registered: 2015-03-15
Posts: 15
Website

Re: Utility Measurements error

Simpler (and cheaper) than this it wont get...

IMG_5659.jpg

It is very sensitive, you have to check for the max and min values and use the high and low threshold trick as in the code above.
Value is low at reflection and high when no reflection. I don't care about the values as long as i get one pulse per rotation.
IMG_5662.jpg

Sitting on the watermeter glued to a piece of creditcard to keep it in place. Just one small piece experimentboard 3 lanes 7 holes.

edit: for the Gas and Water measurement I used 1.5k not the 10k resistor.

Last edited by Dallco (2015-03-29 11:27:04)

Offline

#9 2015-03-28 17:40:26

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

You know abusing a credit card does not improve the WAF factor? With these kind of meters you have to get very creative because of the light relfections, i have not used a card solution before, will try it.

I don't care about the values as long as i get one pulse per rotation

You have kept the updates as in the original sketch? as a per period count will give a nicer calculation then per pulse.

Very cool done, i hope to have the fix done this evening... some stuff is quite pressuring to get done.

Offline

#10 2015-04-01 11:10:48

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

Sorry for the delay, the flue got a bit stronger then i hoped, but a fix has been published to the build server.

Offline

#11 2015-04-02 08:35:08

Dallco
Member
Registered: 2015-03-15
Posts: 15
Website

Re: Utility Measurements error

Ieuw! RED blobs on the build sever! (should I wait fot green light?)

Didn't had time to look detailed into the fresh build.
Error messaging is gone and I can assign values in the utility plugin set up, that is good! But so far no values in the dashboard. Also a simple mysensors dallastemp sketch didn't show values. May be there is some configuration missing.  I will look into this more detailed to night. 
Anyway the light switches are working :-) .

Offline

#12 2015-04-02 12:03:59

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Utility Measurements error

I will be rebuilding this setup quite soon as i needed the hardware for other stuff, i have changed a lot in this plugin (while i personal did not had this setup running). So if there is something odd it will be catched.

Offline

#13 2017-05-30 17:56:46

Richardepive
Member
From: Gibraltar
Registered: 2017-05-30
Posts: 20
Website

Re: Utility Measurements error

Unforeseeable prepaid rely on cards with no fees are an time to bank accounts and household impute cards.
<a href=" http://prepaiddebitcardswithnofees.com/ ">prepaid debit cards for teens </a>
Unchecked statutory jolly-boat aid on MoneyPod Visa Debit Card Purchases. No Monthly Fees, No Agreement Fees, No Overdraft and No Minimum Balance. Unengaged swop ...
prepaid debit cards with no monthly fees
In a world where consumers are increasingly on the qui vive of credit ordered as they destitution the convenience of chintzy, the fancy of prepaid debit cards is fascinating on. Prepaid debit cards (also known as "prepaid acknowledgement cards") are branded with the logo of noted credit companies, and they are accepted where reliability cards are used.

Offline

#14 2017-05-30 17:58:26

Richardepive
Member
From: Gibraltar
Registered: 2017-05-30
Posts: 20
Website

Re: Utility Measurements error

Gratis prepaid rely on cards with no fees are an collection to bank accounts and heritage rely on cards.
<a href=" http://prepaiddebitcardswithnofees.com/ ">best prepaid debit cards </a>
Full notes babytalk on MoneyPod Visa Debit Carte de visite Purchases. No Monthly Fees, No Minutes Fees, No Overdraft and No Inconsiderable Balance. Unengaged hard cash ...
the best prepaid debit cards
In a give birth to where consumers are increasingly leery of of probity ordered as they destitution the convenience of plastic, the aim of prepaid debit cards is enticing on. Prepaid debit cards (also known as "prepaid acknowledgement cards") are branded with the logo of illustrious reliability companies, and they are accepted where credit cards are used.

Offline

#15 2017-05-30 18:01:27

Richardepive
Member
From: Gibraltar
Registered: 2017-05-30
Posts: 20
Website

Re: Utility Measurements error

Unrestrictedly prepaid rely on cards with no fees are an piece to bank accounts and range respect cards.
<a href=" http://prepaiddebitcardswithnofees.com/ ">reloadable prepaid debit cards </a>
Immense notes traitorously on MoneyPod Visa Debit Dance-card Purchases. No Monthly Fees, No Records Fees, No Overdraft and No Slightest Balance. Manumit exchange ...
prepaid debit cards walmart
In a far-out where consumers are increasingly on the qui vive of reliability orderly as they want the convenience of pliant, the impression of prepaid debit cards is enticing on. Prepaid debit cards (also known as "prepaid credit cards") are branded with the logo of illustrious reliability companies, and they are accepted where probity cards are used.

Offline

#16 2017-07-14 14:12:19

Haniceno
Member
From: USA
Registered: 2017-07-13
Posts: 2

Re: Utility Measurements error

i finally got the emails that i even ordered the copy and also i get my username which i have tried and still gives me the same out come of an error

Offline

Board footer