From: W.P. <lau...@wp...> - 2016-10-15 15:42:19
|
W dniu 15.10.2016 o 08:14, Bengt Martensson pisze: > On 10/14/16 21:55, W.P. wrote: >> Hi guys, >> >> if interested: >> - I have (partially) developed a small project on AVR uC: - "LIRC super >> pilot". > > Nice. Why don't you put it on Github (or similar)? > >> This would allow to get hard-realtime stuff out of Linux box, at low cost. >> >> As for now (development stopped 2014, have no more prototype board), it >> consists of Mega328 + 24C256 EEPROM, IR LED + IR receiver (schematic >> available). > > As an alternative approach, I suggest using a cheap board like e.g. > "Arduino Nano", which can be had in cloned version for less than 3 EUR. > See http://www.harctoolbox.org/arduino_nano.html for my project. For the > corresponding firmware, see https://github.com/bengtmartensson/AGirs . > (This uses the Arduino framework, which is essentially the Gnu AVR tool > chain.) The firmware can be used from Lirc using the girs driver, > contained in current (upstream) Lirc. Using Nano frees me from (almost) building test board :). I use it already for another project. My approach, for sending at least is much simplier, even "echo" works. But will take a look at Your project. > >> Remark: I2C EEPROM (for storing remote definition) is too slow. Need to >> use SPI EEPROM/flash. [it parses command line, searching for remote/key >> -> code family / code definition. For 1 remote with ~40 keys it takes >> almost 1s. And response should be immediate - from human point of view] > > In that firmware, you can store predefine commands, presently in raw > form, as Nec1-, or Rc5-commands. (Yamaha uses Nec1). The problem is to > have it to fit into memory. The main trick here (note that Atmega is a > Harvard architecture, with "much" flash, "litte" RAM) to get the payload > into flash, without using RAM. 40 commands should not be a problem on an > Atmega328, provided that they use a "cooked" format. > I've been thinking about SPI flash, it's fast and has capacity up to several megabytes. W.P. > Greetz, > > Bengt > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > |