Go to advanced search

by jbudd
Mon Nov 29, 2021 8:34 pm
Forum: General discussion
Topic: Raspberry PI 3B power supply
Replies: 34
Views: 895

Re: Raspberry PI power supply

The fact that ebay.co.uk has a lot of power banks with apparently identical photos to that one but 6000mAh capacity and 6V output would make me suspicious of the declared specifications for all of them.
by jbudd
Sun Nov 28, 2021 4:34 pm
Forum: Troubleshooting
Topic: Problems getting SSD to behave
Replies: 21
Views: 745

Re: Problems getting SSD to behave

Is the official 3A PSU the best way to go? Probably. Not least because the first suggestion for people reporting power related problems is "Get the official power supply" There are generic Chinese PSU's on Amazon that are rated as more powerful at 3.5A, and supposedly made for the Raspber...
by jbudd
Sat Nov 27, 2021 10:49 pm
Forum: General discussion
Topic: sendig and receiving data from a local web site
Replies: 6
Views: 196

Re: sendig and receiving data from a local web site

You can use Node-Red dashboard for a web page with buttons, switches, sensors and logic to control lights and pumps.
It has it's own mini web server.
by jbudd
Thu Nov 25, 2021 2:09 pm
Forum: General discussion
Topic: Permanent Connection to these right-angle pins
Replies: 10
Views: 403

Re: Permanent Connection to these right-angle pins

Tool and 26 AWG wire are still available from China.
Don't know if they sell more to Raspberry Pi tinkerers or Cray supercomputer engineers!
https://www.digibarn.com/collections/sy ... C08196.JPG
by jbudd
Thu Nov 25, 2021 12:12 pm
Forum: Beginners
Topic: Powering 4B (8GB) over USD via PC or phone charger?
Replies: 6
Views: 133

Re: Powering 4B (8GB) over USD via PC or phone charger?

Some phone chargers are capable of supplying more than 5V for devices that signal they can accept it. Hopefully the circuitry that controls that is reliable because more than 5V will destroy your Pi. Some PC USB sockets are only capable of supplying 5V 0.5A. That is nowhere near enough to power a Pi...
by jbudd
Thu Nov 25, 2021 11:05 am
Forum: General discussion
Topic: Permanent Connection to these right-angle pins
Replies: 10
Views: 403

Re: Permanent Connection to these right-angle pins

For semi permanent connections to GPIO pins I recommend the lost art of wire wrapping. untitled1.jpg My first attempt: L to R Pretty good, pressed too hard, stopped turning too soon wire_wrapper.jpg Wirewrap tool. One end wraps, the other unwraps. Nice article at https://rk.edu.pl/en/wire-wrapping-t...
by jbudd
Thu Nov 25, 2021 10:42 am
Forum: General discussion
Topic: What is the size of the included sd card?
Replies: 10
Views: 554

Re: What is the size of the included sd card?

You can run RPiOS Lite on a 4GB SD card but there won't be much space left for your files. A good choice with plenty of space for the desktop version is 32 or 64GB. Sandisk Ultra £8.55/£10.35 at Amazon. It's always good to have a spare card so you can try different operating systems and experiments ...
by jbudd
Mon Nov 22, 2021 11:37 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3740

Re: Linux vs Windows

Some of those are HW, one is neither HW or SW. One is Eben!
Isn't Dr Upton allowed to do programming then?
It would be ironic if the success of his project to get more people programming means he no longer has time for tinkering! :D
by jbudd
Sun Nov 21, 2021 4:20 pm
Forum: Beginners
Topic: copy a directory from pi to windows computer
Replies: 3
Views: 153

Re: copy a directory from pi to windows computer

scp -r pi@192.168.0.75:/home/pi/thermostat . So that's -r for recursive, a colon between IP and filename and finally the name of the directory without /* or indeed *.* Thanks for causing me to look up scp, I've been copying files around with ftp, this looks nice and simple. I wonder what it does to ...
by jbudd
Sun Nov 21, 2021 12:09 pm
Forum: General discussion
Topic: Solved: USB connection between Pi Zero 2 host and Pi Zero gadget mode
Replies: 3
Views: 240

Re: USB connection between Pi Zero 2 host and Pi Zero gadget mode

It's very good of you to test and document this Thagrol. In short, I got it to work following the steps above with some differences because of the available cables. So here's what I did: Burned two SD cards with RPiOS Bullseye, gave them different hostnames, sudo apt update && sudo apt full-...
by jbudd
Fri Nov 19, 2021 9:18 pm
Forum: Beginners
Topic: STICKY: USB Ethernet Gadget A Beginner's Guide
Replies: 46
Views: 9122

Re: STICKY: USB Ethernet Gadget A Beginner's Guide

I put dtoverlay=dwc2,dr_mode=host at the bottom of /boot/config.txt, below a line [all]

It made no difference.
Unsuccessfully tried mode=otg too.

Edit - I also tried dynamically loading the overlay with sudo dtoverlay -v dwc2 dr_mode=host. No warnings or errors, no progress either.
by jbudd
Fri Nov 19, 2021 6:02 pm
Forum: General discussion
Topic: Solved: USB connection between Pi Zero 2 host and Pi Zero gadget mode
Replies: 3
Views: 240

Solved: USB connection between Pi Zero 2 host and Pi Zero gadget mode

Following Thagrol's sticky on USB gadget mode, I can connect over USB from a Pi 3B to a Zero W but I can't get it to work with a Zero 2 instead of the 3B. Possibly it's the cable since I had to buy a micro usb to micro usb cable specifically for this, but I have tried with a normal cable and a selec...
by jbudd
Fri Nov 19, 2021 5:52 pm
Forum: Beginners
Topic: STICKY: USB Ethernet Gadget A Beginner's Guide
Replies: 46
Views: 9122

Re: STICKY: USB Ethernet Gadget A Beginner's Guide

A progress report: It works between a Pi 3B and a Pi Zero. I can ping and ssh using the usb interface. On the Pi Zero, /boot/config.txt has dtoverlay=dwc2,dr-mode=peripheral /boot/cmdline.txt has modules-load=dwc2,g_ether g_ether.dev_addr=12:22:33:44:55:66 g_ether.host_addr=16:22:33:44:55:66 /etc/dh...
by jbudd
Thu Nov 18, 2021 12:31 pm
Forum: Beginners
Topic: Proxy to block inappropriate pages
Replies: 7
Views: 199

Re: Proxy to block inappropriate pages

Those all depend on using a particular DNS server with a blacklist of inappropriate sites. You set your router to direct DNS queries to the chosen server. If someone on your network tries to visit a site on the blacklist they get a "site not found" notice. But a savvy internet user can pro...
by jbudd
Wed Nov 17, 2021 1:43 pm
Forum: Beginners
Topic: STICKY: USB Ethernet Gadget A Beginner's Guide
Replies: 46
Views: 9122

Re: STICKY: USB Ethernet Gadget A Beginner's Guide

Thanks for your advice Thagrol.

I have ordered a micro usb to micro usb cable, which might avoid any problems introduced by the OTG adapter.
Until that comes I shall try connecing from a Pi 3B with the cable that works from my PC.

Will go through your suggestions and report back...
by jbudd
Wed Nov 17, 2021 12:47 am
Forum: Beginners
Topic: STICKY: USB Ethernet Gadget A Beginner's Guide
Replies: 46
Views: 9122

Re: STICKY: USB Ethernet Gadget A Beginner's Guide

I have followed the guide steps to setup gadget mode on a Pi Zero W (wifi is not connected) and it works: I can connect from my PC with ssh pi@raspberrypi.local. But what I want to do is to connect from a Pi Zero 2 W (It's wifi is connected and I ssh in to it from my PC over wifi). Both Pies are run...
by jbudd
Tue Nov 16, 2021 5:24 pm
Forum: General discussion
Topic: Two Raspberry Pies close together - wifi interference
Replies: 4
Views: 153

Re: Two Raspberry Pies close together - wifi interference

That's a good thought, thanks!
by jbudd
Tue Nov 16, 2021 5:13 pm
Forum: General discussion
Topic: Two Raspberry Pies close together - wifi interference
Replies: 4
Views: 153

Re: Two Raspberry Pies close together - wifi interference

Actually they have to be a maximum of about 1cm apart and at 45degrees, not 90.
Each one is lighting up one of two 4 pointed paper stars set at 45 degrees to look like an 8 pointed star - like this
Untitled 2.jpg
Untitled 2.jpg (22.37 KiB) Viewed 127 times
It's to attract any passing reindeer in the next few weeks :P
by jbudd
Tue Nov 16, 2021 4:46 pm
Forum: General discussion
Topic: Two Raspberry Pies close together - wifi interference
Replies: 4
Views: 153

Two Raspberry Pies close together - wifi interference

I have a Pi Zero W and a Zero 2 W very close, back to back at 90 degrees. Each one is using a Pimoroni Blinkt for synchronised LED effects. Unfortunately they lose wifi connection when they are very close, presumably due to interference, and they need to communicate. Would an earthed metal sheet bet...
by jbudd
Sat Nov 13, 2021 1:01 pm
Forum: Beginners
Topic: What to do with LCD monitor without case?
Replies: 3
Views: 138

Re: What to do with LCD monitor without case?

An alternative approach fo those of us without a 3d printer is to hack a cheap picture frame.

This one maybe? https://www.ikea.com/gb/en/p/ribba-fram ... -10378445/
by jbudd
Sat Nov 13, 2021 12:07 pm
Forum: Troubleshooting
Topic: Program stops and doesn't run again until login
Replies: 26
Views: 591

Re: Program stops and doesn't run again until login

The best way to start a program at boot is systemd.

It seems rather over the top to set your pi to automatically login to the GUI just so a non interactive program can run in the background
by jbudd
Sat Nov 13, 2021 9:06 am
Forum: Troubleshooting
Topic: Program stops and doesn't run again until login
Replies: 26
Views: 591

Re: Program stops and doesn't run again until login

When you run it from the command line it runs as your login ID. Your Cron line has sudo (which is bad form anyway since root has its own crontab), so it runs as root. I vaguely recall something about installing libraries for everyone vs just one user, whether you use sudo or not to install? Try sudo...
by jbudd
Fri Nov 12, 2021 4:16 pm
Forum: Troubleshooting
Topic: SSH stops working after Password change
Replies: 4
Views: 120

Re: SSH stops working after Password change

I think sudo passwd changes (or sets) the password for root.
To change the password for pi you should run passwd or sudo passwd pi
by jbudd
Fri Nov 12, 2021 2:46 pm
Forum: General discussion
Topic: How Long Will Buster Be Supported?
Replies: 29
Views: 1246

Re: How Long Will Buster Be Supported?

The Pi that I occasionally use as a substitute for my WIndows laptop is no problem to migrate to Bullseye. Backup my documents etc and burn a new OS. But other Pies are much more difficult. I install packages and libraries, uninstall some of them, create systemd services, Node-red flows and various ...
by jbudd
Fri Nov 12, 2021 2:18 pm
Forum: Troubleshooting
Topic: Program stops and doesn't run again until login
Replies: 26
Views: 591

Re: Program stops and doesn't run again until login

Is it possible that when you run it from cron
@reboot python /home/pi/templogger.py
It runs python3 - specified by the hashbang line
While python that you run from the command line - specified by /usr/bin/env - is python2 ?

The library may not be installed in both versions.

Go to advanced search