Go to advanced search

by rpdom
Mon Jan 21, 2019 8:00 pm
Forum: Troubleshooting
Topic: Can't connect 192.168.1.1
Replies: 6
Views: 85

Re: Can't connect 192.168.1.1

192.168.1.1 should be your routers IP address. Not necessarily. Eg a very large percentage of home routers in the UK have an IP address of 192.168.1.254. It varies. I've never seen a .254 router, mostly .1 but the subnet changes. I hate that my new Virgin modem/router has a fixed subnet (192.168.10...
by rpdom
Mon Jan 21, 2019 4:53 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 131

Re: Unclear on throttling

Close, but 80008 Hex translates to 1000 0000 0000 0000 1000 binary as you say, but that means bit 3 is 1 - I don't know what that means, and bit 19 is 1 which means "Soft Temp limit has occurred". Nothing about power throttling (if I've go that right). Bit 3 is soft temp limit currently active; I'v...
by rpdom
Mon Jan 21, 2019 4:51 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 131

Re: Unclear on throttling

dandandan wrote:
Mon Jan 21, 2019 4:46 pm
How do you get to bit 3 here?
The bits are numbered from the right hand side

Code: Select all

1111 1111 1100 0000 0000
9876 5432 1098 7654 3210
---------------------------------------
1000 0000 0000 0000 1000
by rpdom
Mon Jan 21, 2019 3:54 pm
Forum: Networking and servers
Topic: Mirroring mysql
Replies: 4
Views: 64

Re: Mirroring mysql

arvix wrote:
Mon Jan 21, 2019 1:41 pm
And as I know replication without internet connections got errors...
Usually warnings, but once connection is re-established the replication will resume and catch up.
by rpdom
Mon Jan 21, 2019 3:35 pm
Forum: General discussion
Topic: Unclear on throttling
Replies: 9
Views: 131

Re: Unclear on throttling

There's some preliminary documentation for vcgencmd here that explains what the command does https://github.com/raspberrypi/documentation/blob/JamesH65-patch-vcgencmd-vcdbg-docs/raspbian/applications/vcgencmd.md Thanks for the quick reply but I do not understand that, i think. How do i translate th...
by rpdom
Mon Jan 21, 2019 1:10 pm
Forum: Wanted
Topic: need Raspbian build w/ auto-video play & SSH enabled-- bounty offered!
Replies: 4
Views: 63

Re: need Raspbian build w/ auto-video play & SSH enabled-- bounty offered!

omxplayer doesn't require the desktop, so I'd use Raspbian Lite for that. I'd then set it up to run on startup via crontab or rc.local or systemd service with the -loop option. I could probably create an image file based on the current Stretch Lite that will do the job, including enabling ssh and so...
by rpdom
Mon Jan 21, 2019 1:02 pm
Forum: General discussion
Topic: writing on hdmi screen
Replies: 3
Views: 95

Re: writing on hdmi screen

the raspberry pi is only capable of one video output. Not strictly true. You can't use HDMI and Composite at the same time, but you can use combinations of the various interfaces. HDMI or Composite + DPI (even VGA with Gert's VGA666 board) HDMI or Composite + DSI HDMI or Composite + various i2c or ...
by rpdom
Mon Jan 21, 2019 12:54 pm
Forum: Troubleshooting
Topic: Involuntary shutdown - RBP3B+
Replies: 9
Views: 134

Re: Involuntary shutdown - RBP3B+

Might be time to attach a monitor to see what is going on. Going to be difficult otherwise. One thing you might try, log in using ssh then run `dmesg -w` and see if anything is put in the log there - it displays entries that come in in real time. Isn't vcgencmd get_throttled supposed to show someth...
by rpdom
Mon Jan 21, 2019 12:49 pm
Forum: Networking and servers
Topic: Mirroring mysql
Replies: 4
Views: 64

Re: Mirroring mysql

Is there a reason that simple replication can't work? For example, the same table in both databases gets updated independently and the changes need to be merged rather than just replicated from one system to the other. MariaDB (replaced MySQL a while back) can just about handle that. I had, until re...
by rpdom
Mon Jan 21, 2019 12:44 pm
Forum: Beginners
Topic: Cost effective project
Replies: 10
Views: 159

Re: Cost effective project

- a Raspberry PI with an ultrasonic ranger sensor where a lift is counted above a certain height If you want low cost, use a microswitch that is closed when the lift goes above a certain height. If you want a non-contact solution, a capacitance sensor would be better than ultrasonic. Ultrasonic sen...
by rpdom
Mon Jan 21, 2019 7:09 am
Forum: Troubleshooting
Topic: set wrong video mode, no display
Replies: 7
Views: 116

Re: set wrong video mode, no display

What did your partition table look like? If you have a NOOBS setup (like I suspect), you will have about 5 or 6 partitions and only the first one will be visible to all except the latest version of Windows. If you use Etcher to write a Raspbian Stretch image file to the card instead of using NOOBS, ...
by rpdom
Sun Jan 20, 2019 7:17 pm
Forum: Advanced users
Topic: PHP strtotime problem
Replies: 4
Views: 87

Re: PHP strtotime problem

I can't figure out what goes between echo" and the first </td> to get the formatted date in the table. You've pretty much answered that in your previous bit of code $date = strtotime($row['Added']); echo "Time: ".date('d/m/Y H:i:s', $date)." {$row['Temp']}. {$row['Lux']} <br>"; The output from that...
by rpdom
Sun Jan 20, 2019 3:35 pm
Forum: Advanced users
Topic: PHP strtotime problem
Replies: 4
Views: 87

Re: PHP strtotime problem

Because you're not reading the data from the query.

You've read in up to 200 results, but are not using them. Where is your while loop? Where is the mysql_fetch_assoc() function to extract the data from each result?
by rpdom
Sun Jan 20, 2019 3:21 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Is x86 Debian able to run on this Sony Vaio VPCW222AX laptop?
Replies: 3
Views: 62

Re: Is x86 Debian able to run on this Sony Vaio VPCW222AX laptop?

It will work, but might struggle a bit with only 1GB RAM for things like web browsing which is very memory and CPU intensive. Just don't open too many tabs on your browser.
by rpdom
Sun Jan 20, 2019 3:03 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 61

Re: PHP "LIMIT" problem

Actually, if you are only reading one result, the "while" loop is superfluous. Try this <?php require 'connect.php'; $query = 'SELECT * FROM readings order by ID desc limit 2'; $result = mysqli_query($db, $query) or die('Error querying database.'); $row = mysqli_fetch_assoc($result); echo"{$row['Add...
by rpdom
Sun Jan 20, 2019 2:59 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 61

Re: PHP "LIMIT" problem

I see your problem. $row = mysqli_fetch_assoc($result); while ($row = mysqli_fetch_assoc($result)) The first line there is reading the first result and then doing nothing with it. The "while" loop is then reading from the second result onwards and processing those. Remove the first line and you shou...
by rpdom
Sun Jan 20, 2019 2:40 pm
Forum: Advanced users
Topic: PHP "LIMIT" problem
Replies: 5
Views: 61

Re: PHP "LIMIT" problem

Perhaps show us a bit more of your PHP code?

I can assure you that that query will work under PHP. I do similar queries all the time.

Maybe it is the way you are reading the results of the query.
by rpdom
Sun Jan 20, 2019 11:36 am
Forum: Beginners
Topic: Relay swap
Replies: 9
Views: 203

Re: Relay swap

Yes I was going to use them to drive a 12v dc load as the led strips are going to be outside. I thought the pi sends an on off signal to turn the relay on off as per the coding The Pi will provide a High (3.3V) signal to turn the relay on and Low (0V) signal to turn the relay off. SSDs will turn on...
by rpdom
Sat Jan 19, 2019 6:00 pm
Forum: Troubleshooting
Topic: ribbon connections
Replies: 8
Views: 168

Re: ribbon connections

grnd4sat wrote:
Sat Jan 19, 2019 5:39 pm
The point is that if I power, say, plug #1, I get those 8V on pins #5 and #13 of the cobbler.
The Cobbler board will connect all of the GND pins together, both of the 5V pins together and both 3.3V pins together.

Try checking the cable without the Cobbler connected.
by rpdom
Sat Jan 19, 2019 5:49 pm
Forum: General discussion
Topic: computer power supply
Replies: 24
Views: 662

Re: computer power supply

You'd probably be surprised to know that most of the power supplies I've seen only supply about 3 to 5 amps on the 5v line I would be surprised given that the weedy, more than 10 year old one that I'm looking at as I type this is labelled: +5v 15A +12v 3A -12v 0.5A +3.3v 12A +5vSB 1.5A Yeah second ...
by rpdom
Sat Jan 19, 2019 5:38 pm
Forum: Troubleshooting
Topic: Making a RasPi doorbell
Replies: 2
Views: 75

Re: Making a RasPi doorbell

Your code would be more readable if you used the Code button to show it correctly formatted like this import RPi.GPIO as GPIO import datetime import time import requests import pygame pygame.mixer.init() pygame.mixer.music.load("doorbell-1.mp3") GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.IN) while ...
by rpdom
Sat Jan 19, 2019 8:25 am
Forum: Beginners
Topic: control two relays with one GPIO pin
Replies: 9
Views: 167

Re: control two relays with one GPIO pin

should I even try without transistor? or is there any other solution that you guys can think of??? Those relay modules are for Arduinos which have 5 volt outputs. The Pi has 3.3 volt outputs, so will probably have trouble driving them directly. See if you can find relays that are designed to be tri...
by rpdom
Sat Jan 19, 2019 8:19 am
Forum: Camera board
Topic: Schematic for camera v2 flex PCB
Replies: 4
Views: 164

Re: Schematic for camera v2 flex PCB

IIRC, the v2 camera includes a custom crypto-chip that the Pi uses to ensure it is a genuine product, not a copy. It won't work on a Pi without that chip. Ah, I see you are going to re-use the main camera board and it is just the sensor sub-board you want to change. That may work. I'm not aware of a...
by rpdom
Fri Jan 18, 2019 8:19 pm
Forum: General discussion
Topic: DS18B20 One Wire sensors slow to show up/go away from directory?
Replies: 6
Views: 136

Re: DS18B20 One Wire sensors slow to show up/go away from directory?

This question has been asked before on the forum but I cant find the thread at the moment , but if I remember correctly I tried searching too, but also couldn't find it. There is also no way to force the pi to detect or forget the DS18B20's connected to the 1-wire bus. Possibly unloading and reload...
by rpdom
Fri Jan 18, 2019 7:39 pm
Forum: General discussion
Topic: DS18B20 One Wire sensors slow to show up/go away from directory?
Replies: 6
Views: 136

Re: DS18B20 One Wire sensors slow to show up/go away from directory?

I believe the standard driver polls the bus for devices every 20 seconds (it might be more).

How long does it take after you unplug a sensor before it is no longer shown as present?

Go to advanced search