Go to advanced search

by blimpyway
Mon Jul 22, 2019 6:52 pm
Forum: Other projects
Topic: Buy Faster Motors
Replies: 5
Views: 151

Re: Buy Faster Motors

yeah it could be simpler to increase voltage, e.g. use a RC lipo battery at 11,1-14.4V
by blimpyway
Wed Jul 17, 2019 10:47 am
Forum: Other projects
Topic: Automate water heater - Temp sensor/110v relay/switch
Replies: 9
Views: 742

Re: Automate water heater - Temp sensor/110v relay/switch

You are right, but according to this "regulatory" logic, when you create a "device" made of "parts" it doesn't matter the parts are UL-listed or not since the "device" you just made from those parts is not UL listed. Which means no matter if you build the relay circuit yourself or you buy the same m...
by blimpyway
Wed Jul 17, 2019 9:32 am
Forum: Python
Topic: pocketsphinx.c - writing raw audio file- Segmentation Fault
Replies: 2
Views: 180

Re: pocketsphinx.c - writing raw audio file- Segmentation Fault

You can start with details of what hardware version of Pi is each device and which raspibian version is running on each other.

Did you ran:

Code: Select all

$ sudo apt-get update
$ sudo apt-get upgrade
on both?
by blimpyway
Wed Jul 17, 2019 9:14 am
Forum: Python
Topic: How to set python 3.5 as a default language in raspberry pi 3?
Replies: 8
Views: 304

Re: How to set python 3.5 as a default language in raspberry pi 3?

You do not change OS's default python version because you do not know if or which other scripts do not require that specific version. Instead you should tell the OS what python interpreter you want to run your script: e.g. create the following file named runp3.py #!/usr/bin/python3 import sys print(...
by blimpyway
Tue Jul 16, 2019 3:57 pm
Forum: Other projects
Topic: Automate water heater - Temp sensor/110v relay/switch
Replies: 9
Views: 742

Re: Automate water heater - Temp sensor/110v relay/switch

the most common relays used in both 5v relay modules and sonoff remote switches are songle relays which in their datasheets they claim as being "UL,CUL,TUV recognized".
by blimpyway
Fri Jul 12, 2019 10:24 pm
Forum: Automation, sensing and robotics
Topic: V-REP on Raspberry Pi 3+
Replies: 10
Views: 335

Re: V-REP on Raspberry Pi 3+

how can you take such decision if you don't know the answer to this question?
by blimpyway
Thu Jul 11, 2019 2:35 am
Forum: Python
Topic: Can't access package outside virtual environment from inside of virtual environment
Replies: 4
Views: 111

Re: Can't access package outside virtual environment from inside of virtual environment

yes you activate your target environment and run again

Code: Select all

sudo pip3 install /home/pi/tf/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
and whatever other pip install packages are mentioned
by blimpyway
Sun Jul 07, 2019 6:41 am
Forum: Other projects
Topic: Voltage monitoring with email alerts
Replies: 3
Views: 201

Re: Voltage monitoring with email alerts

You can check the low voltage alarm buzzer at what voltage it operates. There should be some rectangular signal that can be fed, directly or through a voltage divider, to a raspberry gpio input pin.

One problem is your low voltage alarm triggers at 3.3V
by blimpyway
Sun Jul 07, 2019 6:33 am
Forum: Automation, sensing and robotics
Topic: which sensor to use for a coffee maker
Replies: 8
Views: 263

Re: which sensor to use for a coffee maker

Assuming the grounds are wet, a simple resistive sensor (as used to test soil humidity) could work. An electrode on the bottom, one closer to the top would drop in resistance when the bin is full.

No moving parts, should consider corrosion - use stainless electrodes, alternating low current
by blimpyway
Sun Jul 07, 2019 6:22 am
Forum: Automation, sensing and robotics
Topic: V-REP on Raspberry Pi 3+
Replies: 10
Views: 335

Re: V-REP on Raspberry Pi 3+

Well no robot needs to run a simulator of itself on the cpu . A simulator is needed to test a design/configuration (a model) in a virtual environment. When that is satisfactory you build the real thing and see how accurate the model is in order to improve it and/or run further tests that are too tim...
by blimpyway
Sat Jul 06, 2019 2:19 pm
Forum: Automation, sensing and robotics
Topic: V-REP on Raspberry Pi 3+
Replies: 10
Views: 335

Re: V-REP on Raspberry Pi 3+

Robot simulators are prone to high-end hardware demands. They put together many parts/pieces/terrain in a physics engine simulator, plus require an accelerator for rendering the entire scene. Why do you want to run it on a PI 3, which is an order of magnitude less than a decent entry level PC in alm...
by blimpyway
Fri Jul 05, 2019 10:54 pm
Forum: Automation, sensing and robotics
Topic: Relee boars + RS485
Replies: 19
Views: 529

Re: Relee boars + RS485

@Brandon - the schematic IOTON proposed was for 24V. So there should be a AC transformer with sufficient insulation. And anyway the optocoupler's purpose is to insulate input from output for high voltages. A perfboard being risky doesn't mean the scheme in itself isn't right. Voltage insulation is a...
by blimpyway
Fri Jul 05, 2019 7:34 pm
Forum: Automation, sensing and robotics
Topic: V-REP on Raspberry Pi 3+
Replies: 10
Views: 335

Re: V-REP on Raspberry Pi 3+

Where did you get the raspberry pi binaries from? I could not found any download of v-rep for PI .

So I guess you should compile it from sources, or at least attempt to.

Pi 3+ resources might not be sufficient for a decent simulation.
by blimpyway
Thu Jul 04, 2019 7:41 pm
Forum: Automation, sensing and robotics
Topic: Relee boars + RS485
Replies: 19
Views: 529

Re: Relee boars + RS485

Yes you can switch the light on/off from either manual switch or relay google for "two switches for one light diagram". Replace one switch with a relay.

And no, it won't know whether the light is on or off without some extra sensor for either current or light.
by blimpyway
Thu Jul 04, 2019 6:24 am
Forum: Python
Topic: How to check output using timer at every second ?
Replies: 13
Views: 430

Re: How to check output using timer at every second ?

For something to run in "background" one can use either threading, multiprocessing, asyncio (or other async framework like gevent)
by blimpyway
Thu Jul 04, 2019 6:15 am
Forum: Advanced users
Topic: Getting data from py serial
Replies: 2
Views: 133

Re: Getting data from py serial

Nice try PhatPhil, there are still indents and line breaks..

Let Mikale put his own code in code tags.
by blimpyway
Wed Jul 03, 2019 7:52 pm
Forum: Other projects
Topic: Raspberry Pi PetChatz
Replies: 1
Views: 115

Re: Raspberry Pi PetChatz

Yup, use IR to turn TV on and switch its input to Pi's HDMI.

So they can see your face in 40" full hd 100fps not that puny 3 inch screen.
by blimpyway
Wed Jul 03, 2019 7:09 pm
Forum: Python
Topic: INstalling iPython and Jupyter on Raspi
Replies: 4
Views: 6928

Re: INstalling iPython and Jupyter on Raspi

These commands worked on my Pi 3 A+, (Raspibian 9 stretch): $ virtualenv -p python3.5 jupytest $ source jupytest/bin/activate $ pip install jupyter Which in few minutes was ending saying: .... Successfully built tornado prometheus-client pyzmq Installing collected packages: ipython-genutils, six, de...
by blimpyway
Mon Jul 01, 2019 8:10 am
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 20
Views: 962

Re: Run a asyncio socket function a a thread

What raspbian do you have? On my Zeros and 3A+ $ cat /etc/os-release Shows me PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" Python version is 3.5.3 $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) ----------------------------------------------- mqtt is not client and server but publisher and s...
by blimpyway
Sun Jun 30, 2019 10:06 pm
Forum: Automation, sensing and robotics
Topic: Pi based in line UV detector
Replies: 1
Views: 102

Re: Pi based in line UV detector

Google says there are 280nm LEDs.
Since the source is 280nm and everything is closed inside a dark box, then any wide range uv detector should work since there will be too few other wavelengths in the box.
by blimpyway
Sun Jun 30, 2019 9:57 pm
Forum: Networking and servers
Topic: ZMQ Context creation very slow
Replies: 3
Views: 156

Re: ZMQ Context creation very slow

I ran this code and there was no delay.
I'd rather suspect some problems with network config on pi host / wifi / router ...

e.g. this kind of delayed network initialisation happens when an app tries to resolve a name to an IP address and it can not.

Of course there could be many other reasons.
by blimpyway
Sat Jun 29, 2019 3:34 pm
Forum: Automation, sensing and robotics
Topic: Relee boars + RS485
Replies: 19
Views: 529

Re: Relee boars + RS485

You should give some links to specification/product pages for these boards.

The PI's 5V line will not be able power all those boards, relays and modules.
by blimpyway
Sat Jun 29, 2019 12:03 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 20
Views: 962

Re: Run a asyncio socket function a a thread

@Robin, In your code examples from your first message, What locks down the thread (and async tasks are never executed) is using time.sleep() in eg: while True: print ("Running") time.sleep(.05) Should use asyncio.sleep() instead, that passes control back to the event loop which in turn runs schedule...
by blimpyway
Sat Jun 29, 2019 11:07 am
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 20
Views: 962

Re: Run a asyncio socket function a a thread

UDP could work too, with minimum overhead. You can find examples for both python, asyncio python and esp8266 I tested the basic asyncio UDP listener below with python 3.5 on my pi zero, and it was able to receive 1500messages/sec with a 50% cpu overhead of the receiving python process: import asynci...
by blimpyway
Sat Jun 29, 2019 10:14 am
Forum: Automation, sensing and robotics
Topic: What CV model should I use to detect my black cat?
Replies: 3
Views: 202

Ad I use to detect my black cat?

ZeroW might work, depending on:
- what/who else is moving in front of the camera.
- which influences what algorithm should be used
- what resolution/framerate/delays are acceptable

Go to advanced search