Skip to content

Commit 707f29a

Browse files
authored
Merge pull request #137 from orionrobots/robot-arm-update
Robot arm update
2 parents a095125 + 44c6f58 commit 707f29a

File tree

7 files changed

+64
-3
lines changed

7 files changed

+64
-3
lines changed

Diff for: .github/scripts/new_post.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
# Helper to create a new blog post, and folder structure, open it in vs code.
3+
# Usage:
4+
# ./.github/scripts/new_post.sh "Post title not slugged but in quotes"
5+
26
set -eu -o pipefail
37

48
POST_DATE=$(date +"%Y-%m-%d")
@@ -39,6 +43,7 @@ function main {
3943
local file_path="$(file_path "$slug" "$folder_path")"
4044
mkdir -p "$folder_path"
4145
create_post "$file_path"
46+
code "$file_path"
4247
}
4348

4449
main

Diff for: content/2019/04/2019-04-23-use-owi-edge-maplin-usb-robot-arm-with-the-raspberry-pi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags:
88
- raspberry pi
99
- raspberry pi projects
1010
- raspberry pi 3 projects
11-
- maplin usb arm
11+
- maplin usb robot arm
1212
- owi edge robot arm
1313
- raspberry pi zero w projects
1414
title: Use OWI Edge Maplin USB robot arm with the Raspberry Pi

Diff for: content/2021/01/2021-01-23-bluedot-usb-arm-control.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
title: "Controlling a OWI Edge Robot Arm with Bluetooth"
44
description: "Controlling a OWI Edge Robot Arm with Bluetooth"
5-
tags: [robot arm, usb arm, owi edge arm, python programming, maplin arm, raspberry pi, raspberry pi zero, bluetooth, blue dot, robotics at home]
5+
tags: [robot arm, usb arm, owi edge arm, python programming, maplin usb robot arm, raspberry pi, raspberry pi zero, bluetooth, blue dot, robotics at home]
66
date: 2021-01-23 12:00:00
77
---
88
Today I attended the fantastic Pi Wars Conference 2021, and among the talks was Martin O'Hanlon with the [Bluedot](https://bluedot.readthedocs.io/en/latest/dotapi.html) project. I followed along, had a few problems, and created two versions of a controller for the arm.
@@ -180,3 +180,7 @@ This extends the original code. And is available at <https://github.com/orionrob
180180
This is a complete working control, but I'll admit I'm not 100% happy with this control surface - I find it a bit cumbersome and it's easy to press the button for the wrong motor.
181181

182182
So I plan to come back and make a more intuitive control panel now I've got one working.
183+
184+
## Update from 6th December 2021
185+
186+
There's also an accompanying [Youtube video for this](https://youtu.be/qy1u0NPmMwM).

Diff for: content/2024/12/23-vscode-for-micropython/23-vscode-for-micropython.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Investigating VScode + WSL as a MicroPython IDE
3-
tags: [robot programming, micropython, mpremote, vscode, python, raspberry pi pico]
3+
tags: [robot programming, micropython, mpremote, vscode, python, raspberry pi pico, maplin usb robot arm]
44
date: 2024-12-23
55
---
66
I am a frequent user of Micropython. I also have recently been using a Windows desktop (I had been using a Mac for a while).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Thanks to Github for fixing a problem
3+
date: 2025-01-04
4+
tags: [github, robot arm, python code, maplin usb robot arm, owi edge robot arm]
5+
author: Danny Staple
6+
thumbnail: content/2025/01/04-thanks-to-github/github-repo-screenshot.png
7+
---
8+
My python library for the Maplin USB robot Arm has been reasonably popular over the years. However, at one point several years ago, I wanted to move the repository from my dannystaple account into the orionrobots org, so other people in orionrobots, students or helpers, could contribute, review and so on.
9+
10+
## What is this code
11+
12+
This is a python library to control the Maplin/OWI robot arm via USB. It works well on Linux and Raspberry Pi, but needs a bit more coaxing on Windows and Mac due to the OS trying to be careful with hardware security. It allows the user to combine bit-patterns to control the different aspects of the arm.
13+
14+
## How did I try to move it?
15+
16+
I was less experienced with the ways of Github admin, so I forked my repository, and created a fresh one in the new organisation at [orionrobots/python_usb_robot_arm](https://github.com/orionrobots/python_usb_robot_arm).
17+
18+
I then deleted the original repository (it was dannystaple/robot_arm). This was still considered the upstream of the new repository. This had some unfortunate effects:
19+
20+
- Some other fork of my repository (tazjel/robot_arm) was now considered the upstream. Of course - thank you for there interest in my arm, but this isn't really the correct attribution.
21+
- All pull requests were being automatically routed to that upstream.
22+
23+
I was frustrated, but left it for a few years. However, I have support requests for this library.
24+
25+
## Support requests?
26+
27+
Every few years, the way to get it to work on windows or Mac changes. These arms are no longer sold new, but people dust them off and have a go again, often finding parts don't quite work.
28+
This time, I added debug logging to the library, so with python logging turned on, you can be sure USB messages are being sent to the robot.
29+
30+
However, that PR was routed to the new repo, reminding me again of the problem.
31+
32+
## How did I resolve it
33+
34+
GitHub help said I could recreate a repository, by doing a git clone, then pushing it to a new repo. However, this repository has stars, issues, pull requests that I didn't want to lose. So I contacted GitHub support.
35+
36+
I am really happy with them, within a few hours, they had this fixed, with the repository now considered the root of the fork network, and keeping all it's issues/prs and stars. The stars on the original one I forked from (my dannystaple one) were gone forever, but at least the parts of this were preserved.
37+
38+
Well done and thank you GitHub support!
39+
40+
## How would I do it right in future?
41+
42+
There's a change ownership of repository button in the admin section, this is the correct way to do this.
43+
44+
## Other problems with the Arm
45+
46+
Sadly, my Maplin Arm is dead. After we moved house, I tried to plug it in, and broke it, letting the magic smoke out of one of the motor control chips, by trying to power it differently... I've ordered a replacement on eBay, a whole arm that I can use for spares and repairs to keep it going. Perhaps when my SMD skills are better, I could replace the specific motor chip I blew too. I didn't keep notes on how exactly I broke it, probably because we were moving house. Suffice to say, it added to the list of stressful things at the time. But once the new parts arrived, I'll repair it and get it running again.
47+
48+
![Blown chip on my Maplin USB Robot Arm board](/2025/01/04-thanks-to-github/usb-arm-chip-damage.jpg)
49+
50+
The photo is a touch blurry, but the indicated chip is blown. Based on <https://kyllikki.github.io/EdgeRobotArm/> the blown chip is an ST1151A single channel motor controller. The board could be repaired, but fro now I'll swap the board out as that will get me up and running sooner.
51+
52+
I've still got someone I've been supporting whose arm isn't moving at all. With mine up and running, I'll perhaps be able to better troubleshoot his for him.
24.2 KB
Loading
84.9 KB
Loading

0 commit comments

Comments
 (0)