Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
mặc dù đây có thể dễ dàng trao đổi hơn, như Hội đồng quản trị IR không sử dụng một trong hai chân 'khó khăn' cho Porta, chân 4 và 5. Các hướng dẫn thứ ba sử dụng Ban IR trên Porta và Ban LED trên PORTB (như chúng tôi yêu cầu tất cả 8 chân để được kết quả đầu ra). Hướng dẫn LCD, ý tưởng là để thực hiện một tập thể tái sử dụng các thói quen I2C. | This is the top view of the Infrared Board there are only two wire links. The bottom of the Infrared Board it has seven track breaks marked with blue circles as usual . To complete all of these tutorials you will require two Main Boards two IR Boards the LCD Board the Switch Board and the LED Board as written the first two tutorials use the LCD Board and Switch Board on PortA and the IR Boards on PortB - although these could easily be swapped over as the IR Board doesn t use either of the two difficult pins for PortA pins 4 and 5. The third tutorial uses the IR Board on PortA and the LED Board on PortB as we require all 8 pins to be outputs . Download zipped tutorial files. IR transmission has limitations the most important one for our purposes being that the receiver doesn t give out the same width pulses that we transmit so we can t just use a normal RS232 type serial data stream where we simply sample the data at fixed times - the length of the received data varies with the number of ones sent - making receiving it accurately very difficult. Various different schemes are used by the manufacturers of IR remote controls and some are much more complicated than others. I ve chosen to use the Sony SIRC Sony Infra Red Control remote control system many of you may already have a suitable Sony remote at home you can use and it s reasonably easy to understand and implement. Basically it uses a pulse width system with a start bit of 2.4mS followed by 12 data bits where a 1 is 1.2mS wide and a 0 is 0.6mS wide the bits are all separated by gaps of 0.6mS. The data itself consists of a 7 bit command code and a 5 bit device code - where a command is Channel 1 Volume Up etc. and a device is TV VCR etc. This is how the same remote system can be used for different appliances the same command for Power On is usually used by all devices but by transmitting a device ID only a TV will respond to TV Power On command. The table to the right shows the data format after the Start bit the