Generic experimental AVR board @ Electronics Projects

You can experiment with Atmega8515 economically and easily. You can construct the following board, buy an AVRISP unit, download from Atmel AVRstudio and you are ready. The circuit is easy and I believe is very useful. Instead of paying a lot of money for evaluation boards or development systems, you can start with this board I have made and the help of an AVR In System Programmer (AVR ISP). This is the way I work. Firstly, I wrote the software and then I burnt the AVR with an ISP. With this board I studied the chaos of timers on ATmega8515 for just a few PWM (Pulse Width Modulation) applications.

If I want another one board, I build it in less than a half an hour.

I think these boards and source codes I give you, will be very useful for people who start their journey to the magic world of AVR microcontrollers.

Infrared remote control receiver @ Electronics Projects

A few time ago I decided to create a media center box to replace my DVD player, sattelite receiver, VCR and my kid’s Play Station 2, to one device. So, I made a core 2 duo processor system that actually replaced with succeed, all my electronic devices. The only thing that was missing was a remote control to switch On/Off my Media Center. After I searched on the net  to buy a complete remote control system, I saw that the price was a little bit high (about 90 euros). I checked my stuff to find my old 7-in-one remote control that I had bought 2 years ago and I started to build my own remote control receiver circuit.

USB AVR In-System-Programmer @ Electronics Projects

Nowadays, USB is the most popular connection connection between PC and peripherals such as AVR programmers, printers, scanners etc. For that reason I had to modify my old serial AVR In-System-Programmer (ISP) to work with USB connection. You can say, “use a USB to Serial adaptor to connect your AVR ISP with your PC”. Yes, that could be a solution but it would cost me more money than a singe FT232BM chip because I had to include an USB to RS232 adaptor and a power supply for my programmer. (almost €30).

So, the solution was to replace the two transistors, that were used to adapt the RS-232 voltage levels to TTL voltage levels, with a USB to RS-232 chip such as FT-232BM.

AVR based oscilloscope @ Electronics Projects

A few months ago as I was surfing on the net, I saw an oscilloscope based on PIC18F2550 microcontroller and a KS0108 controller based graphical LCD. That was Steven Cholewiak’s web site. I had never seen before so amazing microcontroller-only oscilloscope. That was realy impressive circuit, so I decided to design something like that but in C language instead of assembly that I was using all those years. The best solution for me was the WinAVR as it bases on open source AVR-GNU compiler and it works perfect with AVR studio 4. The graphics library that I used, is made by me specific for this project. It’s not for general use. If you want to include it to your codes,

Electronic church bell controller @ Electronics Projects

This circuit is a church bell controller. Basic component is an ATmega32 microcontroller. At the circuit 2 24LC32 eeprom memories is being used, the 1st for internal standard melodies and the 2nd one is for user’s compositions. This feature will be provided in the future.

As control I created a menu who will be appeared on 4×20 LCD (Liquid Crystal Display). The menu browsing can be done by 6 buttons at the face of the circuit’s box (Menu, Up, Down, Enter, Start, Stop). The all firmware binds about 19Kbytes flash memory and can be increased by adding new features-functions. This program has been writen in C in CVAVR compiler.

The idea of this circuit is being given by a friend of mine who has an foundry and he is building bells. I have made the PCB by my self.

2 channel RF remote control @ Electronics Projects

  • a.) the check of the received data because many other devices are working in this frequency (418MHz)b.) and the power-saving of the transmitter. One transmitter must have battery long-life, there is not good to change the battery after 3 days . I don’t care about the receiver`s power supply, because receiver must be working all the time.

SMS remote control v2.2 @ Electronics Projects

With this circuit we can controll up to 8 devices (4 devices in our example project), by sending a specific SMS message with any mobile phone. Its very usefull at the cases that, at the place we have the devices, we have not a wired telephone line. If you have an old ericsson mobile phone and you are not using it, its the time to build some useful with that.  The controlling that we can do to the devices, it is ON , OFF or Reset.

Simple VGA/Video adapter @ Electronics Projects

Several months ago I tried to connect a microcontroller system to a VGA monitor to output data in the form of text. I was surprised to find little on this subject on the internet, to assist me in achieving this goal. Certainly nothing simple a beginner could find useful.

There are examples out there that utilise standards such as PC-104 or complex FGPA implementations found at www.opencores.org. Other solutions include graphic controllers from Fujitsu or even one local Russian person who was offering for sale a project for $5000 on ACEX. These are fine but are little help to most hobbyists etc out there who wish to display text on a VGA or similar screen.

Communication of TRW-24G RF modules with AT90S2313 microcontroller @ Electronics Projects

My first attempt with RF modules was with TLP and RLP418 modules. Those modules working at 418 MHz with slow data-rate (typical 4.8 kbits/sec) and every module is transmit or receive only. TLP418 is only transmitting data and RLP418 module is only receive data. You can not make a bi-directional communication with only one couple of this modules. The solution of this problem is the use of TRW-24G transceiver modules (transceiver = transmitter + receiver). This modules working at 2.4 GHz frequency with GFSK modulation, and the data-rate is 250Kbps and 1Mbps (1 mega bit/second!)

MIDI generator @ Electronics Projects

This circuit based on ATtiny26 but it could be anyone microcontroller of AVR family.  Produce stable one MIDI tone and you can change it by press some keys like to change midi channel 0-15 , velocity 0-127, pitch 0-127. It is start from center tone (C) at channel 0 with velocity 30. Every tone is equivalence with two midi events “note on” and “note off”. A LED is used to show the start and stop of the midi tone. This LED is turn-on every time a command is executed by the key pressing.

Analog inputs for ATtiny26 @ Electronics Projects

Study the Analog to Digital capabilities of Atmel ATtiny26. This tiny but mighty IC is really a miracle. One special thing is the internal 10-inputs multiplexed ADC circuit which can covert analog voltages to bytes. This check circuit uses only 3 inputs. Of course you can may changes to use more inputs.

I used the AVRISP in-circuit programmer to program the chip. You can see the connector for this purpose.

The 10uH micro coil is for improving the voltage stability at the ADC section. It is not really needed for 8-bit resolution.

Apply a stabilized voltage of 5Volts dc.

Acceleration meter for cars @ Electronics Projects

The circuit is drawn for measurement of acceleration from –1000 mg until + 1000 mg. It can be placed in kantra’n the car and be supplied from the sheath of electric lighter. The circuit includes one indicative LED and a screen LCD.

Electronic safety-lock with telecard as key @ Electronics Projects

This circuit its not write any data to the telecard. The ATtiny26 read the 16 first bytes of telecard and then store them to internal eeprom of ATtiny26.

When you insert any telecard to the slot (telecard`s base) it will pressed the switch SW1. The ATtiny it will understand that new card insert in the slot and go to read it. Temporary will save the 16 first bytes of the card to the RAM and after the ATtiny will search in internal eeprom to see if this telecard is registered to the system. if not, it will turn-on the Red LED. The ATtiny have 8 groups of 16 bytes each, summary 8*16=128 bytes of eeprom memory.

The ATtiny of this circuit its working with internal RC oscillator at 1MHz, that is the default setting from the factory.

AVR In-System Programmer @ Electronics Projects

I found the schematic of this programmer in my “AVR software and technical Library – April 2003″ CD-rom and decide to publish it. The reason was, that this programmer is very stable and works perfect with AVR Studio 4.  I have test it before publish it, with AT90s2313 and its worked fine!!!To work this programmer you must to connect a crystal 4MHz to slave device at the XTAL1 and XTAL2 pins, or if you have an device with internal oscillator (AT90S2343, ATmega161 etc) and its enabled , its not need any external oscillator.If you want you can use MAX232 or MAX202 instead transistors, capacitors and resistors to connect master AT90S1200 with Personal Computer (PC). There is no problem (i check this hardware by using MAX202).

Visual Basic & AVR RS232 interface @ Electronics Projects

Lot of circuit, with AVR microcontrollers, around the internet are stand-alone circuits. In this project we will control some AVR microcontroller (MCU) via Visual Basic 6.The use-range of this application is very high. You can make, anything you want, that its need control from PC computer or some circuit that is collect data from somewere, and at the end, its give this data to PC computer via RS232 port to our software.As you understand, this project is in general form, to give you the information for how to control the MCU. You Can modify the source codes to make your circuit, for personal use, but

AVR composite PAL colour bar generator @ Electronics Projects

I started this project 3 weeks ago, because I was wondering ” is that possible, some AVR MCU to create simple colour bars? ” At the beginning, I  believed that it’s easy. So, I asked some people who knew more about PAL composite video signal. Some of them told me that it’s impossible to produce color entire in software with an AVR MCU (microcontroller) because there wasn’t enough power (frequency).The first idea was to work with 8.867238 MHz crystal (2 times the color carrier). When I read more about PAL video composite signal creation, I saw that if you want to product colors entire-in-software you must create the color-carrier (4.43 MHz), changing 4 times

Ultra low-cost programmer for AT90Sxxxx family @ Electronics Projects

To program some AVR microcontroller unit (MCU) you will need an AVR programmer. The better way to do that, is to buy some development kit like STK-500. This kit have the advandage to give you serial port, LCD connector, SRAM socket, 8 switches, 8 LEDs, connectrors for all of the ports of MCU and more, to one board. I sugest to beginers, to  start working with STK 500 or some else developmert system, it will help them very much.For the people that are want to programm only one piece of AVR, to make some circuit from this site and they don’t want to spend money for any development kit, the solution is this ultra low-cost AVR programmer.

LCD 2×16 characters & 4×4 keypad assembly example @ Electronics Projects

The AVR configure the PortB as PB0-PB3 inputs and PB4-PB7 outputs. At the firt, the AVR put the pin PB4 at logic ‘0′ to enable the column1 (the first 4 keys) and reading the state of the keys. If we have pressed any of the 4 firt keys then the AVR send the number of the key to the LCD display. If we have not pressed any of 4 first keys, theAVR put the PB4 at logic ‘1′ and PB5 at logic ‘0′ to enable the 2th

Connect RS232 modem to E-10G @ Electronics Projects

First of all you have to build one cable adapter to connect the female 9pins connector of the modem, with female 9pins connector of the base of E-10G HPC.

Telecard reader @ Electronics Projects

This reader can read the contained memory of the telecard. This cards have 64 bytes ( 512 bits) of eeprom memory that the first 8 bytes ( 64 bits ) is write protected, its only for reading.

This circuit does not include any lcd display, to keep the cost low, but the data can be viewed to any PC system using the RS232 port, by the Hyper terminal software.

RCEN fuse bit programmer @ Electronics Projects

As you know the AT90S1200 microcontroller include an internal RC oscillator that is disabled by default. If you want to change it (enable or disable) you must to program it with parallel mode. The most programmers working with serial mode and its not possible to program this fuse bit (RCEN).

With this stand-alone programmer you can now enable or disable the internal RC oscillator that is working at ~1MHz.

Infrared data communications @ Electronics Projects

Note: You can build these simple circuits, cut & paste the code into the PicBasic Pro compiler, and have a full-blown serial infrared communications network operating between several PICMicro’s or even a BASIC Stamp. You do not need the PicBasic compiler to do this. If you can program a PIC, we have sample code at the end of this article for an 8-pin PIC that will generate the 38KHz carrier for this application instead of using the hardware PWM feature of the more expensive PICMicro.

build an infrared transceiver @ Electronics Projects

We no longer manufacture or sell the original Air-Byte IR transceiver, so we’re releasing the code & circuit design here for hobbyists and students looking to build a simple IR transceiver.Note that the parts used here are not critical. I.E. the NPN darlington transistor driving the infrared LEDs, PNP transistor used for inverting the IR detector output, voltage regulator, LED’s, and most every other component can be replaced by something similar. However, we do have circuit boards and a full parts kit available for those who may want them.The code or course can easily be modified to work on any PIC microcontroller.

Infrared Remote Control System part1 @ Electronics Projects

This article will show you how to build your own version of the Fire-Stick infrared remote control system.  The Fire-Stick has been an extremely popular, and HOT selling item here at Rentron.com for quite a long time.  The LITEON infrared receiver modules originally designed-in to the Fire-Stick have been discontinued, and forced us to re-design the original circuit boards.Since we’re completely re-designing the Fire-Stick, we decided to share the original design with our visitors, and show you how to squeeze some pretty incredible operating distance out of an infrared remote control system.Here’s the transmitter schematic.

Infrared Remote Control System part2 @ Electronics Projects

The remainder of this article explains how to achieve extended operating range with your Fire-Stick by selecting compatible components, pulsing the LED at currentswellbeyond its normal operating limits, selecting an appropriate infrared LED, and infrared detector module. The manufacturers data sheet for the HT-12A encoder IC includes a schematic for using the HT-12A in an infrared application.  Here’s a screen capture of the schematic.

12F675 : RS232 Serial transmitter @ Electronics Projects

The 12F675 does not have a built in USART that you can use for a PIC serial port so you have to use a software USART which you can download from this page.Adding a pic serial port connection to the circuit gives you scope for much more interesting projects as you can collect data from the ADC (inputs) or comparator or external infrared receiver module etc. and transmit it to a PC.This tutorial covers creating the software Transmitter (TX) part of the USART as this is the most useful part of a USART and you don’t really need the receiver unless you want to control the microcontroller via a serial terminal such as Hyperterminal.

12F675 : Serial Temperature Logger @ Electronics Projects

It generates serial output so that you can view the results on a PC and it also calculates the temperature reading in Fahrenheit sending both to the serial port at half second intervals.The project uses the code from the previous tutorials to report the temperature to the PC using the serial port so the serial RS232 data format is generated in software.

12F675 : Servo motor driver @ Electronics Projects

Servo motor driver tutorial. This tutorial uses the 12F675 microcontroller to drive a servo.The microcontroller generates the signals to control a standard servo using Timer 0 interrupts (I used a Futaba servo).  It does not do anything clever just sets the servo position to predefined positions at one second intervals.A Timer 0 interrupt creates the 20ms timebase for servo updates using the internal clock and prescaler to accurately set the interrupt repeat rate.

Surprisingly servos are absolutely simple to control all the hard work is done for you (in the internals of the servo itself).  All you need to do is generate a pulse signal repeated at every 20ms (approx).

Numeric Foil-Keypad Calibration V0.04 @ Electronics Projects

This program refers to the calibration of the numeric foil-keypad of the AT Keyboard Box. The analog foil-keypad decoding approach deserves dedicated design and calibration: If a key on the foil-keypad is hit, an interrupt is generated to start the A/D conversion. The analog value built by the keypad resistor cascade needs some settling time until stable and reproduceable A/D values can be read out by the PIC microprocessor (overshoots, undershoots). For a detailed description, please refer to the section

DCF77 Test Interface @ Electronics Projects

Precise time is always a nice feature. In Europe, we have a public RF transmitter located in Mainflingen, Germany, providing standardized time information at 77.5 kHz. A cheap DCF77 receiver unit translates the RF data into PWM. A PIC 16F84 microcontroller performs software-based PWM decoding and transmits the data through RS232 to a PC with dedicated Excel 97 work sheet. The Excel 97 work sheet is able to acquire and log RS232 data, and also visualizes and translates complete DCF77 frames. A complete DCF77 evaluation setup is created.

Compatible AllPro adapter with USB @ Electronics Projects

On PC desktops the RS-232 serial ports are about to disappear from most computers (especially from laptops), replaced by the USB connection. This project was begun as a response to build simple ELM327 compatible USB adapter for On Board Diagnostic (OBD2) monitoring.

High Power LED mood Lamp @ Electronics Projects

In this page we will introduce a great project designed by Toon Beerten. His project named “DIY Led Mood Lamp” can become a very interesting add-on for your room that’s absolutely sure it will impress everyone. As you can see on the photos, we talk about a color fading lamp, that looks amazing!The purpose of this page is to try to give some hints building it successful. This high power led mood light is based on PIC16F628 \

Darkroom Timer @ Electronics Projects

This is an improved version of the Darkroom Timer originally created by Stan Ockers (1999). Some extra features were added and the PIC code was modified accordingly Lamp(s) light at start of timing and turn off when timer reaches zero.

A set of leds were added between the minute and second leds which blink during timer operation

iButton electronic lock @ Electronics Projects

Since iButton DS1990A introduced in market from Dallas Semiconductor (MAXIM), it has been used in many applications concerning security, access control systems etc. In this project we will use iButton as a key to an electronic lock. This electronic lock can use many different kinds of iButtons and can store up to 9 different keys. One of the keys is the master key and is permanent stored in memory. With the use of master key we can add or remove slave keys.


.: Build your own Lab power supply @ Electronics Projects

This is a high quality power supply with a continuously variable stabilised output adjustable at any value between 0 and 30VDC. The circuit also incorporates an electronic output current limiter that effectively controls the output current from a few milliamperes (2 mA) to the maximum output of three amperes that the circuit can deliver. This feature makes this power supply indispensable in the experimenters laboratory as it is possible tolimit the current to the typical maximum that a circuit under test may require, and power it up then, without any fear that it may be damaged if something goes wrong. There is also a visual indication that

Load Sensing Automatic Switch @ Electronics Projects

This project is superseded by Project 79, which is a better alternative.  Note especially that the current transformer shown below will almost certainly need a shunt resistor – I have tested several more small transformers, and their resistance is generally much too high to be used as shown in this project description.  The new version has a sensitivity control, which may sound superfluous – see the new version to see why it may be needed.

Transmit Infrared Signals Through Walls @ Electronics Projects

Iget “TONS” of requests on how to do this, so I’ve finally put together this simple project showing you how to use your existing infrared transmitter from any room in the house. The principal is really pretty simple, and it works better than you would think.This is a “very handy” little project. With this gadget you can control anything from pretty much anywhere. Even place your stereo equipment inside an enclosure then use your existing IR remote control without line of sight. Adjust the volume on your stereo from other rooms in the house. You name it — so enjoy…;o]

Interfacing the BASIC Stamp I Rev D to the @ Electronics Projects

The project is low power and can run on one 9 volt battery continuously for up to two months. It can log low to unhealthy radioactive levels (under 256 microrems) to the stamps internal EEPROM memory for up to one month, or very high radioactive levels for up to two weeks (sampling rate: every four hours).

X-Treme Serial Control @ Electronics Projects

X -Treme Serial Control was designed using Microsoft Visual Basic version 6.  The interface as shown below provides a simple point and click method for controlling up to 4 individual relays attached to the PC serial port.Using the Basic Stamp I or the Basic Stamp II to talk to your PC you can control up to 4 relays with our new interface software.

PC with the aid of the BASIC Stamp @ Electronics Projects

This project requires access to an EPROM burner to program the code definitions. The program that creates the EPROM image requires Microsoft Windows 95 or better. The schematics for this project can be found in the zip file as “Schemos.gif“.This project decodes the port 80 diagnostic port common to nearly all PCs and displays the last component tested, in English, should the computer hang on power up self test (POST). This information can be used by technicians to diagnose and repair a faulty motherboard. As is, this project allows you to select one of four BIOS code definitions, from the data burned into an EPROM. A Visual Basic 6 Program, Port80.exe is provided to allow you to create an EPROM image for the 27512 based on what the four

Wireless Alarm @ Electronics Projects

Making yourself an alarm is both useful and interesting: but the best part is when you take the remote control out of your pocket, and switch on the alarm while saying to your friends: “I’ve done it in a weekend”.Making yourself an alarm gives you maximum flexibility: as this project works according to the Nutchip truth table, you can change it to suit your needs. Some people would like to have like a “panic” button, in order to sound the siren. Some other pepople need a very long time to leave the house. Or you might be looking for an alarm that keeps that special sensor on even if you are at home. Possibilites are unlimited!

Smartcard-controlled Relay @ Electronics Projects

From a designer’s perspective, there are no “good” or “bad” circuits. This article will show how to transform a “pirate” smart card (cheaply available almost everywhere nowadays , as consequence of digital TV piracy plague) into a legal and pacific electronic key application.Opposite to popular belief, most TV smartcards are not clones of the original and trusted ones. Instead, they often are minature versions of general purpose microcontrollers – well known to the electronics enthusiasts – like PICs from Microchip or AVR from Atmel.

Basic Stamp Connection Issues @ Electronics Projects

Most customers using our stepper motor controllers have no problems when they operate them with the Parallax Basic Stamp or Javelin Stamp products.  However, a few have had some issues; this note summarizes the steps which you should go through, if your first attempt does not appear to work.Before you connect the Parallax Basic Stamp (or Javelin Stamp) to our products, you should first test our board in a stand-alone configuration and with Hyperterminal to make certain that you have the motor correctly connected to our controller.

GPS to SD-Card Data Logger @ Electronics Projects

This project combines a GPS receiver module, a Microchip PIC microcontroller and a Secure Digital memory card to make a GPS data logger.With a large capacity and reasonably long battery life it is a very useful device for logging GPS position for example for mapping with OpenStreetMap.

Post to Twitter