Talking to the Raspberry Pi’s Serial Console with a Modern Device BUB

bubpi1

A question popped up on the Raspberry Pi forum a little while back asking whether the BUB could be used to connect to the serial port on the Raspberry Pi’s GPIO header. The answer is yes; it works quite well! The BUB is essentially a breakout board for FTDI’s FT232 chip that translates between a USB connection and a TTL-style UART. This is the chip that was on the pre-Uno Arduino (USB translation is handled in software on a second microcontroller on the Arduino Uno). The BUB (and BUB II) are used to communicate with most Modern Device and Jee Lab controllers, except for the BBLeo.

The BUB has a few other features that make it a bit more flexible than Just Another Breakout Board. For example there’s a polyfuse to help protect your computer if you accidentally draw too much current, and a jumper to change logic levels from 3.3 to 5 volts. The BUB I also has a handy breakout area that allows you to reroute the signals to any of the pins on the header. This is useful for connecting to devices with different pinouts like the Raspberry Pi or Parallax Propeller.

Continue Reading →

By Shawn Wallace on May 15, 2013.

New JeeLabs Blog Series: What If?

JCs-Grid-page-71-604x273

Well, it’s a relatively new series from our friends in the Netherlands that takes a more conjectural approach to learning about electronics. In Jean Claude’s words:

The what-if question is a great way to experiment, especially in electronics and electro-mechanics, because it lets you be prepared and avoid silly (and sometimes catastrophic) outcomes, such as a damaged component, a harmful burn, or even an explosion.

This approach lends itself to all sorts of practical questions:

  • What if I short out a 3x AA battery pack?
  • What if I connect my chip the wrong way around?
  • What if I have to use a 12V power supply instead of 5V?

But also issues as varied as:

  • What if I omit a certain component from my circuit?
  • What if I unplug the Raspberry Pi without shutting it down?
  • What if I wanted to use HouseMon in combination with MySQL?

Power considerations are often the most vexing part of working with electronics, and sure enough that’s where the series starts. The first few posts explore the questions “What if I mix 3.3V and 5V?” (Parts one, two, and three) and What if the supply (to an Atmega) is under 3.3V?“.

It’s a weekly series, so bookmark it, follow the RSS feed, or catch up on the wiki.

By Shawn Wallace on May 13, 2013.

The Othermill, a Desktop Milling Machine with Snap Fit Joints

81af4ec286d6fa65177399fc93ced8b3_large

Today Otherfab announced a Kickstarter for the Othermill, a unique desktop milling machine. The Othermill is an evolution of the MTM Snap milling machine developed by Otherfab’s Jonathan Ward over the past few years. Otherfab is a small group of engineers and designers within Otherlab, and Jonathan was formerly at the Center for Bits and Atoms. The Othermill comes out of the Fab Lab ecosystem, and is comparable to the Roland Modela in that paradigm.

Continue Reading →

By Shawn Wallace on May 8, 2013.

New Product: Serial LED Strips

TopPic1

We bought some Serial LED strips for the shop and I am having a whole lot of fun programing them. Like most 12 volt strips they are wired with three LEDs in series, which are in turn controlled by one high-speed serial chip. So there are 50 control chips on a 5 meter strip. (The strips have 30 LEDs per meter). We looked for strips with 60 LEDs per meter but our supplier could not provide them without a sizable order from the factory.

The somewhat coarse grain of this control might be a show-stopper for some LED projects, but they’re well positioned for lots of general computer-controlled changeable color and display applications. I am having a whole lot of fun programming them. I found an excellent high-speed library here. The author hasn’t returned my email yet, I’ll call him Daniel G. from his email address, and give him more specific credit if I can get in touch, and he wants the attention.

Our LED strips are controlled with the UCS1903 chipset, which has, as one of its great virtues, the ability to control the LEDs with only a ground and data line. All of the Chip Select and Clock functions have been replaced in the chip, by careful timing control, which also requires a microController running at least 16 Mhz, so Lillypad owners are out of the picture, at least for now. The lack of clock signal lines creates a very clean interface. Two wires, Ground and +12 volts, go to the strips from the power supply, and two wires, GND and Data In, connect the microcontroller to the strips. The strip headers thoughtfully have two wires on ground (if you buy a whole 5 meter roll), so it’s a very easy hoookup. More strips can just have data and GND lines daisy chained, and power lines perhaps run in parallel, to avoid huge currents through the strips, although it might be possible to run 10 meters daisy chaining all four wires, especially if all the LEDs are not on at any one time.

Writing 255, 255, 255 to all LEDs yields a strip (5 meter) operating current of 2.3A (@ 12 volts). The total current divided by 150 (50 controller chips x 3 colors) yields about 15mA per LED so the strips should have a long lifetime at that current, since most superbright LEDs are usually rated at 20 mA or greater.

I cooked up five demo sketches to help users get going on using the library. There are some videos below (of uneven quality) showing the effects. There are some nasty flickers in some of them that just represent interference patterns between the video frequency and the update frequency of the LED’s. Needless to say, the LEDs don’t look like this to the human eye. Cyborgs though, will eventually be connoisseurs of visual phenomenon entirely invisible to people.

The Serial LED strips are in stock and in the shop here.

By Shawn Wallace on May 3, 2013.

New Product: Hobby Servos!

ServoSide

Paul picked these servos up for his class, and liked them so much that we are now putting them in stock!

ServoApart

This is a standard analog hobby servo with nylon gears. It also features 2 ball bearings on the main output shaft. Ball bearings are rare on inexpensive “generic” servos, so this is definitely a nice feature to see.

Continue Reading →

By Sebastian on March 20, 2013.

New Product: BBLeo, a Breadboard-Friendly Leonardo-Compatible

BBLeoTop

The world probably has enough ATMega32u4 (Arduino Leonardo) development boards. Some of them even put all the pins on a .100″ grid (unlike the original Arduino outline). But we feel that none of them is as easy to use on a breadboard as the BBLeo, which stands for breadboard Leonardo. The BBLeo is engineered to get you going quickly on a breadboard.

Just as in the Arduino Leonardo, the BBLeo has USB built in so you can just “plug and play”. Hint – all this great functionality that board developers like to brag about is usually built into the chips. We try to be honest about it.

Continue Reading →

By Paul Badger on February 27, 2013.

New Product: Current Sensor

Current SensorThere are a number of ways to sense electrical current — and all of them involve some fuss, at least in comparison to sensing voltages. The chief reason for this is that because current is a flow, rather than a potential (like voltage) we need to measure it in series with the circuit, rather than in parallel.

For beginners, this is the reason that your multimeter behaves so much differently when you switch it into the current ranges. The resistance of the meter is now very low, as it is meant to be inserted in series with a circuit. Consequently if you inadvertently touch a voltage source with the probes, it is like applying a short circuit to the voltage, and the protective fuse in the meter blows out, something that is easy to do by the way, and that I’ve done at least once with all of my meters.

Another popular way of sensing current, is to insert a low value resistor in series with a circuit and measure the voltage drop across the resistor. This is convenient when using small DC circuits, less so when using mains circuits (120 volts or 240 in Europe). By the way, this is the way your meter senses current, and the fuse is protecting the low-value resistor, which would otherwise be liable to a smokey death in inadvertent current-measuring mistakes.

When using mains circuits, often a transformer is employed. Even the electrician’s clamp meters work this way – although the principle may not that be clear. Only one conductor is inserted in the clamp meter, which acts as a one-turn primary and the meter forms the secondary winding of the transformer. Note that if both conductors are inserted into the clamp – say a lamp cord, that no reading is possible, because the two wires have equal but opposite fields, which promptly cancel each other.

Many other small current transformers are available, but for the hobbyist, the problem of tying the circuit to the mains, then finding an enclosure to house the transformer, is also some fuss. Lately hall effect current-measuring chips have become available, for measuring current, but the fuss is still in connecting them to the circuit and housing them.

Wouldn’t it be nice if you could measure current without having to mess with cords or plugs at all? There are small hall effect sensors with linear output that can be used to measure magnetic fields. I thought that it might be possible to use these to measure the current in common electrical wires such as lamp cords. You might be quite right to wonder about the equal but opposite fields from the lamp cord’s other conductor. The trick I have used is to get the sensor physically closer to one wire than to the conductor.

Continue Reading →

By Paul Badger on November 20, 2012.

A New Space for Modern Device

It’s a been a long time since we updated our blog since we have been working overtime to get things moved and production back in action. Here are some shots of the new space along with a little commentary.

Dig the clerestory windows. Not commonly found in American manufacturing spaces these days. Nice 18 foot ceilings or so. (I’m guessing.) The space has been rehabbed and is very clean.

We put one of the larger parts bin shelves on wheels, the better to rearrange the space for our open-house party.

Plenty of space for a pick-and-place machine, if we decide to go that way, and the 480 power is already in. Actually that giant box is a transformer with more than a bit of hum. Flip and Sebastian, our production people, never seem to notice (because the sound track never gets that low).

They are jazzed to be able to shut the old folks up in the office and enjoy the tunes. The office also has high ceilings and some great windows, with a mundane view of a residential street. All in all beautiful natural lighting in a very nice office and work space. We can try out some larger projects if we want and generally have a lot of breathing room again. Our old space at the Steelyard had filled to the point that any growth had to occur in the vertical dimension, and even that was looking very crowded.

In the hallway out front of our new home is New Harvest Coffee Roasters, which also maintains a little retail shop in their space. The coffee does not get fresher than this. Yes those are bags of beans in the picture.

The building, called Hope Artiste Village (slightly unfortunate name IMO) is home to lots of small wood and metal workers, caterers, three bakers, a farmer’s market in the winter, several sculptors, along with some live-work space and some office and retail oriented spaces. It’s been fun meeting people and I have a tech swap going on with a wood sculptor already.

All in all, we’re very excited about our new space, which costs about the same as a closet sized one-bedroom apartment in the less tony parts of New York City. We think this space should easily take Modern Device through the next three to four years or more.

By Paul Badger on October 3, 2012.

New Product: Audio Amplifier (LM4889)

The Modern Device LM4889 audio amplifier breakout board uses one of National Semiconductor’s “Boomer” amps. It uses what in the industry is referred to as a “bridge-tied load”. This is an efficient system that increases the total amount of power available to the speaker. It also eliminates the need for an output capacitor (like in the LM386), which tends to be bulky and can limit the low-end response. It has a shutdown pin to put the chip to sleep – just in case you’re trying to build a super low-power microcontroller application, that spends most of its time sleeping.

Continue Reading →

By Paul Badger on August 9, 2012.