Go to advanced search

by PhatFil
Mon Jan 27, 2020 6:39 pm
Forum: Python
Topic: Calling mosquitto stop and start from Python
Replies: 9
Views: 205

Re: Calling mosquitto stop and start from Python

perhaps an edit of your misbehaving esp system to preempt the day 3 coms failure by restarting the esp every 48 hours?
by PhatFil
Mon Jan 27, 2020 3:26 pm
Forum: Other programming languages
Topic: Convert C# to Python 3
Replies: 14
Views: 401

Re: Convert C# to Python 3

a byte is 8 bits and can contain 256 different values 0-255 and its often easier to think about numbers like 256 in base 16 8 or 2 as it is a bit tidier.. so we use 0x00 to 0xFF the 0x prefix indicting its hex (hexidecimal) notation.. where ABCDEF represent numbers 10,11,12,13,14,15 (16 x 16 = 256.....
by PhatFil
Mon Jan 27, 2020 1:40 am
Forum: Other programming languages
Topic: Convert C# to Python 3
Replies: 14
Views: 401

Re: Convert C# to Python 3

I'm very sorry if anyone saw something besides the cube information. It shocked me when I read your reports. PhatFil, thanks for looking into it. I'm glad to hear that it is straight forward if you know both languages. Does the function funPrintCube() send using the serial port or can any GPIO be u...
by PhatFil
Mon Jan 27, 2020 12:54 am
Forum: Beginners
Topic: can't get NOOBS installed. Blank screen on restart
Replies: 25
Views: 483

Re: can't get NOOBS installed. Blank screen on restart

where did you get the 16GB sandisk sd cards from? It may be expedient to google for some s/w to validate genuine/fake sdhc cards?? amazon and ebay re-sellers that are here today and gone tomorrow are notorious for selling fake cards.. I have bought my fair share... Now i only buy from BnM sellers wi...
by PhatFil
Mon Jan 27, 2020 12:48 am
Forum: General discussion
Topic: Power Supply for multiple RAPI4B+
Replies: 13
Views: 2142

Re: Power Supply for multiple RAPI4B+

Pimaxin wrote:
Sun Jan 26, 2020 11:50 pm
W. H. Heydt wrote:
Mon Jul 08, 2019 4:21 pm
Minor nitpick...
There is no "Pi4B+". There are three versions of the Pi4B.
What are the three versions?
Pi4b 1GB, Pi4B 2GB , and Pi4B 4GB...
by PhatFil
Sun Jan 26, 2020 1:31 am
Forum: Beginners
Topic: can't get NOOBS installed. Blank screen on restart
Replies: 25
Views: 483

Re: can't get NOOBS installed. Blank screen on restart

If your goal is to install raspbian buster then its probably easier to just download the raspbian buster image zip file and use balena etcher to prepare your system sd card from the zip file. smaller download, less to do and it should just work. https://www.raspberrypi.org/downloads/raspbian/ just s...
by PhatFil
Fri Jan 24, 2020 9:28 pm
Forum: Other programming languages
Topic: Convert C# to Python 3
Replies: 14
Views: 401

Re: Convert C# to Python 3

Same ws2812b project from your other post? - clears up why you need Tx and Rx to communicate with your 'led strip'... that did sound odd!! so some chip installed in the cube takes serial commands and does stuff eh? list of all the known codes and effects would be useful but the code shared looks fai...
by PhatFil
Fri Jan 24, 2020 12:18 pm
Forum: Networking and servers
Topic: Esp8266 and Raspberry Pi communication without internet
Replies: 6
Views: 149

Re: Esp8266 and Raspberry Pi communication without internet

if a MPU6050 3-Axis Gyroscope and 3-Axis Accelerometer sensor (I2C) is suitable for your needs you can use the tasmota f/w on your esp devices to publish the data just flash and configure.
by PhatFil
Fri Jan 24, 2020 11:11 am
Forum: Beginners
Topic: I keep running into road blocks.
Replies: 8
Views: 342

Re: I keep running into road blocks.

Hi Bill When you hit a situation where you cant lift an existing project and just use it without modification, you can either 1) learn how to modify the project 2) find another project 3) build your own.. Some Python projects can involve elegant and sophisticated code using more of the complex data ...
by PhatFil
Thu Jan 23, 2020 9:03 pm
Forum: Beginners
Topic: I keep running into road blocks.
Replies: 8
Views: 342

Re: I keep running into road blocks.

Hi Bill, Finding a good guide can help a lot... https://github.com/scottlawsonbc/audio-reactive-led-strip seems to be an upto date and supported project that covers most of what you describe? i would test without the suggested Logic Level Shifter as when using ws2812 led strips i have never needed o...
by PhatFil
Tue Jan 21, 2020 9:23 pm
Forum: Beginners
Topic: Make pwr & act LED visible externally
Replies: 5
Views: 359

Re: Make pwr & act LED visible externally

you can have a go at a diy light pipe to move the light from the onboard led an inch or so to the external face of a box/case. patience and a flame should let you heat up a suitable transparent spru of plastic or acrylic or polycarb rod if you cannot recycle something polish the end faces for max ef...
by PhatFil
Sat Jan 18, 2020 1:53 am
Forum: Troubleshooting
Topic: DIY Power Bank issues
Replies: 6
Views: 240

Re: DIY Power Bank issues

One of those inline usb power meters would be pretty useful in diagnosing whats going on with the power your module can supply.. compare the readings when powered up successfully via a recommended or 'working' pi psu against readings taken during the failure to power up when connected to the battery...
by PhatFil
Sat Jan 18, 2020 1:05 am
Forum: Troubleshooting
Topic: Relay module to RPI is not working
Replies: 16
Views: 388

Re: Relay module to RPI is not working

there are a lot of different relay modules but i think i saw a 'VCC' label close to that yellow jumper? if so that may be a similar module to one i have used? If i am right and i am often NOT! pulling a gpio configured for output to ground would 'turn on' the relevant relay, and and the 3.3v High le...
by PhatFil
Fri Jan 17, 2020 4:51 am
Forum: Troubleshooting
Topic: Trouble cloning my boot sd...
Replies: 4
Views: 151

Re: Trouble cloning my boot sd...

+1 the built in sd copier utility is a straight forward solution, you just need a usb adaptor/card reader for the backup sd card.
by PhatFil
Wed Jan 15, 2020 10:56 pm
Forum: General programming discussion
Topic: tools to control a mobile phone (android) via usb
Replies: 2
Views: 329

Re: tools to control a mobile phone (android) via usb

Hi Lewis good point regarding a usb soundcard to handle the audio. thanks for the input and the pointer to record the sound. Its a 2g mobile phone call i want to initiate via a usb/serial connection to a 2/3/4g andriod phone. a little further browsing around led me to a stack exchange roadmap to exp...
by PhatFil
Sun Jan 12, 2020 7:07 pm
Forum: Advanced users
Topic: Serial-Signal send information to local website
Replies: 14
Views: 415

Re: Serial-Signal send information to local website

iirc stty is the command to configure the 'un-set' coms parameters such as baud rate stop bit parity etc.. https://www.google.com/search?sxsrf=ACYBGNTKHvBNob4KqLqln3eSpIqnfj-zNg%3A1578855852113&ei=rG0bXsDDBvyGhbIP8IinGA&q=raspbian+stty&oq=raspbian+stty&gs_l=psy-ab.3..0i13j0i13i10j0i13i30l5j0i13i10i3...
by PhatFil
Sat Jan 11, 2020 4:37 am
Forum: Automation, sensing and robotics
Topic: Pi somehow control wifi light dimmer ?
Replies: 11
Views: 612

Re: Pi somehow control wifi light dimmer ?

Interesting to learn about Tasmota, I see it does support wifi dimmers like "PS-16-DZ" containing ESP8285 and a Nuvoton N76E003, so that's another choice... but once I reflash firmware, I'm completely owning responsibility for how something that in my case could draw 120V * 15A = 1800W is controlle...
by PhatFil
Fri Jan 10, 2020 5:10 pm
Forum: Automation, sensing and robotics
Topic: Pi somehow control wifi light dimmer ?
Replies: 11
Views: 612

Re: Pi somehow control wifi light dimmer ?

+2 for Tasmota, while there are other alt firmware projects for esp826x architecture tasmota is by far the most mature and feature packed. Its wiki also maintains a pretty good list of suitable devices to use and how to flash them.. https://tasmota.github.io/docs/#/Home your Pi can host a mqtt broke...
by PhatFil
Tue Jan 07, 2020 1:42 pm
Forum: General discussion
Topic: Outdoor Security Sensors
Replies: 11
Views: 414

Re: Outdoor Security Sensors

fwiw i use a number of cheap battery powered 433mhz pir alarm components which cost $4 upwards,, the cheaper type run off 23a(not amps) 12v camera batteries, but more expensive (circa 8-10$) versions run off 2 x aa rechargeable batteries for 18-24 months.. https://www.aliexpress.com/wholesale?catId=...
by PhatFil
Tue Jan 07, 2020 11:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Power from GPIO
Replies: 3
Views: 163

Re: Power from GPIO

NO a 33v gpio pin can provide something like 12-16ma you can easily google that tho.. search for "Pi gpio max current" or similar but thats ample to power a single breadboard led with a current limiting resistor but not a strip of multiple leds this will likely fry your pi or at least kill that part...
by PhatFil
Sun Jan 05, 2020 2:31 am
Forum: Beginners
Topic: button with python
Replies: 17
Views: 494

Re: button with python

a multimeter with a continuity test feature is an invaluable tool to determine which button terminals are commonly joined and which are connected during a button press and normally open. if lacking on your meter you can test resistance as a connection will not have any significant resistance.. gener...
by PhatFil
Sat Jan 04, 2020 11:43 pm
Forum: Beginners
Topic: button with python
Replies: 17
Views: 494

Re: button with python

The example you linked to is straightforward (4 lines of code in a file) so where do you fail to get the expected results?

when you run your 4 line python script file what happens?
if you get an error message what does it say?

use the code tags if you post code ..
by PhatFil
Sat Jan 04, 2020 2:51 am
Forum: Beginners
Topic: incorrect default password for Raspbian
Replies: 15
Views: 554

Re: incorrect default password for Raspberian

have you dropped the empty file named "ssh" in the boot partition of your system sd before inserting it into your pi? This is the step necessary to enable ssh on the system as its not enabled by default,
by PhatFil
Sat Jan 04, 2020 2:33 am
Forum: Beginners
Topic: Slightly wrong components for every project!
Replies: 4
Views: 275

Re: Slightly wrong components for every project!

Hi next time you buy a component ensure the seller has provided you with everything you need to know in order to connect and use it. If you find a component on sale by a seller who does not provide at least a link to the datasheet pdf even if a fraction of the cost it could easily become an expensiv...
by PhatFil
Wed Jan 01, 2020 6:53 pm
Forum: Python
Topic: How to know if a device is on or off from another device
Replies: 4
Views: 198

Re: How to know if a device is on or off from another device

which scripting tool do you want to use? adding "python" or "Bash" to your search string should provide lots of examples

ie "python ping script" or "bash ping script examples"

https://uk.search.yahoo.com/search?fr=m ... t+examples

Go to advanced search