| Remote control for Winamp |
|
| Written by Alex | |
Available translations (test)
This mounting drives Winamp from an infrared remote control and display the
title of the song on an LCD screen of 122x32 pixels. It uses a
PIC16F877 connected to the RS232 port on the PC to receive infrared.
The display has a 122x32 graphic LCD display (NJU6450A or SED1520) with
backlight. It can display images from 122x32 pixels, on the other hand,
it is not capable of displaying the text directly, it is the PIC are
involved so we can display 20 chars 5x7 and 15 chars 8x8 (x 4 lines).
The PC sends the text and images via the serial port to which the PIC
retransmits to the display with checksum verification.
Software: The current version of the software displays: the name of the mp3 on 2 lines (40 characters), the time course of the song / the total time of the song, a meter for the time (graphic), time, speed KBPS, the sampling frequency in KHz, the volume with a meter (graphic) and temperature. The decoding infrared works with most remotes: PHILIPS, CARENA, WORLDSAT, UNIVERSUM (do not work with: TOSHIBA, BRANDT, MITSUBISHI, SAMSUNG) The reception infrared uses interrupts fronts RB0 and 0 with a timer prescaler to 1:128. Therefore, the state high and low IR code returning to the beach 222 μ s - 6ms.
Notes:The ICL7660 may not be necessary: it allows you just to get a darker contrate to -0.5 V. So contrate is a matter between 0V and -0.5 V. Molex power connector: I advise you to recover one on a CD-ROM or hard-disk used. R5 is unnecessary: the pull-up is built-in infrared receiver. We can put an LM75 temperature sensor instead of the DS1621. The circuit front is expected to enter a bay 5 "1 / 4. The other circuit must be fixed with 3 spacers in an old CD-ROM drive, for example, or any other fastening system. The serial cable uses items 2, 3 and 5 of the DB9 female.
Execution of the application:
We must load before running Winamp WinIR. (Configuring the serial port is static at the moment: COM1 at 57600 baud, 8 bits, no parity, 1 stop, no flow control) Download: Schematic + pic.hex + WinIR.exe + source code. Source code file description: - Winmp3.c, winmp3.h: Main Program + infrared decodage - Port.h: # define configuration for input / output - Lcd.c, lcd.h: routines for display 122x32, i2c bus, RS232, keyboard - Font5x7.c: Table constant for storage of chars 5x7 in ROM - Font8x8.h: Table constant for storage of chars 8x8 in ROM - I2c.c, i2c.h: i2c bus for 24C64 EEPROM, 24C128 and 24C256 (module hard) - Rs232.c, rs232.h: usart RS232 at 57600 baud - Delay.c, delay.h: timings - Eeprom.c, eeprom.h: + internal flash eeprom - Capteur.c, capteur.h: i2c temperature sensor (DS1621), LM75 - Boot24M115k16F877/A.hex: bootloader - Winmp3.hex: hex file to program the PIC - Source WinIR.exe Visual C + + + / QT - qt-mt230nc.dll (and msvcrt.dll under windows98) Visual C + + version 6.0 and Qt v2.30 non-commercial (www.trolltech.com) Allows control Winamp v2.xx, KTV 1.2.0.2 and Window Media Player |





TOOLS :













This mounting drives Winamp from an infrared remote control and display the
title of the song on an LCD screen of 122x32 pixels. It uses a
PIC16F877 connected to the RS232 port on the PC to receive infrared.
The display has a 122x32 graphic LCD display (NJU6450A or SED1520) with
backlight. It can display images from 122x32 pixels, on the other hand,
it is not capable of displaying the text directly, it is the PIC are
involved so we can display 20 chars 5x7 and 15 chars 8x8 (x 4 lines).
The PC sends the text and images via the serial port to which the PIC
retransmits to the display with checksum verification.
Software:
Notes: