## Search found 15 matches

Tue Sep 30, 2014 4:31 am
Forum: Beginners
Topic: How to sum up the data read by sensor?
Replies: 5
Views: 902

### Re: How to sum up the data read by sensor?

You have to get the value from sensor in liters per second. Read the sensor every second and just add the reading to some variable which you have to set to 0 every day. Or, if you don't need current flow then just count the pulses and at the end of a day calculate consumption in liters. May u help ...
Tue Sep 30, 2014 4:28 am
Forum: Beginners
Topic: How to sum up the data read by sensor?
Replies: 5
Views: 902

### Re: How to sum up the data read by sensor?

Perhaps have a variable called total_flow and add flow to that variable each time flow is calculated. ya, I know the logic but I do not know how to convert it into codes. May u help me ? after count the amount of water I used every time on and off the tap, how to store it into a variable called tot...
Mon Sep 29, 2014 6:31 am
Forum: Beginners
Topic: How to sum up the data read by sensor?
Replies: 5
Views: 902

### How to sum up the data read by sensor?

I have one project to record the usage of water daily use raspberry and water flow sensor . I am able to run the sensor with my code but I do not know how to sum up all the readings. The water flow meter I use is http://www.seeedstudio.com/wiki/G1/2_Water_Flow_sensor below is the part of my code if ...
Wed Sep 10, 2014 7:07 am
Forum: Beginners
Replies: 3
Views: 1754

You can have a look at this . Short answer in a terminal use sudo nano ~/.config/lxsession/LXDE/autostart to edit the LXDE autostart file for the pi user. Add the line @lxterminal -e ‘/usr/bin/python /home/pi/myscript.py’ -t ‘MyTitle’ Using the correct values foe myscript.py and MyTitle Save it and...
Wed Sep 10, 2014 3:10 am
Topic: how to sum up the sensor readings
Replies: 0
Views: 423

### how to sum up the sensor readings

I having a project to run a water flow to record how many water i use.i able to run the sensor and record the water used but it only print the water i use every time there is a flow and it never sum it up. the sensor i use is water flow sensor 1/2 http://www.robotshop.com/en/adafruit-water-flow-sens...
Wed Sep 10, 2014 2:52 am
Forum: Beginners
Replies: 3
Views: 1754

Currently i have one project ,i want my python script auto start at LX terminal.meaning when i boot my RPi system auto open lx terminal and run my script. Because i have Menu page need to show out. Any one can help me solve this problem? (i am newbie please don`t tell theory thing,just tell me how t...
Tue Aug 05, 2014 1:37 am
Forum: Beginners
Topic: how to print the reading from a hall effect sensor?
Replies: 8
Views: 1864

### Re: how to print the reading from a hall effect sensor?

joan wrote:Search for hall effect. There should be plenty of examples.
ya i do a lot of googling but must of them is using arduino connect with water flow sensor.
Tue Aug 05, 2014 1:33 am
Forum: Beginners
Topic: how to print the reading from a hall effect sensor?
Replies: 8
Views: 1864

### Re: how to print the reading from a hall effect sensor?

If the hall effect sensor uses an analog output, then you will need to connect a A/D converter (via I2C) and input the analog signal into the ADC. do you have a datasheet of the sensor? P.S. confusingly you use "water flow sensor" and "hall effect sensor", as if they are interchangeable, their are ...
Mon Aug 04, 2014 8:15 am
Forum: Beginners
Topic: how to print the reading from a hall effect sensor?
Replies: 8
Views: 1864

### how to print the reading from a hall effect sensor?

I am new in raspberry, and currently i have one project request me to use python script to record the readings from flow sensor. the sensor i use is Water Flow Sensor. May some one teach me how to get and print the readings from the hall effect sensor via python. My goal is print the water i use onc...
Wed Jul 30, 2014 9:27 am
Topic: How to control water flow meter via RPi?
Replies: 6
Views: 4459

### How to control water flow meter via RPi?

Currently i have A project : use 1/2 water flow meter connect with raspberry pi to calculate the water used daily.I am totally new in raspberry pi and flow meter.May someone help me post the code here for reference. Thank you ! the water flow meter i use is POW110D3B G1/2Water Flow Sensor import os ...
Tue Jul 15, 2014 5:46 am
Forum: Troubleshooting
Topic: monitor keep flickering-python sensor
Replies: 2
Views: 909

### Re: monitor keep flickering-python sensor

it still keep flickering when sensor detect distance less or equal 30cm.do you have any other way to solve this issue?
Fri Jul 11, 2014 3:25 am
Forum: Troubleshooting
Topic: monitor keep flickering-python sensor
Replies: 2
Views: 909

### monitor keep flickering-python sensor

the sensor i use is HC-SR04. i use it to turn the monitor in to sleep mode when it sense object more that 30cm. it turns on when sense object less or equal 30 cm. it work fine when turn into sleep mode,but keep flickering when it turns ON.Please help me~~~ below is my coding import time import RPi.G...
Thu Jun 05, 2014 9:18 am
Forum: Python
Topic: playing random mp3 in python
Replies: 26
Views: 25632

### Re: playing random mp3 in python

how come i use the exact code from you but my model b raspberry have no music play.i have only two music in the folder
Thu Jun 05, 2014 5:43 am
Forum: Beginners
Topic: how to run sharp distance sensor
Replies: 2
Views: 683

### how to run sharp distance sensor

Current i have one project using raspberry pi with sharp distance sensor 2y0s21. the goal is to show the distance that sensor detect using the python.
Can anyone post for me the python coding for this ?
THANK YOU
Wed May 14, 2014 1:43 am