Go to advanced search

by rpdom
Fri Oct 19, 2018 5:49 am
Forum: Beginners
Topic: Please help noob: 8th channel on relay board not working?
Replies: 7
Views: 109

Re: Please help noob: 8th channel on relay board not working?

Wiring Pi GPIO 7 (BCM GPIO 4) is the default for the 1-wire bus driver. It's possible that the driver is enabled and interfering with your code. Either use raspi-config to disable the w1 interface, or comment out or remove the line dtoverlay=w1-gpio from /boot/config.txt [edit] Updated to clarify Wi...
by rpdom
Thu Oct 18, 2018 7:08 pm
Forum: Beginners
Topic: How to turn off Camera IR LEDs?
Replies: 3
Views: 68

Re: How to turn off Camera IR LEDs?

Those LEDs have a light sensor connected to each one, so they shouldn't turn on unless it is dark. There is no other way of controlling them without modifying the hardware.
by rpdom
Thu Oct 18, 2018 1:43 pm
Forum: Troubleshooting
Topic: Raspberry pi heating up but won’t start
Replies: 6
Views: 135

Re: Raspberry pi heating up but won’t start

ironman4575 wrote:
Thu Oct 18, 2018 12:06 pm
I can’t find any heat around the cpu but the gpu seems to be getting very warm
I'm not sure what you mean by that. The GPU and CPUs are in the same chip.
by rpdom
Thu Oct 18, 2018 6:27 am
Forum: General discussion
Topic: 64-bit operating system
Replies: 111
Views: 10899

Re: 64-bit operating system

Heater wrote:
Thu Oct 18, 2018 5:57 am
Hmmm... Count the human population. Can't do that in a teeny tiny 32 bit integer.
I was using 32 bit integers on an 8 bit machine back in the day. Ok, it may not be as fast as native 32 bit, but it wasn't that inefficient.

32 bit machines can handle integers of any size, given the right code.
by rpdom
Tue Oct 16, 2018 5:56 pm
Forum: Python
Topic: RGB control via temperature
Replies: 4
Views: 80

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: 123

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: 541

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: 442
Views: 18646

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: 308

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: 308

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: 308

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: 308

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: 137

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: 43214

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: 926

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: 926

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: 191

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: 442
Views: 18646

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: 409

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: 15
Views: 934

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: 115

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: 112

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: 290

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: 82

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: 235

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.

Go to advanced search