Go to advanced search

by amcdonley
Thu Jan 21, 2021 4:13 pm
Forum: Automation, sensing and robotics
Topic: Voice Commands For My RPi 3B Based Robot
Replies: 1
Views: 86

Voice Commands For My RPi 3B Based Robot

My RPi 3B based GoPiGo3 robot "Carl" entered 2021 showing "Total Life: 15006.8 hrs since Aug 22,2018". For those 15,000 hours Carl would often talk to me using espeak and lately espeak-ng. When I would talk back to him, he sat deafly silent. I decided it was time to investigate h...
by amcdonley
Mon Jan 18, 2021 1:00 pm
Forum: Troubleshooting
Topic: sudo apt-get update uses IPv6 - have to force IPv4 to succeed
Replies: 4
Views: 2904

Re: sudo apt-get update uses IPv6 - have to force IPv4 to succeed

You can force everything to IPv4 by:

=== disable ipv6

$ sudo cp /boot/cmdline.txt /boot/cmdline.txt.bak
$ sudo nano cmdline.txt
add to end of line (with a space before this new item):

ipv6.disable=1

ctrl-x, y,

sudo reboot
by amcdonley
Sun Dec 13, 2020 4:10 pm
Forum: Automation, sensing and robotics
Topic: Looking for a motion sensor without false positives
Replies: 7
Views: 338

Re: Looking for a motion sensor without false positives

As others suggested, fusing two detection methods and requiring both to "see motion" can further lower or eliminate false alarms. The RPi Pi Camera has hardware motion detection when in H.264 recording mode. You don't have to mess with the video stream if you don't want to, just use a cust...
by amcdonley
Sun Dec 06, 2020 3:51 pm
Forum: Camera board
Topic: Measuring light levels with camera
Replies: 7
Views: 7225

Re: Measuring light levels with camera

This is a very old thread, but a great question. Sample light meter code That code is a single measurement and with the auto exposure mode on. This causes the camera to adjust to differing lighting rather than reporting the increased lighting as an increased average light value. This is my take on u...
by amcdonley
Fri Sep 18, 2020 1:50 pm
Forum: Automation, sensing and robotics
Topic: Rug Warrior Pi
Replies: 4
Views: 1331

Re: Rug Warrior Pi

encoders ... schematics I put the schematic up on my wix site, does this link work to see it? https://alanmcdonley.wixsite.com/curious/rug-warrior-pro?lightbox=dataItem-kf8anvok The encoder itself is/was Hamamatsu P5587 Datasheet for the encoder: http://www.robotstorehk.com/p5587.pdf That site clai...
by amcdonley
Fri Sep 18, 2020 1:15 am
Forum: Automation, sensing and robotics
Topic: Rug Warrior Pi
Replies: 4
Views: 1331

Re: Rug Warrior Pi

I am now retired (teacher) Congratulations on retirement. My robot only came to "life" once I retired. and would like to reactivate my old RugWarrior for my grandchildren. That's everone's excuse for playing with robots. I reactivated my RugWarriorPro and loaned it to a college student. H...
by amcdonley
Sun Aug 16, 2020 12:23 am
Forum: Troubleshooting
Topic: Suspect SD Card Going Bad
Replies: 4
Views: 255

Re: Suspect SD Card Going Bad

If you don't mind loosing the data /OS on the SD card, then I would recommend H2testW to test your SD card it will find fake and failing SD cards. https://h2testw.en.lo4d.com/windows Thanks - no problem with wiping the data. I cloned the card and booted the clone to see if the issue goes away. The ...
by amcdonley
Sat Aug 15, 2020 10:41 pm
Forum: Troubleshooting
Topic: Suspect SD Card Going Bad
Replies: 4
Views: 255

Suspect SD Card Going Bad

I have a headless Pi3B that was running Raspbian Stretch 24/7 for over a year, and Pi OS of recent. I have started to notice 5-10 second "seizures" where all connections seemed to be frozen (remote desktop, remote ssh). I ran $ time badblocks -sv /dev/mmcblk0p2 -o mmcblk0p2.log which repor...
by amcdonley
Mon Aug 10, 2020 3:52 pm
Forum: Troubleshooting
Topic: Remote Desktop From Mac OS Catalina to new Pi OS?
Replies: 6
Views: 502

Re: Remote Desktop From Mac OS Catalina to new Pi OS?

Encryption=PreferOff might not be ... ideal. Interested in your assessment as to my risk level/need for vnc encryption with respect to: 1) my RPi computers all have non-default hostname 2) with non-default password 3) with reserved IP (so I can recognize all WiFi clients, and connect easily only fr...
by amcdonley
Mon Aug 10, 2020 4:10 am
Forum: Troubleshooting
Topic: Remote Desktop From Mac OS Catalina to new Pi OS?
Replies: 6
Views: 502

Re: Remote Desktop From Mac OS Catalina to new Pi OS?

SUCCESS!! What I did: $ sudo raspi-config (You can exit menus by using Tab key, move to Finish, enter key) change password Network Options: change hostname change Localisation:Locale -> remove en_GB, add en_US.UTF8 default local: en_US.UTF-8 change Localisation:Timezone-> US->Eastern change Localisa...
by amcdonley
Sun Aug 09, 2020 6:57 pm
Forum: Troubleshooting
Topic: Remote Desktop From Mac OS Catalina to new Pi OS?
Replies: 6
Views: 502

Re: Remote Desktop From Mac OS Catalina to new Pi OS?

did VNC® Viewer on Mac not work? I did not install and test it. I really like being able to splat-K and connect to any of my Raspberry Pi computers. Prior to retiring (and becoming entrenched in Apple-ness), I used vncserver and the vnc client on hundreds of computers over just short of 20 years, b...
by amcdonley
Sun Aug 09, 2020 4:42 pm
Forum: Troubleshooting
Topic: Remote Desktop From Mac OS Catalina to new Pi OS?
Replies: 6
Views: 502

Remote Desktop From Mac OS Catalina to new Pi OS?

Updated my Mac to Catalina, and my headless RPi (3B) to the new "Pi OS" / buster base. 1) I tried my usual splat-K vnc://ip.ip.ip.ip:5901 and got authentication not supported. 2) I read I should install tightvncserver, (which removed the RealVNC) - When started from the command line, I can...
by amcdonley
Sun Aug 09, 2020 1:26 pm
Forum: Troubleshooting
Topic: hdparm, HDIO_DRIVE_CMD(identify) failed: Invalid argument
Replies: 2
Views: 806

Re: hdparm, HDIO_DRIVE_CMD(identify) failed: Invalid argument

Aug 2020 - still get this error msg, SD card speed is output ok.

Can't see a way to avoid the error msg.
by amcdonley
Sun Aug 02, 2020 4:31 pm
Forum: Automation, sensing and robotics
Topic: Anyone know if this setup will work? (sensors to read current altitude and azimuth for telescope)
Replies: 7
Views: 515

Re: Anyone know if this setup will work? (sensors to read current altitude and azimuth for telescope)

Yes, but... I use the BNO055 on my robot and find the instantaneous rotational accuracy of the BNO055 IMU to be very good, but the drift over longer periods is real and significant. My physical encoders (0.5 degree precision) are rock solid and end up being as accurate or better than the IMU. Both e...
by amcdonley
Sun Feb 16, 2020 3:27 pm
Forum: Troubleshooting
Topic: PS3 Controller bluetooth "success" but no /dev/input/js0
Replies: 0
Views: 437

PS3 Controller bluetooth "success" but no /dev/input/js0

It appears that I can successfully pair, connect, and trust my PS3 Controller via bluetoothctl: sudo bluetoothctl [bluetoothctl]# pair <MAC> [CHG] Device <MAC> Connected: yes . . . [bluetooth]# connect <MAC> [CHG] Device <MAC> Connected: yes . . . [bluetooth]# trust <MAC> Changing <MAC> trust succe...
by amcdonley
Fri Jan 24, 2020 11:57 pm
Forum: Troubleshooting
Topic: How to auto reconnect wifi after signal lost
Replies: 8
Views: 4426

Dongle not reachable, WiFi looks fine - was: How to auto reconnect wifi after signal lost

I have similar issue - WiFi Dongle address stops responding (ssh pi@X.0.0.X .. Host is down) and when I connect with WiFi built-in address X.0.0.Y, everything looks fine in ifconfig - up, no RX or TX errors. I'm wondering if the issue might be in my WiFi router (Xfinity SCIENTIFIC ATLANTA DPC3941T),...
by amcdonley
Tue Nov 12, 2019 2:54 pm
Forum: Troubleshooting
Topic: Cannot determine i2c baud rate on rpi 3
Replies: 16
Views: 6052

Re: Cannot determine i2c baud rate on rpi 3

You can get the current value with something like this: ... Thanks - I put your code into a file i2c_baudrate.sh (then chmod +x i2c_baudrate.sh): #!/bin/bash # Print current maximum i2c rate var="$(xxd /sys/class/i2c-adapter/i2c-1/of_node/clock-frequency | awk -F': ' '{print $2}')" var=${...
by amcdonley
Thu Sep 26, 2019 11:24 am
Forum: Troubleshooting
Topic: Odd WiFi Drop Out Issues
Replies: 13
Views: 1202

Re: Odd WiFi Drop Out Issues

You did set static ip in the Pi and dedicated ip in the router, correct?

Check the router log for events with the MAC address.

Did you try a stretch Os and don’t do an update? There may be some weird things from the 4.19 kernel.
by amcdonley
Wed Sep 25, 2019 2:01 pm
Forum: Troubleshooting
Topic: Where to report ALSA cutoff issue after Stretch update?
Replies: 1
Views: 220

Where to report ALSA cutoff issue after Stretch update?

I see that lots of people are having "XXX cutting off", where XXX:{aplay, espeak, espeak-ng, ...}, after updating Stretch to Linux 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l (and also some Buster folks). aplay /usr/share/sounds/alsa/Front_Center.wav cuts off at "Front C...
by amcdonley
Mon Sep 23, 2019 8:35 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi model 3B video processing speed
Replies: 5
Views: 936

Re: Raspberry Pi model 3B video processing speed

Interesting, so the CPU loads were 1.5%-2% yet temperature was high? PS/ Your link doesnt work well Thanks. Fixed the link. Not %. Load average is some weird number that seems to correspond to the number of cores in use when the number is less than the number of available cores. So 1.5 is an averag...
by amcdonley
Mon Sep 23, 2019 12:27 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi model 3B video processing speed
Replies: 5
Views: 936

Re: Raspberry Pi model 3B video processing speed

This is my analysis of motion detect on a “non-aspirated” Pi 3B Video Surveillance (TL:DR 10fps heat limited) My testing of “Recognition” such as faces, color and size, lane markings run around 1 FPS. All these are single threaded Python3 with “stock packaged” OpenCV. One multi-processing test resul...
by amcdonley
Mon Sep 23, 2019 1:49 am
Forum: Troubleshooting
Topic: aplay and espeak issues after (Stretch) OS update
Replies: 0
Views: 339

aplay and espeak issues after (Stretch) OS update

I had aplay and espeak (text-to-speech) working great for the last year, until this week I executed the OS update sequence: sudo apt-get update sudo apt-get upgrade $ uname -a Linux Carl 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux Now aplay is cutting off the last part of a w...
by amcdonley
Mon Sep 23, 2019 1:27 am
Forum: Troubleshooting
Topic: espeak doesnt work
Replies: 13
Views: 5814

Re: espeak doesnt work

After updating my Raspbian Stretch: ``` Linux Carl 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux ``` espeak stopped working completely for me. I got it to speak again by adding the following to my /home/pi/.bashrc ``` PA_ALSA_PLUGHW=1 export PA_ALSA_PLUGHW ``` (and rescanning i...
by amcdonley
Tue Sep 17, 2019 3:32 pm
Forum: Automation, sensing and robotics
Topic: How Many Sensors/Motors Can a Raspberry Pi 3 Handle at Once?
Replies: 6
Views: 1098

Re: How Many Sensors/Motors Can a Raspberry Pi 3 Handle at Once?

power a small servo like the SG90, from the 5v gpio pin , probably 200mA max, (Corrected) "GPIO 5v pin" means one of the two 5v pins on the GPIO connector. The SG90 can draw 600-700 mA stall and instantaneous which can sag the 5v supply in some cases. It would be advisable to add a small ...

Go to advanced search