Tiny logic analyzer on Attiny2313

avr logic analyzer

Sometimes in digital electronics you need to figure out how things communicate. Maybe you need to hack LCD, or capture data packets from unknown device. This is some sort of reverse engineering. To do this you definitely need a logic analyzer. As a hobbyists you might skip the buying option especially when you need it rarely. Joonas have been debugging his PS/2 keyboard project and decided to build a simple logic analyzer to ease the work. As base he’s chosen Attiny2313 microcontroller clocked at 20MHz. FT232RL USB to serial converter takes care of sending data to PC. Using fast serial mode it is possible to achieve 1Mbps baud. Attiny2313 has 8 port B pins that are used for 8 channels. For sake of speed microcontroller software simply sends port B … Continue reading

The Definite header


It’s an advanced level programming header that could be placed OVER the AVR microcontroller to save space and to make fast and easy/plug ‘n play connections. The first prototype was developed for the Attiny2313 and did just that; it connected the programming header pins to the appropriate pins. This is the basic straddling header with a 6 pin header. The ‘definite’ straddling header was also developed, that also included some stuff that almost every AVR circuit needed and that was more or less ‘fool-proof’. The definite header has decoupling capacitors of the required value so as to save the controller from large switching current. It also provides ease of accessibility to place a crystal of the highest frequency the specific AVR can handle on the board, including the SMT capacitors. … Continue reading

Simple audio feature makes board game special

Board games are fun to play in group. No matter if you are a kid or adult, you can get involved pretty quickly. Makapuf with his son has been working on board game called goose board game. It is a game where you have to roll a dice and advance along the track where adventures and bonuses awaits. The design and rules were sons task while he took par of electronics. He wanted to make it interactive by playing sounds. Any microcontroller is capable to generate sounds using PWM. Attiny2313 microcontroller seems to be perfect candidate to generate 8-bit 8kHz sampled sounds. Audio is sampled through NPN transistor which has a minimal RC filter to improve it. Of course microcontroller memory is way to small to store audio files, so … Continue reading

Outside thermometer based on Attiny2313

attiny2313 DS18S20 thermometer

Today modern cars are equipped with outside and inside thermometers. But some older ones are missing this feature. Sometimes it is good to know what temperature is outside while driving. You can stick one of those gadgets on your windshield. But why buy, if you are capable of building a decent thermometer using small micro. Check out this thermometer based on DS18S20. Attiny2313 microcontroller does the reading of temperature value and displays it on LCD. Since thermometer is gonna be used in the car. Special care is taken when designing power supply part. It’s a noisy environment where voltages can spike up to 40V. An LM2574 regulator is used with inductive and cap filtering to get stable 5V supply. Original design was intended to be used in Dacia Duster. Bright … Continue reading

Adding MIDI output to the vintage analog organ

Michael likes his vintage organ KORG CX-3. It sounds good and keyboard feels right to play. But in early 70s there were no MIDI. But today almost any electronic music instrument comes with MIDI or other output interface. He decided to add a MIDI to CX-3 organ. For getting data you normally need to detect each key pressed. Luckily Michael found a great source on Internet with schematics where couple ICs are connected to keys that generate serial data stream. This gave him an access to keys by using couple of wires. Next step is a midi interface. Attiny2313 seemed to be enough for generating MIDI. A home made PCB looks really great next to vintage organ schematic and it does job well. To see how to generate MIDI on … Continue reading