Go to advanced search

by MacsandaPi
Fri Jan 29, 2021 3:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Does I2C Limit GPIO Use?
Replies: 5
Views: 277

Does I2C Limit GPIO Use?

I'm using a sensor on my Pi Zero W to measure temperature, pressure and humidity. Installation of the sensor required enabling the I2C interface and connecting to GPIO pins 1, 3, 5, 7 and 9 (the bottom left row). I've now connected a breadboard with LEDs to other GPIO pins to turn the LEDs on-off us...
by MacsandaPi
Sat Oct 24, 2020 3:32 pm
Forum: General discussion
Topic: Clock speed changes after kernel upgrade
Replies: 6
Views: 470

Re: Clock speed changes after kernel upgrade

Is it still preset at 950MHz (it's not a normal preset).
Yes.

Code: Select all

 vcgencmd measure_clock arm
frequency(48)=950000000
Is it running fine at 1GHz?

Yes, I've not noticed any other problem. Seems odd, though, that the clock speed now exceeds the value it's set for.
by MacsandaPi
Fri Oct 23, 2020 10:21 pm
Forum: General discussion
Topic: Clock speed changes after kernel upgrade
Replies: 6
Views: 470

Clock speed changes after kernel upgrade

My Rpi 1B+ was using the overclock pre-set of 950MHz, but after installing the latest kernel (5.4.72+ #1356), the clock speed is now 1000MHz. Is this a bug?
by MacsandaPi
Thu Aug 06, 2020 4:24 pm
Forum: Beginners
Topic: TRIM question
Replies: 9
Views: 511

Re: TRIM question

Hoping someone can advise if TRIM can be enabled on the RPi 1B+ with the above SSD and adapter cable. The posts I've seen refer to newer Pi 4. Thanks.
by MacsandaPi
Sun Aug 02, 2020 5:06 pm
Forum: Beginners
Topic: TRIM question
Replies: 9
Views: 511

TRIM question

I have a 1B+ Pi with a Silicon-Power 2.5" SSD attached with a Eluteng adapter cable. I use the bootcode.bin method to boot to the SSD. The Pi is used headless, running a BOINC project. Is TRIM recommended or not needed with this setup? If recommended, how to enable? ~ $ lsusb Bus 001 Device 004...
by MacsandaPi
Sun Jul 26, 2020 1:45 am
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

Re: ZeroSeg 7-segment display not working after kernel 5.4.51 install

rm-hull ( https://github.com/rm-hull/luma.led_matrix/issues/225 ) said: The problem is actually occurring in a library called spidev. The exact problem looks to be some low level issue with C interfacing that Spidev does with the kernel. What version of spidev do you have installed. Try: pip3 list |...
by MacsandaPi
Wed Jul 22, 2020 1:30 am
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

Re: ZeroSeg 7-segment display not working after kernel 5.4.51 install

Thank you for your continuing assistance. I tried the force-reinstall commands you suggested and rebooted, but the output gives the same system error I've been getting. I looked at the luma.led_matrix github site today and see that two issues relating to this problem have been posted (one by you); b...
by MacsandaPi
Tue Jul 21, 2020 9:42 pm
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

Re: ZeroSeg 7-segment display not working after kernel 5.4.51 install

I ran rpi-update and rebooted. Unfortunately, my time/date code returns the same error as reported above. FWIW, the ZeroSeg code library (Python2) runs with no errors.
by MacsandaPi
Tue Jul 21, 2020 3:32 pm
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

Re: ZeroSeg 7-segment display not working after kernel 5.4.51 install

According to page 30 of the ZeroSeg User Guide https://cdn.shopify.com/s/files/1/0176/ ... de_1.2.pdf, CS uses Pin 24/GPIO8. I don't know how to move that to pin#26/GPIO7.
by MacsandaPi
Tue Jul 21, 2020 2:22 am
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

Re: ZeroSeg 7-segment display not working after kernel 5.4.51 install

Thanks for your reply. I've reinstalled from https://github.com/rm-hull/luma.led_matrix so I assume I've got the latest versions, but I still get the same error when I try to run the time/date code or the sevensegment_demo in the examples directory. The SDCard has the RaspiOS with desktop and recomm...
by MacsandaPi
Mon Jul 20, 2020 10:22 pm
Forum: Beginners
Topic: [SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install
Replies: 10
Views: 688

[SOLVED] ZeroSeg 7-segment display not working after kernel 5.4.51 install

Today I ran apt update/full-upgrade which installed a new kernel (5.4.51+) on my Pi B1+. Now the Pi's attached ZeroSeg 7-segment time/date display fails to run and returns the error: Traceback (most recent call last): File "luma7datetime.py", line 58, in <module> main() File "luma7dat...
by MacsandaPi
Fri May 22, 2020 5:58 pm
Forum: General discussion
Topic: Get your Pi to fight COVID-19
Replies: 194
Views: 16472

Re: Get your Pi to fight COVID-19

While a 64-bit mode may be required for the Microbiome project, it isn't needed for the COVID-19 program (OpenPandemics). I have OpenPandemics running on a RPi 1 B+ and two Pi Zeros. I've overclocked the 1B+ to 950MHz, but that may not be necessary.
by MacsandaPi
Sun Oct 06, 2019 5:44 pm
Forum: Python
Topic: Help with code for ZeroSeg
Replies: 2
Views: 423

Re: Help with code for ZeroSeg

Yes, 10 seconds is the duration for the time display.

I added main() in the button section in an attempt to get the time to display again after the text had completed. Without main() at that location, the text just stays on the screen.
by MacsandaPi
Sun Oct 06, 2019 4:41 pm
Forum: Python
Topic: Help with code for ZeroSeg
Replies: 2
Views: 423

Help with code for ZeroSeg

My RPi 1B+ has a ZeroSeg 7-segment display ( https://thepihut.com/products/zeroseg ). My objective is to have the display begin with current time and date, show text when a button is pushed, and then return to the time and date in a "while True" loop, i.e., continuously showing time/date u...
by MacsandaPi
Thu Jul 18, 2019 9:02 pm
Forum: General discussion
Topic: Which SSD to buy for raspberry pi?
Replies: 77
Views: 52858

Re: Which SSD to buy for raspberry pi?

I'm using Silicon Power 128GB (model A55) SSDs with my old (first generation) B+ and a Pi 2B (version 1.1). Both are set up to boot to the SSDs from their microSD cards which contain only the bootcode.bin file.
by MacsandaPi
Fri May 31, 2019 4:42 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

Re: How to access an active program on headless Pi?

To follow up on my use of the Screen tool, it's working perfectly for my simple[minded] purpose. I'm indeed grateful to HawaiianPi for bringing it to my attention. I'd never heard of it before. The only problem I foresee is remembering the few commands and their sequence to access the active screen ...
by MacsandaPi
Thu May 30, 2019 10:30 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

Re: How to access an active program on headless Pi?

I've installed screen and am still trying to learn how to use it, but these early explorations make me think this is what I'm looking for to enable me to work directly with the python script while it's running. Many thanks, HawaiianPi for that suggestion. My thanks, too, to DougieLawson and Andyroo ...
by MacsandaPi
Thu May 30, 2019 6:34 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

Re: How to access an active program on headless Pi?

HawaiianPi wrote:
Thu May 30, 2019 5:58 pm
I use the screen command to interact with my headless Minecraft multiplayer servers.
"screen" must not be installed by default (I have the latest version of Raspbian); I get "No manual entry for screen" when I enter

Code: Select all

man screen
by MacsandaPi
Thu May 30, 2019 6:00 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

Re: How to access an active program on headless Pi?

I would have thought it was unlikely a click program would have any files open though. Do you have a link to the source? Handling kill commands (from Ctrl-c or the command line / system) can be added to most programs easily though. I don't know what a "click program" is. Ctrl-C works fine...
by MacsandaPi
Thu May 30, 2019 4:43 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

Re: How to access an active program on headless Pi?

I'd considered using

Code: Select all

top
to identify the PID process and then kill that, but was reluctant to try, not knowing if that would produce a "clean" quit and exit.

Would your suggested termination likely result in possible file corruption?
by MacsandaPi
Thu May 30, 2019 4:20 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 1343

How to access an active program on headless Pi? [SOLVED]

My Pi is used as a clock. It's set up headlessly with a 7-segment display add-on and runs a Python script to show the time. When I SSH into the Pi, how do I access that active program to stop it and then exit the program cleanly (like using Ctrl-C)? Do I simply launch the Python script again from th...
by MacsandaPi
Wed Dec 12, 2018 11:50 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 1874

Re: GPIO Zero Cleanup Command?

Thanks, rhubarbdog, for your suggestion. I've used that "while True/except KeyboardInterrupt:" combination with the RPI.GPIO library before, but haven't been able to get it to work yet with the gpiozero library. I'll keep trying.
by MacsandaPi
Tue Dec 11, 2018 5:01 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 1874

Re: GPIO Zero Cleanup Command?

I think you link is a bit odd Hi Andyroo--Thanks for pointing out that malformed link; I've corrected it in my original post. Have you seen the documents for the commands at all https://gpiozero.readthedocs.io/en/stable/api_boards.html I did look at that site before I posted my question. The inform...
by MacsandaPi
Mon Dec 10, 2018 4:59 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 1874

GPIO Zero Cleanup Command?

I'm using the 3D Xmas tree with LEDs from the Pi Hut https://thepihut.com/products/3d-xmas-tree-for-raspberry-pi with the following code: from gpiozero import LEDBoard from gpiozero.tools import random_values from signal import pause tree = LEDBoard(*range(2,28),pwm=True) for led in tree: led.source...
by MacsandaPi
Wed Oct 17, 2018 3:53 pm
Forum: Beginners
Topic: What Command is Used to Display RPi Firmware Number?
Replies: 3
Views: 881

Re: What Command is Used to Display RPi Firmware Number?

Thank you for the helpful information, epoch1970. The installed OS seems to be running without problem. I was just curious about the apparent discrepancy between the firmware number in the release notes and what is in my Pi.

Go to advanced search