Monday, October 11, 2010

USB digital I/O extender

Control up to 12 digital input/output lines from the computer by this USB circuit. Each line can be individually set to an input or output, and each output pin can be set HIGH or LOW independently, without changing other output pin states

http://jap.hu/electronic/usbio.html

Saturday, March 21, 2009

LCD thermometer

Build your own temperature meter for fun. This project uses the Microchip TC77 digital temperature sensor, a PIC16F871 microcontroller and a 7-segment 3˝ digit LCD. You can study the source code on how to drive an LCD display.

Monday, March 16, 2009

Connect your microcontrollers into a network

Connect your PIC devices on a shared network, and they can communicate to each other and share information. You can control them all by any unit on the network.

http://jap.hu/electronic/pbus.html

get started with PIC microcontrollers

Are you new to microcontrollers? Microchip 8-bit PIC microcontrollers are cheap and easy to start with. You can find them in many size starting at 6 pins. Most parts contain FLASH program memory, so they can be programmed hundred times. A good choice to start with is the 40-pin PIC16F887, or the 18-pin PIC16F628A/PIC16F818. They contain integrated serial interface, timers, PWM module, AD converter and separate EEPROM to store your own data.

  1. Choose your PIC: read the datasheets and application notes at www.microchip.com
  2. Get your PIC programmer or build one
  3. Download the MPLAB IDE
  4. Build a PIC circuit and study how it works
  5. Make modifications, or build your own application
Programmers

The easiest is getting a Microchip ICD or PICKIT. I have built a DTait programmer. This programmer can work with several software: DL4YHF's PIC programmer, ic-prog, PicProg, and various Linux programmers.

Development environment

The MPLAB IDE is the development environment for writing, compiling, debugging, programming all the PIC devices at the same place.

Find PIC circuits

You can find several circuits on my site here, or you can check the PIClist mailing list.

Monday, March 9, 2009

Turn on the aquarium lights every day at the same time

Turn on the sprinkler or the aquarium lighting for the same period of the day. You can choose to operate the output by every 2nd, 3rd day only. There is a manual start/stop button to immediately turn on or off the output, and a disable button to completely turn off automatic operation.

Serial LCD for microcontrollers using only 3 pins

Connect an LCD to your microcontroller to make it easy to develop and debug your application. You can choose which PIC I/O pins you want to use for the interface, and any HD44780 compatible LCD can be controlled.

http://jap.hu/electronic/lcdif.html

Lights timer

Automatically turn off the lights ater 10 minutes. If you often forget to turn off the lights outside or at different places in the house, this circuit can be practical for you. It can control two independent light switches with different turn off times. Press the button once and the light turns on for the preset time. Press again, and the light remains on forever. Press for the third time, and the light turns off.

http://jap.hu/electronic/lamp.html