Go to advanced search

by PhatFil
Wed Oct 14, 2020 6:02 pm
Forum: General discussion
Topic: How can I setup WiFi before I installed my Pi
Replies: 3
Views: 131

Re: How can I setup WiFi before I installed my Pi

the wpa_supplicant.conf file just needs to be prepared and placed in the boot volume of the pi as per the instructions found here https://www.raspberrypi.org/documentation/configuration/wireless/headless.md then when it boots up and finds the file there it should install it into its correct destinat...
by PhatFil
Tue Oct 06, 2020 4:56 am
Forum: Beginners
Topic: Mouse/Keyboard Issue
Replies: 2
Views: 114

Re: Mouse/Keyboard Issue

Not quite sure what you mean by performing an update with a different o/s?? if you mean via a ssh or vnc link from another puter, - NOT A PROBLEM!! Are the mouse and keyboard problems a symptom or the problem? if wireless have you checked the batteries?? and perhaps range of the dongle use to connec...
by PhatFil
Thu Oct 01, 2020 11:39 pm
Forum: General discussion
Topic: Wireless communication between two RPi Zero W
Replies: 8
Views: 342

Re: Wireless communication between two RPi Zero W

what buttons do you require? how about re-purposing a cheap off the shelf controller? Perhaps I dont understand the full requirements for your project but a single pi embedded within the board should provide all the processing power you could need?? lots of bluetooth controllers/joysticks for phones...
by PhatFil
Fri Sep 25, 2020 6:28 pm
Forum: General discussion
Topic: Automating a script to Turn On/Off the Lights connected to Sonoff WiFi Smart Switch
Replies: 13
Views: 715

Re: Automating a script to Turn On/Off the Lights connected to Sonoff WiFi Smart Switch

I also like to explore more options to automate the process of Turning the Red Beacon Lights. Do we have any other options than sonoff smart switch where I do not need to flash the switch. Most if not all 'smart' switches/devices will have a control app for your phone, many of these will provide an...
by PhatFil
Thu Sep 24, 2020 1:57 pm
Forum: General discussion
Topic: Automating a script to Turn On/Off the Lights connected to Sonoff WiFi Smart Switch
Replies: 13
Views: 715

Re: Automating a script to Turn On/Off the Lights connected to Sonoff WiFi Smart Switch

afaik https://github.com/tasmota/tasmotizer provides the easiest flashing of a sonoff with tasmota.. Have a sit down with the tasmota wiki for the latest details on set up config and use. https://tasmota.github.io/docs/ while not necessary its easiest to control when also hosting a mqtt broker, and ...
by PhatFil
Mon Sep 21, 2020 2:17 pm
Forum: Gaming
Topic: Here's some of the games I have running on my Pi4
Replies: 23
Views: 1334

Re: Here's some of the games I have running on my Pi4

I didnt sopt either Command and conquer red alert2-Yuris revenge? and Generals-Zero hour?? in that impressive desktop..
by PhatFil
Sat Sep 12, 2020 6:43 pm
Forum: Python
Topic: assign multiple mqtt messages to variables
Replies: 8
Views: 340

Re: assign multiple mqtt messages to variables

OK just checked the paho docs with a casual glance and it seems qos isnt suported :oops: https://www.eclipse.org/paho/index.php?page=clients/python/docs/index.php#id3 client.publish(topic1, msg1) # sleep 10-100? miliseconds https://stackoverflow.com/questions/48134261/how-to-use-time-sleep-in-millis...
by PhatFil
Sat Sep 12, 2020 6:20 pm
Forum: Python
Topic: assign multiple mqtt messages to variables
Replies: 8
Views: 340

Re: assign multiple mqtt messages to variables

** edit ** this stinks of BAD PRACTICE and will need lots of error handleing as what happens when only one publication is sent?? the above cludge is a fix when and only when both publications are made as in the first script.. if a test setup for 2 sensors that will publish distinct sets of data at ...
by PhatFil
Sat Sep 12, 2020 4:45 pm
Forum: Python
Topic: assign multiple mqtt messages to variables
Replies: 8
Views: 340

Re: assign multiple mqtt messages to variables

fwiw my mqtt/python reference http://www.steves-internet-guide.com/mqtt-publish-subscribe/ (what i use...) given you have 2 json packages concatenated together you could use the split function on "}{" and add back the ending } on the first packet and the leading { of the second.. to get a list of 2 ...
by PhatFil
Sat Sep 12, 2020 2:51 pm
Forum: Python
Topic: assign multiple mqtt messages to variables
Replies: 8
Views: 340

Re: assign mutliple mqtt messages to variables

Luminoicity is in msg2 your subscibe script is reacting to the arrival of a message, msg1

add a bit of code to test which messgae has arrived and deal with it accordingly.
by PhatFil
Fri Sep 11, 2020 9:42 am
Forum: Other projects
Topic: Has anyone here used a 3D printing service to make enclosures for projects?
Replies: 42
Views: 1808

Re: Has anyone here used a 3D printing service to make enclosures for projects?

ABS sounds like a good option, have got my digits crossed on your behalf, nice clean simple design should print well in the hands of a pro ;) and a 40% infil with thick walls and the added base support all sounds good.

keep us informed when it lands..
by PhatFil
Thu Sep 10, 2020 6:33 pm
Forum: Other projects
Topic: Has anyone here used a 3D printing service to make enclosures for projects?
Replies: 42
Views: 1808

Re: Has anyone here used a 3D printing service to make enclosures for projects?

think of it as a 3 phase process 1) design 2) slice 3) print.. Its the slicing phase and s/w that you will use to specify the printing parameters based on the target printer material and requirements, and then prepare your model designed in tinkercad into instructions for the printer to execute. And...
by PhatFil
Thu Sep 10, 2020 6:13 am
Forum: Other projects
Topic: Has anyone here used a 3D printing service to make enclosures for projects?
Replies: 42
Views: 1808

Re: Has anyone here used a 3D printing service to make enclosures for projects?

the infill is the material printed between the walls or faces of your design. the thickness of the walls and the percentage and pattern of the infill will effect the strength of your final piece. you can also add voids and slots into which you can shove/fit re-enforcing material like steel or brass ...
by PhatFil
Wed Sep 09, 2020 6:54 pm
Forum: Python
Topic: (Solved Thanks )Trying to get the elapse time between 2 if statements running
Replies: 6
Views: 216

Re: Trying to get the elapse time between 2 if statements running

quick glance indicates your assigning a value to the start variable within an if condition, so there could be occasions when its undefined when you come to use it?
by PhatFil
Wed Sep 09, 2020 6:46 pm
Forum: Python
Topic: Python BLE library for GATT connections?
Replies: 2
Views: 179

Re: Python BLE library for GATT connections?

Fwiw i used this project as a template ;) https://github.com/ThomDietrich/miflora-mqtt-daemon, and ended up investing in a couple of the miflora sensors as inconspicuous room temp monitors.. (great battery life in a tidy package)
by PhatFil
Wed Sep 09, 2020 4:11 pm
Forum: Automation, sensing and robotics
Topic: Cat Home DIY Q&A - Solenoid Valve How To
Replies: 27
Views: 5074

Re: Cat Home DIY Question - How to Use Solenoid Valve

Where can I buy this valve? I am in the US. ebay, amazon, or aliexpress are probably the easiest sources. results from a quick ebay look-up https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2334524.m570.l1313&_nkw=12v+solenoid+valve&_sacat=0&LH_TitleDesc=0&_odkw=12v+solenoid+valve&_osacat=0 your p...
by PhatFil
Wed Aug 26, 2020 7:09 pm
Forum: Beginners
Topic: RealVNC encryption level
Replies: 4
Views: 211

Re: RealVNC encryption level

quick lok up led me to here https://help.realvnc.com/hc/en-us/articles/360002253278-Setting-up-VNC-Connect-for-Maximum-Security- seems for maximum security you need to purchase the enterprise server, ;) Do you NEED? remote desktop gui access?? SSH should provide anything not available from any web g...
by PhatFil
Wed Aug 26, 2020 6:48 pm
Forum: General discussion
Topic: Longevity of RPi USB ports?
Replies: 23
Views: 1125

Re: Longevity of RPi USB ports?

still got one usb port that works with a wiggle on my vintage sony laptop, and i would certainly recommend using a hub or a port extension for any usb port intended for repetitive use to provide a reasonable service cost. port extension cables also make boxing an easier job not needing to expose the...
by PhatFil
Fri Aug 21, 2020 11:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Dashbord with 4 gauges from 4 displays
Replies: 14
Views: 766

Re: Dashbord with 4 gauges from 4 displays

have you looked at the nextion displays from itead? my only experience is via youtube vids.. but they look like stand alone 'smart' screens that can talk via a serial connection.. so hooking 4x or more upto a pi via usb/ftdi, ttl,uart shouldnt be too tricky. not round tho..
by PhatFil
Wed Aug 19, 2020 12:23 pm
Forum: Networking and servers
Topic: Wireless headless.
Replies: 5
Views: 283

Re: Wireless headless.

If you have a pi3 handy you can debug your boot/config issues on your zero SD card using that, just plug in your zero-sd card into the pi3 and plug in a network cable to bypass the need for wifi to ssh in if you are also running the pi3 headless.. Once you have one zero booting and on your net with ...
by PhatFil
Wed Aug 19, 2020 5:47 am
Forum: General discussion
Topic: I want a rotary switch to be able to activate different programs
Replies: 12
Views: 790

Re: I want a rotary switch to be able to activate different programs

you may want to consider a 16 button numeric keyboard which in a matrix config will only require 7 gpio and provide you with an unlimited number of input options to assign to actions https://thepihut.com/products/membrane-3x4-matrix-keypad-extras?variant=27740422481¤cy=GBP&utm_medium=product_s...
by PhatFil
Tue Aug 18, 2020 10:36 pm
Forum: Beginners
Topic: Ways to control UAVs without RC with Raspberry Pi?
Replies: 7
Views: 351

Re: Ways to control UAVs without RC with Raspberry Pi?

wifi used with directional antenna?
by PhatFil
Fri Aug 07, 2020 12:38 pm
Forum: Beginners
Topic: bit of advice please - simply sense a doorbell press
Replies: 22
Views: 1080

Re: bit of advice please - simply sense a doorbell press

a quick google for sense hat revealed this https://www.raspberrypi.org/products/sense-hat/ ? i cant see any 12v compatible i/o? a number of options could work, a light sensitive resistor sealed over any leds or lights that indicate doorbell ringing?? a tilt switch or vibration sensitive module could...
by PhatFil
Mon Aug 03, 2020 7:36 pm
Forum: Networking and servers
Topic: HDD plugged into router.
Replies: 1
Views: 130

Re: HDD plugged into router.

check your router documentation or even its hdd set up page...
by PhatFil
Thu Jul 30, 2020 6:19 am
Forum: Beginners
Topic: Connecting two mpu sensors into raspberry pi
Replies: 4
Views: 207

Re: Connecting two mpu sensors into raspberry pi

connect both devices to the i2c bus pins (clock and data) and use the i2c protocols to address each instance on the shared bus. use the solderpads on one to select the 2ndary address so both will have a unique id on the shared i2c bus. google "Pi multiple i2c sensors python" or similar for walk thro...

Go to advanced search