Go to advanced search

by amcdonley
Wed Sep 27, 2017 4:12 pm
Forum: Automation, sensing and robotics
Topic: Raspi + L298N = Hang
Replies: 4
Views: 1021

Re: Raspi + L298N = Hang

Try check temperature and power status in each loop:

vcgencmd measure_temp
vcgencmd get_throttled
by amcdonley
Wed Aug 23, 2017 4:35 pm
Forum: Advanced users
Topic: Under-voltage warnings
Replies: 209
Views: 383632

Interpreting get_throttled=0x10000 or 0x30000

How should I interpret get_throttled=0x10000 or 0x30000 ? This post seems to imply under-voltage and throttling come together (I added hex views) 0: under-voltage (0xX0001) 1: arm frequency capped (0xX0002 or 0xX0003 with under-voltage) 2: currently throttled (0xX0004 or 0xX0005 with under-voltage) ...
by amcdonley
Tue Aug 22, 2017 10:25 pm
Forum: Automation, sensing and robotics
Topic: cam-track.py Now Windows, Unix compatible using web cam as well as Raspberry Pi
Replies: 1
Views: 1169

Re: cam-track.py Install - Wow!

Cool - Especially thank you for the one line opencv and all dependencies install. Somewhere I read about a book with 128 steps to follow to install OpenCV, so I have been putting off my initiation into OpenCV. I am running cam-track.py on Stretch upgraded from Jessie (using OS X remote desktop displ...
by amcdonley
Mon Aug 21, 2017 9:12 pm
Forum: Troubleshooting
Topic: LifePO4wered/Pi3, BOINC, and throttled=0x100000
Replies: 0
Views: 315

LifePO4wered/Pi3, BOINC, and throttled=0x100000

I added the LiFePO4wered/Pi3 UPS to my RPi3, along with the 15x15x15mm Adafruit heatsink and moved from a metal Flirc case to an acrylic case for the UPS and Pi3. My "boincstatus.sh script checks the temperature and throttled flags once every 10 seconds. I was seeing get_throttled would return throt...
by amcdonley
Sun Jul 23, 2017 1:45 am
Forum: Automation, sensing and robotics
Topic: tilt-pan servo reference directions?
Replies: 0
Views: 406

tilt-pan servo reference directions?

The GoPiGo robot pan_servo(angle) function puts 0 degrees facing left, 90 degrees straight ahead, and 180 to the right. (gopigo.py for rev 2.) If I understand the ROS Wiki correctly, ROS (and iRobot) put the robot frame X axis straight ahead, Z up), with positive angles turn left (from the x axis/fo...
by amcdonley
Sat Jul 22, 2017 2:49 am
Forum: Automation, sensing and robotics
Topic: Can't Recharge While RPi Is On
Replies: 8
Views: 1726

Re: Can't Recharge While RPi Is On

mosespi wrote: MoPower UPS
I needed to study this puppy a bit. It looks good as a UPS, but 50ma charge rate won't get me 4000ma over night. Oh well, was hoping.
by amcdonley
Sat Jul 22, 2017 2:04 am
Forum: Automation, sensing and robotics
Topic: Can't Recharge While RPi Is On
Replies: 8
Views: 1726

Re: Can't Recharge While RPi Is On

Thanks @mosespi - gives me some options and helps me understand how schottky diodes work.
by amcdonley
Fri Jul 21, 2017 10:51 pm
Forum: Automation, sensing and robotics
Topic: Can't Recharge While RPi Is On
Replies: 8
Views: 1726

Re: Can't Recharge While RPi Is On

Somewhere I saw an I2C Real Time Clock that could wake-up the RPi. I'll have to see if I can drive onto a recharging station, then shutdown with a scheduled "wake me up in four hours". If the bot shuts down right away, it might just work. I'll have to figure out if my Pololu SP power switch can be t...
by amcdonley
Fri Jul 21, 2017 7:16 pm
Forum: Automation, sensing and robotics
Topic: Can't Recharge While RPi Is On
Replies: 8
Views: 1726

Re: Can't Recharge While RPi Is On

Good point - so perhaps a large Capacitor (or on the extreme the LiFePO4wered/Pi battery+charger) would isolate the load variation from the battery.
by amcdonley
Fri Jul 21, 2017 6:43 pm
Forum: Automation, sensing and robotics
Topic: Can't Recharge While RPi Is On
Replies: 8
Views: 1726

Can't Recharge While RPi Is On

My RPi3 based robot is powered by 6 Ni-MH 5000mAh C-cells. I use a Tenergy 1025 "Smart" charger which auto detects that the nominal battery is 7.2v, charges at 2A using "negative delta-V" to detect when to switch to trickle charging. This all works wonderful IF my robot is shutdown first. If I leave...
by amcdonley
Thu Jul 20, 2017 4:17 pm
Forum: Camera board
Topic: Object and Feature Recognition
Replies: 2
Views: 1026

Re: Object and Feature Recognition

The problem space is huge, and OpenCV is *THE* solution. We need to grow the number of people that understand how to apply OpenCV functions to basic vision problems.

There are no vision "components" yet, only tools for folks to build with.
by amcdonley
Tue Jul 18, 2017 2:28 pm
Forum: Automation, sensing and robotics
Topic: Robot Life on Ni-MH Batteries
Replies: 1
Views: 601

Robot Life on Ni-MH Batteries

My RPi3 robot is powered by six 5000mAH Ni-MH C-cells, and a Tenergy 1025 Smart Charger. Last weekend, when I plugged my bot in to recharge, the charger blinked "bad battery" condition. Two of the (year old) Tenergy C-cells were at 0 volts, while the other four cells read 1.1 volts. I had some three...
by amcdonley
Fri Jul 14, 2017 10:37 am
Forum: Advanced users
Topic: frequency(45)?
Replies: 1
Views: 589

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: 1092

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: 2156

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: 6575

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: 461

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: 583

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: 583

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: 2412

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: 1346

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: 1346

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: 1346

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: 1346

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: 350

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"...

Go to advanced search