Go to advanced search

by PiGraham
Mon Nov 04, 2019 10:42 pm
Forum: General discussion
Topic: Vintage radio tuner
Replies: 19
Views: 2033

Re: Vintage radio tuner

So we still don't know what you mean by "have the original tuner choose the station. So if I had an fm radio on my rpi and I used the dial to tune in the channels. Instead of a digital display to choose the station But you have an fm radio with a dial to tune in the stations, right? And you want to...
by PiGraham
Mon Nov 04, 2019 8:18 pm
Forum: General discussion
Topic: Vintage radio tuner
Replies: 19
Views: 2033

Re: Vintage radio tuner

So I'm kinda new to this but I want to refurbish on old style radio with the dial tuner for the radio. Question is there a way to connect it to a pi? I mean with volumio and have the original tuner used to choose the station? Basically I want to rebuild an old radio cassette player and keep everyth...
by PiGraham
Mon Nov 04, 2019 6:35 pm
Forum: General discussion
Topic: Use GPIO for PWM in "open collector mode" ?
Replies: 5
Views: 975

Re: Use GPIO for PWM in "open collector mode" ?

You can't connect RPi gpio like that. The LED supply voltage is almost certainly too high for a Pi (3.3V) You could add a second transistor like Q1. Lets call it Q3. Connect collector to collector and emitter to emitter. Drive the base from your gpio output through a 100 ohm resistor. When the GPIO ...
by PiGraham
Mon Nov 04, 2019 3:54 pm
Forum: General discussion
Topic: Vintage radio tuner
Replies: 19
Views: 2033

Re: Vintage radio tuner

To read the dial position you need an absolute position sensing device. You could use a potentiometer and an analogue to digital converter (ADC) or some sort of absolute optical encoder. Maybe something like this https://uk.farnell.com/bourns/eaw0j-b24-ae0128l/encoder-rotary-128pos-8-bit/dp/9358234?...
by PiGraham
Mon Nov 04, 2019 3:50 pm
Forum: General discussion
Topic: Vintage radio tuner
Replies: 19
Views: 2033

Re: Vintage radio tuner

You could use an encoder in place of the tuner dial to recognise clockwise/anti clockwise turns. https://thepihut.com/products/keyes-rotary-encoder-module Haven't used volumio, not sure what that can accept. I like the encoder idea. But would the station I'm tuning correspond with the one shown on ...
by PiGraham
Mon Nov 04, 2019 9:29 am
Forum: Other projects
Topic: smooth analog voltage from 0 to 12V
Replies: 10
Views: 1724

Re: smooth analog voltage from 0 to 12V

Mind you, if you have a strip of 60 LEDs you could illuminate some fraction of them. If you can diffuse the light well enough you could light one of the 60 at lowest levent, up to all 60 at highest level. 1/256 * 1/60 = 1/15,360 or about 14 bits equivalent. It's probably difficult to spread the ligh...
by PiGraham
Mon Nov 04, 2019 9:22 am
Forum: Other projects
Topic: smooth analog voltage from 0 to 12V
Replies: 10
Views: 1724

Re: smooth analog voltage from 0 to 12V

8 bit /channel. Pretty much the same range as any RGB picture/video you see on a computer screen. Also: - human eye / visual cortex has problems distinguishing more than 30 levels of brightness between black and white. - sun's full light intensity is orders of magnitude more powerful than a strip o...
by PiGraham
Sat Nov 02, 2019 9:21 am
Forum: Other projects
Topic: smooth analog voltage from 0 to 12V
Replies: 10
Views: 1724

Re: smooth analog voltage from 0 to 12V

simple PWM (through a power transistor/mosfet per channel) should be sufficient to change led colour/intensity, no need for actual voltage control. However I'd use an addressable led strip (price is not much greater) and get rid of 3 channel high power circuitry. The common WS2812 only has 8 bit PW...
by PiGraham
Sat Nov 02, 2019 8:54 am
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1761

Re: jumpers on GPIO as a "config file"

One more thing... We ship many instances of our industrial tool to clients. So for a commercial product them. Please advise where I should send the invoice for my time. What? You were expecting free consultancy? To be fair that was declared up front. If you read the OP and responded that was your o...
by PiGraham
Fri Nov 01, 2019 8:07 pm
Forum: Python
Topic: jumpers on GPIO as a "config file"
Replies: 28
Views: 1761

Re: jumpers on GPIO as a "config file"

B.Goode wrote:
Fri Nov 01, 2019 6:50 pm
The switch from RPI to Jetson Nano happened 6 months ago. The mistake I may made I misinformed you on the HW.


Absolutely breathtaking!
That is a new level of misleading requests for help. It does leave a bad taste.
" I misinformed you on the HW" :!:
by PiGraham
Fri Nov 01, 2019 4:08 pm
Forum: Python
Topic: Python weather station storing min and max values
Replies: 18
Views: 958

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: 1761

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: 1761

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: 1761

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: 1761

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: 1724

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: 800

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: 1724

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: 1112

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: 370

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: 800

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: 800

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: 626

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: 28748

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 ...

Go to advanced search