Go to advanced search

by bensimmo
Thu Oct 18, 2018 7:48 pm
Forum: General discussion
Topic: Case for stacked hats
Replies: 5
Views: 161

Re: Case for stacked hats

And on a look to see what the audio hat is. I see Pimoroni make pibow case for it. https://shop.pimoroni.com/products/pibow-audio?variant=5472074753 I think you can buy spacers to suit and raise your the lid, you can with other pibow setups. I would send them and email or tweet and see if they can s...
by bensimmo
Thu Oct 18, 2018 7:42 pm
Forum: General discussion
Topic: Case for stacked hats
Replies: 5
Views: 161

Re: Case for stacked hats

Ignore me, I've just tried a SenseHAT upside down (the black connector is on the top on a SenseHAT). And what I say is not going to work. Get out the solding iron and fit a some new longer pins to the pi ;-). https://www.ebay.com/itm/5PCS-1-40-40Pin-2-54mm-19mm-Long-single-row-Male-Breakable-Pin-Hea...
by bensimmo
Thu Oct 18, 2018 7:27 pm
Forum: General discussion
Topic: Case for stacked hats
Replies: 5
Views: 161

Re: Case for stacked hats

This is untested as I do not have a poehat, I do have sense hats though with similar passthroughs. On your long pin header were there any spacers? Mine all came with them (and a bugger to get off). Not that you need them I would see how far down you could put it and attach a normal extender header o...
by bensimmo
Thu Oct 18, 2018 5:02 pm
Forum: Python
Topic: Speed of indexing vs looping
Replies: 16
Views: 315

Re: Speed of indexing vs looping

I wonder at which point splicing to and from the half length mark would be quicker than the added time it takes to get the length of the string. That's an interesting question. I tested that, as per other tests - def Check_Four(s): n = len(s) // 2 return s[:n] == s[:n-1:-1] Times came in on the sam...
by bensimmo
Thu Oct 18, 2018 2:04 pm
Forum: Python
Topic: Speed of indexing vs looping
Replies: 16
Views: 315

Re: Speed of indexing vs looping

But again, that very inefficient. You are creating an entirely new string, one character at a time. All you want to do is compare. ... or something. Which will also be inefficient, creating two single character strings as it goes. That's all Python allows for. Underneath the hood it's different. Bu...
by bensimmo
Thu Oct 18, 2018 7:37 am
Forum: Troubleshooting
Topic: Undervoltage detected on old Pi
Replies: 4
Views: 114

Re: Undervoltage detected on old Pi

Check the uUSB connector, remove dirt and check the connections.
I've found loss there before, cable all fine just the connector.
by bensimmo
Thu Oct 18, 2018 7:33 am
Forum: Off topic discussion
Topic: When will Pi Zero W be updated?
Replies: 7
Views: 287

Re: When will Pi Zero W be updated?

There is a well/was well use dual core (on a PiZero style/size device) SoC out there, it was used in the original FireTV Stick, Broadcom Capri 28155 2x 1GHz A9's VC4 and 1GHz RAM (they used it split 512/512) Useful and to Pi Specs, i've no idea. I don't see the point in the large 3.5mm socket. Just ...
by bensimmo
Wed Oct 17, 2018 4:24 pm
Forum: Beginners
Topic: What Command is Used to Display RPi Firmware Number?
Replies: 3
Views: 127

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

The firmware is software
When you update the OS
e.g.
sudo apt update
sudo apt upgrade
It updates the firmware too, if there is a newer one.
by bensimmo
Wed Oct 17, 2018 1:32 pm
Forum: Troubleshooting
Topic: Warranty Replacement
Replies: 3
Views: 95

Re: Warranty Replacement

your warranty is with whoever you bought it off, not the foundation [unless it is a Pi0] Even with the Pi Zeroes the warranty is most likely through the retailer. Apparently not so in the USA (from another thread I was reading this morning) For them it is with the manufacturer. My advice would be t...
by bensimmo
Wed Oct 17, 2018 11:09 am
Forum: Troubleshooting
Topic: SerialException: could not open port /dev/ttyAMA0: [Errno 13] Permission denied: '/dev/ttyAMA0'
Replies: 14
Views: 302

Re: SerialException: could not open port /dev/ttyAMA0: [Errno 13] Permission denied: '/dev/ttyAMA0'

First try sudo systemctl stop [email protected].service sudo systemctl disable [email protected].service (just something I noticed going over what you did, which was basically a bit of everything, be it useful or not) But to get back I would do something like from /boot/config.txt remove dtove...
by bensimmo
Wed Oct 17, 2018 9:08 am
Forum: General discussion
Topic: Updated FAQ page.
Replies: 22
Views: 873

Re: Updated FAQ page.

epoch1970 wrote:
Wed Oct 17, 2018 8:25 am
Is this one for the FAQ?
https://www.raspberrypi.org/forums/view ... &p=1381289

"How do I check my copy of the OS is genuine?"
I've never seen anyone ask that.
by bensimmo
Wed Oct 17, 2018 7:55 am
Forum: General discussion
Topic: Case for stacked hats
Replies: 5
Views: 161

Re: Case for stacked hats

Cut cardboard/carboardbox to size? A few holes for the cabkes as needed. Job done. Possible bly some air holes/slits at either side. Add paint if you want to change the finish. Or go fancy and find a MakerSpace and get making. Though I will add, I would lower the POE hat to be closer and 'inside' th...
by bensimmo
Tue Oct 16, 2018 7:30 pm
Forum: Python
Topic: RGB control via temperature
Replies: 4
Views: 79

Re: RGB control via temperature

Doesn't GPIO.cleanup() reset the GPIO pins to their default state and function? In which case it would turn the LEDs off as soon as it has turned them on. I may be wrong, I'm too far from my Pis to test it right now. OP should have a read, https://raspi.tv/2013/rpi-gpio-basics-3-how-to-exit-gpio-pr...
by bensimmo
Tue Oct 16, 2018 2:21 pm
Forum: Python
Topic: RGB control via temperature
Replies: 4
Views: 79

Re: RGB control via temperature

Have a look at this version, if..elif..else it allows you to split it up in order and makes it easier to add extra and you don't need to change two numbers if you want to alter the temp it changes colour at. I also altered the gpio numbers to a name to make it easier to read, also if you move it to ...
by bensimmo
Tue Oct 16, 2018 12:20 pm
Forum: Python
Topic: help how to count button presses
Replies: 7
Views: 1485

Re: help how to count button presses

Ignore RPI.gpio
Have a look at the gpiozero API
There is a lot there and worth a read and play.

More technical button control is.
https://gpiozero.readthedocs.io/en/stab ... input.html
by bensimmo
Tue Oct 16, 2018 10:39 am
Forum: Beginners
Topic: Pi ZeroW room thermometer [solved]
Replies: 17
Views: 494

Re: Pi ZeroW room thermometer

Absolutely, just rounding is easier to understand at the start, the downside is it doesn't keep the 1dp if I remember correctly. That and I can't remember .format of the top of my head. So many ways,do whichever you find easiest :-) But do eventually learn 'formatting', even if it make the code hard...
by bensimmo
Tue Oct 16, 2018 7:43 am
Forum: Beginners
Topic: Pi ZeroW room thermometer [solved]
Replies: 17
Views: 494

Re: Pi ZeroW room thermometer

https://www.tutorialspoint.com/python3/number_round.htm

Rounding function


"Humidity =" + round(humidity,1) + "%"
by bensimmo
Mon Oct 15, 2018 1:02 pm
Forum: Automation, sensing and robotics
Topic: Boat lift - inclinometer or IMU
Replies: 5
Views: 157

Re: Boat lift - inclinometer or IMU

Here is the SenseHAT (an all in one official HAT for the Pi) being used as a spirit level. http://www.suppertime.co.uk/blogmywiki/2015/12/spirit-level-for-sensehat/ There will be similar for other IMU setups. Edit to add for info/ Inclinometer from an IMU http://ozzmaker.com/inclinometer-using-raspb...
by bensimmo
Mon Oct 15, 2018 12:54 pm
Forum: Automation, sensing and robotics
Topic: Boat lift - inclinometer or IMU
Replies: 5
Views: 157

Re: Boat lift - inclinometer or IMU

The IMU will be fine and probably more than you need. Have a plane with your smart phone if you have one. Find a bubble (spirit)level app (or in Google type in ' spirit level ' and it will give you one in the browser. The IMU will give you that, the ability to get a bubble level. The hard part will ...
by bensimmo
Sun Oct 14, 2018 2:13 pm
Forum: Beginners
Topic: Pi ZeroW room thermometer [solved]
Replies: 17
Views: 494

Re: Pi ZeroW room thermometer

File "test.py", line 88, in <module> draw.text((x, top), "Room Temp =" + temperature, font=font, fill=255) TypeError: cannot concatenate 'str' and 'float' objects" that's saying it cannot stick together a string (str) and a number (float) in the line above. So given it is text (from draw.text ) I gu...
by bensimmo
Sun Oct 14, 2018 12:27 pm
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 1118

Re: Is it Time to force Raspbian password change on initial login

Leave it as is, anything else hinders anything in schools or general groups of educator setups. The number of children that forget things and even teachers after a few weeks away, when they are only slightly complicated passwords, is too much. Oh don't we love the head in the sand option. Revert it...
by bensimmo
Sun Oct 14, 2018 12:19 pm
Forum: Mathematica
Topic: Matematica removed from raspbian image
Replies: 34
Views: 2239

Re: Matematica removed from raspbian image

hippy it's been mentioned a few times. It's distribution with the 'bundle'. Also known as aRaspbian image. Use is seperate and from Wolfram so use their website for the license and for questions on its use. They still have the license, but no means to download it. I posted before, anything but the P...
by bensimmo
Sun Oct 14, 2018 8:56 am
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 1118

Re: Is it Time to force Raspbian password change on initial login

Leave it as is, anything else hinders anything in schools or general groups of educator setups. The number of children that forget things and even teachers after a few weeks away, when they are only slightly complicated passwords, is too much. It is perfectly fine, if a person is told they may wish ...
by bensimmo
Sat Oct 13, 2018 8:18 pm
Forum: Troubleshooting
Topic: Getting GPS (BU-353) to work with Pi3b+ and Stretch
Replies: 8
Views: 176

Re: Getting GPS (BU-353) to work with Pi3b+ and Stretch

Ah still on openplotter. No idea why it wouldn't work on there, I guess there is more holding it open. (I would also try killall gpsd ) I was thinking on Raspbian. It should just work as it has its own driver system, and you can even kick it into sirff mode too iirc. After cat of the device, if that...
by bensimmo
Sat Oct 13, 2018 6:05 pm
Forum: Troubleshooting
Topic: Getting GPS (BU-353) to work with Pi3b+ and Stretch
Replies: 8
Views: 176

Re: Getting GPS (BU-353) to work with Pi3b+ and Stretch

does
gpsmon /dev/ttyUSB0
show anything ?

(with and without gpsd running_

Go to advanced search