HsNet: Node Communications For Feature-limited Microcontrollers

[Diego Spinola] wrote in to tell us about a node communication system he’s been working on called HsNet. The aim is to build a system of nodes that can be made up of small and inexpensive microcontrollers. The problem is that the least expensive controllers often don’t have a hardware UART. HsNet implements the RS485 protocol using a software UART along with a slim and sleek addressing scheme.

The first module developed, seen in the image above and video after the break, is a single channel pulse-width-modulation node using a PIC 12F683. It can be sent commands in the payload of the HsNet packet format. The PWM modules accept three different commands; one is a desired PWM value, another is a delay between steps for the PWM, and the last toggles a blink function.

He has also developed an analog sensor module and an Arduino-based TCP/IC gateway module. Now that the packet communications have been established, it will be rather simple to add nodes based on that groundwork. [Diego] brought these components together to build an interactive wall which can also be seen after the break.

Continue reading “HsNet: Node Communications For Feature-limited Microcontrollers”

Full-featured Battery Tester Puts Them Through Their Paces

When working on battery-dependent projects you want accurate performance information where a datasheet may not be available. [E. Lelic] set out to build a device that would meter internal battery resistance but ended up with a bench tool that can do much more than that.

A PIC 16F88 microcontroller takes center stage on the meter, taking voltage level readings, monitoring a DS1820 temperature sensor, and controlling an LM2575 step-down regulator. The components provide functionality for measuring Lithium Ion, Lithium Polymer, Nickel Cadmium, Nickel Metal Hydride, and Alkaline batteries. It is capable of fully discharging and fully charging the batteries, measuring time and power consumption during this cycle, and monitoring temperature changes for the NiMH and NiCad versions.

Look for the little red ‘Download’ icon at the bottom of the post linked above. That archive includes a schematic (which we’ve also embedded after the break), board layout in .LAY format, and a HEX firmware file.

If you enjoyed this build you might want to look at this other battery capacity tester.

Continue reading “Full-featured Battery Tester Puts Them Through Their Paces”

Temperature Sensing Mug Means Never Burning Your Mouth Again

temp_sensing_mug

Some people tend to get awfully attached to their favorite mug. Like an old friend, the mug holds a special place in their hearts, and there’s a weird sadness when it finally gives up the ghost. Through the winter months [Ben’s] girlfriend is never without hers, and when it broke, he decided to give her a new one with some added functionality.

He built her a temperature sensing mug that uses a rather novel way of determining how hot or cold the contents are. Instead of using a thermistor to determine the drink’s temperature, he opted to use a simple diode since it is well known that a diode’s forward voltage varies with temperature. After determining the diode’s voltage range using hot and cold beverages, he hooked it up to the ADC of a PIC12F615 micro controller. The temperature is displayed via 10 LEDs, which are driven through a pair of 8-bit shift registers and buffers since his PIC did not have enough pins to control them on its own.

He had some PCBs made, and after a handful of setbacks got everything put together. He says the mug works pretty well, though the display changes a bit more slowly than he would like. He also mentions that if he builds a second version, he will be sure to select a different PIC that has enough I/O pins to do the job, as well as use a thermistor instead of a simple diode for sensing the temperature.

Continue reading to see a brief demo video [Ben] put together.

Continue reading “Temperature Sensing Mug Means Never Burning Your Mouth Again”

PIC-based Temperature Logger With Onboard Storage

pic_temp_logger

Last summer, [Rajendra Bhatt] built himself a simple PIC-based temperature monitor with data logging abilities and recently got around to sharing it on his site. The sensor is based on a PIC12F683 micro controller and measures the ambient temperature on a set interval, storing the values on the MCU’s internal EEPROM.

He used a Maxim DS18B20 temperature sensor, which communicates with the PIC over a 1-wire bus. The sensor is read based upon the interval chosen by the user, and can be configured to measure the temperature every second, every minute, or every 10 minutes. The data is stored on the aforementioned EEPROM and can be uploaded to a computer via a serial connection. The PIC has the ability to store 254 readings before the data must be cleared from the device.

It’s a great beginner project, and has plenty of room for improvement. As [Rajendra] points out, an external EEPROM could be added to expand the recording capacity, and it would be nice to have a real-time clock on hand for accurate time stamping. If we were to build one ourselves, a means of wireless data transfer would be first on our list of potential enhancements.

PIC-based Ham Radio Autotuner

cw_autotuner

A few years back, [Floyd, K8AC] built a high frequency autotuner as an addition to his Ham radio setup. Based off a design he saw in QST magazine back in the early ’90s, he has been using the tuner almost daily for the last few years, on both the 3.5 MHz and 7 MHz bands.

Built into the wall in his radio room, it is a pretty impressive sight. His “L” circuit is controlled by a pair of mechanically coupled inductors which are driven in concert by a pair of two-way motors. The positioning of the C and L components are monitored by a PIC controller which stores the tuning data for up to 30 predefined frequencies. A couple of button presses on his controller’s front end sends the tuner into action, dialing in his unit’s inductors and capacitor to their proper settings. The PIC monitors the tuner’s progress, informing him when the proper frequency has been tuned in, or if the frequency can not be set, indicating issues with the equipment.

His setup has undergone several revisions over the years, with the most recent iteration being the most automated of the bunch. Check out his site for plenty more details, or keep an ear out for [K8AC] on 40 or 80 meters.

[Thanks, Rich V]

Reverse Engineering LED Vodka Bottle Displays

wireless_led_marquee

When [Tyler] heard about the LED matrix display that Medea Vodka was building into their bottles, he immediately wanted to get his hands on one. Who could blame him? Someone had finally combined two things we love dearly: booze and LEDs.

He struggled to find a bottle at any of his local stores for the longest time, but was absolutely stoked when he finally came across one of their reps promoting the brand while he was out shopping.

Once he got home, he pulled the display off the bottle and began poking around to see what made it tick. The display is made from a flexible PCB, and attached to the bottle with some clear elastic film. It is powered by two CR2032 batteries and controlled by a PIC16F chip, which pulls stored messages from a small Atmel EEPROM.

Once he figured out how to control the LED matrix, he uploaded his own fonts and added a LINX wireless module to remotely send messages to the board. He mounted it in a wooden frame and now uses it as a simple marquee display.

If you have one of these displays hanging around your house, be sure to swing by his site for schematics of his wireless interface board as well as the code he uses to drive the marquee. You can check out a video of the display in action there as well.

Gun Turret Built Into A Cake Box

Couch potatoes have a new line of defense thanks to this remote-controlled turret. The gun itself is a hacked down airsoft model. The mount started with a servo motor in the center of a plastic cake box. A thin strip of plywood was added, along with a couple of sliding furniture feet to stabilize the platform as it rotates. A second servo mounts to that platform, which allows the trajectory of the projectile to be adjusted up or down. A PIC 18F4520 controls both of the motors, as well as the firing of the airsoft module, all while listening for commands from an IR receiver. Just adjust the firmware to match an unused device on your universal remote and the power to annoy your roommates will be at the tips of your fingers.

You can see an overview of the build process, as well as a demonstration of the final project in the video after the break. The page linked at the top has a very detailed build log but some of the ‘next’ buttons on that page don’t work for us. Luckily you’ll see a table of contents in the right column which lets you navigate around these bad links.

Continue reading “Gun Turret Built Into A Cake Box”