Go to advanced search

by blimpyway
Fri Oct 23, 2020 8:31 am
Forum: Python
Topic: Python 3.9 [Solved]
Replies: 5
Views: 250

Re: Python 3.9

Did you tried

Code: Select all

$ python3.8 -m pip freeze
?

Or, use virtual environments
or run pip freeze before the installing the newer version.
by blimpyway
Wed Oct 21, 2020 10:27 am
Forum: Python
Topic: Pyserial buffer not flushed
Replies: 28
Views: 520

Re: Pyserial buffer not flushed

Since the issue doesn't seem to be python related there-s a slight chance asking on other forums like "advanced users" or hardware could give you better feedback. What seems to be the problem is the repeated switching between duplex and "simplex" (I guess you meant half-duplex) modes. Half duplex re...
by blimpyway
Tue Oct 20, 2020 12:45 pm
Forum: Python
Topic: Pyserial buffer not flushed
Replies: 28
Views: 520

Re: Pyserial buffer not flushed

I have no way to check how it works for another UNICS. Only Raspberry is available. How 'bout python & pyserial on windows? On the vast majority of pcs/laptops you can install ubuntu/whatever on a bootable USB stick, no need to mess with the windows device in order to use a linux. Even the install ...
by blimpyway
Tue Oct 20, 2020 11:17 am
Forum: Python
Topic: Pyserial buffer not flushed
Replies: 28
Views: 520

Re: Pyserial buffer not flushed

Any reason not to use directly the physical ttl serial device on the GPIO bypassing entirely any USB adapter? And the behavior as described in pyserial documentation does not mention anything about raspberry pi, that's general python documentation. PS I have used a serial port sniffer and have seen ...
by blimpyway
Tue Oct 20, 2020 10:59 am
Forum: Python
Topic: TensorFLow, YoloV4Tiny and sudoku
Replies: 19
Views: 636

Re: TensorFLow, YoloV4Tiny and sudoku

danjperron wrote:
Sun Oct 18, 2020 2:11 am

I saw that video and Mark failed! ;-)
46M views? Definitely not!

You could devise some mechatronic game or test to see & record how fast they figure out what they need to do in order to get a treat.
by blimpyway
Tue Oct 20, 2020 8:15 am
Forum: Other projects
Topic: Raspberrypi wearable camera
Replies: 1
Views: 69

Re: Raspberrypi wearable camera

if it is a Li-Ion battery you can use an empty power bank case - the ones in which you put your own 18650 battery.
Or buy a cheap 2000-3000mAh power bank

Their usb output should be sufficient for a Pi Zero(W) with camera
by blimpyway
Tue Oct 20, 2020 7:48 am
Forum: Python
Topic: Pyserial buffer not flushed
Replies: 28
Views: 520

Re: Pyserial buffer not flushed

hmm, the Pi's usb serial port is not a serial adapter. A serial adapter is a physical device that sits between an usb port and a device that speaks serial only. FTDI, CP2102, CH340 are some of those chips. Which means the limitation does not apply to Pi - its drivers are at the usb devuice level. Wh...
by blimpyway
Sun Oct 18, 2020 10:09 pm
Forum: Python
Topic: when connect to the server the client disconnect
Replies: 10
Views: 301

Re: when connect to the server the client disconnect

I think you will be better off with asyncio protocols On the page below search for "EchoClientProtocol" and "EchoServerProtocol" examples. Unlike the socket examples above, you don't have to wait for messages, your data_received() function is called whenever new data has arrived from server. So you'...
by blimpyway
Sun Oct 18, 2020 9:22 pm
Forum: Python
Topic: when connect to the server the client disconnect
Replies: 10
Views: 301

Re: when connect to the server the client disconnect

The echo server and client from here worked fine for me: https://docs.python.org/3/library/asyncio-stream.html The python client and server code also awaits read(100) without blocking so my assumption above is wrong. Here-s a modified echo server which keeps replying instead of closing the connectio...
by blimpyway
Sun Oct 18, 2020 2:08 am
Forum: Python
Topic: TensorFLow, YoloV4Tiny and sudoku
Replies: 19
Views: 636

Re: TensorFLow, YoloV4Tiny and sudoku

Maybe you can find cooler ways to interact with them other than just chasing them away, e.g. https://www.youtube.com/watch?v=hFZFjoX2cGg
by blimpyway
Sun Oct 18, 2020 1:51 am
Forum: Python
Topic: when connect to the server the client disconnect
Replies: 10
Views: 301

Re: when connect to the server the client disconnect

First I commented on the example of client connecting to an echo server. That needs to be run with the example server from wherever you found the client example. The read() await ends if/when the server closes the connection - in that case it returns fewer than the expected characters. Second, this ...
by blimpyway
Fri Oct 16, 2020 8:57 pm
Forum: Python
Topic: when connect to the server the client disconnect
Replies: 10
Views: 301

Re: when connect to the server the client disconnect

If the client blocks after connecting to the server it could be because it waits for 100 characters there:

Code: Select all

data = await reader.read(100)
If the server responds with only 99 characters your code keeps waiting till the end of time
by blimpyway
Thu Oct 15, 2020 8:36 pm
Forum: Other projects
Topic: HOSTAPD + FLASK ????
Replies: 3
Views: 154

Re: HOSTAPD + FLASK ????

Then as user experience maybe is more convenient to use the phone as hotspot? Pi then will transparently connect to whichever AP is available (home router or phone) - no need for user interaction. And it (the Pi) will also have simple access to internet services (e.g. ntp, automatic updates, etc..) ...
by blimpyway
Thu Oct 15, 2020 8:26 pm
Forum: Automation, sensing and robotics
Topic: Touch screen pid temp controller
Replies: 1
Views: 116

Re: Touch screen pid temp controller

Why not both - launch a browser such it is shown on and interacted with via the touch screen?

e,g, when you use a browser on your phone it is just that - a browser under the touch screen. They work together not only one excluding the other.
by blimpyway
Thu Oct 15, 2020 8:16 pm
Forum: Python
Topic: Face Recognition Issue - Raspberry pi 4
Replies: 1
Views: 121

Re: Face Recognition Issue - Raspberry pi 4

not even humans don't do facial recognition much faster - we don't need to look at someone's face all the time just to track their identity.

The point is once you identified a face it is sufficient to track the "blob" of that face in order to know its identity.
by blimpyway
Thu Oct 15, 2020 11:31 am
Forum: Other projects
Topic: Picamera streaming project with two raspberry pi's
Replies: 10
Views: 384

Re: Picamera streaming project with two raspberry pi's

I think I was a bit sarcastic, I apologize.

Look your RPI-Cam documentation a bit closer:
https://elinux.org/RPi-Cam-Web-Interface#User_buttons
by blimpyway
Thu Oct 15, 2020 11:20 am
Forum: Other projects
Topic: Help needed! 95 ft Rope Light
Replies: 2
Views: 128

Re: Help needed! 95 ft Rope Light

It might be possible but should rather ask whoever makes/sells the light strip(s). At least you need to have good documentation for those strips. I'd expect you'll have to supply power at several points along such a long strip. The fact there are only a few LED's turned on might not be sufficient, v...
by blimpyway
Thu Oct 15, 2020 11:13 am
Forum: Other projects
Topic: HOSTAPD + FLASK ????
Replies: 3
Views: 154

Re: HOSTAPD + FLASK ????

... is this doable ??? or just a waste of time and Yup, it is totally doable. there are better ways to control from wifi-net-phone the scripts on the RP??? A web page/web service is a common way to get interaction between a phone and everything else. So flask, php, or whatever script-able environme...
by blimpyway
Thu Oct 15, 2020 10:56 am
Forum: Automation, sensing and robotics
Topic: How would I make a face recognition project to turn display on/off?
Replies: 3
Views: 237

Re: How would I make a face recognition project to turn display on/off?

Face recognition is expensive in terms of complexity, memory/cpu usage. Slightly simpler is face detection, for that I think you'll find OpenCV python libraries. But even simpler (and much cheaper) solution would be a simple ultrasonic sensor - if it senses somet one -thing in front of the monitor u...
by blimpyway
Thu Oct 15, 2020 10:46 am
Forum: Automation, sensing and robotics
Topic: Autonomous Boat, course problem with PID loops.
Replies: 12
Views: 539

Re: Autonomous Boat, course problem with PID loops.

The purpose of the PID is to smooth out oscillations and keep the track straight. You probably need to manually tune the Ki, Kp, Kd parameters until you get the desired response. PID and refreshing every second gives me a Refresh faster, try 0.1-0.3 seconds. A whole second between updates is suffici...
by blimpyway
Tue Oct 13, 2020 11:01 am
Forum: Other projects
Topic: Picamera streaming project with two raspberry pi's
Replies: 10
Views: 384

Re: Picamera streaming project with two raspberry pi's

Well in your two raspberrys setup one was operating the camera and another one the web page showing the camera content and buttons. Since this requires both Pi-s to work, it cannot be more reliable than a single Pi because ... probabilities. Failure rate of one out of two equal devices is double the...
by blimpyway
Tue Oct 13, 2020 9:21 am
Forum: Automation, sensing and robotics
Topic: google assistant raspberry pi
Replies: 3
Views: 298

Re: google assistant raspberry pi

Regarding hotwords try this: https://github.com/Picovoice/porcupine#performance it's free as in you don't need a multipage tutorial on how to register an account and authorise devices to use someone's web services. And probably better. There are also alternative virtual assistants e.g. Jarvis or Myc...
by blimpyway
Mon Oct 12, 2020 11:11 pm
Forum: Python
Topic: TensorFLow, YoloV4Tiny and sudoku
Replies: 19
Views: 636

Re: TensorFLow, YoloV4Tiny and sudoku

This and other of your projects on youtube are quite cool (e.g. ball knock positioning)

Unfortunately they don't have an explanation, even a link to the corresponding github repo for each video would be great.
by blimpyway
Sat Oct 10, 2020 6:44 pm
Forum: Other projects
Topic: Picamera streaming project with two raspberry pi's
Replies: 10
Views: 384

Re: Picamera streaming project with two raspberry pi's

A Zero can stream camera video with no effort, No need for two 4Bs, only one is 20x more powerful.
by blimpyway
Fri Oct 09, 2020 1:37 am
Forum: Other projects
Topic: How to build a measuring device with a laser distance meter
Replies: 11
Views: 495

Re: How to build a measuring device with a laser distance meter

Basically yes. There are a few fixed common rates ranging from 300bps, 2400, 9600, 19200.. up to 115200 or more.

9600 baud is probably the most common

Go to advanced search