Go to advanced search

by johngammel
Mon Nov 08, 2021 7:21 pm
Forum: HATs and other add-ons
Topic: Clock board for my needs
Replies: 5
Views: 211

Clock board for my needs

I need to get a clock since my Pi project involves monitoring and recording in a headless environment. I've decided to forego WWVB and GPS so I want a board that has pins so I can use DuPont aka jumper cables to install it. While I'm decent with an iron I'd like something that's already pinned and h...
by johngammel
Mon Nov 08, 2021 1:40 pm
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 708

Re: How to add real time clock when headless Pi is using GPIO pins

Universal solder replied that they don't have any sample code nor could they point to any. I was able to readily find an article with code for a GPS solution. My experience is that it takes awhile for a GPS device to "sync-up". When I installed a mini cell tower it took hours for it to syn...
by johngammel
Sat Nov 06, 2021 12:22 pm
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 708

Re: How to add real time clock when headless Pi is using GPIO pins

Will do. I already contacted them via their website about example code. No problem sharing - my most widely shared code is my tables to block foreign IPs especially when you run an FTP server that's on my website. In the early days there was a lot of access.
by johngammel
Fri Nov 05, 2021 3:12 pm
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 708

Re: How to add real time clock when headless Pi is using GPIO pins

Yeah - a mini black hat HACK3R is now here. With the extra pin outs it s/b easy to jumper this in from a CANADUINO. Most of the code examples are for arduino. I'm willing to do Raspbian Pi python coding to get it to work the way I need it and I'll even share the code. Like much of my project I do ne...
by johngammel
Thu Nov 04, 2021 11:33 am
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 708

Re: How to add real time clock when headless Pi is using GPIO pins

I think I'd like to try the WWVB approach. I did a search this morning and couldn't find a wiring and python code resource. Recommendation? With this approach I think I could just set the date/time with every system boot with autostart python code. Alternatively I'll look at adding a RTC board on to...
by johngammel
Wed Nov 03, 2021 7:41 pm
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 708

How to add real time clock when headless Pi is using GPIO pins

I have a headless Pi that loses track of time when the power is off. It's not designed to have an internet connection so looks like something like a DS3231 RTC or DS1307 RTC clock would keep it "on track". Problem is that I'm using GPIO 2, 3, 4. and 12. This appears to conflict with the re...
by johngammel
Sat Oct 30, 2021 11:28 am
Forum: Troubleshooting
Topic: Pi Zero freezes after many hours but never a Pi 3
Replies: 16
Views: 529

Re: Pi Zero freezes after many hours but never a Pi 3

Just to recap - these are the Zero config changes: over_voltage=2 arm_freq=900 arm_freq_min=500 Memory monitoring results: DAY TIME TOT USED FREE SHARED BUFF AVAIL comment 1 1400 430 149 50 7.0 229 220 stays this way all day long during cycles 2 0727 430 155 65 8.0 208 213 top loop - ran all night -...
by johngammel
Thu Oct 28, 2021 2:54 pm
Forum: Troubleshooting
Topic: Pi Zero freezes after many hours but never a Pi 3
Replies: 16
Views: 529

Re: Pi Zero freezes after many hours but never a Pi 3

Excellent point - it doesn't freeze - the code just crashes out. Funny thing is that it's just looping endlessly through a While true: loop that's looking for a voltage and has a time.sleep(3.0) and then just loops over and over and over - and overnight it never sees a voltage with test system. The ...
by johngammel
Wed Oct 27, 2021 6:31 pm
Forum: Troubleshooting
Topic: Pi Zero freezes after many hours but never a Pi 3
Replies: 16
Views: 529

Re: Pi Zero freezes after many hours but never a Pi 3

I made changes and the same thing happened overnight. Zero is running but not my code. The Pi 3s don't have any problem. Nothing in dmesg that I could see as a pointer to the culprit. I looked at: /var/log/messages /var/log/syslog /var/log/kern.log but didn't see anything that stuck out - but I'm a ...
by johngammel
Wed Oct 27, 2021 5:01 pm
Forum: Python
Topic: Need a piezo "buzzer" to output various notification tones during python execution
Replies: 11
Views: 495

Re: Need a piezo "buzzer" to output various notification tones during python execution

Got it done with a 2 wire piezo bought on "A". Describer as passive and it is. Had to use higher frequncies than some of the non-working sample code I found. Buzzer is not very loud and the pins are too small for DuPont cables so I had to solder some wires that had a female connector on on...
by johngammel
Mon Oct 25, 2021 2:23 pm
Forum: Troubleshooting
Topic: Pi Zero freezes after many hours but never a Pi 3
Replies: 16
Views: 529

Re: Pi Zero freezes after many hours but never a Pi 3

I edited the Pi Zero config.txt file at the bottom with arm_freq_min=500. After a wait for the system to start the code and any other processes to start the running has most results from measure_clock are either 700000000 (eight zeroes), 800000000 (eight zeroes) or 1000000000 (nine zeroes). I'm assu...
by johngammel
Sun Oct 24, 2021 4:04 pm
Forum: Troubleshooting
Topic: Pi Zero freezes after many hours but never a Pi 3
Replies: 16
Views: 529

Pi Zero freezes after many hours but never a Pi 3

I have code, an ADC board to measure low voltage DC and a DS18B20 with it's board to measure temperature. Using a Pi 3 the system has run non-stop for weeks. I did a system backup on the "3" to an SD card and booted the Zero and worked just like the "3" - except that sometimes it...
by johngammel
Thu Oct 14, 2021 6:18 pm
Forum: Python
Topic: Need a piezo "buzzer" to output various notification tones during python execution
Replies: 11
Views: 495

Re: Need a piezo "buzzer" to output various notification tones during python execution

These look like they might be the item - found on "A".com: Cylewet 10Pcs 5V 2 Terminals Passive Electronic Alarm Buzzer Electromagnetic Beeper AC Impedance for Arduino (Pack of 10) CYT1008 There are a few 2021 reviews - several reviews say reaffirm passive. I can get them in just a week. L...
by johngammel
Thu Oct 14, 2021 1:51 pm
Forum: Python
Topic: Need a piezo "buzzer" to output various notification tones during python execution
Replies: 11
Views: 495

Re: Need a piezo "buzzer" to output various notification tones during python execution

I don't want a speaker. Just simple tones for various code occurrences - I'm even dabbling with a Zero. Drilling into "A".com reviews I see some pizeo buzzers are sold as passive but are actually active. There should be a product that I can buy inexpensively on "A" that will work...
by johngammel
Wed Oct 13, 2021 6:36 pm
Forum: Python
Topic: Need a piezo "buzzer" to output various notification tones during python execution
Replies: 11
Views: 495

Re: Need a piezo "buzzer" to output various notification tones during python execution

I'm looking for something more complex than a beep code speaker. But the more articles I review push me to a 3 wire passive speaker. Some articles also have a resistor added. How about a Pi 3/zero that I can just buy on "A".com that will let me output varying sounds depending on conditions...
by johngammel
Tue Oct 12, 2021 4:02 pm
Forum: Python
Topic: Need a piezo "buzzer" to output various notification tones during python execution
Replies: 11
Views: 495

Need a piezo "buzzer" to output various notification tones during python execution

I have a continuously running python program doing some monitoring with a Pi. The Pi is headless and in a sealed box. What I'd like is a recommendation for an inexpensive "speaker" that I can add to the python code to output different tones at events such as startup and state changes. Look...
by johngammel
Mon Oct 11, 2021 1:47 pm
Forum: Python
Topic: Best way to neatly stop running python code before a reboot
Replies: 1
Views: 123

Best way to neatly stop running python code before a reboot

I have:
0 0 * * * /sbin/shutdown -r
in my crontab.

There is running python code that I would like to neatly terminate at the time of the reboot (which isn't always going to 00:00). What's the best mechanism?
by johngammel
Tue Sep 28, 2021 6:23 pm
Forum: HATs and other add-ons
Topic: Solderless breadboard screw terminals needed
Replies: 7
Views: 572

Re: Solderless breadboard screw terminals needed

The strip board is an interesting idea but just adds more points of failure. The others are PCBs which are of course likely to loosen over time - especially in the vertical orientation I'm. Thanks - maybe I want something that just isn't available. Maybe I can use a small screw terminal soldered to ...
by johngammel
Tue Sep 28, 2021 3:48 pm
Forum: HATs and other add-ons
Topic: Solderless breadboard screw terminals needed
Replies: 7
Views: 572

Solderless breadboard screw terminals needed

I need some screw terminals for standard 2.54mm solderless breadboads as I don't want to use a GPIO type cable to connect the wiring to the breadboard. Every time I think I've found a source or product the pins are too short, too big or they skip every other pin. Most of them are for mounting on a P...
by johngammel
Mon Sep 27, 2021 8:14 pm
Forum: General discussion
Topic: Coding and heat differences Zero WH vs 3B+ vs 4
Replies: 8
Views: 462

Coding and heat differences Zero WH vs 3B+ vs 4

A couple of questions that I couldn't readily find the answers to. Looking at 0WHs vs. 3B+s v 4s: 1) can an SD backup on one type be used on another without problems? 2) does python that's using GPIO pins for inputs need to be changed between versions? 3) HEAT. I know from a 3 to a 4 that the temp i...
by johngammel
Sun Sep 05, 2021 5:47 pm
Forum: Python
Topic: Pi 3 Raspbian 3.5mm jack - wav file plays with VLC and in thonny but not standalone, USB question
Replies: 1
Views: 359

Pi 3 Raspbian 3.5mm jack - wav file plays with VLC and in thonny but not standalone, USB question

My Pi 3 with raspbian can play a 1 second beep file out the 3.5MM jack from file manager using VLC or when in thonny. A straight command line python execute with or without sudo produces not audible output - terminal has the 2 splash lines from pygame. File is a simple beep. I'm only looking for a f...
by johngammel
Mon Aug 30, 2021 12:28 pm
Forum: Python
Topic: Is this file.write code OK? Why did it just up and fail?
Replies: 6
Views: 575

Re: Is this file.write code OK? Why did it just up and fail?

Ahhhh moment this morning. I'm running the python code with an autostart desktop file. It works fine but the output file was "missing" again. Nope - it's in /home/pi not my scripts directory. I'll have to figure out how to set the path before program execution begins so the file goes to th...
by johngammel
Sat Aug 28, 2021 6:04 pm
Forum: Other projects
Topic: Safe number of small 30MM fans a Pi can handle?
Replies: 3
Views: 442

Safe number of small 30MM fans a Pi can handle?

I live where it's about 90F just about everyday. I'm going to put a Pi in a PVC case with a lid and want to have airflow both from a fan mounted on the acrylic case onto the motherboard but also air from outside the case. So 2 fans at a minimum. I'd like to add 1 more so I can have push/pull but I d...
by johngammel
Sat Aug 28, 2021 4:56 pm
Forum: Python
Topic: Is this file.write code OK? Why did it just up and fail?
Replies: 6
Views: 575

Re: Is this file.write code OK? Why did it just up and fail?

It's an almost new Pi 4 with 8GB of memory and a 32GB microSD that shows 35% utilized so space isn't a problem. The CPU monitor shows zip. With TOP get 0.00, 0.03, 0.00 - so it's not like the CPU is busy (I had already done tracing to move code to minimize the load and keep the CPU cool). What I don...
by johngammel
Fri Aug 27, 2021 7:42 pm
Forum: Python
Topic: Is this file.write code OK? Why did it just up and fail?
Replies: 6
Views: 575

Is this file.write code OK? Why did it just up and fail?

This code had worked for weeks on a newer PI 4 8GB. All of a sudden it quit working. The data being written is less than 100 characters and a write typically occurs about every 30 minutes. I know from doing terminal cat operations on the file that the write had been immediate. After I renamed the fi...

Go to advanced search