Microcontrollers for newbies


If you’re at that stage as a beginner where you wonder what’s going on behind the scenes on an Arduino board you should check out jumperone’s tutorial on using microcontrollers. There you’ll learn what’s needed to take a bare microcontroller and load your own program onto it. Both PIC and Atmel chips are covered, with an explanation of what simple components you need to get started in addition to the chip itself, along with programming connections and hardware.

App note: Tire pressure monitoring system

The rfPIC12F675F is a microcontroller with a built in UHF transmitter operating at frequencies between 380Mhz and 450Mhz. It’s basically a PIC12F675 microcontroller strapped onto a UHF transmitter, even the top 8 pins of the rfPIC12F package are pin comparable with the 8pin PIC12F device.

This reference design outlines a wireless tire pressure monitoring system using the rfPIC. The rfPIC reads a pressure sensor and transmits the data over the UHF band to a receiver.

The design covers the pressure measurement transmitter, but for the system to be complete a receiver needs to be built as well.

Free PCB Sunday: Pick your PCB

We go through a lot of prototype PCBs, and end up with lots of extras that we’ll never use. Every Sunday we give away a few PCBs from one of our past or future projects, or a related prototype. Our PCBs are made through Seeed Studio’s Fusion board service.

This week two random commenters will get a coupon code for the free PCB drawer tomorrow morning. Pick your own PCB.

You get unlimited free PCBs now – finish one and we’ll send you another!

Don’t forget there’s free PCBs three times every week:

  • Tweet-a-PCB Tuesday. Follow us and get boards in 144 characters or less
  • Facebook PCB Friday. Free PCBs while you wait for the weekend
  • Free PCB Sunday, right here on the blog

Get your own handy Bus Pirate for $30, including world-wide shipping. Also available from our friendly distributors.

Continue reading “Free PCB Sunday: Pick your PCB”

App Note: Non-isolated 360mA buck DC/DC converter

This buck converter design uses the LinkSwitch-TN IC to output DC directly from rectified mains outlet.  It converts mains high voltage to smaller DC voltages suitable for electronics devices, and has the ability to output up to 360mA of current.

It’s based on the standard buck topology, except that the IC tolerates and works at very high voltages. It can convert DC voltages as high as 380V.

This circuit deals with live mains, make sure you know what you’re doing.

Colornode holiday lighting microcontroller board


ColorNode is a wireless Arduino-compatible microcontroller board designed to replace the stock controller board on GE Color Effects light strings. It’s a project designed by digitalmisery and was inspired by deep darc’s Hacking Christmas Lights project last year.

The schematic and photos are available, and they promise to post the code as soon as the bugs are worked out. Visit digitalmisery’s website for a thorough explanation of this timely holiday season project!

App note: RC Model Aircraft Motor Control

Modern RC model aircraft designs incorporate some hefty standards regarding motor speed control:

  • The motor should not be started until the speed is at its lowest setting
  • Motors with gearboxes should have acceleration limits
  • If the control signal is lost the motor should shut off
  • Motor shut off in case of low battery, to save power for reaming systems

This reference design from Microchip features two versions of a DC motor controller. Version one has all the features from the list above, while version two adds programmable throttle response and a motor brake.

Schematics and firmware are provided for the PIC12C508A, and PIC16F628 microcontrollers.

Week in (p)review: November 18, 2011

Here’s a summary of major developments over the last week:

Coming this week:

  • App notes on the weekend
  • Free PCB Sunday
  • Free PCBs via Twitter on Tuesday
  • New designs on Thursday
  • Free PCBs via Facebook on Friday
  • Weekly roundup and preview every Friday

What are you hacking this week?

What gerber viewer do you use and why?

It’s always a good idea to review your PCB gerber files before committing them to the PCB fabrication house. We use ViewPlot to check our PCBs, what software to you use and what are the common errors you look for? Leave your comments here, or join the discussion in the forum.

We review the gebers for any problems that might have happened in the export process. It’s not an in-depth check, that happens in the CAD program, this is just a quick verification.

  • Missing solder pads – problems with the footprint, the solder pad is sometime buried by mask
  • Drill problems – drills outside board or flipped
  • Silk problems – CAM didn’t export expected silkscreen layers

Eagle3D and EagleUp have become an important part of our board pre-flight too. A clear 3D rendering of the PCB instantly highlights silk problems and potential part placement issues.

The $5 Picaxe Beatbox

Corticalcafe has posted a project for an audio record and repeat device using a Picaxe-08M microcontroller, piezo speaker, and a handful of resistors. The Beatbox uses LDRs shielded inside nuts to sense the input “drumbeats”! When powered up the LED indicator lights and the circuit senses about 5 seconds of input beats. After the maximum recording memory if filled, the LED extinguishes and the Beatbox loops the playback of the recorded beat.

Here are the links to the project code and schematic from the corticalcafe website.

New Dangerous Prototypes stickers arrive

A test printing of Dangerous Prototypes stickers just arrived. The first batch used Sven’s logo design on a standard 2×3″ vinyl sticker. There’s a lot of extra white space that could have been use for something but these were just a test. They turned out ok, so we’ll spring for die-cut stickers shaped like the logo on the next batch.

Stickers will go out with all free PCBs, but if you’re dying for some now please give us a shout via the contact form.

TI CC110L RF BoosterPack


Manuel Garbe writes to inform us:

TI has just released a new boosterpack for his MSP430 launchpad
It is the CC110L RF BoosterPack, an RF shield (from 433 to 915 , perfect for my chronos.) There is a lot of information, with software example and a video.

(We just checked the TI site and find this boosterpack listed for $19, currently out of stock, but definitely worth keeping an eye on.)
Via the contact form.

DIY high resolution 3D printer

Arhi tipped us about this amazing DIY high resolution 3D printer. It uses a projector to cure resin and, layer by layer, develop a 3D object. The developer wants to produce it as a low-cost, high-resolution 3D printer:

I have been dreaming about having a 3D Printer at home for many years, but the ones with good quality are not affordable and the low costs just deliver poor quality. Sounds crazy but I decided to build a high resolution 3D Printer by myself at home (people actually said that I was crazy and this was impossible). The funny thing I never saw this type of machines in real life, and still haven’t seen one besides the one I built. Now that I succeed building the first prototype, the target is to bring this low cost 3D Printer to every home, so we are developing the first affordable one with high resolution.

Via the comments.

RS-485 temperature sensor source files uploaded

As a follow up to his RS-485 temperature sensor board, Ezflyer added PCB and schematic files:

I’ve been meaning to post the Eagle schematic and board files for this project for a while now, but never got around to it. An email from a forum member (thanks Karel!) interested in this project prompted me to revisit this thread and upload these files!

The roundup of protocol commands, and firmware should follow shortly.

Via the forum.

Free PCB coupon via Facebook to 2 random commenters


Every Friday we give away some extra PCBs via Facebook. This post was announced on Facebook, and on Monday we’ll send coupon codes to two random commenters. More PCBs via Twitter on Tuesday and the blog every Sunday.

Don’t forget there’s free PCBs three times a every week:

  • Free PCB Sunday. The classic. Every week, get free PCBs right here on the blog comments
  • Tweet-a-PCB Tuesday. Follow us and get boards in 144 characters or less
  • Facebook PCB Friday. Free PCBs while you wait for the weekend

Get your own handy Bus Pirate for $30, including world-wide shipping. Also available from our friendly distributors.

Continue reading “Free PCB coupon via Facebook to 2 random commenters”

Energy Micro EFM32 dev-boards winners

Today we announce the winners of the Energy Micro EFM32 dev-boards.  There were lots of great ideas, thanks for your submissions.

Congratulations to David, his idea for a subsurface stream water level monitoring and logging system scored him the EFM32 Gecko development kit:

Subsurface stream water level monitoring and logging system. (Ecologically friendly hydrological data collection) Particularly for studying subsurface stream behaviour in caves here in Kentucky. (Especially caves connected to the Mammoth Cave system. This cave system has >300 miles of passages and 5 different underground rivers and their many feeder streams. ) This type of instrument has to be packed in several miles underground through tight passages and set up for unattended operation lasting many months. There is no sunlight available for solar powering the logger and data must be hand collected on return trips since low power radio does not penetrate rock very well.

Noel won an EFM starter kit for his idea:

This looks like a nice dev board. Since this is a low power device, I think it would nice if I power it with solar modules. I have a few more of solar modules and this could be a great charge controller. I hate storing batteries and then after a few months, it’s voltage becomes so low that it doesn’t work with my charger anymore. This looks perfect as a solar battery charger controller.

If I have one of these, I will first create tutorials on how to use it from the simple blinky let to interfacing with LCD, SPI devices…etc, and then use it to control individual charging of a huge row of AA batteries.

The controller should monitor each AA cell individually and implement a deltaV/ deltaT monitoring loop to precisely control the charging of each cell.

In this way, I can just leave it beside the window and let it continuously trickle charge all my batteries.

Eric also won a starter kit for his idea:

This would be great for my smart car project. I have a 2001 VW Golf modified to run on Bio Diesel. I would love to use this to do everything from monitoring/averaging fuel consumption, tire pressure, break temp, fluid temps, maybe tie it into the odb2 port and get some engine readings, and probably do something cool regarding the starter (maybe a pin entry or rfid verification) or throw a remote starter on it so it can warm up the fuel, so it is thin enough to be injected into the engine, before I leave the house in the morning (Chicago winters are brutally cold). Looks like this will handle everything I can throw at it.

Thank you to Energy Micro for the free swag.

Thank you for participating, there we a bunch of great ideas.

Bus Pirate PIC programmer can now program Bus Pirate v4

Bus Pirate PIC programming utility can now program Bus Pirate v4. This means any Bus Pirate v2, v3, or v4 can program any other Bus Pirate version as well. Thank you to Tayken, Robots, and LongHairedHacker for their work on this project.

Note: the PIC programming adapter is not needed to program a Bus Pirate. The adapter is only used for older PIC 12F/16F/18F.

Via the forum.

Bus Pirate demoboard v5a update changelog

We made a few updates to the Bus Pirate demoboard v5 since the soldering video we posted yesterday. In version 5a we added:

  • A 3.3V pin to the ADC_IN header, to easily connect the AIN pin to 3.3V with a jumper.
  • A Diode D1 to separate the high programing voltage from the rest of the circuit.
  • A voltage protection circuit with resistor R3 and zener D2. It is unpopulated and the resistor R3 is short circuited. If someone uses voltage higher then 9V to program this board, they will need to cut the trace running under R3 and solder the zener and resistor.
  • different header names, and pinout text.
  • changes to the jumper selection pictorial to follow binary logic. 00,01,10,11 instead of the earlier version which had 00,10,01,11.