Go to advanced search

by gordon77
Sun Feb 16, 2020 3:10 pm
Forum: General discussion
Topic: Pi4, 2GB, and new Buster issue ?
Replies: 6
Views: 361

Re: Pi4, 2GB, and new Buster issue ?

Thanks for the advice.
by gordon77
Sun Feb 16, 2020 2:28 pm
Forum: General discussion
Topic: Pi4, 2GB, and new Buster issue ?
Replies: 6
Views: 361

Re: Pi4, 2GB, and new Buster issue ?

Thanks, l hadn't noticed.
by gordon77
Sun Feb 16, 2020 12:05 pm
Forum: General discussion
Topic: Pi4, 2GB, and new Buster issue ?
Replies: 6
Views: 361

Re: Pi4, 2GB, and new Buster issue ?

I have now tried it on my Pi4 4GB and all OK. (usual annoying setting of US keyboard even if you don't chose it !!)

May go back to the Pi4 2GB and try again sometime, but I ended up with 2 locked SD cards trying.
by gordon77
Sat Feb 15, 2020 6:36 pm
Forum: Python
Topic: Start the GUI app after RPi boot
Replies: 5
Views: 149

Re: Start the GUI app after RPi boot

3
by gordon77
Sat Feb 15, 2020 2:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to list,test GPS is working or not?
Replies: 7
Views: 3544

Re: How to list,test GPS is working or not?

I haven't used that GPS. But reading this... https://www.instructables.com/id/Raspberry-Pi-the-Neo-6M-GPS/ Have you tried baud rate at 9600 ? Do you think it should be at ttyS0 and not ttyAMA0 ? Do you need to modify the serial interface to use it ? import serial import datetime import os gps_con = ...
by gordon77
Thu Feb 13, 2020 10:05 am
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

I have run the version above (message dated Wed Feb 12, 2020 5:04 pm) for several hours with no issues.

Let me know if you find any.
by gordon77
Thu Feb 13, 2020 5:11 am
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

My latest is the last version on here.

I have edited it to also lock lists while plotting. See how that goes.

(I edited on my mobile phone,hopefully no typos !)
by gordon77
Wed Feb 12, 2020 10:00 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

I added 'lock_list' which prevents the animate section updating the plot whilst the received data is being added to the lists. It was trying to plot when all the lists hadn't been updated so they contained different numbers of elements which crashed the plot. Max_count determines how much you see on...
by gordon77
Wed Feb 12, 2020 7:27 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Yes that's the same issue, l'm hoping l've fixed it 🙂
by gordon77
Wed Feb 12, 2020 6:13 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

rin67630 wrote:
Wed Feb 12, 2020 6:08 pm
same same...
It stopped after ~42000 points
???

The date display is super! Thank you!
Any error message?

42000 seconds? That's 11.6hrs!
by gordon77
Wed Feb 12, 2020 5:04 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Try this.. it stops the plot whilst it appends the lists. #! /usr/bin/env python3 import serial import time import os import threading import queue import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style from matplotl...
by gordon77
Wed Feb 12, 2020 5:02 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Are you using the latest version ?

It doesn't have ser.in_waiting in it at line 47 ?
by gordon77
Wed Feb 12, 2020 4:45 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

I think it maybe a timing issue between the data coming in and the list getting appended and the plot updating.

The plot maybe reading the lists not filled with all values, so a mismatch.

I've added a check for now.
by gordon77
Wed Feb 12, 2020 3:59 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Changed to current time, and temporary fix for the issue (hopefully)
by gordon77
Wed Feb 12, 2020 3:12 pm
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Try this.. Adds the times BUT there is an issue I can't find a solution for yet, it seems to stop occasionally, maybe the lists don't match. You will have to experiment with MAJOR tick spacings and font sizes dependent on how long you want to run the script, or maybe make them dependent on the count...
by gordon77
Wed Feb 12, 2020 10:11 am
Forum: Python
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 20
Views: 352

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Can you post your code, it would be better to work on that ?
by gordon77
Wed Feb 12, 2020 10:07 am
Forum: Beginners
Topic: Stand alone music player
Replies: 15
Views: 372

Re: Stand alone music player

Maybe this... https://thepihut.com/collections/raspberry-pi-screens/products/hyperpixel and it says its the same 800 x 480 as the pi 7" Note l haven't tried this one. I have now tried one of these Hyperpixel 4" screens and it works fine. A little on the small size for tapping the screen buttons wit...
by gordon77
Tue Feb 11, 2020 3:59 pm
Forum: General discussion
Topic: Pi4, 2GB, and new Buster issue ?
Replies: 6
Views: 361

Pi4, 2GB, and new Buster issue ?

I did a fresh install on a Pi3B+ and all worked OK.

Did the same on a Pi4, 2GB, and the mouse works OK for a few seconds after reboot BUT then nothing else, it just freezes.

Mouse and Keyboard are wireless, not that has been an issue before.

Any clues ?
by gordon77
Tue Feb 11, 2020 12:22 pm
Forum: General discussion
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 16
Views: 439

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Try this... #! /usr/bin/env python3 import serial import time import os import threading import queue import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style import datetime global log log = 0 # set log to 1 to save a log in RAM. if os.path.exists('/dev/...
by gordon77
Mon Feb 10, 2020 9:08 pm
Forum: General discussion
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 16
Views: 439

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Take a look at split(), and see if it will accept spaces

x, y, z, j, k = line.split(' ')

Or if a fixed format string you should be able to separate them by their locations in the string.

a = myData2[0:4]
by gordon77
Mon Feb 10, 2020 8:53 pm
Forum: General discussion
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 16
Views: 439

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

rin67630 wrote:
Mon Feb 10, 2020 8:36 pm
Hi Gordon77,
how could i tweak it to accept spaces a separators?
I suppose its in

Code: Select all

myData2 = re.findall("\d+\.\d+", myData2) 
Right?
That extracts numbers, as in 100.0

What are the spaces separating?
by gordon77
Mon Feb 10, 2020 7:38 pm
Forum: General discussion
Topic: Standalone Arduino serial Plotter equivalent on Raspberry Pi?
Replies: 16
Views: 439

Re: Standalone Arduino serial Plotter equivalent on Raspberry Pi?

Hi, thank you for the code. I have tested it. It runs quite well and does the job. However, with 5 values to be plotted each second it takes already 30% of the processing power of a Pi 4, whereas the original from the IDE takes only 12% for the same task, even with the full IDE in the background. A...
by gordon77
Mon Feb 10, 2020 4:31 pm
Forum: Troubleshooting
Topic: Arduino to Pi Serial
Replies: 9
Views: 268

Re: Arduino to Pi Serial

Can we just add after a = float(e)...

Code: Select all

if a > 32768:
    a = 0-(a - 32768)
by gordon77
Mon Feb 10, 2020 11:15 am
Forum: Français
Topic: camera raspberry v2
Replies: 6
Views: 343

Re: camera raspberry v2

Alexandre_mgrd wrote:
Mon Feb 10, 2020 9:50 am
Thank you, your code seems to work but I don’t understand where the video is recording, do I need to change the code to configure the recording folder.
They are in the home dir /home/pi/

You could change as required, E.g. to camera.start_recording('/home/pi/Videos/' + str(timestamp) + '.h264')
by gordon77
Mon Feb 10, 2020 9:49 am
Forum: Français
Topic: camera raspberry v2
Replies: 6
Views: 343

Re: camera raspberry v2

Its a python script. Save it as v2camera.py in /home/pi

in a terminal window type python3 v2camera.py

Go to advanced search