Go to advanced search

by PiGraham
Tue Apr 21, 2020 3:15 pm
Forum: General discussion
Topic: Reliable means of determining directional heading...
Replies: 83
Views: 2506

Re: Reliable means of determining directional heading...

Without question this is a very difficult problem to solve. To me, I don't agree with some of these sensors being called a compass when they are so inaccurate +- 2.5 degrees is a substantial error. It's probably better than a person or a vehicle can steer. Undulations in the road, flex in the tyres...
by PiGraham
Tue Apr 21, 2020 3:11 pm
Forum: Other projects
Topic: Long term powering of Raspberry pi 4B in remote forest
Replies: 34
Views: 1826

Re: Long term powering of Raspberry pi 4B in remote forest

In answer to some of the great comements: My RPI 4 will be running an ALPR on a road running through a forest with very limited sun. It requires quite a bit of juice and is never in a low power idle status. Upon boot, ALPR will either join a known wireless network or create it's own AP. The PiZero ...
by PiGraham
Tue Apr 21, 2020 8:59 am
Forum: General discussion
Topic: Reliable means of determining directional heading...
Replies: 83
Views: 2506

Re: Reliable means of determining directional heading...

Vectronix claim sub 1° accuracy for their ULTISENSE modules.
https://www.safran-vectronix.com/product/dmc-sx-5000/

"military and civil applications" might mean high price and / or limited availability.
by PiGraham
Mon Apr 20, 2020 5:10 pm
Forum: General discussion
Topic: Reliable means of determining directional heading...
Replies: 83
Views: 2506

Re: Reliable means of determining directional heading...

What the geomagnetic sensor does give you is no drift. Dead reckoning or accelerometers accumulate error whereas the Earth's magnetic field, or better, GPS satellites, give an absolute frame of reference. A possible alternative is to build a local frame of reference. Put markers or beacons in known ...
by PiGraham
Mon Apr 20, 2020 4:09 pm
Forum: General discussion
Topic: Reliable means of determining directional heading...
Replies: 83
Views: 2506

Re: Reliable means of determining directional heading...

You say that none of five digital compasses (geomagnetic sensor) is "reliable enough". What performance are you getting? Do you have a calibration problem, or a calculation problem or noisy data? Do you get the performance you expect using a compass app for your phone? You aren't likely to do better...
by PiGraham
Mon Apr 20, 2020 3:22 pm
Forum: General discussion
Topic: Raspberry Pi 4 - And powered USB hubs - any fixes?
Replies: 12
Views: 609

Re: Raspberry Pi 4 - And powered USB hubs - any fixes?

The real issue with hubs is that they should not try to "backfeed" power to their up-stream connection. That may be a real problem with some hubs, possibly bad for the powering a Pi, but is it the problem the OP has? Why would a back feeding hub not work as a hub? Does it somehow disable the hub it...
by PiGraham
Mon Apr 20, 2020 3:18 pm
Forum: General discussion
Topic: Raspberry Pi 4 - And powered USB hubs - any fixes?
Replies: 12
Views: 609

Re: Raspberry Pi 4 - And powered USB hubs - any fixes?

It really is a quite profound voltage problem - as connecting the USB hub to either USB2 or USB3 causes the 3.3v fan to stop spinning. I dread to think what is happening to the board's voltages and ground. As I mentioned, the previous versions of the RPi don't exhibit this problem so I hope the des...
by PiGraham
Sat Apr 18, 2020 9:35 am
Forum: Python
Topic: Stepper 288yj-48 - stop and restart from the latest position
Replies: 108
Views: 2526

Re: Stepper 288yj-48 - stop and restart from the latest position

pcmanbob wrote:
Sat Apr 18, 2020 9:19 am
we do it by changing the direction we read the list of gpio output states.
That is a cleaner way to do it
by PiGraham
Sat Apr 18, 2020 9:10 am
Forum: Python
Topic: Stepper 288yj-48 - stop and restart from the latest position
Replies: 108
Views: 2526

Re: Stepper 288yj-48 - stop and restart from the latest position

On the other hand this guy claims to achieve it by simply coping the previous stepper motor code and changing the GPIO pins assignments. http://jumpstation.co.uk/flog/Mar2014.html#190320142109 It looks like he's using a breadboard, which I don't need as my pi is a 3 Model A+. Also I don't understan...
by PiGraham
Sat Apr 18, 2020 9:01 am
Forum: Python
Topic: Stepper 288yj-48 - stop and restart from the latest position
Replies: 108
Views: 2526

Re: Stepper 288yj-48 - stop and restart from the latest position

On the other hand this guy claims to achieve it by simply coping the previous stepper motor code and changing the GPIO pins assignments. http://jumpstation.co.uk/flog/Mar2014.html#190320142109 It looks like he's using a breadboard, which I don't need as my pi is a 3 Model A+. Also I don't understan...
by PiGraham
Wed Apr 15, 2020 2:22 pm
Forum: HATs and other add-ons
Topic: Steering Wheel Controls Help
Replies: 2
Views: 246

Re: Steering Wheel Controls Help

This is the Radio I Have: Dual Electronics XDVD176BT 7" LED Backlit Touchscreen LCD Single DIN Car Stereo Long story short I dont know what I need to make touch Steering Wheel Controls. Could someone point me in the right direction? That unit has a remote control. Probably infrared. If so you could...
by PiGraham
Wed Apr 15, 2020 12:21 pm
Forum: General discussion
Topic: Remote micro-sd card?
Replies: 5
Views: 294

Re: Remote micro-sd card?

Hi, I was wondering if anyone has come across a way to remotely extend access to the micro-sd card for the Pi? The application would be if you have your Pi in a difficult to get to area, you could still access the micro-sd card. I'm talking about the onboard one, not one using a USB adapter. Perhap...
by PiGraham
Mon Apr 13, 2020 1:46 pm
Forum: General discussion
Topic: Is it possible to connect to a PC using the USB-C port on Raspberry Pi 4?
Replies: 13
Views: 671

Re: Is it possible to connect to a PC using the USB-C port on Raspberry Pi 4?

Yes it is. It's a new feature of the Pi4 called OTG. See: https://www.raspberrypi.org/forums/viewtopic.php?t=243966 The problem will be powering the Pi4 when it's connected to a PC USB port. While the Pi Zero can easily be configured as a USB Gadget, it's power requirements are minimal and it can r...
by PiGraham
Sat Apr 11, 2020 3:02 pm
Forum: Camera board
Topic: Is anybody using a NOIR camera to spot fever/covid?
Replies: 6
Views: 1464

Re: Is anybody using a NOIR camera to spot fever/covid?

As above, NOIR camera is "near IR" not at all the same as a "thermal camera". It will pickup the glow of a soldering iron >200°C but nothing cooler than that.
by PiGraham
Thu Apr 09, 2020 9:09 am
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1113

Re: Poor practice to read from .txt file multiple times a minute?

I'm not that familiar with MQTT. If the requirement is to both parse new values and also keep a permeant log of values is that something MQTT can do automatically or would you create another archiving process to subscribe and log values to file? I see a message persistence feature that may be releva...
by PiGraham
Wed Apr 08, 2020 9:18 am
Forum: General discussion
Topic: Poor practice to read from .txt file multiple times a minute?
Replies: 25
Views: 1113

Re: Poor practice to read from .txt file multiple times a minute?

You might consider using filesystem change monitoring to only run code when your target file has changed.

fswatch command line utility
http://emcrisostomo.github.io/fswatch/doc/1.14.0/

Or inotify API
http://man7.org/linux/man-pages/man7/inotify.7.html
by PiGraham
Wed Apr 08, 2020 8:29 am
Forum: General discussion
Topic: Video Chat on the Raspberry 4
Replies: 27
Views: 7338

Re: Video Chat on the Raspberry 4

I had better luck with Googlr Hangouts. Two way video but also laggy and low frame rate.
by PiGraham
Tue Apr 07, 2020 11:08 am
Forum: Other projects
Topic: Looking for a smart garbage project for my school
Replies: 4
Views: 289

Re: Looking for a smart garbage project for my school

Thank you very much for the links, as soon as I can I will read them to get ideas and use them in the project, I hope they will be useful. Actually I'm looking for more at the software level than the hardware implementation since my career is as a software engineer. You must understand what hardwar...
by PiGraham
Mon Apr 06, 2020 4:36 pm
Forum: General discussion
Topic: Video Chat on the Raspberry 4
Replies: 27
Views: 7338

Re: Video Chat on the Raspberry 4

Duo on 3B+ unusably laggy
by PiGraham
Mon Apr 06, 2020 11:09 am
Forum: General discussion
Topic: Video Chat on the Raspberry 4
Replies: 27
Views: 7338

Re: Video Chat on the Raspberry 4

Maybe Google Duo in the browser (app for Android/IOS)?

https://www.raspberrypi.org/blog/video- ... oogle-duo/
by PiGraham
Mon Apr 06, 2020 10:44 am
Forum: Automation, sensing and robotics
Topic: Controlling two servos with joystick
Replies: 2
Views: 207

Re: Controlling two servos with joystick

Have you confirmed the analog values are good as you move the joystick? Are your servos control values correct? Have you tested minimal code to move the servos on their own? If that fails check your wiring and power to the servos. gpiozero seems to be preferred over RPI.GPIO now. It has a class for ...
by PiGraham
Sat Apr 04, 2020 2:13 pm
Forum: Python
Topic: starting and stopping thread in other class
Replies: 12
Views: 513

Re: starting and stopping thread in other class

good suggestion but unfortunatly an old laminating machine is used where only the drive part is used. The only option on the machine is backwards/forwards and start/stop. That could be a problem. You could test it using mark sensor (aka line following sensor). Put a black mark on the foil (or use w...
by PiGraham
Sat Apr 04, 2020 8:11 am
Forum: Python
Topic: starting and stopping thread in other class
Replies: 12
Views: 513

Re: starting and stopping thread in other class

My logic behind the start stopping multiple threads would be that there are less if else statements, so if the user selects mode 1: mode 1 starts and waits till pulse count is met then stops the mode and waits for user input. same goes with the other modes but a different counting method is used or...
by PiGraham
Fri Apr 03, 2020 10:13 am
Forum: Advanced users
Topic: Wirelessly receive and compile teensy/arduino code
Replies: 4
Views: 202

Re: Wirelessly receive and compile teensy/arduino code

I don't know. Have you tried?

It's a Teensy issue so you could try the Teensy forums.

Go to advanced search