Go to advanced search

by direfulfoil23
Sun Mar 05, 2017 10:38 pm
Forum: General discussion
Topic: Astral Question
Replies: 1
Views: 518

Astral Question

Hey guys, I'm currently working on a program using Astral with my raspberry pi, right now I'm testing it so that when the local time matches the time of sunrise then it'll print something, but when Astral prints the time of sunrise it adds on something extra. For example, right now if I tell it to p...
by direfulfoil23
Thu Dec 15, 2016 3:37 am
Forum: General discussion
Topic: Help With Servo
Replies: 3
Views: 1037

Re: Help With Servo

NEVER POWER A SERVO FROM A PI! (well, you usually can get away with powering a single 9g micro servo, but that's it) On startup a servo will draw a lot more than 8mA. Run the servo from separate power supply, but you have to tie that power supply's ground to the Pi, and use a Pi GPIO for providing ...
by direfulfoil23
Thu Dec 15, 2016 1:25 am
Forum: General discussion
Topic: Help With Servo
Replies: 3
Views: 1037

Help With Servo

Hello all, I am using a Hitec HS-422 servo for a project with my raspberry pi. It says it is rated for anywhere from 4.8-6V. It also says the current it pulls at idle is about 8mA. This being the case I tried hooking it up to a 5V pin on my raspberry pi where as soon as I did, it started making a st...
by direfulfoil23
Mon Dec 05, 2016 9:32 pm
Forum: General discussion
Topic: Raspberry Pi Pip and Astral
Replies: 8
Views: 3627

Re: Raspberry Pi Pip and Astral

Are you actually running your program with python3? That sounds like you are probably trying to run it with python (which is python2). Oh, and you missed out the opening ' of the string in the print line at the bottom. Man, you just gotta love when just changing one number fixes all your problems. ...
by direfulfoil23
Thu Dec 01, 2016 10:39 pm
Forum: General discussion
Topic: Raspberry Pi Pip and Astral
Replies: 8
Views: 3627

Re: Raspberry Pi Pip and Astral

The apt-get will have installed both versions of pip . pip-3.2 will just be a link to pip3 and so is the same ( pip3 is the preferred name now though since Python 3.4 started shipping with it by default). You usually have to run pip with sudo though unless you are installing into a custom directory...
by direfulfoil23
Thu Dec 01, 2016 7:39 pm
Forum: General discussion
Topic: Raspberry Pi Pip and Astral
Replies: 8
Views: 3627

Re: Raspberry Pi Pip and Astral

Did you use the correct version of pip? pip is for python2 only and pip3 is for python3 only. pip should automatically install any needed dependencies for you. This is how I installed pip: sudo apt-get install python{,3}-pip I'm assuming that means I installed it for python3? Do I need to install i...
by direfulfoil23
Thu Dec 01, 2016 5:56 pm
Forum: General discussion
Topic: Raspberry Pi Pip and Astral
Replies: 8
Views: 3627

Re: Raspberry Pi Pip and Astral

DougieLawson wrote:sudo apt-get install python{,3}-pip
That worked thanks! Now the problem is that when I try to install it, it says

Code: Select all

ImportError: The astral module requires the pytz module to be available.
I downloaded the pytz module for python 3 using pip, and it still returned the same error.
by direfulfoil23
Tue Nov 29, 2016 3:06 am
Forum: General discussion
Topic: I2C Problem
Replies: 7
Views: 1558

Re: I2C Problem

DougieLawson wrote:Try adding

Code: Select all

dtoverlay=i2c-rtc,ds3231
to the tail end of your /boot/config.txt and rebooting.
Take out that device_tree= null line.

How's that for my 24,000th post on here?
That did it, thanks for your help! Congrats on the 24,000!
by direfulfoil23
Tue Nov 29, 2016 12:22 am
Forum: General discussion
Topic: I2C Problem
Replies: 7
Views: 1558

Re: I2C Problem

DougieLawson wrote:What RTC is it? What's in /boot/config.txt?
The RTC is a DS3231, and I'm not entirely sure what you mean by the second question, but in the config.txt file for the NOOBS Auto-generated Settings it says

Code: Select all

dtparam=spi=on
dtparam=i2c_arm=on
device_tree=
by direfulfoil23
Mon Nov 28, 2016 11:54 pm
Forum: General discussion
Topic: I2C Problem
Replies: 7
Views: 1558

I2C Problem

Hello all, I am trying to wire up a RTC to my raspberry pi, and so I am following the instructions at https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c . When I try to test to see the connected devices by running this command: sudo i2cdetect -y 1 or sudo i2cdetect...
by direfulfoil23
Mon Nov 28, 2016 10:29 pm
Forum: General discussion
Topic: Raspberry Pi Pip and Astral
Replies: 8
Views: 3627

Raspberry Pi Pip and Astral

Hello all, I am trying to install a Python Package called Astral on my Raspberry Pi. It says to use the pip tool pip install astral and yet when I try that, or sudo pip install astral it returns sudo: pip: command not found. Does anyone know what the problem is? I tried sudo apt-get update but that ...
by direfulfoil23
Sat Jun 25, 2016 10:22 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Re: Offline Sunrise/Sunset Database

DougieLawson wrote: What happens if the power fails?
Well I'm not really sure. I hope that with my setup it should have more than enough power to continue running for a long time at the least. If it does fail I guess I'll just have to reset it to get it working again.
by direfulfoil23
Fri Jun 24, 2016 11:30 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Re: Offline Sunrise/Sunset Database

Well, you still need some way of keeping the time, or the Pi will reset the time every time it reboots. If you have some type of communication, you can set the time by using NTP, or by asking something like a cellular modem what time it is. But an I2C RTC is only a few dollars on ebay, and pretty e...
by direfulfoil23
Fri Jun 24, 2016 3:51 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Re: Offline Sunrise/Sunset Database

Massi wrote: three opening (
two closing )
Ahh thanks for that, I suck at checking for errors in my code, that problem is fixed now! Only to be replaced by a new one, now when I run the code I get an error message saying there isn't a sunrise module, is there something I missed doing?
by direfulfoil23
Fri Jun 24, 2016 12:48 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Re: Offline Sunrise/Sunset Database

Try running it with Python2. BTW, all of these programs rely on knowing your lat/long and having a stable & accurate clock. So if you run offline you will need an RTC. But, you can pre-calculate the rise/set times ahead of time by putting the calculations in a loop and iterating through the entire ...
by direfulfoil23
Thu Jun 23, 2016 1:56 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Re: Offline Sunrise/Sunset Database

To add to the list here is a python implementation http://michelanders.blogspot.co.uk/2010/12/calulating-sunrise-and-sunset-in-python.html?_sm_au_=iVV5g106Z6qNMjZQ I'm trying this one right now, however I'm not quite sure what to do as I'm still kind of new to Python and Raspberry Pi's. I tried thi...
by direfulfoil23
Wed Jun 22, 2016 10:24 pm
Forum: General discussion
Topic: Offline Sunrise/Sunset Database
Replies: 21
Views: 4410

Offline Sunrise/Sunset Database

Hello all, I am currently doing a project with my raspberry pi that involves opening a door at sunrise every morning and closing that door at sunset every night. Due to both range limits for WiFi, and I would assume power constraints as well using WiFi, I need to have a database of when it will be s...
by direfulfoil23
Mon Jun 20, 2016 12:40 am
Forum: General discussion
Topic: Raspberry Pi Power Usage
Replies: 9
Views: 1951

Re: Raspberry Pi Power Usage

that could be accomplished easily with a pi zero which runs under 200mA without a display and usb plugged in. tho you will need a separate power supply for the actuator. Yeah but Raspberry Pi Zero's are kind of impossible to find, I could get one but it'd be part of a pack with a bunch of cables I ...
by direfulfoil23
Sun Jun 19, 2016 6:41 pm
Forum: General discussion
Topic: Raspberry Pi Power Usage
Replies: 9
Views: 1951

Re: Raspberry Pi Power Usage

Hi Direfulfoil23, I'm really interest in this thread and have a keen interest in both solar and RPi. My shed is currently in the process of solar power and it will be a complete off grid system, my question is what are you using the pi for as depending what you plug into the pi's USB ports it may u...
by direfulfoil23
Sun Jun 19, 2016 6:38 pm
Forum: General discussion
Topic: Raspberry Pi Power Usage
Replies: 9
Views: 1951

Re: Raspberry Pi Power Usage

(Big block of text is hard to read. I've broken it down into easy to read/answer bits) I've been doing some reading on the power consumption of the raspberry pi, and I'm trying to figure out if I were to hook it up to a battery what I would have to do, but it's all a bit confusing to figure out so ...
by direfulfoil23
Sun Jun 19, 2016 6:00 pm
Forum: General discussion
Topic: Raspberry Pi Power Usage
Replies: 9
Views: 1951

Raspberry Pi Power Usage

Hello all, I've been doing some reading on the power consumption of the raspberry pi, and I'm trying to figure out if I were to hook it up to a battery what I would have to do, but it's all a bit confusing to figure out so I have a few questions. I want to hook it up to a battery and that battery to...
by direfulfoil23
Fri May 27, 2016 12:36 am
Forum: General discussion
Topic: Need Advice - custom OS
Replies: 16
Views: 3789

Re: Need Advice

direfulfoil23, I want to make a touchscreen I can put on my wall or something that can access various home automation systems throughout my house, wirelessly. Maybe make it so I can also control everything from an app or webpage on my phone so I can really control it from anywhere? Right there you ...
by direfulfoil23
Thu May 26, 2016 10:01 pm
Forum: General discussion
Topic: Need Advice - custom OS
Replies: 16
Views: 3789

Re: Need Advice

direfulfoil23, ...when I think about making an operating system I was mostly thinking of the GUI I think the clue here is in "GUI". "As in Graphical User Interface". As in an interface to some program, or operating system, or whatever functionality a user can interact with graphically. As opposed t...
by direfulfoil23
Thu May 26, 2016 9:16 pm
Forum: General discussion
Topic: Need Advice - custom OS
Replies: 16
Views: 3789

Re: Need Advice

I believe Tesla uses linux, there is a blog on the web somewhere by a hacker who managed to get root on the Tesla CID. I would not be looking at home brewing an entire OS, but re-skinning one so that the user interface is completely customised is perfectly reasonable. Do you have a link to the blog...
by direfulfoil23
Thu May 26, 2016 9:10 pm
Forum: General discussion
Topic: Need Advice - custom OS
Replies: 16
Views: 3789

Re: Need Advice

When most beginners talk about "creating an OS" they actually mean a GUI , because thats the part they usually see. They could not care less about virtual memory , multitasking or the design of microkernels. @direfulfoil23 Look into learning a programming language. Then learn which GUI toolkits wor...

Go to advanced search