Go to advanced search

by neilgl
Sat Oct 23, 2021 1:56 pm
Forum: General discussion
Topic: Open lights and images
Replies: 1
Views: 86

Re: Open lights and images

Are you using official Raspberry Pi OS or something else?
by neilgl
Sat Oct 23, 2021 1:46 pm
Forum: Automation, sensing and robotics
Topic: Multi zone thermostat
Replies: 3
Views: 79

Re: Multi zone thermostat

Use several DS18B20 temperature sensors with the “1-wire” interface to the pi. You can have several connected to the same set of three wires. E.g I have three on a 5m long cable. I have 12 in total. “Smart outlet” : you can get some that use RF rather than WiFi. Other sensors - you can add more to t...
by neilgl
Sat Oct 23, 2021 1:36 pm
Forum: Beginners
Topic: No Desktop with pi zero WH on Windows 10
Replies: 1
Views: 47

Re: No Desktop with pi zero WH on Windows 10

Enable VNC on the pi using raspi-config and set the display resolution using raspi-config. Install VNC viewer on you Windows PC, then use that to connect to the pi via its IP address so you get the desktop of the pi.
by neilgl
Sat Oct 23, 2021 10:36 am
Forum: Beginners
Topic: installing a command
Replies: 7
Views: 193

Re: installing a command

That link gives me a page not found error.
by neilgl
Fri Oct 22, 2021 11:07 pm
Forum: Beginners
Topic: Setting up IR remote issues
Replies: 4
Views: 138

Re: Setting up IR remote issues

It might be that the newer kernels (Buster) support and use some new kernel drivers, ir-keytable & ir-ctl, rather than lirc
by neilgl
Fri Oct 22, 2021 2:07 pm
Forum: Troubleshooting
Topic: Micro SD Card Becomes Unusable
Replies: 2
Views: 108

Re: Micro SD Card Becomes Unusable

It is not normal. I would return the faulty cards to the Amazon vendor of the “kits”.
by neilgl
Fri Oct 22, 2021 2:04 pm
Forum: Java
Topic: Convert .jar to .exe
Replies: 2
Views: 131

Re: Convert .jar to .exe

What version of Java is your jar file?
Also pi does not usually have .exe files for executables, that is a Windows/DOS thing?
by neilgl
Fri Oct 22, 2021 12:10 pm
Forum: Troubleshooting
Topic: Reversing a Routed Wireless Access Point
Replies: 5
Views: 166

Re: Reversing a Routed Wireless Access Point

I would just use two microSD cards, one as AP, one not.
by neilgl
Fri Oct 22, 2021 12:05 pm
Forum: General discussion
Topic: How to make a vibrating bracelet using raspberry pi?
Replies: 11
Views: 337

Re: How to make a vibrating bracelet using raspberry pi?

How about pizeroW and battery pack on a pouch attached to your belt, then run wires to the vibrating bracelet?
by neilgl
Fri Oct 22, 2021 12:02 pm
Forum: General discussion
Topic: Raspberry P 4 with Windows XP emulation
Replies: 7
Views: 310

Re: Raspberry P 4 with Windows XP emulation

How about using wireshark to “sniff” the USB port on the XP system, run all commands etc. then replicate that in a program on the pi.? Then no XP needed or qemu
by neilgl
Fri Oct 22, 2021 9:54 am
Forum: Python
Topic: Problem running gui.py with autostart
Replies: 2
Views: 124

Re: Problem running gui.py with autostart

Can you post gui.py so we can look at it and it’s startup?
by neilgl
Fri Oct 22, 2021 9:53 am
Forum: Troubleshooting
Topic: RPI4B WIFI Dies When Running As An Access Poiunt
Replies: 4
Views: 146

Re: RPI4B WIFI Dies When Running As An Access Poiunt

Yes, the official documentation is the best way to get a working access point.
by neilgl
Fri Oct 22, 2021 12:18 am
Forum: General discussion
Topic: Connecting 2 Pi's to Control One Pi from Another
Replies: 5
Views: 194

Re: Connecting 2 Pi's to Control One Pi from Another

What frequency are you thinking of transmitting on - there are usually restrictions in many countries.
by neilgl
Thu Oct 21, 2021 4:47 pm
Forum: General discussion
Topic: How to make a vibrating bracelet using raspberry pi?
Replies: 11
Views: 337

Re: How to make a vibrating bracelet using raspberry pi?

Maybe have a motor with an offset weight on it, that spins under control of the pi (fast, slow, pulses etc.) like they have in PlayStation controllers. The pi could receive commands over WiFi and control the vibrations accordingly.
by neilgl
Thu Oct 21, 2021 4:36 pm
Forum: General discussion
Topic: Raspberry P 4 with Windows XP emulation
Replies: 7
Views: 310

Re: Raspberry P 4 with Windows XP emulation

Have you got any information on the alarm system USB protocol/commands? That could allow you to simply use a raspberry pi with it - no XP needed.
by neilgl
Thu Oct 21, 2021 12:24 pm
Forum: Python
Topic: Get SSID name and save on variable
Replies: 2
Views: 152

Re: Get SSID name and save on variable

This works for me using python3

Code: Select all

import os
response = os.popen('iwgetid').readline()
s=response.split(":")[1]        # get ssid part of text
s=s.replace('"','')             # remove quotes "
s=s.strip()                     # remove line feed
print (s)
by neilgl
Mon Oct 18, 2021 9:04 am
Forum: Beginners
Topic: Send Image/Video to PC with Sockets
Replies: 3
Views: 155

Re: Send Image/Video to PC with Sockets

Not sure why you could not get it to run at boot when I had it running at boot in that other thread.
I edited autostart sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
by neilgl
Sun Oct 17, 2021 4:39 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

I have an I2C oled display (ssd1306). This example script (from luma.oled github) python3 hello.py gave the "Hello World". Maybe you could change it to use SPI. ? hello.py: from luma.core.interface.serial import i2c, spi, pcf8574 from luma.core.interface.parallel import bitbang_6800 from l...
by neilgl
Sat Oct 16, 2021 4:32 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

Looks like it is how the demo scripts and libraries work. In demo_opts.py he reads the command line arguments using actual_args = sys.argv[1:] which gets a list of strings representing the arguments (as separated by spaces) on the command-line. You could write your own script Hello_World.py with fix...
by neilgl
Sat Oct 16, 2021 4:08 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

On his github https://github.com/rm-hull/luma.examples it has usage: demo.py [-h] [--config CONFIG] ….. so it might be python3 demo.py —config myconfig.txt In myconfig.txt we would put our parameters, probably like --display=capture --width=800 --height=8600 --interface=spi --spi-bus-speed=16000000 ...
by neilgl
Sat Oct 16, 2021 2:24 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

Ah, look at his github, as we said earlier, “you can put the command line arguments into a config file to save typing each time”
by neilgl
Sat Oct 16, 2021 10:51 am
Forum: Beginners
Topic: My RPi closes all my terminal after some time
Replies: 12
Views: 440

Re: My RPi closes all my terminal after some time

I thought we were going to direct output from the python script temperature.py to a file (with extra logging) not to /dev/null
by neilgl
Sat Oct 16, 2021 10:47 am
Forum: Automation, sensing and robotics
Topic: Some questions about automating plugs based on sensor data?
Replies: 6
Views: 371

Re: Some questions about automating plugs based on sensor data?

The fans are usually powered by an external power supply not the pi. The pi controls the fan using GPIO and a transistor to switch the fan on/off (or PWM). Search the forum for a fan control diagram from pcmanbob. To productionise stuff, I put several devices (pi or esp8266) around the house near to...
by neilgl
Fri Oct 15, 2021 10:33 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

I think they have (confusingly) for versatility coded their examples to take many command line parameters and given the option to have those in a “config file”. For “hello world” example I would have set the parameters in the python script, e.g. interface = “spi” rather then read it from arguments o...
by neilgl
Fri Oct 15, 2021 7:03 pm
Forum: Python
Topic: How to Print “Hello World” to This SPI OLED?
Replies: 25
Views: 815

Re: How to Print “Hello World” to This SPI OLED?

That looks like a massive improvement as it says

Code: Select all

Interface: spi
so you are on the right track.
Reboot the pi and run it again so we don’t get GPIO in use errors.
Also, earlier we had “…the one with the bouncing balls work”, what command was used ?

Go to advanced search