Go to advanced search

by PhatFil
Thu Nov 07, 2019 4:17 am
Forum: General discussion
Topic: How to Wire 5V and Battery
Replies: 25
Views: 1020

Re: How to Wire 5V and Battery

if your ok with shutting down the system and switching the power supply before restarting you can getaway with a basic SPDT relay or switch.

just what are your switching criteria if not in the case of power failure?
by PhatFil
Thu Nov 07, 2019 3:10 am
Forum: General discussion
Topic: How to Wire 5V and Battery
Replies: 25
Views: 1020

Re: How to Wire 5V and Battery

NO, sorry, I think the keyword you want to use in your search is UPS for uninterruptible power supply. A lot has been written on the subject and its probably easier to digest first hand rather than through my paraphrasing of the collective wisdom.
by PhatFil
Thu Nov 07, 2019 2:57 am
Forum: Python
Topic: Pi-Unable to execute
Replies: 1
Views: 257

Re: Pi-Unable to execute

How are you attempting to execute? if without the python prefix have you changed the file to an executable with a sudo chmod +x button.py Is the file button.py in the pwd (present working directory) ? you can confirm this by executing a ls command though ls -la will probably provide a easier to read...
by PhatFil
Thu Nov 07, 2019 1:56 am
Forum: General discussion
Topic: Controlling a liquid pump motor
Replies: 9
Views: 851

Re: Controlling a liquid pump motor

Sorry to be at odds with such prominent contributors as Joan and pcmanbob but I dont think that the sort of hall effect flow meter your discussing is at all compatible with accurate measurement of the pulsing limited flow you could expect from a small peristaltic pump as used by the OP. I think such...
by PhatFil
Wed Nov 06, 2019 10:50 pm
Forum: Python
Topic: Converting Arduino code to Python Code
Replies: 10
Views: 1227

Re: Converting Arduino code to Python Code

Whats the exact assignment? as the raspberry pi has no onboard analogue gpio It is IMPOSSIBLE to read analogue inputs directly. solutions will have to include additional or alternative h/w. it isnt cutting corners and slacking off if your project solution achieves its objectives as stated in the ass...
by PhatFil
Wed Nov 06, 2019 4:43 am
Forum: Python
Topic: Can I use digitalRead() in replacement of analogRead()
Replies: 2
Views: 585

Re: Can I use digitalRead() in replacement of analogRead()

Probably not without the specification of the sensors used, And unless your sensors are mounted on pcbs with an optional digital output (some do), you will probably need some extra circuitry to both set and register a trigger level and switch the state , or a suitable ADC which will probably be a lo...
by PhatFil
Tue Nov 05, 2019 5:14 am
Forum: Beginners
Topic: Smart Home Automation - What are the options?
Replies: 9
Views: 1854

Re: Smart Home Automation - What are the options?

I took one look at openhab and had similar thoughts.. To control the 30 plus smart switches and devices that i run mostly using the fantastic Tasmota project. (lots of sonoff/itead devices, and a few wemos D1 diy devices ) I use Node Red and mosquitto mqtt broker both hosted on my ras-Pi-0-W. Node R...
by PhatFil
Mon Nov 04, 2019 11:45 pm
Forum: General discussion
Topic: Vintage radio tuner
Replies: 19
Views: 1627

Re: Vintage radio tuner

the cheap 28BYJ-48 with ULN2003 stepper motor/driver combo and an elastic band drive belt should be able to turn a radio tuning dial consistently to known positions assuming it can be mounted suitably. https://tutorials-raspberrypi.com/how-to-control-a-stepper-motor-with-raspberry-pi-and-l293d-uln20...
by PhatFil
Mon Nov 04, 2019 9:45 pm
Forum: Beginners
Topic: Smart Home Automation - What are the options?
Replies: 9
Views: 1854

Re: Smart Home Automation - What are the options?

look at tasmota, easypeasy. and other off the shelf alternative firmwares that you can simply flash to off the shelf commercial smart products to liberate them from remote data mining server systems.. replacing the closed commercial system with your own mqtt enabled system will let you communicate w...
by PhatFil
Mon Nov 04, 2019 9:09 pm
Forum: Graphics, sound and multimedia
Topic: Connecting Pi to an LED Display
Replies: 4
Views: 656

Re: Connecting Pi to an LED Display

If you can find specs for the cable, you can always try to reverse engineer one, inspect the strip connector carefully with a meter and you should be able to ID the power lines assuming they receive power from the strip.. if lucky it will be a basic 2 cable null modem connection ;) Rx->TX and TX->Rx...
by PhatFil
Mon Nov 04, 2019 6:46 pm
Forum: Graphics, sound and multimedia
Topic: Connecting Pi to an LED Display
Replies: 4
Views: 656

Re: Connecting Pi to an LED Display

if you dont have the manufacturer supplied serial cable you may need to google further for its specs, once gotten and knocked up you may be able to just use a standard serial to usb converter and find the device as a virtual serial port when connected via usb. though its a gamble as the serial inter...
by PhatFil
Sun Nov 03, 2019 6:31 pm
Forum: Beginners
Topic: Disabling external screens on RPi4
Replies: 4
Views: 779

Re: Disabling external screens on RPi4

You can run a different version of raspbian Raspbian Lite https://www.raspberrypi.org/downloads/raspbian/ its smaller as it does not include the usual gui desktop system and other s/w... But connect a keyboard and screen you can still log on with valid credentials to a shell session. Rather than wit...
by PhatFil
Fri Nov 01, 2019 2:59 pm
Forum: General programming discussion
Topic: Which programming system for my appllication?
Replies: 14
Views: 1732

Re: Which programming system for my appllication?

without ANY programming experience and a closed defined set of responses/actions required?? I would question the suitability of a Pi over a simpler soc. The arduino platform is a great starting block as its library format will always contain an example sketch (program) laying out the use of its feat...
by PhatFil
Thu Oct 31, 2019 4:31 pm
Forum: Python
Topic: 8 IR receivers on 8 GPIO pins
Replies: 6
Views: 1469

Re: 8 IR receivers on 8 GPIO pins

try blasting a known ir signal through any material you use for a tube, and have fun watching the faces of anyone watching you switch the tv through your test pipes ;)
by PhatFil
Wed Oct 30, 2019 10:45 pm
Forum: Python
Topic: 8 IR receivers on 8 GPIO pins
Replies: 6
Views: 1469

Re: 8 IR receivers on 8 GPIO pins

The tube should have worked ? perhaps the heatshrink is transparent to UV like trash bags are?? to get a variable signal from such a sensor you need to use an analog input which the pi lacks. Lots of solutions but if you have any arduino experience a slave arduino detecting and transmitting a serial...
by PhatFil
Tue Oct 29, 2019 12:54 pm
Forum: Automation, sensing and robotics
Topic: Cosy CH switch and Ring like doorbell
Replies: 5
Views: 785

Re: Cosy CH switch and Ring like doorbell

I dont know about your h/w needs but HA is pretty comprehensive and if your h/w has a documented interface you should find a roadmap in the docs or from the large user base forum..

https://www.home-assistant.io/docs/
by PhatFil
Tue Oct 29, 2019 4:54 am
Forum: Other projects
Topic: LAN Between Two Pi’s via Ethernet
Replies: 5
Views: 866

Re: LAN Between Two Pi’s via Ethernet

have you enabled ssh?
sudo raspi-config at the cli :)
by PhatFil
Tue Oct 29, 2019 4:40 am
Forum: General discussion
Topic: viewing my windows desktop from raspberry pi on bootup?
Replies: 5
Views: 557

Re: viewing my windows desktop from raspberry pi on bootup?

Probably just not using the right keywords for the search.. assuming you have vncserver running on the windows desktop.. https://raspberry-projects.com/pi/pi-operating-systems/raspbian/auto-running-programs-gui sudo nano /etc/xdg/lxsession/LXDE-pi/autostart This is the same file that is edited if yo...
by PhatFil
Fri Oct 25, 2019 9:05 pm
Forum: General discussion
Topic: Need opinions about tech project
Replies: 7
Views: 433

Re: Need opinions about tech project

granted any advise i can offer is many years out of date, but all the first class degrees from my class where earned by folk who chose simple final projects and drilled down to the fundamentals covering every base. my own project was more complex and DIDNT earn me a first as it was less complete tha...
by PhatFil
Thu Oct 24, 2019 9:12 pm
Forum: Troubleshooting
Topic: Powered USB preferably 3.0 HUB
Replies: 7
Views: 613

Re: Powered USB preferably 3.0 HUB

fwiw when having the same issue with a pi3b nas, i found the Pi hut were selling bare pcb usb2.0 hubs with micro usb socket to connect to the host with a snipable 5v busbar/connection to the host connection socket. if the pcb and connections of a usb3 hub are not easy to mod there is always the conn...
by PhatFil
Tue Oct 22, 2019 11:03 pm
Forum: Python
Topic: Python - Classes / Objects - I need some beginner help...
Replies: 3
Views: 646

Re: Python - Classes / Objects - I need some beginner help...

Hi Chris, the pro-forma for a python class is simply class ClassName: <statement-1> . . . <statement-N> within the statements you define the methods and attributes of your class as you see fit. And Yes Once you have instances of your class you can use any data structure like lists to contain them. s...
by PhatFil
Tue Oct 22, 2019 6:20 pm
Forum: General discussion
Topic: Beam break sensor on Raspberry Pi turns on lights
Replies: 1
Views: 172

Re: Beam break sensor on Raspberry Pi turns on lights

This should get you started with an IR receiver detecting your 'beam'

https://thepihut.com/blogs/raspberry-pi ... -receivers

to create the 'beam' all you need do is power up a IR led like
https://thepihut.com/products/super-bri ... -led-940nm
by PhatFil
Mon Oct 21, 2019 2:52 pm
Forum: General discussion
Topic: Pi ZeroW wifi disconnects with Buster
Replies: 40
Views: 2319

Re: Pi ZeroW wifi disconnects with Buster

Try a router reboot to revive a lost pi next time.. I have Very Similar Network HW!! I started with a plusnet supplied router and am now running a netgear rx7000 and dedicated netgear adsl modem. Over the years I have had my pi-0's (3x) disappearing off my network on quite frequent odd occasions. Af...
by PhatFil
Mon Oct 21, 2019 2:33 pm
Forum: General discussion
Topic: Battery Level Indicator -- While Charging
Replies: 13
Views: 1150

Re: Battery Level Indicator -- While Charging

Voltage level is afaik a valid method of evaluating a lipo cells charge. Battery charging involves applying a target voltage which will be higher than the undercharged battery voltage. during charging the battery voltage will rise to that of the charge voltage until it hits its peak at 4,2v iirc vor...
by PhatFil
Sun Oct 20, 2019 2:25 am
Forum: Python
Topic: 8 IR receivers on 8 GPIO pins
Replies: 6
Views: 1469

Re: 8 IR receivers on 8 GPIO pins

Yep it should be as simple as just that.

have fun..

Go to advanced search