Using Open Source To Train Your Dog

An open-source canine training research tool was just been released by [Walker Arce] and [Jeffrey Stevens] at the University of Nebraska — Lincoln’s Canine Cognition and Human Interaction LabĀ (C-CHIL).

We didn’t realize that dog training research techniques were so high-tech. Operant conditioning, as opposed to Pavlovian, gives a positive reward, in this case dog treats, to reinforce a desired behavior. Traditionally operant conditioning involved dispensing the treat manually and some devices do exist using wireless remote controls, but they are still manually operated and can give inconsistent results (too many or too few treats). There weren’t any existing methods available to automate this process, so this team decided to rectify the situation.

They took a commercial treat dispenser and retro-fitted it with an interface board that taps into the dispenser’s IR sensors to detect that the hopper is moving and treats were actually dispensed. The interface board connects to a Raspberry Pi which serves as a full-featured platform to run the tests. In this demonstration it connects to an HDMI monitor, detecting touches from the dog’s nose to correlate with events onscreen. Future researchers won’t have to reinvent the wheel, just redesign the test itself, because [Walker] and [Jeffrey] have released all the firmware and hardware as open-source on the lab’s GitHub repository.

In the short video clip below, watch the dog as he gets a treat when he taps the white dot with his snout. If you look closely, at one point the dog briefly moves the mouse pointer as well. We predict by next year the C-CHIL researchers will have this fellow drawing pictures and playing checkers.

Continue reading “Using Open Source To Train Your Dog”

Ubuntu (Finally) Officially Lands On The Raspberry Pi. But Will Anyone Notice?

The Raspberry Pi has been with us for over eight years now, and during that time it has seen a myriad operating system ports. It seems that almost anything can be run on the little computer, but generally the offerings have seen minority uptake in the face of the officially supported Raspbian, or as it’s now called, Raspberry Pi OS.

Maybe that could change, with the arrival of an Ubuntu release for the platform. For those of you pointing out that this is nothing new, what makes the new version 20.10 release special is that it’s the first official full Ubuntu release, rather than an unofficial port.

So Raspberry Pi 4 owners can now install the same full-fat Ubuntu they have on their PCs, and with the same official Ubuntu support. What does this really do for them that Raspberry Pi OS doesn’t? Underneath they share Debian underpinnings, and they both benefit from a huge quantity of online resources should the user find themselves in trouble. Their repositories both contain almost every reasonable piece of software that could be imagined, so the average Pi user might be forgiven for a little confusion.

We don’t expect this news to take the Pi desktop world by storm then. Ubuntu is a powerful distribution, but it’s fair to say that it is not the least bloated among distributions, and that some of its quirks such as Snap applications leave many users underwhelmed. By contrast Raspberry Pi OS is relatively lightweight, and crucially it’s optimised for the Pi. Its entire support base online is specific to the Pi hardware, so the seeker of solutions need not worry about encountering some quirk in an explanation that pertains only to PC platforms.

It’s fair to say though, that this release is almost certainly not targeted at the casual desktop user. We’d expect that instead it will be in the Ubuntu portfolio for commercial and enterprise users, and in particular for the new Raspberry Pi 4 Compute Module in which it will no doubt form the underpinnings of many products without their owners ever realising it.

[via OMG Ubuntu]

Adding Remote Control To The Elegoo Mars Pro

Recent price drops put entry level masked stereolithography (MSLA) resin 3D printers at around $200 USD, making them a very compelling tool for makers and hackers. But as you might expect, getting the price this low often involves cutting several corners. One of the ways manufacturers have made their machines so cheap is by simplifying the electronics and paring down the feature set to the absolute minimum.

So it was hardly a surprise for [Luiz Ribeiro] to find that his new Elegoo Mars Pro didn’t offer WiFi connectivity or a remote control interface. You’re supposed to just stick a USB flash drive into the printer and select the object you want to print from its menu system. But that doesn’t mean he couldn’t hack the capability in himself.

Monitoring a print with Mariner.

If this were a traditional 3D printer, he might have installed OctoPrint and been done with it. But resin printers are a very different beast. In the end, [Luiz] had to develop his own remote control software that worked around the unique limitations of the printer’s electronics. His software runs on a Raspberry Pi Zero and uses Linux’s “USB Gadget” system to make it appear as a flash drive when plugged into the USB port on the Elegoo Mars Pro.

This allows sending object files to the printer over the network, but there was a missing piece to the puzzle. [Luiz] still needed to manually go over to the printer and select which file he wanted to load from the menu. Until he realized there was an exposed serial port on control board that allowed him to pass commands to the printer. Between the serial connection and faux USB Mass Storage device, his mariner software has full control over the Mars Pro and is able to trigger and monitor print jobs remotely.

It might not offer quite the flexibility of adding OctoPrint to your FDM 3D printer, but it’s certainly a start.

Radio Remote Control Via HTML5

It’s a common scene: a dedicated radio amateur wakes up early in the morning, ambles over to their shack, and sits in the glow of vacuum tubes as they call CQ DX, trying to contact hams in time zones across the world. It’s also a common scene for the same ham to sit in the comfort of their living room, sipping hot chocolate and remote-controlling their rig from a laptop. As you can imagine, this essentially involves a server running on a computer hooked up to the radio, which is connected via the internet to a client running on the laptop. [Olivier/ F4HTB] saw a way to improve the process by eliminating the client software and controlling the rig from a web browser.

[Oliver]’s software, aptly named Universal HamRadio Remote, runs a web server that hosts an HTML5 dashboard for controlling the radio. It also pipes audio back and forth (radio control wouldn’t be very useful if you couldn’t talk!), and can be run on a Raspberry Pi. Not only does this make setup easier, as there is no need to configure the client machine, but it also makes the radio accessible from nearly any modern device.

We’ve seen a similar (albeit expensive and closed-source) solution, the MFJ-1234, before, but it’s always refreshing to see the open-source community tackle a problem and make it their own. We can’t wait to see where the project goes next!

Cluster Deck Packs Four Pis Into One Portable Package

Parallel computing is a fair complex subject, and something many of us only have limited hands-on experience with. But breaking up tasks into smaller chunks and shuffling them around between different processors, or even entirely different computers, is arguably the future of software development. Looking to get ahead of the game, many people put together their own affordable home clusters to help them learn the ropes.

As part of his work with decentralized cryptocurrency, [Jay Doscher] recently found himself in need of a small research cluster. He determined that the Raspberry Pi 4 would give him the best bang for his buck, so he started work on a small self-contained cluster that could handle four of the single board computers. As we’ve come to expect given his existing body of work, the final result is compact, elegant, and well documented for anyone wishing to follow in his footsteps.

The core unit would make a great desktop cluster.

Outwardly the cluster looks quite a bit like the Mil-Plastic that he developed a few months back, complete with the same ten inch Pimoroni IPS LCD. But the internal design of the 3D printed case has been adjusted to fit four Pis with a unique staggered mounting arrangement that makes a unit considerably more compact than others we’ve seen in the past. In fact, even if you didn’t want to build the whole Cluster Deck as [Jay] calls it, just printing out the “core” itself would be a great way to put together a tidy Pi cluster for your own experimentation.

Thanks to the Power over Ethernet HAT, [Jay] only needed to run a short Ethernet cable between each Pi and the TP-Link five port switch. This largely eliminates the tangle of wires we usually associate with these little Pi clusters, which not only looks a lot cleaner, but makes it easier for the dual Noctua 80 mm to get cool air circulated inside the enclosure. Ultimately, the final product doesn’t really look like a cluster of Raspberry Pis at all. But then, we imagine that was sort of the point.

Of course, a couple of Pis and a network switch is all you really need to play around with parallel computing on everyone’s favorite Linux board. How far you take the concept after that is entirely up to you.

Raspberry Pi And Raspberry Pi Spy: This Is How Trademark SNAFUs Should Be Handled

In the eight years or so since the Raspberry Pi first landed as tangible hardware, we’ve all dealt with the Pi folks whether as customers or through their many online support and outreach activities. They’ve provided our community with the seed that led to an explosion of inexpensive Linux-capable single board computers, while their own offerings have powered so many of the projects we have featured here. Their heart lies in their educational remit, but they have also become an indispensable part of our community.

The statement from the Pi Foundation’s Philip Colligan.

Thus it was a surprise when [Raspberry Pi Spy], a long-time commentator on all things Pi, received a legal notice from the Raspberry Pi Foundation that their use of the Raspberry Pi name contravened the acceptable use guidelines and demanding that all content be removed and the domains be handed over. Some consternation ensued, before Pi foundation boss [Philip Colligan] released a statement retracting the original letter and explaining that the incident was the result of an over-zealous legal adviser and that the Foundation has no wish to undermine the Pi community.

All’s well that ends well, but what just happened? In the first instance, it’s natural for any organisation to wish to protect their brand, and there would be plenty of unscrupulous entities ready to sell fake Pi products were the Foundation not active in asserting their rights. In this case it seems that it was the use of the full Raspberry Pi trademark in a domain name that triggered the letter and not the fair-use blogging about the Pi products. We can see that however much we might wish otherwise it was not without legal merit. There have been numerous cybersquatting cases heard since the creation of the Web, and even though some of them have been on more dubious ground than others it remains a well-trodden path.

Where this story differs from so many others though is that the Pi Foundation acted with common sense in withdrawing the notice issued against a member of its community. It is inevitable that sometimes even the best of us can take regrettable paths by whatever means, and respect is earned by how such situations are resolved. We applaud the Pi folks for their swift action in this matter, we’d suggest to anyone that they take care when registering domain names, and we suspect that somewhere a legal adviser will be in the doghouse. But that all such incidents in our community could be resolved with such ease.

Thinking About Creating A Raspberry Pi Replacement?

If you’ve ever wanted to try your hand at creating a Raspberry Pi-like board for yourself, you should check out [Jay Carlson’s] review of 10 different Linux-capable SoCs. Back in the 1960s, a computer was multiple refrigerator-sized boxes with thousands of interconnections and building one from scratch was only a dream for most people. Then ICs came and put all the most important parts in a little relatively inexpensive IC package and homebrew computing became much more accessible. Systems on Chip (SoC) has carried that even further, making it easier than ever to create entire systems, like the Pi and its many competitors.

Only a few years ago, making an SoC was still a big project because the vendors often didn’t want to release documentation to the public. In addition, most of the parts use ball grid array (BGA) packaging. BGA parts can be hard to work with, and require a multilayer PC board. Sure, you can’t plug these into a typical solderless breadboard. But working with these relatively large BGAs isn’t that hard and multilayer boards are now comparatively cheap. [Jay] reports that he got cheap PCBs and used a hot plate to build each board, and has some sage advice on how to do it.

Continue reading “Thinking About Creating A Raspberry Pi Replacement?”