Go to advanced search

by sparkyhall
Wed May 11, 2016 7:23 pm
Forum: Weather station
Topic: Connecting wind and rain sensors (build your own station)
Replies: 190
Views: 86429

Re: Connecting wind and rain sensors (build your own station

Well here are some pictures of my DIY weather station: hat_on_pi.jpg in_box.jpg sensors.jpg I have designed it to be compatible with the Raspberry Pi foundations weather station software. It uses the same Maplin anemometer, wind vane and rain gauge, includes sensors for barometric pressure (BMP180),...
by sparkyhall
Sun Apr 17, 2016 9:16 pm
Forum: Troubleshooting
Topic: Stepper Motor Driver
Replies: 4
Views: 866

Re: Stepper Motor Driver

The datasheet also states that the minimum high level input voltage (VIH) is 4V so driving the clock input directly from a Pi 3V3 output is unlikely to work. You need to convert the Pi outputs to a suitable level first.
by sparkyhall
Fri Apr 15, 2016 7:15 pm
Forum: Weather station
Topic: RTC not found
Replies: 42
Views: 7030

Re: RTC not found

Hi Miranda, You haven't said if you are using the "weather station" image or "Raspian". The RTC is connected via the I2C interface so the first thing I would check is that the I2C modules are loaded by issuing the following command in a terminal: lsmod | grep i2c the output should be something like:...
by sparkyhall
Wed Apr 13, 2016 7:38 pm
Forum: Weather station
Topic: Weather station Software
Replies: 15
Views: 3133

Re: Weather station Software

@uberscubajim, thanks for the clarifications. Yes when I say DC-DC I do mean the 24V to 5V step down converter. I have other ideas for this but I am yet a little undecided as it depends where I end up placing my weather station. When I say ID_EE I mean the HAT ID_EEPROM for board detection/identific...
by sparkyhall
Wed Apr 13, 2016 6:54 pm
Forum: Weather station
Topic: Weather station Software
Replies: 15
Views: 3133

Re: Weather station Software

So my second guess was right, although uberscubajim explained it so much better than I. I have not seen any official schematics although I am happy to share mine if it helps. I have designed my weather station to be compatible with the RPi station, although mine does not include the RTC, ID_EE or dc...
by sparkyhall
Mon Apr 11, 2016 6:52 pm
Forum: Weather station
Topic: Weather station Software
Replies: 15
Views: 3133

Re: Weather station Software

Hi, Just had another thought. It appears to be behaving as though the wind direction sensor is in the upper leg of your resistor divider chain rather than the lower leg. I believe the correct connection is a 75K resistor between 3V3 and one wire of the "wind direction" sensor with the other wind dir...
by sparkyhall
Mon Apr 11, 2016 6:26 pm
Forum: Weather station
Topic: Weather station Software
Replies: 15
Views: 3133

Re: Weather station Software

Hi, I am also building my own although it seems you are a little further ahead than me. If you always get a reading of 270deg then it looks like you are always reading full scale from the ADC, have you taken care of the fact that the MCP3424 is an 18 bit ADC instead of the expected 16 bit MCP3427? R...
by sparkyhall
Mon Dec 28, 2015 4:21 pm
Forum: Beginners
Topic: Time not Sycing
Replies: 3
Views: 606

Re: Time not Sycing

Have you tried manually setting the "Timezone" using the "Raspberry Pi Configuration" tool?
by sparkyhall
Sat Jun 27, 2015 7:34 am
Forum: General discussion
Topic: 12V LED and Pi 5V wiring help
Replies: 13
Views: 6033

Re: 12V LED and Pi 5V wiring help

The Tip120 is only rated for 5A continuous so is not really suitable for switching a 6A load. A base resistor of 130R or 220R is unlikely to provide sufficient protection for the pi should the Tip120 develop a collector-base short. If you are concerned about protecting the pi you could simple place ...
by sparkyhall
Sat Jun 06, 2015 4:34 pm
Forum: Troubleshooting
Topic: Duplicate OpenVPN server on my network?
Replies: 2
Views: 504

Re: Duplicate OpenVPN server on my network?

Just a random thought on your lock-up problem. I recently had similar issues with a raspberry pi model A that I was using as a cctv that had ran 24/7 for about 1.5 years. After investigating I discovered that the PSU, a Samsung mobile phone charger, had become unstable. In fact loading the charger w...
by sparkyhall
Sun Jun 16, 2013 7:58 pm
Forum: Media centres
Topic: XBMC playing MKV 720p video stops
Replies: 6
Views: 4604

Re: XBMC playing MKV 720p video stops

Are you sure it's not just lack of memory? Openelec reduces the amount of memory allocated to the gpu on model A boards from 128MB to 100MB in the config.txt file. I have no idea if this is the reason but it be worth a shot. You could also try connecting remotely via ssh and running top while playin...
by sparkyhall
Sun Jun 16, 2013 7:37 pm
Forum: Python
Topic: Run script after changes in folder
Replies: 10
Views: 2731

Re: Run script after changes in folder

I think the indentation is wrong, in the line:

Code: Select all

   fInfo2 = os.stat(log2)
Try adding an extra space before "fInfo2" like this:

Code: Select all

    fInfo2 = os.stat(log2)
by sparkyhall
Thu Sep 13, 2012 7:44 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 73651

Re: WiringPython - WiringPi for Python

It looks like you still have an out of date wiringpi.py there, here's what I have in mine after a "pip install wiringpi": 79 def wiringPiSetupGpio(): 80 return _wiringpi.wiringPiSetupGpio() 81 wiringPiSetupGpio = _wiringpi.wiringPiSetupGpio 82 83 def pullUpDnControl(*args): 84 return _wiringpi.pullU...
by sparkyhall
Wed Sep 12, 2012 8:19 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 73651

Re: WiringPython - WiringPi for Python

As far as I know there is no "wiringPiGpioMode" command, perhaps there used to be in earlier versions?

In your python code to setup wiringpi with gpio pin numbering you should use something like:

Code: Select all

import wiringpi
wiringpi.wiringPiSetupGpio()
Regards,

sparkyhall
by sparkyhall
Wed Sep 12, 2012 7:28 pm
Forum: Python
Topic: PiLowLib - a low level RPi python library
Replies: 7
Views: 2240

Re: PiLowLib - a low level RPi python library

I tried PiLowLib and it works really well and is an excellent example of writing to the hardware from python. On the down side it does appear to be rather slow when compared to wrapped wiringpi and rpi.gio for example, a while true loop to toggle a single io pin as fast as possible achieves an appro...
by sparkyhall
Thu Aug 30, 2012 9:56 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 73651

Re: WiringPython - WiringPi for Python

I followed this by running my test code via sudo which promptly returned me to the command line with no errors. You must, indeed, run as root. Normal users do not have access to the shared memory mumbo-jumbo that makes GPIO happen. Alternatively you can use Gordon's GPIO binary to export the /sys/c...
by sparkyhall
Mon Aug 27, 2012 3:59 pm
Forum: Python
Topic: GPIO problems...
Replies: 6
Views: 1411

Re: GPIO problems...

ctrl+c is the normal linux way of stopping a prog.

Regards, sparkyhall
by sparkyhall
Mon Aug 27, 2012 9:35 am
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 73651

Re: WiringPython - WiringPi for Python

@gadgetoid issuing "pip install wiringpi" (as root) installs wiringpi but running the following test code causes a segmentation fault, this is on slackware 14rc2: #!/usr/bin/python import time import wiringpi wiringpi.wiringPiSetup # for sequential pin numbering # set RPi board pin 12 as output wiri...

Go to advanced search