Articles tagged “AVR”
TV Demonstrator for TI calculators
I've been tinkering with a number of small projects recently. I've resumed work on an LED clock for my bedroom (using a 32×8 LED display) and written an experimental BASIC interpreter in C# which I may try to turn into an assembler (implementing assembly statements as BASIC ones). In the mean time, I have finished one project — a device to display a calculator's screen on a television set. Texas Instruments also manufacture a product that allows you to view the screen contents of a calculator with supported hardware on a TV; here is a video demonstrating it.
Comments ATmega168 AVR Electronics NTSC PAL TI-83+ TV TV Demonstrator
Booting CP/M 3 from an SD card
Up to this point I have been running CP/M 2.2 on the Z80 computer. CP/M 3 adds a number of useful features, including the following:
Support for more than 64KB RAM via banked memory. Standardised access to real-time clock for file date and time stamping. Improved text entry on the command-line when using the memory-banked version, such as the ability to move the cursor when editing and recall the previously entered line. Support for disks with physical sectors larger than the default record size of 128 bytes.
Comments ATmega644P AVR CP/M DS1307 Electronics SD card Z80 Z80 computer
Keyboard input and RAM disks make CP/M more useful
The hardware for the computer has changed in (mostly) subtle ways since the last post, with the exception of a PS/2 socket for connection to a keyboard. PS/2 keyboards (which use the same protocol as the older AT keyboard) communicate with the host by clocking data in either direction (keyboard to host or host to keyboard) over two wires, appropriately named "clock" and "data". An AVR pin change interrupt is used to detect a change in state of the clock line and either input or output a bit on the data line depending on the current direction of data transmission.
Comments ATmega644P AVR CP/M Electronics Keyboard Z80 Z80 computer
Combining a Z80 and an ATmega644P to boot CP/M
I've been working on a new Z80 computer over the last few days. I would say that I had been working on the existing Z80 computer were it not for the fact that this a completely new design. The previous computer had two 32KB RAM chips to provide a total of 64KB RAM. To run a user program you need to get it into RAM somehow, so I also included a 128KB ROM chip which occupied the lower 16KB of the Z80's address space to provide the fixed operating system that could be used to load programs. By adding memory banking hardware I could select one of eight 16KB pages of ROM.
USB remote control receiver for PowerDVD
I enjoy watching films and mainly do so sitting at my desktop PC. This has taught me that cheap office chairs are not the most comfortable things to sit on for extended periods of time, especially when the next room contains a comfortable bean bag and a good place to stick a screen. A gap between the two rooms allows me to pass cables from one to the other, and after purchasing a 10m DVI-D cable and a USB extension lead on eBay I had both picture and sound sorted out (I use a USB sound "card"). This left me with one final problem: how to control the PC through a wall.
Comments ATmega168 ATtiny84 AVR Electronics Remote control USB
ATmega644P CHIP-8/SCHIP interpreter
In an attempt to solve the screen resolution problem issue I've bought a very cheap 320×240 pixel graphical LCD – a PG320240H-P9 on eBay for $24. Part of the reason for its cheapness may be down to its the lack of a controller; you need to constantly refresh the LCD with pixel data yourself (easier to use modules have integrated controllers that refresh the display for you from some on-board RAM). If I manage to get it working I'll have a 128×64 pixel graphical LCD going spare – finding a use for it could make an interesting project.
Ejecting discs from a damaged camcorder with a remote control
I hope that those of you who celebrate it had a good Christmas break and will have an excellent new year! I recently attempted to repair a DVD camcorder that had been dropped; the eject button no longer worked, though the disc could be ejected by connecting to camera to a PC, right-clicking the DVD drive that subsequently appears in Explorer, then selecting Eject. I started by removing all of the screws around the affected area, but the plastic casing remained strongly held together by some mysterious internal force.
ATmega168 Snake
In addition to the Tetris game from the previous post, I've added an implementation of snake to the ATmega168 project. Click to watch a gameplay video on YouTube. Either game can be selected from a menu that appears when the circuit is powered on. To exit menus I've added a second fire button; this allows you to step back to the main menu to pick a different game if need be. The source code and binary can be downloaded as before. I've written a number of different Snake implementations in the past.
Comments ATmega168 AVR AVR TV game Electronics PAL TV tvText
ATmega168 Tetris
The tvText library I discussed last entry allows you to display text on a PAL TV in black and white using a 20MHz ATmega168 and a pair of resistors. If this doesn't sound terribly exciting, it's probably because it isn't. However, if you bear some limitations in mind and change the font, you can use this text output as a more general tile-mapping system and use it for games that employ simple graphics. The new circuit, featuring five sloppily-wired input buttons. I added five buttons to the test circuit — up, down, left, right and fire — to act as game input.
Comments ATmega168 AVR AVR TV game Electronics PAL TV tvText
USB joypads and text on your TV courtesy of an ATmega168
Nearly a month since my last update - my, how time flies when you're having fun (or a heavy workload). I ended up building myself a cheap and cheerful SI Prog programmer for AVR development. After installing the development tools, scanning through the documentation and writing the microcontroller equivalent of Hello, World (flashing an LED on and off) I needed to find a suitable project. The first one was getting to grips with V-USB, a software USB implementation for AVRs. All you need for this are a couple of I/O pins, a few configuration file changes to set your USB device's vendor ID, product ID and device class, and a few lines of C code to actually implement your device.









