Go to advanced search

by kenmc
Tue Feb 17, 2015 9:01 am
Forum: Automation, sensing and robotics
Topic: Sharing my project : Wireless Room Temp Monitoring System
Replies: 34
Views: 12449

Re: Sharing my project : Wireless Room Temp Monitoring Syste

yeah you've got a casting problem; the float being cast to an integer rounds it to a whole number, so the decimal portion is lost. hence why I suggested sending 10x the value across, and knowing on the other side that you have to divide by 10. you could indeed do x100 instead. So basically you would...
by kenmc
Mon Feb 16, 2015 5:03 pm
Forum: Automation, sensing and robotics
Topic: Sharing my project : Wireless Room Temp Monitoring System
Replies: 34
Views: 12449

Re: Sharing my project : Wireless Room Temp Monitoring Syste

the first one only shows the "short codes" because the "long" ones are commented out. but even if they weren't they are the same numbers as the short ones but in binary. to combine them, take the setup stuff from the first one and combine it with the temp sensing one, and take the sending part of th...
by kenmc
Tue Jan 13, 2015 12:24 pm
Forum: Automation, sensing and robotics
Topic: Sharing my project : Wireless Room Temp Monitoring System
Replies: 34
Views: 12449

Re: Sharing my project : Wireless Room Temp Monitoring Syste

Hi I've done something similar, although I've also tied it into my outdoor weather station. I'd recommend looking at http://nathan.chantrell.net/ and checking out his TinyTX boards. They use ATTiny84 mpus, run on 2xaa batteries for several years. He has plenty of example code in his github repo. Usi...
by kenmc
Fri Nov 21, 2014 10:21 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi + Arduino
Replies: 19
Views: 3937

Re: Raspberry Pi + Arduino

3) My first project is to get the temperature from both the 1st floor and 2nd floor.. I'm not sure if I have to setup a 2nd Pi, run an extremely LONG wire from the GPIO pins to the sensor? or if there's some easier "wireless" solution that I could use? I want to keep things as neat as possible and ...
by kenmc
Thu Nov 13, 2014 4:50 pm
Forum: Automation, sensing and robotics
Topic: auto starting .py code after booting
Replies: 1
Views: 519

Re: auto starting .py code after booting

well if you run this from cron, you won't see the prompt, and you won't be able to input any data, as it won't run in any visibile shell.
by kenmc
Wed Oct 15, 2014 12:30 pm
Forum: Automation, sensing and robotics
Topic: xbee / tipper rain guage (rate) - issues with xbee delays?
Replies: 8
Views: 2029

Re: xbee / tipper rain guage (rate) - issues with xbee delay

How long is the "random" delay, and how big is yuour rain gauge tipper, as they will affect your accuracy, as it is essentially quantizing your results. My rainguauge is 0.3mm per tip. according to yahoo, the highest rainfall rate ever recorded is 38.5 mm in one minute (https://answers.yahoo.com/que...
by kenmc
Fri Jul 11, 2014 3:32 pm
Forum: Automation, sensing and robotics
Topic: Pi-mote from Energenie
Replies: 59
Views: 24086

Re: Pi-mote from Energenie

I have a similar setup where i have a Pi talking Serial to an attiny84 sitting on a tinytx board with rfm12b, sending commands to various plugs in the house. Mainly set them to use as security lights when on holidays, using cron. have also experimented with email control. Found the range a bit hit-a...
by kenmc
Fri Dec 06, 2013 11:07 am
Forum: Automation, sensing and robotics
Topic: IR TV remote sensor
Replies: 1
Views: 638

Re: IR TV remote sensor

This any use?
http://flirc.tv/
by kenmc
Tue Nov 12, 2013 4:57 pm
Forum: Automation, sensing and robotics
Topic: using Flame sensor with the Raspberry Pi
Replies: 4
Views: 8441

Re: using Flame sensor with the Raspberry Pi

which flame sensor? are you sure it's working?
by kenmc
Tue Nov 12, 2013 11:07 am
Forum: Automation, sensing and robotics
Topic: 433mhz cheap power plugs
Replies: 14
Views: 8871

Re: 433mhz cheap power plugs

vectraboyv6 wrote:now trying to use rcswitch-pi which is installed but dont know how to use it any idears?
I'm using RCSwitch successfully on arduino if that helps. Using Energenie power plugs. Have also got a set of Silvercrest ones from Lidl, but have not tried to capture or tx the code yet.
by kenmc
Thu Nov 07, 2013 9:27 am
Forum: Automation, sensing and robotics
Topic: Weather station uplink
Replies: 6
Views: 3705

Re: Weather station uplink

Depends on the weather station http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=14777 this might be of some use. We've used the Fine Offset WH108[01] but the USB link would hang periodically, not much use. So intercepting the TX from the sensors and interpreting them and storing them. If you'v...
by kenmc
Wed Aug 21, 2013 9:28 am
Forum: Automation, sensing and robotics
Topic: RF Link between Arduino and Raspberry Pi
Replies: 19
Views: 9993

Re: RF Link between Arduino and Raspberry Pi

you could try https://github.com/gkaindl/rfm12b-linux, it has an arduino and RasPi parts and installs as a kernel driver for RasPi.
Haven't tried it yet myself, waiting for some parts to come for the arduino side of the equation, but looks promising.
by kenmc
Tue Jan 15, 2013 1:40 pm
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Karl when you say "and then stopped" did it come back to a command prompt, or did it sit there waiting forever?
As Aideen said if you don't have the bmp in place comment out the code, otherwise it will go off and try and read a memory space which isn't there...
K
by kenmc
Mon Jan 14, 2013 8:48 am
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Cool so. If you've not got a bmp085 also, you'll need to comment out a bit in the code - I think Kevin has a #define in his, I think I have the same in my version too. If using my code, beware that it expects sqlite to be installed; it doesn't handle the case well where there's none.
K
by kenmc
Sun Jan 13, 2013 9:48 pm
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Thanks Ken. I assume that the transmission every 48 secs from the head unit is simply current conditions, so what happens about the pywss code checking stuff stored in the display unit (or am I totally barking up the wrong tree here). Ian Hi Ian, the way it works is that every 48 seconds the head u...
by kenmc
Sun Jan 13, 2013 6:30 pm
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Ok, from what I can see, I just commented out the line in "Hourly.py" which says
# get weather station data
# LogData.LogData(params, raw_data)

Although I can't honestly remember what else I changed to make it work.Have a look in the github posted earlier, that's my running code.
by kenmc
Sun Jan 13, 2013 12:01 pm
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

https://github.com/kenmcc/wh1080listener Any chance of some more details here Ken in how these routines are used in tandem with pywws? Ian Sutherland Hi Ian I modified pywws very slightly, so that it doesn't try and access the USB link to the head unit, essentially it jumps into the process as if i...
by kenmc
Wed Jan 09, 2013 1:41 pm
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

Will try get the code updated asap... Updated code is here : https://github.com/kenmcc/wh1080listener.git if anyone is interested. It's not based on Kevins' latest code changes though. this is the running code. it expects a bmp085, and a rev1 board. some #defines at the top of weatherlogger.c indic...
by kenmc
Tue Jan 08, 2013 10:17 am
Forum: Automation, sensing and robotics
Topic: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi
Replies: 195
Views: 81061

Re: Fine Offset WH1081 (Maplin N96GY) sensors working on Pi

...add an option to push the raw data to a file such that there is only ever one line of data which gets overwritten - we can then parse that file from python or whatever. I already started hacking your code with my limited knowledge to get an output as follows - 10.2C, 84%, 0.8, 3.0, S, 757.5 I wa...
by kenmc
Mon Dec 31, 2012 9:29 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 83608

Re: Weather Station now running

My sd card die today, after 6 months of continuous running. I could reformat it, but don't want to risk it, so I have setup a new sd card. My backups are a bit random, so i have lost some data at http://www.weather.dragontail.co.uk . Note to self - setup crontab to upload raw files to web site ever...
by kenmc
Sat Dec 15, 2012 2:52 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 83608

Re: Weather Station now running

Pingu, just curious as to whether you experience the same USB hangs from the head-unit to the pi that is widely reported using pywws and the WH1080/Maplin weather station? I just notice that there's a couple of gaps in the graphs over the last 7 days, so was wondering if that was you messing with i...
by kenmc
Fri Dec 14, 2012 9:39 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 83608

Re: Weather Station now running

For those interested I have updated and tested the Weather Station setup tutorial using the latest Raspbian Wheezy image. Some changes were needed to the cython-hidapi It would be good to see more schools setting up weather stations providing live feeds to their web sites. I am now getting links fr...
by kenmc
Wed Dec 05, 2012 9:58 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 83608

Re: Weather Station now running

One thing I found is that the station ID changes when you install new batteries, so the code from kevin listed prior (susa.net) needs to be changed to not expect 0xa1 always. Otherwise it works well. I've been running for over a week solidly, but have just disassembled it to mount all the components...
by kenmc
Wed Nov 07, 2012 9:16 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 83608

Re: Weather Station now running

not knowing what your default editor is, I'd suggest using nano if gui-less, or leafpad if on xwin

in nano make your changes, type Ctrl-X, y to exit and save. or Ctrl-O to save only

Go to advanced search