Go to advanced search

by PiGraham
Fri Nov 01, 2019 4:08 pm
Forum: Python
Topic: Python weather station storing min and max values
Replies: 18
Views: 758

Re: Python weather station storing min and max values

You will need to initialise your min / max variables to values guaranteed to be greater than min and less than max. Those values could be anything really. temp_max = -1000 temp_min = 1000 Then any temp measured will be bigger than temp_max and less than temp_min and those variables will then track t...
by PiGraham
Fri Nov 01, 2019 2:11 pm
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1488

Re: jumpers on GPIO as a "config file"

Perhaps the OP could use the "Customer OTP" slots? https://www.raspberrypi.org/documentation/hardware/industrial/README.md Maybe, but I read the OP as wanting a way to easily configure any RPi for one of six roles in the machine, without any programming. I can see sense in that in a maintenance con...
by PiGraham
Fri Nov 01, 2019 2:01 pm
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1488

Re: jumpers on GPIO as a "config file"

Another option could be to put text file on a USB memory to define the role. Instead of reading jumpers on gpio read a few characters from /media/pi/XXXX-XXXX/mode.txt
by PiGraham
Fri Nov 01, 2019 1:57 pm
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1488

Re: jumpers on GPIO as a "config file"

Or read the MAC address of the pi (each MAC address is unique) on startup and run different code depending on that. Each pi will have the same SD card. That doesn't work quite as well if you have to replace a Pi. If there are six functional roles it would be easier to set one of six jumper patterns...
by PiGraham
Fri Nov 01, 2019 1:35 pm
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1488

Re: jumpers on GPIO as a "config file"

Maybe a mis-type - 6 is opposite 12? You can set a GPIO as an output, low, which acts as a low-current ground connection and can be detected by a GPIO set to input with internal pull-up So, if you're counting from the bottom: Pins 40 & 39 - GPIO 21 & Gnd - will work Pins 38 & 37 - GPIOs 20 & 26 - s...
by PiGraham
Fri Nov 01, 2019 9:31 am
Forum: Other projects
Topic: smooth analog voltage from 0 to 12V
Replies: 10
Views: 1467

Re: smooth analog voltage from 0 to 12V

RGB strips are normally addressable, they have a dedicated datalink (using a gpio pin) to set intensity for red, green, blue for each individual LED on the strip. So you shouldn't fiddle with their supply power but seek tutorials on what types of addressable strips are there and how to control them...
by PiGraham
Wed Oct 30, 2019 9:38 am
Forum: Beginners
Topic: Turn Your Raspberry Pi into a Bluetooth Beacon?
Replies: 11
Views: 606

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

How your device responds to a beacon probably depends on what nearby app you are running. Does this help? ou don't have to do anything during the pairing process, but you'll have to give the OK the first time you access Nearby functionality in an app. When Nearby is active, a notification provides q...
by PiGraham
Tue Oct 29, 2019 5:05 pm
Forum: Other projects
Topic: smooth analog voltage from 0 to 12V
Replies: 10
Views: 1467

Re: smooth analog voltage from 0 to 12V

As scruss says, you need a non-linear response. See the lux levels for daylight here https://en.m.wikipedia.org/wiki/Daylight To get from moonlight to daylight you go from <1lx to 1lx to 40lx to 400lx to 20,000lx ambient at noon. A good range might be 0.1lx to 1000lx, a rage of 10,000 to one A quick...
by PiGraham
Tue Oct 29, 2019 2:18 pm
Forum: Other projects
Topic: LAN Between Two Pi’s via Ethernet
Replies: 5
Views: 863

Re: LAN Between Two Pi’s via Ethernet

I am curious to know whether the 100 metre maximum length of a utp Ethernet cable is sufficient for your needs, and whether your balloon can lift the weight of that length of metallic cable? This is key question. 100m of standard Ethernet cable has some weight to it. A quick search suggests somethi...
by PiGraham
Mon Oct 28, 2019 11:19 am
Forum: Beginners
Topic: Doorbell
Replies: 3
Views: 328

Re: Doorbell

Also, as a potential battery powered option, you canlook at DF Robot Miniplayer that can play MP3 files from SD card and a ATTiny based Arduino for micro power. If you are OK with a couple of watts with a Pi I second PYGame to play the files Making a Pi autologin and setting an executable to auto-ru...
by PiGraham
Sun Oct 27, 2019 4:08 pm
Forum: Beginners
Topic: Turn Your Raspberry Pi into a Bluetooth Beacon?
Replies: 11
Views: 606

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

I'm trying both ways on one tablet I'm running the android app - "Beacon Scanner" and on another tablet just running the normal bluetooth scanner I have try this on 2 units (2 raspberry pi ) - didn't get nothing I don't know anything about this topic, so I'm just offering dome dumb questions which ...
by PiGraham
Sun Oct 27, 2019 3:14 pm
Forum: Beginners
Topic: Turn Your Raspberry Pi into a Bluetooth Beacon?
Replies: 11
Views: 606

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

but I still can't see nothing while running scan on the Bluetooth on 2 phones any one know why ? any idea hoew to make this work? Thanks , Do you mean the normal scan for Bluetooth devices, or are you running a beacon scanner app? To check the broadcasted message on your smart phone, download the P...
by PiGraham
Fri Oct 25, 2019 10:23 am
Forum: Troubleshooting
Topic: VNC server over ssh to Android phone client
Replies: 3
Views: 376

Re: VNC server over ssh to Android phone client

Real VNC looks like what you need.

An alternative is Team Viewer. There is a server that runs on RPi and clients for all platforms and it has no problems with firewalls in my experience.

Free for personal use.

TeamViewer Host for Raspberry Pi
by PiGraham
Thu Oct 24, 2019 9:33 am
Forum: Ubuntu
Topic: Ubuntu 19.10 (Eoan Ermine) released
Replies: 81
Views: 20228

Re: Ubuntu 19.10 (Eoan Ermine) released

Thanks for saving. I just wanted to start instaling as i want to ged rid of videos tearing in raspbian. I will wait then. I doubt it will fix that. As for bashing, not at all. What is the point of reporting a problem with software to people who have nothing to do with that software? It needs to be ...
by PiGraham
Tue Oct 22, 2019 12:51 pm
Forum: Automation, sensing and robotics
Topic: Smart pillow to detect Sleep Apnea utilizing RaspberryPi
Replies: 20
Views: 2039

Re: Smart pillow to detect Sleep Apnea utilizing RaspberryPi

In my scenario, i would like to detect the snoring sound and rectify it by sending a buzzer sound to distract the patient during sleep. The issue that i am facing is choosing the right sensors before making any purchase and that's where i am looking for some guidance. As others have said, don't wak...
by PiGraham
Tue Oct 22, 2019 12:19 pm
Forum: Beginners
Topic: Need help with my first Project! :)
Replies: 7
Views: 461

Re: Need help with my first Project! :)

Although the EasyShare doesn't seem like a viable choice for a monitor it is designed to stream images and video from Kodak's online photo service. So it could be possible to save your smart mirror image to a jpeg file on the Kodak server so that it gets streamed to the photo frame and appears on yo...
by PiGraham
Tue Oct 22, 2019 11:46 am
Forum: Beginners
Topic: Need help with my first Project! :)
Replies: 7
Views: 461

Re: Need help with my first Project! :)

B.Goode wrote:
Tue Oct 22, 2019 10:47 am


It is possible.
It is certainly possible to make a smart mirror with a raspberry Pi, but I took the key question to be is it possible to use the EasyShare photoframe as the display for such a project.
by PiGraham
Tue Oct 22, 2019 9:48 am
Forum: Beginners
Topic: Need help with my first Project! :)
Replies: 7
Views: 461

Re: Need help with my first Project! :)

Don't start with a digital picture frame because that is not a display with an input. . Start with a display known to work with the Pi. How about a DVI PC monitor. You can buy those for cheap or even get one free. A cheap HDMI to DVI cable or adaptor will allow you to use it with a Pi. It is probabl...
by PiGraham
Sat Oct 19, 2019 7:27 pm
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 1384

Re: Continue *after* executing statements within a code block?

Since you made this point I provided an example that demonstrated that it is perfectly possible to put commands between the if and the continue. It may just be having hit 60 recently and haven't had my second cup of coffee this morning :) , but I got a little confused trying to follow the thread. I...
by PiGraham
Sat Oct 19, 2019 11:49 am
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 1384

Re: Continue *after* executing statements within a code block?

If you look at the examples shown in your link, along with every other example on Google, DogPile, DuckDuckGo, ad nauseum , you will notice that all of them, every single one , show the "continue" or "break" coming directly after the line that makes the test. Many, but not all, will show concise co...
by PiGraham
Fri Oct 18, 2019 3:50 pm
Forum: Other projects
Topic: Printer Emulator
Replies: 8
Views: 1896

Re: Printer Emulator

It seems to me you would first need to know what printers your 'DOS computer' supports. It you will emulate a printer it would be one of those the legacy machine supports. Alternatively you might consider writing a printer driver to run on the DOS machine Then you could make the driver write the ren...
by PiGraham
Fri Oct 18, 2019 12:10 pm
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 1384

Re: Continue *after* executing statements within a code block?

PeterO wrote:
Fri Oct 18, 2019 12:07 pm

There is somethign seriously wrong with your Python3 installation !

;)
PeterO
Ha ha! Yes indeed. It's the dodgy programmer with error prone copy-paste!
by PiGraham
Fri Oct 18, 2019 11:54 am
Forum: Python
Topic: Continue *after* executing statements within a code block?
Replies: 15
Views: 1384

Re: Continue *after* executing statements within a code block?

Update: As far as I can tell, the "continue" statement has two restrictions: 1. It must be on a line of it's own (properly indented, of course) 2. It must be the only statement after the conditional that triggers it. (Dumb, but I didn't write the language. . .) I don't think that's right. You can h...
by PiGraham
Thu Oct 17, 2019 4:30 pm
Forum: General discussion
Topic: SD Card power failure resilience ideas
Replies: 31
Views: 2949

Re: SD Card power failure resilience ideas

This is excellent. I've use similar on Windows Embedded system ("Enhanced Write Filter" IIRC) I found that Adafruit have a script for RO filesystem but I like this better. Was this a typo: sudo apt upgrade sudo apt dist-update i think that should be (first line just for completeness) : sudo apt upda...

Go to advanced search