Line Follower With No Arduino

There’s hardly a day that passes without an Arduino project that spurs the usual salvo of comments. Half the commenters will complain that the project didn’t need an Arduino. The other half will insist that the project would be better served with a much larger computer ranging from an ARM CPU to a Cray.

[Will Moore] has been interested in BEAM robotics — robots with analog hardware instead of microcontollers. His latest project is a sophisticated line follower. You’ve probably seen “bang-bang” line followers that just use a photocell to turn the robot one way or the other. [Will’s] uses a hardware PID (proportional integral derivative) controller. You can see a video of the result below.

Continue reading “Line Follower With No Arduino”

Smart Sutures

Researchers at Tufts University are experimenting with smart thread sutures that could provide electronic feedback to recovering patients. The paper, entitled “A toolkit of thread-based microfluidics, sensors, and electronics for 3D tissue embedding for medical diagnosis”, is fairly academic, but does describe how threads can work as pH sensors, strain gauges, blood sugar monitors, temperature monitors, and more.

Conductive thread is nothing new but usually thought of as part of a smart garment. In this case, the threads close up wounds and are thus directly in the patient’s body. In many cases, the threads talked to an XBee LilyPad or a Bluetooth Low Energy module so that an ordinary cell phone can collect the data.

Continue reading “Smart Sutures”

PIC32 DMA SPI

[Mike] wanted to drive several SPI peripheral from a PIC32. He shows how much latency his conventional interrupt handlers were taking away from his main task. He needed something more efficient. So he created the SPI channels using DMA. He also made a video (see below) with a very clear explanation about why he did it and shows oscilloscope traces about how it all works.

Although the project is specific to the PIC32, the discussion about DMA applies to any computer with direct memory access. The only thing missing is the code. However, there are plenty of examples on the web you can look at, including a Microchip webinar.

Continue reading “PIC32 DMA SPI”

The Arduino Sleeps With The Fishes

[Eric Dirgahayu] wanted to explore underwater with some sensors and cameras. First, he needed a platform to carry them. That led to his Arduino-controlled swimming fish. The fish is made from PVC and some waterproof servos. From the video (see below) it isn’t clear how much control the fish has, but it does swim with an undulating motion like a real fish.

Continue reading “The Arduino Sleeps With The Fishes”

Electric Train Demonstrator

If you ever want to pique a kid’s interest in technology, it is best to bring out something simple, yet cool. There was a time that showing a kid how a crystal radio could pull in a radio station from all the way across town fit the bill. Now, that’s a yawner as the kid probably carries a high-tech cell phone with a formidable radio already. Your latest FPGA project is probably too complicated to grasp, and your Arduino capacitance meter is–no offense–too boring to meet the cool factor criterion.

There’s an old school project usually called an “electromagnetic train” that works well (Ohio State has a good write up about it as a PDF file). You coil some bare copper wire around a tubular form to make a tunnel. Then a AAA battery with some magnets make the train. When you put the train in the tunnel, the magnetic forces propel the train through the tunnel. Well, either that or it shoots it out. If that happens, turn the train around and try again. There’s a few of these in Internet videos and you can see one of them (from [BeardedScienceGuy]) below.

Continue reading “Electric Train Demonstrator”

Arduino Sketch: The Next Generation

What was your first Arduino program? Probably an LED blinker — that seems to be the “hello world” of microcontrolllers. You probably moved on to things a little more complicated pretty quickly. At some point, things get harder because the Arduino lacks an operating system.

There are operating systems that will run on the Arduino. They aren’t full-featured like Windows or Linux, but they allow you to run multiple tasks that are both isolated from each other (to some degree) and have a way to cooperate (that is, synchronize, share data and resources, and so on). One such operating system is ChibiOS. It will run on AVR- and ARM-based devices. You can find documentation about the entire project on the home page along with other ports.

The problem with adopting a new operating system is always getting started. [ItKindaWorks] has started a video series on using ChibiOS and has posted three installments so far (see below; one is about getting started, the other two cover messaging, mutexes, and priorities).

Continue reading “Arduino Sketch: The Next Generation”

How To Run A Pagekite Server To Expose Your Raspberry Pi

Last time I showed you how to expose a web service on a Raspberry Pi (or, actually, any kind of device) by using a reverse proxy from Pagekite. On your Pi, you just need a simple Python script. However, it also depends on the Pagekite server, which isn’t always convenient. There are limits to the free service, and you don’t control the entire thing. The good news is twofold: the same Python script you use to set up the client-side can also set up a server. The other good news is the entire thing is open source.

In practical terms, then, if you have a computer that is always on and has an IP address that can be found on the public internet, you can run your own Pagekite server (they call it a front end) and service your own backends.

Continue reading “How To Run A Pagekite Server To Expose Your Raspberry Pi”