Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

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 values to USART using interrupt routine. On PC using terminal software like Putty the data can be captured and logged that are then plotted for analysis. Analyzer is capable to capture rates up to 100kHz. This is not very high but for slower signals might do the business. 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. For the ‘breadboard’ pins they have provided extra-long pin headers. These can be fed ‘through’ the board for included stability. There is also an extra pin next to the reset pin is on pin D0, so you it to add a Led there to make it easy to flash your first… 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 he used AT45D 4Mb serial flash module. In order to store audio files in flash memory Makapuf build a simple file system to keep track of files. There is no way to store normal FAT file system as it requires much more SRAM that Attiny2313 has. To program dataflash memory… 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 LCD nicely fits in free space on panel. 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 AVR check out this resource on AVRfreaks. Continue reading

Frequency meter on Attiny2313

avr frequency meter

Attiny2313 is simple and yet powerful micro. Manekinen built a 1 to 10MHz frequency meter using this chip. It measures frequency and displays result on seven 7-segment LED displays. In order to achieve 10MHz measurement range he had to use higher crystal than max 20MHz. With 22.1184MHz overclocking he was able to get it to desired range. Measurement is done using two timers – one for counting pulses of measured signal and another for timekeeping. The accuracy of meter purely depends on crystal accuracy. So you should look for smaller ppm crystal oscillator to get better results. But for hobby purposes practically any decent crystal will do. Meter PCB is build so that it could be used as panel in any devices like signal generator or desk frequency meter. Continue reading