Go to advanced search

by bensimmo
Tue Oct 15, 2019 8:33 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1189
Views: 58015

Re: Liberation through Computer Literacy

I thought this article goes quite well with the current topic title Mainly the last part, "The hope is that this paper gets us to talk a bit more about how we treat and view software that we exchange back and forth," said Williams. "We somehow naively assume this stuff will work, being experimental...
by bensimmo
Tue Oct 15, 2019 6:10 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1189
Views: 58015

Re: Liberation through Computer Literacy

I blame the "computer scientists". They have created a computing world where the same program will produce different results depending on what machine it is run on. If mathematicians lived on such shifting ground we would get nowhere. In this case it was the ordering of file names when asking for a...
by bensimmo
Tue Oct 15, 2019 9:22 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1189
Views: 58015

Re: Liberation through Computer Literacy

I thought this article goes quite well with the current topic title Mainly the last part, "The hope is that this paper gets us to talk a bit more about how we treat and view software that we exchange back and forth," said Williams. "We somehow naively assume this stuff will work, being experimentali...
by bensimmo
Sun Oct 13, 2019 8:30 am
Forum: Raspbian
Topic: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small
Replies: 35
Views: 2198

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

... but the solution to it is getting more and more convoluted the more I work on it. When it's ready, I'll push it out. It seems to me the solution is for people to follow recommendations and not upgrade from an older OS. As far as I know, that was never a supported procedure (Debian/Raspbian stab...
by bensimmo
Mon Oct 07, 2019 4:46 pm
Forum: Raspbian
Topic: New Raspbian Buster image (Sep. 2019)
Replies: 21
Views: 1657

Re: New Raspbian Buster image (Sep. 2019)

It updates (or allows you to update if you set it to manual) the bootcode. https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md And its changelog (Unsure which version we're on, I thought we had the Sdram tweaks, but it still says beta in the changelog.) https://github.com/ra...
by bensimmo
Sun Oct 06, 2019 5:16 pm
Forum: Raspbian
Topic: New Raspbian Buster image (Sep. 2019)
Replies: 21
Views: 1657

Re: New Raspbian Buster image (Sep. 2019)

If the rpi-eeprom program hasn't come down with a full-upgrade, you'll need to apt install it
by bensimmo
Sun Oct 06, 2019 7:18 am
Forum: Off topic discussion
Topic: Best Raspberry Pi Alternatives 2019
Replies: 62
Views: 5991

Re: Best Raspberry Pi Alternatives 2019

The nodeMCU are simple, stick the prebuild firmwares on (espeasy V2, tasmota, etc ) that with the sensors section and off you go. Add sensors and send data. Other have micropython running on them so can port code over, they are of course not desktop computers. They are not the same things a Pi. Thou...
by bensimmo
Sat Oct 05, 2019 6:47 pm
Forum: General discussion
Topic: Simplest temperature data logger
Replies: 13
Views: 536

Re: Simplest temperature data logger

For web display, just install Cayenne and it sort it out for you with DSB18's
by bensimmo
Sat Sep 28, 2019 9:59 am
Forum: General discussion
Topic: Simplest temperature data logger
Replies: 13
Views: 536

Re: Simplest temperature data logger

If you want to keep it drag and drop, you can log and chart DS18B20's in Scratch on the Pi
;-)
by bensimmo
Sat Sep 28, 2019 9:57 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 temperature
Replies: 558
Views: 163038

Re: Raspberry Pi 4 temperature

Angle your fan so it blows over the Pi, not directly down on it. To be honest you can power that USB one from the Pi itself. That way you should get a better flow. And update Raspbian and install the boot eeprom updates (if it doesn't do it automatically). You may need sudo apt install rpi-eeprom Th...
by bensimmo
Wed Sep 25, 2019 12:31 pm
Forum: Python
Topic: how to measure duration of pulse in python
Replies: 15
Views: 422

Re: how to measure duration of pulse in python

Your best bet is to look over a Python3 module and see how they are doing it.
You can then try to implent your own version if you want.

e.g. from a very quick search
https://github.com/UedaTakeyuki/mh-z19
by bensimmo
Wed Sep 25, 2019 7:00 am
Forum: Beginners
Topic: error in temperature with buzzer sensor
Replies: 4
Views: 112

Re: error in temperature with buzzer sensor

On to the main loop. You don't need that many sleeps, it's no harm but slows it all down. (Not a sensor read will automatically be just under a second delay by itself) As before the if and, pick one C or F Take the Buzzer(23) setting out of the the whole thing and place it before the main loops star...
by bensimmo
Wed Sep 25, 2019 6:52 am
Forum: Beginners
Topic: error in temperature with buzzer sensor
Replies: 4
Views: 112

Re: error in temperature with buzzer sensor

Is Python3 new to you? You seem to not quite understand functions, e.g. how to use read_temp() I can see it's a cut and paste from the web. You should remove your globals, there is no need for them (I'm guessing you added them?) Then call the function, returning the values to a variable. Then use th...
by bensimmo
Sun Sep 22, 2019 8:03 am
Forum: Troubleshooting
Topic: [Not getting my full Gigabit internet speed on RPI 4b 4GB]
Replies: 31
Views: 1157

Re: [Not getting my full Gigabit internet speed on RPI 4b 4GB]

If the internal is running full speed, then don't worry, the pi hardware is working fine. It is probably just the benchmark* you are using and how it works or your router as it is passed to the outerworld. Remember these are just benchmarks, not real life usage. *At which point you'll need support f...
by bensimmo
Sat Sep 21, 2019 6:01 pm
Forum: Troubleshooting
Topic: Raspberry Pi 4 temperature
Replies: 558
Views: 163038

Re: Raspberry Pi 4 temperature

Is this going to have automated updates like the boot eeprom?
by bensimmo
Sat Sep 21, 2019 3:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 881

Re: Ublox Neo 6M GPS module not changing coords.

Use the GNSS/GPS as your rate limiting device in the loop, it's 1 per second, skip 14 of them and collect teh 15th. Set it as a variable at the start and it's easy to adjsut. My code above works in python3 here in the UK, i'm right next to the meridian line. You have msg.lat and msg.lon in your code...
by bensimmo
Sat Sep 21, 2019 9:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 881

Re: Ublox Neo 6M GPS module not changing coords.

I just check and if you stay with Google earth, it can use Decimal Degrees. So you only need to record msg.latitude & msg.longitude (Same as Google maps) You don't need to split and combine. https://support.google.com/earth/answer/148068?hl=en EDIT simple test program for you (another one, this is p...
by bensimmo
Sat Sep 21, 2019 9:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 881

Re: Ublox Neo 6M GPS module not changing coords.

Pynmea2 has been working fine for me for years, with ublox6 and ublox8 The 'shrink' problem is something else, I've seen it but can't remember what it was. It's something like using the wrong style of coordinates. Google maps should be able to take the one supplied with no problem. The batter just h...
by bensimmo
Fri Sep 20, 2019 12:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ublox Neo 6M GPS module not changing coords.
Replies: 36
Views: 881

Re: Ublox Neo 6M GPS module not changing coords.

as above, check the stream from the gps is correct and changing (and not getting locked by something else) What's you GPS setup, UART pin14/15 ? How did you set it up? anyway, just log directly from the /dev/serial0 or /dev/USB01 etc 'file' after that, if the file seems correct, you can stream it in...
by bensimmo
Thu Sep 19, 2019 7:52 pm
Forum: Raspbian
Topic: Raspbian Buster to Bullseye?
Replies: 7
Views: 480

Re: Raspbian Buster to Bullseye?

Take a backup (clone sd-card to another is easiest), give it a go.
Report back :-)
by bensimmo
Thu Sep 19, 2019 2:47 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 337

Re: Pynmea2 output Decimal Degrees.

I'm a bit lost in what format you want but For example, latitude and longitude properties exist as helpers to access the geographic coordinates as python floats (DD, "decimal degrees") instead of the DDDMM.MMMM ("Degrees, minutes, seconds") format used in the NMEA protocol. latitude_minutes, latitud...
by bensimmo
Thu Sep 19, 2019 7:39 am
Forum: Troubleshooting
Topic: [Not getting my full Gigabit internet speed on RPI 4b 4GB]
Replies: 31
Views: 1157

Re: [Not getting my full Gigabit internet speed on RPI 4b 4GB]

... Use iPerf3 to test the Local Network speeds. ... Maybe a better question should be is my Internet Service Provider actually giving me what I expect ?? They are, it has been mentioned a few times. Other computers give better upload results. There is even a picture of it in the initial post. Of c...
by bensimmo
Thu Sep 19, 2019 6:42 am
Forum: Troubleshooting
Topic: [Not getting my full Gigabit internet speed on RPI 4b 4GB]
Replies: 31
Views: 1157

Re: [Not getting my full Gigabit internet speed on RPI 4b 4GB]

We have GBit here in Hull in the UK if we want it, the whole city and surrounding areas. No idea what the up link speed is though, they always tend to drop it But that's not going to help the op. all pip3 does is install a Python3 version of the program. Most likely something on the Pi is obviously ...
by bensimmo
Sun Sep 15, 2019 5:48 pm
Forum: General discussion
Topic: Should you buy an A2 performance rated SD card?
Replies: 16
Views: 2247

Re: Should you buy an A2 performance rated SD card?

Got tremendous performance gain using A2 sd card, (so I disagree with OP). Moving from Toshiba M302 (fast sequential but no slow 4k), to Sandisk Extreme A2 / V30, the performance gain was > x20 for some file operations. Amazing performance, no need for external SSD and fast net i/o since USB/ethern...
by bensimmo
Sun Sep 15, 2019 5:43 pm
Forum: Troubleshooting
Topic: New router/VDSL provider - no internet via Pis
Replies: 19
Views: 670

Re: New router/VDSL provider - no internet via Pis

In the future, look at switching the Pi to 'standard' IP address alocation (dynamic) so the Router gives them the IP address. Then in the router, reserve an IP address to that Pi. It will always be given the IP and you control it all from one place. the router. For extending, I find Powerline extend...

Go to advanced search