Go to advanced search

by YodaVonBeck
Sat May 05, 2018 12:23 pm
Forum: Advanced users
Topic: Plotting Grove Pi sensor data using matplotlib
Replies: 0
Views: 247

Plotting Grove Pi sensor data using matplotlib

I have a Grove Pi sitting on top of my Pi and 2 sensors hooked up. One that measures the temperature and humidity and one that measures dust. I would like to plot the data, but cant seem to get my head around how to use matplotlib. This is my code, which prints data and shows on a small LCD: import ...
by YodaVonBeck
Sat Mar 31, 2018 1:06 pm
Forum: General discussion
Topic: Air quality sensor project
Replies: 3
Views: 12070

Re: Air quality sensor project

And I found what seems to be a place to upload data and work with it : https://thingspeak.com/ And here are examples on how to use use with code : https://www.raspberrypi-spy.co.uk/2015/06/basic-temperature-logging-to-the-internet-with-raspberry-pi/ Or use Plotly: http://www.instructables.com/id/Str...
by YodaVonBeck
Sat Mar 31, 2018 11:36 am
Forum: General discussion
Topic: Air quality sensor project
Replies: 3
Views: 12070

Re: Air quality sensor project

Nice project you have there :) I think I am looking for something simpler (if possible). I have come accross the Grove system, which offers a very modular setup with a HAT where sensor modules can connect: https://www.seeedstudio.com/GrovePi%2B-p-2241.html It makes coding and connections much simple...
by YodaVonBeck
Fri Mar 30, 2018 11:24 pm
Forum: General discussion
Topic: Air quality sensor project
Replies: 3
Views: 12070

Air quality sensor project

Hi all We have a house with people who are allergic to primarily dust, so I thought I would build something that could measure this. I have a looked for a couple of hours for existing projects to cover this, but have come up short. The closests was the AirPi, which does not exist anymore. So this is...
by YodaVonBeck
Sun Jul 30, 2017 8:03 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Re: Building a bird treat dispenser

Thanks a bunch. That fixed it :)

Now I have a setup a tactile button to start the sequence as well and some LEDs to indicate of the "machine" is operating or idle :)
by YodaVonBeck
Sat Jul 29, 2017 8:51 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Re: Building a bird treat dispenser

Hi Im attaching the wires to the GPIO numbers, not the pin numbers. So if I change from BOARD to BCM it should work? You should stick with BCM numbers as that will cause fewer problems with other stuff you do on your RPi and other stuff you download from the internet. Use https://pinout.xyz to map ...
by YodaVonBeck
Sat Jul 29, 2017 7:04 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Re: Building a bird treat dispenser

Hi

Im attaching the wires to the GPIO numbers, not the pin numbers.
So if I change from BOARD to BCM it should work?
by YodaVonBeck
Sat Jul 29, 2017 6:18 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Re: Building a bird treat dispenser

OK, so I fixed the code. It seems to run its course. I have checked that all the GPIOs can deliver current by testing with an LED. Im using this motor setup and controller : http://hobbycomponents.com/motors-and-servos/116-5v-4-phase-dc-gear-stepper-step-motor-driver-board I have connected it this w...
by YodaVonBeck
Sat Jul 29, 2017 3:31 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Re: Building a bird treat dispenser

That helped. Now the code runs without issues, but the motor doesnt move :(
Time to start debugging the GPIO pins...
by YodaVonBeck
Sat Jul 29, 2017 1:58 pm
Forum: Troubleshooting
Topic: Building a bird treat dispenser
Replies: 9
Views: 1070

Building a bird treat dispenser

So we have recently gotten 2 parrots and they are very bright a needs to be challenged. So I am building a system that will dispense a treat if they push a button. I am using this setup as a start to run a step motor, but run into issues when I run the code. Its probably a simply thing, but am not e...
by YodaVonBeck
Mon Oct 03, 2016 8:36 am
Forum: Beginners
Topic: rapsistill vs picam?
Replies: 5
Views: 684

Re: rapsistill vs picam?

Thanks for your quick reply. Im new to the PiCam and have already used a script to build a timelapse code import os import time import RPi.GPIO as GPIO from datetime import datetime # Grab the current datetime which will be used to generate dynamic folder names d = datetime.now() initYear = "%04d" %...
by YodaVonBeck
Mon Oct 03, 2016 8:02 am
Forum: Beginners
Topic: rapsistill vs picam?
Replies: 5
Views: 684

rapsistill vs picam?

Whats the pros and cons to using these to methods for capturing pictures?
by YodaVonBeck
Wed Sep 28, 2016 1:33 pm
Forum: Beginners
Topic: Building a timelapse setup with PiCamera
Replies: 6
Views: 1335

Re: Building a timelapse setup with PiCamera

Thanks for the feedback, I got it working : http://www.silenthunter.dk/?page_id=693 Now I will try and figure out to use the picamera library :) And you are right, there is no need in the current code to use the RPi.GPIO module, but I intend to add a feature where a diode will light up if pictures a...
by YodaVonBeck
Wed Sep 28, 2016 12:53 pm
Forum: Advanced users
Topic: Project : Timelapse of contruction site
Replies: 0
Views: 276

Project : Timelapse of contruction site

Its almost done...thanks to those who helped with answers to my questions :

http://www.silenthunter.dk/?page_id=693
by YodaVonBeck
Tue Sep 27, 2016 12:54 pm
Forum: Troubleshooting
Topic: Cant write to external drive
Replies: 4
Views: 692

Re: Cant write to external drive

I found a way to make it work.

The crontab I had used so far was the pi crontab (I new to this, so I assumed theres was only one).
Instead I edited the roo/sudo crontab so the code would run as such. That meant that the right permissions were in place :)

Works like a charm now
by YodaVonBeck
Tue Sep 27, 2016 9:25 am
Forum: Troubleshooting
Topic: Cant write to external drive
Replies: 4
Views: 692

Re: Cant write to external drive

In the fstab I have matched it to the other entries so I had to use some spaces. Is that a problem?

The drive is accessed via a Python script triggered via crontab . Do I need to find a way to use sudo
by YodaVonBeck
Tue Sep 27, 2016 8:47 am
Forum: Troubleshooting
Topic: Cant write to external drive
Replies: 4
Views: 692

Cant write to external drive

Hi Im setting up a timelapse have the code read for that. Now I am trying to attached an external USB HD (FAT32) and I can mount it for boot using fstab - so far so good. However when I try to write to it, I get an access denied. This is the fstab code: /dev/sda1 /mnt /vfat defaults 0 0 What am I mi...
by YodaVonBeck
Fri Sep 23, 2016 8:13 am
Forum: Beginners
Topic: Building a timelapse setup with PiCamera
Replies: 6
Views: 1335

Re: Building a timelapse setup with PiCamera

Little help :)
by YodaVonBeck
Wed Sep 21, 2016 7:32 pm
Forum: Beginners
Topic: Building a timelapse setup with PiCamera
Replies: 6
Views: 1335

Re: Building a timelapse setup with PiCamera

Or could this be the best way?

Code: Select all

d = datetime.now()
    if (d.hour=>'8' and d.hour=<'16'):
by YodaVonBeck
Wed Sep 21, 2016 7:10 pm
Forum: Beginners
Topic: Building a timelapse setup with PiCamera
Replies: 6
Views: 1335

Re: Building a timelapse setup with PiCamera

Could I amend it to this?:

Code: Select all

d = datetime.now()
    if 8<d.hour<16:
Would that run the While loop continuously, but only take a picture if d.hour was more than 8 AND less than 16?
by YodaVonBeck
Wed Sep 21, 2016 8:43 am
Forum: Beginners
Topic: Building a timelapse setup with PiCamera
Replies: 6
Views: 1335

Building a timelapse setup with PiCamera

A friend of mine is building a house and asked me if I could come up with a solution to do a timelapse video. I looked and there are offtheshelfe solution, but they are rather expensive and not as fun to build as a RPi setup :) So I have the newest RPi and bought the PiCam. I found this project : ht...
by YodaVonBeck
Mon Apr 18, 2016 7:06 pm
Forum: General discussion
Topic: How to publish project on Github
Replies: 4
Views: 753

Re: How to publish project on Github

Alright, Im gonna give it a go one of these days. Just wanted to sanity check with you guys, if I missed something obvious :)
by YodaVonBeck
Mon Apr 18, 2016 6:18 pm
Forum: General discussion
Topic: How to publish project on Github
Replies: 4
Views: 753

How to publish project on Github

Hi all Im still learning to use my Raspberry Pi, but have at least completed my first "big" project to measure temperature and have LEDs light up based on what the reading was. I would like to share it and people seem to use github a lot, but it seems to require some interface as I simply cant post ...
by YodaVonBeck
Fri Apr 01, 2016 10:19 am
Forum: Automation, sensing and robotics
Topic: Easy project
Replies: 9
Views: 1914

Re: Easy project

That worked! Thanks - I must have missed that in the review of the code :( So now I can pull data and write it. I already have the code to act differently within certain temperatures and I just need to add the GPIO code to make the LEDs light up: import time while 1: tempfile = open("/sys/bus/w1/dev...
by YodaVonBeck
Fri Apr 01, 2016 10:00 am
Forum: Automation, sensing and robotics
Topic: Easy project
Replies: 9
Views: 1914

Re: Easy project

Thanks - good idea. It gave me this text, so it does contain data, but I am not sure where the code then breaks as I am not familiar with the "split" function pi@raspberrypi:~/MyCode $ sudo python temperature3.py 6c 01 4b 46 7f ff 04 10 5d : crc=5d YES 6c 01 4b 46 7f ff 04 10 5d t=22750 Traceback (m...

Go to advanced search