Go to advanced search

by rpdom
Tue Oct 16, 2018 5:56 pm
Forum: Python
Topic: RGB control via temperature
Replies: 4
Views: 74

Re: RGB control via temperature

Doesn't GPIO.cleanup() reset the GPIO pins to their default state and function? In which case it would turn the LEDs off as soon as it has turned them on.

I may be wrong, I'm too far from my Pis to test it right now.
by rpdom
Tue Oct 16, 2018 4:33 am
Forum: Beginners
Topic: Space problem trying to install with apt-get
Replies: 2
Views: 108

Re: Space problem trying to install with apt-get

You can safely clear out the old files from that area with the following command

Code: Select all

sudo apt-get clean
by rpdom
Mon Oct 15, 2018 5:04 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Raspian alternative to run on Windows laptop
Replies: 14
Views: 521

Re: Raspian alternative to run on Windows laptop

Debian GNU/Linux is the underlying OS for Raspbian too. Raspberry Pi Desktop & Raspbian are both based on the same underlying system, the main difference is that Raspbian is compiled for the Pi's ARM architecture. More specifically, it is compiled for the Pi 1's (and Zero) ARM architecture. Debian ...
by rpdom
Mon Oct 15, 2018 5:22 am
Forum: Automation, sensing and robotics
Topic: Relay Module KY-019 5V
Replies: 429
Views: 18069

Re: Relay Module KY-019 5V

I am using the amazing Amazon's waterproof electric shaver that works under a shower. But I always worry one day the shaver leaks AC 220V electricity and the shock shaves all the hair on my head in a split second! :mrgreen: I don't know about where you are, but here in the UK there are very strict ...
by rpdom
Sun Oct 14, 2018 3:07 pm
Forum: General discussion
Topic: Nginx hosting problems.
Replies: 17
Views: 295

Re: Nginx hosting problems.

DougieLawson wrote:
Sun Oct 14, 2018 3:04 pm
You've got an error in your config
Which shouldn't happen if this was a clean install of nginx. It sounds like some files have been created before installing the software, which is not the correct way to do it.
by rpdom
Sun Oct 14, 2018 2:19 pm
Forum: General discussion
Topic: Nginx hosting problems.
Replies: 17
Views: 295

Re: Nginx hosting problems.

Code: Select all

Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
Ok, as it suggests, see if these commands give any more clues

Code: Select all

sudo systemctl status nginx.service
sudo journalctl -xn
by rpdom
Sun Oct 14, 2018 12:25 pm
Forum: General discussion
Topic: Nginx hosting problems.
Replies: 17
Views: 295

Re: Nginx hosting problems.

I'm assuming that the '1' was the one in '1p;/:80/p' Correct. The result you got says that no web servers are running on your Pi. It looks to me like the installation of nginx failed. The "dependency problems" message implies there is another package involved. Can you please show us the full output...
by rpdom
Sun Oct 14, 2018 11:50 am
Forum: General discussion
Topic: Nginx hosting problems.
Replies: 17
Views: 295

Re: Nginx hosting problems.

The first character in the sed expression is a number "1", did you perhaps type a lower case "L" instead? [email protected]:~ $ sudo netstat -ntlp | sed -n '1p;/:80/p' Active Internet connections (only servers) tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 674/nginx: master p tcp6 0 0 :::80 :::* LISTEN 674/nginx: ...
by rpdom
Sun Oct 14, 2018 10:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO as Vdd for DS18B20
Replies: 2
Views: 122

Re: GPIO as Vdd for DS18B20

You can use the same 3.3V power pin for all your sensors. Don't use the GPIO pins, they are not designed to supply power like that (although they would probably be ok with a few DS18B20s). I have multiple DS18B20s running from a single Pi using just the three pins (Pin 1, pin 7 and pin 6) and one re...
by rpdom
Sat Oct 13, 2018 6:37 pm
Forum: Gaming
Topic: Jedi Knight?
Replies: 113
Views: 43099

Re: Jedi Knight?

d_a_v_e wrote:
Sat Oct 13, 2018 2:10 am
So do these files still exist or have they been pulled from the internet?
Download fails for me. Could be a server is down, or maybe they have gone. Posting just to let you know that it's not just you.
by rpdom
Sat Oct 13, 2018 6:26 pm
Forum: General discussion
Topic: New version of Raspbian
Replies: 15
Views: 893

Re: New version of Raspbian

I only offered that as a theoretical possibility, not something that will happen. However, there does remain the question about the old images in the archives. They still have Wolfram installed. I can imagine that trying to rebuild those old images would be a right pain, although not impossible. How...
by rpdom
Sat Oct 13, 2018 11:27 am
Forum: General discussion
Topic: New version of Raspbian
Replies: 15
Views: 893

Re: New version of Raspbian

I had wondered about upgrading and losing Mathematica/Wolfram but, unless something has changed, an apt-get upgrade should not remove anything if I am correct. Correct. dist-upgrade could remove packages if another package says it clashes with, or replaces, an existing package. I suppose if an empt...
by rpdom
Fri Oct 12, 2018 3:34 pm
Forum: Networking and servers
Topic: https access
Replies: 5
Views: 158

Re: https access

I have Installed the apache2 server. I am using as a local server. In that, I should provide https access. can you please help me. If you are just going to use LAN for https access then this will not work, you cannot issue a Let's encrypt free SSL if for LAN use. You can. I do. It's a bit fiddly an...
by rpdom
Fri Oct 12, 2018 7:25 am
Forum: Automation, sensing and robotics
Topic: Relay Module KY-019 5V
Replies: 429
Views: 18069

Re: Relay Module KY-019 5V

If it doesn't have a ground wire, then it shouldn't need one. Putting a ground wire in your tank would be more likely to kill the fish if there was a leak as the electricity would flow through the water from the pump to the ground.
by rpdom
Thu Oct 11, 2018 4:47 am
Forum: Bare metal, Assembly language
Topic: Accessing GPIO Pins via Bare Metal
Replies: 5
Views: 375

Re: Accessing GPIO Pins via Bare Metal

I went through the bcm2387 peripherals guide which sadly borrows alot of its content from its predecessor the bcm2385. Why "sadly"? The GPIO hardware on the two chips is pretty much identical. The main differences were the CPU cores used and the bootrom update. please explain the correlation betwee...
by rpdom
Wed Oct 10, 2018 6:37 pm
Forum: C/C++
Topic: Codeblocks Crashes
Replies: 12
Views: 820

Re: Codeblocks Crashes

I cleared (removed) both v16.01 ans 17.2 and then attempted an install of 17.2... But still got v16.01! The command I used was: "sudo apt-get install codeblocks 17.2" With a space? That will try installing "codeblocks" (current version) and something called "17.2" which won't be found. Later I will...
by rpdom
Wed Oct 10, 2018 5:52 pm
Forum: Beginners
Topic: NOOBS and SD Card concept
Replies: 4
Views: 108

Re: NOOBS and SD Card concept

1. You'll need a card for each Pi 2. The card provide all the storage space for the Pi. The Pi only has RAM memory which is cleared at boot and when powered off. 3. All Pis have a tiny amount of OTP (One Time Programmable) locations which are used to store things like the model, serial number and a ...
by rpdom
Tue Oct 09, 2018 6:55 pm
Forum: Beginners
Topic: Understanding how to connect an LED Strip to Raspberry PI 3
Replies: 3
Views: 107

Re: Understanding how to connect an LED Strip to Raspberry PI 3

Ideally you'd use a separate power supply for the strip. Connect 0V/Ground (white wire) from the strip to a ground pin on the Pi and the Ground or 0V output of the power supply. Connect 5V (red wire) from the strip to the 5V output of the power supply. Connect the Data (green wire) from the strip to...
by rpdom
Tue Oct 09, 2018 6:12 pm
Forum: Code Club
Topic: How do you set up Scratch accounts in your club?
Replies: 6
Views: 258

Re: How do you set up Scratch accounts in your club?

jreast wrote:
Tue Oct 09, 2018 8:39 am
DeadlyMuffin
My wife has a pet called PsychoMuffin, that's close :-)
by rpdom
Tue Oct 09, 2018 4:50 am
Forum: Troubleshooting
Topic: file system was restored after reboot
Replies: 2
Views: 77

Re: file system was restored after reboot

Replace your SD card. It has reached the end of its life. When the card detects that it is wearing out it locks into a read-only mode to protect the existing data. Although it will accepts writes, they are not actually written, but will be cached so appear to have been successful. When the system is...
by rpdom
Mon Oct 08, 2018 7:13 pm
Forum: C/C++
Topic: C++ TCP (PC & RPi)
Replies: 4
Views: 214

Re: C++ TCP (PC & RPi)

There is nothing Pi specific in what you want to do, so just search the internet for Linux Socket C++ and you should be able to find something that will do what you want.
by rpdom
Mon Oct 08, 2018 6:57 pm
Forum: Code Club
Topic: How do you set up Scratch accounts in your club?
Replies: 6
Views: 258

Re: How do you set up Scratch accounts in your club?

Currently we recommend the parents set up a scratch account for their child and make sure they have the details memorised or accessible when the child attends the club. That way the child can continue at home even after leaving the Code Club.
by rpdom
Mon Oct 08, 2018 6:32 pm
Forum: Bare metal, Assembly language
Topic: Help With Simple Hello World Program in Bare Metal ASM
Replies: 4
Views: 221

Re: Help With Simple Hello World Program in Bare Metal ASM

LdB wrote:
Mon Oct 08, 2018 3:37 pm
The video is for a different model the Pi1 you would need to adjust the peripheral address 0x20000000 vs 0x3F000000.
The Pi Zero uses the same SoC as the Pi1, so the address should be the same.
by rpdom
Mon Oct 08, 2018 10:20 am
Forum: Beginners
Topic: Stereo Audio out of the 3.5mm Jack
Replies: 1
Views: 69

Re: Stereo Audio out of the 3.5mm Jack

A standard stereo 3.5mm jack will only connect to the audio connections in the Pi's jack socket. The video connection will be shorted to ground (which it is designed to handle). You shouldn't need to make any changes.
by rpdom
Fri Oct 05, 2018 7:07 pm
Forum: Other projects
Topic: Portable NFC reader with WIFI
Replies: 3
Views: 124

Re: Portable NFC reader with WIFI

Cheap Android smartphone with NFC support sounds more applicable. That's what I did for an RFID application I wanted to write. I started testing on a Pi with an expensive RFID reader that I borrowed, but when that got to complicated I decided to try and write my first Android App for my Samsung Gal...

Go to advanced search