Go to advanced search

by amcdonley
Fri Jul 14, 2017 10:37 am
Forum: Advanced users
Topic: frequency(45)?
Replies: 1
Views: 462

frequency(45)?

What is the meaning/reason for the (45) in the "vcgencmd measure_clock arm" result?

frequency(45)=1200000000
by amcdonley
Wed Jul 12, 2017 8:37 pm
Forum: Automation, sensing and robotics
Topic: RPICT3 Temperature and Current Sensor
Replies: 2
Views: 937

Re: RPICT3 Temperature and Current Sensor

Did you try their sample program ?? sudo apt-get install python-serial Then copy the following into an executable file and run it. #!/usr/bin/python import serial ser = serial.Serial('/dev/ttyAMA0', 38400, timeout=1) try: while 1: response = ser.readline() z = response.split(",") if len(z)>=2: print...
by amcdonley
Wed Jul 12, 2017 7:17 pm
Forum: Automation, sensing and robotics
Topic: Laser Ranging Sensor (VL53L0X)
Replies: 1
Views: 1937

Laser Ranging Sensor (VL53L0X)

Anyone integrated the new Dexter Industries laser "Distance Sensor" or the Adafruit VL53L0X Time-of-flight sensor to their robot? They both contain the VL53L0X laser "time of flight" sensor and interface via I2C. The "laser" beam and sensor acceptance cones are quite large so it will be interesting ...
by amcdonley
Sat Jul 01, 2017 6:19 pm
Forum: Automation, sensing and robotics
Topic: Distributed Computing for BOINC
Replies: 3
Views: 5223

Re: Distributed Computing for BOINC

Thanks for the heads up on einsteinathome.org - I added to my deskPi3 projects. I have been a part of SETI@Home since it started in 1999 and then WorldCommunityGrid. I just don't like having my computers powered off - weird but me. I have BOINC configured for 5GB disk, 80% of memory 70% of CPU time ...
by amcdonley
Thu Jun 29, 2017 3:44 pm
Forum: Automation, sensing and robotics
Topic: What does your Ultrasonic Scan look like?
Replies: 1
Views: 385

What does your Ultrasonic Scan look like?

What do your ultrasonic distance scans look like? Do you get wide variations in distance readings? Here is my "sample=30" run of us_servo_scan.py , (from GoPiGo), when placed 60 cm looking at a corner: tMap: ----------------------------------------------------------------------------------------- | ...
by amcdonley
Thu Jun 29, 2017 3:01 pm
Forum: Automation, sensing and robotics
Topic: Using PiCam for situation awareness
Replies: 2
Views: 496

Re: Using PiCam for situation awareness

mattmiller wrote:You might want to consider using ArUco type markers to assist with its situational awareness
Wow - so cool. Thanks.

The markermapper from the same folks puts it all together. I am so pumped. I just need to retire, right now, to have the time to play with all this!
by amcdonley
Thu Jun 29, 2017 2:12 pm
Forum: Automation, sensing and robotics
Topic: Using PiCam for situation awareness
Replies: 2
Views: 496

Using PiCam for situation awareness

Lately I've been doing a lot of thinking about how best to raise my robot's intelligence level beyond basic motor skills. The need for this stems from my desire for the robot to be able to find its way back to a recharging station, to enable a more continuous robot "life" cycle. With the Pi3 process...
by amcdonley
Mon Jun 05, 2017 11:29 pm
Forum: Python
Topic: Threads vs processes
Replies: 8
Views: 1805

Re: Threads vs processes

This is a very apropos question for what I am doing - attempting to convert a robot written in Interactive C (on 68HC11) to Python (on Raspian Jessie). Interactive C had concepts of light weight "processes" and shared memory (even persistent across reboot shared memory) with hardware interrupts. I a...
by amcdonley
Thu Jun 01, 2017 1:25 pm
Forum: Automation, sensing and robotics
Topic: Selecting Autonomous and Manual Control
Replies: 6
Views: 1130

Re: Selecting Autonomous and Manual Control

Then here is main(): def main(): startup() #prints some instructions. while True: print("Auto mode = ", AUTO) if AUTO == 1: auto_mode() elif AUTO == 0: print("auto mode is off") sleep(1) else: sys.exit() # just for testing purposes And here is auto_mode(): def auto_mode(): print("led loop") green.o...
by amcdonley
Thu Jun 01, 2017 12:02 pm
Forum: Automation, sensing and robotics
Topic: Selecting Autonomous and Manual Control
Replies: 6
Views: 1130

Re: Selecting Autonomous and Manual Control

Suggest restart and do the auto on/off tutorial at http://webiopi.trouch.com/Tutorial_Basis.html and the follow up tutorial on a web page to change the on/off times. When you fully understand that last one, you will be on the path. The reason you may be getting stuck is a basic architecture problem ...
by amcdonley
Wed May 31, 2017 1:48 am
Forum: Automation, sensing and robotics
Topic: Selecting Autonomous and Manual Control
Replies: 6
Views: 1130

Re: Selecting Autonomous and Manual Control

I don't know exactly to accomplish this, but one way might be to have the On button "touch autonomous.on", and launch a "do_autonomous.py&" command. The do_autonomous.py could check for the presence of the autonomous.on file in its main loop or a dedicated periodic thread. When the file is not found...
by amcdonley
Tue May 30, 2017 3:45 pm
Forum: Automation, sensing and robotics
Topic: Selecting Autonomous and Manual Control
Replies: 6
Views: 1130

Re: Selecting Autonomous and Manual Control

Absolutely cool. Some concepts to consider:
  • *Non-Autonomous mode timeout - no input from "web page" in x minutes, enter autonomous mode
    *Any input from web page exits Autonomous mode (stop all motion, center sensor platform)
by amcdonley
Tue May 30, 2017 3:37 pm
Forum: Automation, sensing and robotics
Topic: Egret-Heron Inspired Robot Mobility
Replies: 0
Views: 304

Egret-Heron Inspired Robot Mobility

I'm contemplating creating an egret or heron inspired model for my robot. General flow: egret(): loop until "tired*": (Look straight ahead) loop until "tired of standing here": "think about something" how far is path forward clear*? if path not clear, turn to new direction else: move "forward some"...
by amcdonley
Tue May 16, 2017 8:18 pm
Forum: AIY Projects
Topic: Custom Raspian Build?
Replies: 1
Views: 309

Custom Raspian Build?

Anyone know why the VoiceKit is a custom Raspian build?

Was it a rights issue, technical deficiency, NIH aversion, ??
by amcdonley
Tue May 16, 2017 8:13 pm
Forum: AIY Projects
Topic: Documentation for "old timers"?
Replies: 1
Views: 381

Documentation for "old timers"?

I guess in this day of self documenting code, agile development, and cloud APIs, the concept of a top level design document is passe. Anyone diagrammed the modules, control flow, data flow? Any diagrams of what Google APIs are called, what they do and how? Google appears to have solved the audio iss...
by amcdonley
Wed May 03, 2017 11:57 pm
Forum: Automation, sensing and robotics
Topic: Left/Right Light Intensity from Pi Camera
Replies: 2
Views: 577

Re: Left/Right Light Intensity from Pi Camera

KnarfB wrote:
hth Frank
For sure - thank you!
by amcdonley
Wed May 03, 2017 2:58 pm
Forum: Automation, sensing and robotics
Topic: Left/Right Light Intensity from Pi Camera
Replies: 2
Views: 577

Left/Right Light Intensity from Pi Camera

I want to use my Pi Camera to generate average light intensity values for left of center and right of center, which will be used to drive light seeking / light avoidance behavior in my Rug Warrior Pi robot (Braitenburg Vehicles 2a, 2b) I am guessing this is quite elementary using OpenCV. Any tutoria...
by amcdonley
Mon Aug 22, 2016 3:25 am
Forum: Graphics, sound and multimedia
Topic: pyaudio object instantiation delay
Replies: 0
Views: 560

pyaudio object instantiation delay

Is there a way to instantiate a PyAudio object that will not have a 20 second delay trying PulseAudio and Jack Audio before succeeding? This is my program: #!/usr/bin/python # # tone.py play a tone on raspberry pi # import myPyLib # get control-C handler import time import math import pyaudio from n...
by amcdonley
Thu Aug 11, 2016 2:30 am
Forum: Troubleshooting
Topic: Two Pi3B - arecord default only one works
Replies: 2
Views: 1015

Solved: arecord default issue

Solved the mystery - on my jessie-lite there is no .asoundrc in ~pi, but there was in the full jessie Pi3. After I deleted the .asoundrc the default command, arecord -d 1 test.wav succeeds. Not sure if this is a difference between jessie-lite and the full jessie or at some point I deleted the file f...
by amcdonley
Wed Aug 10, 2016 11:17 am
Forum: Troubleshooting
Topic: Two Pi3B - arecord default only one works
Replies: 2
Views: 1015

Re: arecord default not working

What else is involved in the pipeline?
by amcdonley
Tue Aug 09, 2016 12:05 pm
Forum: Troubleshooting
Topic: Two Pi3B - arecord default only one works
Replies: 2
Views: 1015

Two Pi3B - arecord default only one works

I have two Pi3B configured for split audio - analog hardware playback, USB mic capture. aplay defaults to hw0,0 on both Pi3B just fine. arecord defaults to hw1,0 on one Pi3B correctly, but on the newer one I get: arecord -d 1 test.wav arecord: main:722: audio open error: No such file or directory no...
by amcdonley
Sun Aug 07, 2016 11:54 am
Forum: Beginners
Topic: Motion with rpi3 jessie
Replies: 4
Views: 1936

Re: Motion with rpi3 jessie

Might I ask for a link to what "motion" is?
by amcdonley
Tue Aug 02, 2016 4:10 pm
Forum: Automation, sensing and robotics
Topic: I2C and SPI at same time?
Replies: 8
Views: 4714

Re: I2C and SPI at same time?

I have been using a threading lock in communications where multiple threads talk to SPI to clear up occasional barfing. Read or write functions grab the lock, open spi, perform the read or write, then close and release the lock. spi_lock=threading.Lock() def readx(): values=None with spi_lock: spi.o...
by amcdonley
Mon Aug 01, 2016 2:03 am
Forum: Python
Topic: Attribute Error Python using PIGPIOD
Replies: 8
Views: 1265

Re: Attribute Error Python using PIGPIOD

Apparently if you hard code a High or Low you can precede it with a GPIO. if you use a variable you cannot use a GPIO. before the variable, you must just use the variable. ] Not apparently, you have to think about what that GPIO dot means. GPIO dot anything means "I'm using something that is define...
by amcdonley
Sun Jul 31, 2016 3:58 pm
Forum: Python
Topic: how many pigpiod?
Replies: 0
Views: 491

how many pigpiod?

Sorry if there is a "proper place" to ask about PIGPIO. I could not find a PIGPIO sticky. (I did review the pigpio pages also.) at boot time root crontab: # m h dom mon dow command @reboot /home/pi/RWPi/startpigpiod.sh calls my startpigpiod script: #!/bin/bash # default sample rate is 5 microseconds...

Go to advanced search