Go to advanced search

by BlueWolf
Sun Dec 09, 2018 7:51 pm
Forum: Python
Topic: Daylight Hours
Replies: 18
Views: 1838

Re: Daylight Hours

I use Pysolar for my Raspberries that control the lights when it gets dark outside. Works in Python3. Although it won't tell you the times of sunrise and sunset, it is however very easy to get it to the current angle of the sun. So then it is just as easy as making a logic of 'if angle < 0' etc. Her...
by BlueWolf
Fri Nov 23, 2018 6:45 am
Forum: Python
Topic: Please help with weather station python code.
Replies: 17
Views: 1786

Re: Help for my prog

There are two issues I am seeing here. First of all the following line wind =round(adc.value*3.3,1) outputs 0.0 on the variable wind. Since 0.0 is not in your dictionary it cannot find the right value and thus it will try to print the "unknown value" error. And that is where the second error is. In ...
by BlueWolf
Wed Sep 12, 2018 4:55 am
Forum: Troubleshooting
Topic: Yellow lightning bolt
Replies: 15
Views: 4946

Re: Yellow lightning bolt

Oh hang on, I was about to post the same topic. I have a Raspberry Pi 3B (not B+) and as of recently and with no changes other than keeping it up to date, I am starting to see the yellow lightning bolt too at times. I use the official power supply with the the official 7 inch touch screen. Nothing e...
by BlueWolf
Mon Sep 03, 2018 8:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pin 8 failure - expected 1, got 0. What went wrong?
Replies: 5
Views: 438

Re: Pin 8 failure - expected 1, got 0. What went wrong?

What are the two devices at the top? And are their GPIO connections inputs to the Pi or outputs from it? One appears to be running from 12v the other from 5v. Neither of those voltages should be fed directly into a Pi's gpio. Also, what are you expecting to see on the output from the voltage divide...
by BlueWolf
Sun Sep 02, 2018 2:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pin 8 failure - expected 1, got 0. What went wrong?
Replies: 5
Views: 438

Re: Pin 8 failure - expected 1, got 0. What went wrong?

The i2c was connected to a LM75 temperature sensor and a ADS1015 analog-to-digital converter. They have been connected for about a month and working properly. Nothing has been chanced on that side. I also did my best to have the pi/i2c side of my board away from the 12v side. I have a diagram althou...
by BlueWolf
Sat Sep 01, 2018 10:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pin 8 failure - expected 1, got 0. What went wrong?
Replies: 5
Views: 438

Pin 8 failure - expected 1, got 0. What went wrong?

So while working on a project involving a Raspberry Pi Zero W, after fixing some problems, new problems showed up. Totally unrelated to what I was working on. My two i2c devices stopped working out of seemingly nowhere. And when I disconnected everything and ran an i2cdetect, it showed me the follow...
by BlueWolf
Sat Jul 28, 2018 5:31 pm
Forum: Advanced users
Topic: CONTROLLING GPIO PINS EXTERNALLY
Replies: 6
Views: 556

Re: CONTROLLING GPIO PINS EXTERNALLY

I made the thing and made a separate post, you will probably find this useful.

viewtopic.php?f=41&t=219190&p=1346307
by BlueWolf
Sat Jul 28, 2018 5:30 pm
Forum: Other projects
Topic: Remotely controlling GPIOs over http (script snippet)
Replies: 1
Views: 300

Re: Remotely controlling GPIOs over http (script snippet)

Little bit of a bonus. You need to be logged in to run this program. As soon as you close your ssh connection it'll stop working. In order to solve that you can have it run as a deamon in the background automatically at boot. With root, create the following file: "/etc/systemd/system/remotegpio.serv...
by BlueWolf
Sat Jul 28, 2018 5:29 pm
Forum: Other projects
Topic: Remotely controlling GPIOs over http (script snippet)
Replies: 1
Views: 300

Remotely controlling GPIOs over http (script snippet)

From another topic I decided to write a little bit of Python to make it super easy to remotely control your Raspberry's GPIOs over http. It is very basic but I'm sure it could help some people with limited programming experience. You can use it as-is or learn from it and adapt it to your needs. Copy...
by BlueWolf
Sat Jul 28, 2018 2:18 pm
Forum: Advanced users
Topic: CONTROLLING GPIO PINS EXTERNALLY
Replies: 6
Views: 556

Re: CONTROLLING GPIO PINS EXTERNALLY

Write a second Python program that runs as a server on the Raspberry. You can make it so that any external program (like a python program on your laptop) just requests that web page and the Pi will turn on or off the gpio pin. Would be pretty simple to make. Don't know how much you know working with...
by BlueWolf
Wed Jul 25, 2018 12:49 pm
Forum: Troubleshooting
Topic: Strange error message when attemping to boot Pi3
Replies: 7
Views: 419

Re: Strange error message when attemping to boot Pi3

I have no experience with this myself so not too much of help, but some Googling later it seems most likely to be a sdcard issue, or anything that prevents it from reading the card (The key here the last message, "Unable to mount root fs on unknown-block(179,2) " You'll find a lot of stuff if you se...
by BlueWolf
Wed Jul 18, 2018 8:45 pm
Forum: General discussion
Topic: RPi (Zero) in extreme temperatures experiences
Replies: 7
Views: 663

Re: RPi (Zero) in extreme temperatures experiences

The Raspberry Pi zero is set to 1GHz by default, thats why it doesn't say it has been throttled. Thats odd though, as it should have dropped to ~600 MHz after hitting ~82℃ Oh is that so? For some reason I thought 1.2ghz was the default. Yeah then I don't know why it did not do that. I just realised...
by BlueWolf
Wed Jul 18, 2018 7:29 pm
Forum: General discussion
Topic: RPi (Zero) in extreme temperatures experiences
Replies: 7
Views: 663

RPi (Zero) in extreme temperatures experiences

Hello there. I am looking for other people who are familiar with putting the Raspberry Pi in extreme temperature conditions. Just curious for experiences/stories/tips/whatnot. I have a small army of Raspberry Pi Zero's here. And last winter I kinda put them through the test with having some of them ...
by BlueWolf
Wed Jul 18, 2018 10:59 am
Forum: Camera board
Topic: [MOTION] Overexposure using YUV format
Replies: 12
Views: 1269

Re: [MOTION] Overexposure using YUV format

I have no experience with Motion on the Raspberry but it sounds like a motion problem? I have the same camera outdoor for about a year and have had no problems with it (using both RPi Cam Control and raw raspivid). Right now it is super sunny and this is the view: https://i.imgur.com/kPaLAhR.jpg. Th...
by BlueWolf
Tue Jul 10, 2018 8:33 am
Forum: Automation, sensing and robotics
Topic: Adapting Sound Trigger Project
Replies: 2
Views: 211

Re: Adapting Sound Trigger Project

If it has to be computer/phone activated, wouldn't it be easier to just write an actual program for that device that alerts your Raspberry when a trigger (eg notification) arrives?
by BlueWolf
Tue Jul 03, 2018 10:55 am
Forum: Troubleshooting
Topic: How to unharden (or soften) SSH pi Zero connection
Replies: 9
Views: 404

Re: How to unharden (or soften) SSH pi Zero connection

The username and password will be the same as what you used to log in when you connected to it locally.
by BlueWolf
Mon Jul 02, 2018 5:45 pm
Forum: Troubleshooting
Topic: How to unharden (or soften) SSH pi Zero connection
Replies: 9
Views: 404

Re: How to unharden (or soften) SSH pi Zero connection

in /etc/ssh/sshd_config there will be the following line: PasswordAuthentication no Just temporary disable it by putting a # in front of it. This will allow you to log in with just a password. Then the file /home/pi/.ssh/authorized_keys will have your public rsa key. If it is only you that uses that...
by BlueWolf
Sun May 06, 2018 10:04 am
Forum: Networking and servers
Topic: Raspberry Pi 3B+ as a 4G modem
Replies: 0
Views: 346

Raspberry Pi 3B+ as a 4G modem

I'm about to switch up my home network, moving to a different 4G provider. But this provider is not going to give me a mobile internet modem so I have the option to either buy one myself or, more fun, build one myself. To keep it short, I want to build my own router/modem with a pi. Set up a dhcp se...
by BlueWolf
Sun May 06, 2018 8:58 am
Forum: General discussion
Topic: PIR Sensor
Replies: 5
Views: 427

Re: PIR Sensor

I have an HC-SR501 and I just took my case apart to confirm how it was wired. If you look at the back (dome away from you), orange dials at the top and pins at the bottom, from left to right it is 5V, out/signal, ground. The page is correct, but only if you assume the dome is pointing away from you....
by BlueWolf
Fri May 04, 2018 11:13 am
Forum: Nederlands
Topic: chrome met url automatische laten starten met de boot
Replies: 4
Views: 1819

Re: chrome met url automatische laten starten met de boot

Ik heb ook zoiets (vergelijkbaars). De manier hoe ik het heb gedaan is als volgt: In ~/.config/autostart/ heb ik het bestand "MijnWebsite.desktop" In dit bestand heb ik het volgende: #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Terminal=false Type=Application Name=MijnWebsite Exec=chromium-br...
by BlueWolf
Wed Mar 21, 2018 7:28 am
Forum: Python
Topic: Library for external PWM
Replies: 7
Views: 575

Re: Library for external PWM

For my RGBW ledstrip I got this I2C board with 16 channels: https://www.adafruit.com/product/815 Although actually, I got a $2 dollar Chinese clone of that thing which functions exactly the same. And the library for Python that I used: https://github.com/adafruit/Adafruit_Python_PCA9685 With this it...
by BlueWolf
Wed Mar 21, 2018 7:10 am
Forum: Python
Topic: GPIO won't detect input from a 38kHz IR sensor
Replies: 4
Views: 341

Re: GPIO won't detect input from a 38kHz IR sensor

That's because right now it will enter the loop, see that the pin is off/0, and exit the loop because of the break statement. Essentially, this will only run once and then exit. The time.sleep function will never even be reached. Also, if the input is 1 then it'll loop without the time.sleep and cau...
by BlueWolf
Fri Dec 29, 2017 2:06 pm
Forum: Other projects
Topic: Keep the glass for the camera clear from snow and ice
Replies: 4
Views: 766

Re: Keep the glass for the camera clear from snow and ice

Most commercial cctv enclosures use a couple of large resistors or a heating pad to keep the inside of the enclosure warm to demist/de-ice the viewing port, but they are almost all mains operated so can afford the wasting of energy in this way. To operate at the cold temperatures you required will ...
by BlueWolf
Thu Dec 28, 2017 10:00 pm
Forum: Other projects
Topic: Keep the glass for the camera clear from snow and ice
Replies: 4
Views: 766

Keep the glass for the camera clear from snow and ice

tl;dr: I am looking for an easy way to keep snow and ice from a small piece of glass for a camera to look through. Everything is battery operated. What are my options? Long story: For one of my new projects, I am going to build a battery-powered Raspberry Pi driven video recorder based on motion (th...
by BlueWolf
Thu Sep 28, 2017 12:14 pm
Forum: Python
Topic: Time Function
Replies: 33
Views: 8804

Re: Time Function

....Meaning that in theory, if you would have it wait for 1000 seconds (a bit more than 16 minutes), it would actually wait 1001 seconds After some testing I can confirm this is NOT the case. I am getting results of 1000.10, 1000.09, 1000.04, 1000.08 and 1000.10. The added delay does not stack up f...

Go to advanced search