- 3D-Druck Einstieg und Tipps         
Seite 3 von 4 ErsteErste 1234 LetzteLetzte
Ergebnis 21 bis 30 von 34

Thema: RGB Ambient Light

  1. #21
    Erfahrener Benutzer Roboter Genie Avatar von robocat
    Registriert seit
    18.07.2006
    Beiträge
    935
    Anzeige

    LiFePo4 Akku selber bauen - Video
    hello LatvianMan,
    the project is a bit overloaded with RC5 functions and therefor difficult to get up and running without knowing exactly what the different commands (RC5) are meant for. i confess: it is always a quest to set this thing up. without reading and understanding the (poorly documented) code it will take you some time but maybe i can help.

    i will try to explain the basic concept and give you some hints, but if you use a different remote control with possibly some buttons not available, i suggest a different approach: dive into the code and create an eeprom file with the setup values manually. there are only a few, but hacking them into with the remote control is kinda difficult.

    there are setup values stored in eeprom every time you hit the power button. these determine the brightness level of the R,G,B LEDs and (because there is no .eep file included) are initially set to full brightness, which results in white color(?). furthermore, the FFT "channels" that are used for the lichtorgel part are also stored in eeprom. these require some patience to get set up.

    first try to get the static color mode running. this mode is activated with the "stop" button on my remote control (use the code table http://codefactory.dead-men.de/projects/AmbiLight/ to figure out, if the buttons on your remote control have equal codes). the brightness is set up with arrow-up and -down keys (code 20,21).

    the cycle color mode is activated by the "play" button (code 53). it uses the same brightness value as the static mode. speed is controlled by some other arrow-left and -right buttons (code 50,52 - actually there are a lot of different arrow buttons on this remote control!) and ranges from veeeery fast cycling (means flickering) to very slow (1h per full cycle which means it can be mistaken as "static" too). if brightness is set too high, this mode will also result in white light).

    now for the most difficult part, the lichtorgel:
    on my remote control, there are RED GREEN YELLOW and BLUE color buttons (see the table mentioned above for the codes of these). these are important to set up the lichtorgel function. switch to lichtorgel mode with the "record" button (code 55). choose a color (R,G,B) with the color buttons and use the arrow-left and -right buttons (code 50,52) to change the brightness level. YELLOW sets the overall brightness.

    to make it somehow more complex, the FFT channel (treble/middle/bass setting) of each color can (and, for the first setup, must be) chosen manually: use the RED button, then enter a number between 0-29 on the number table of your remote control. the lichtorgel should answer the first digit with 1 white flash and the second digit with a double flash which means it accepted the value.
    the same procedure goes for the GREEN and BLUE channel.

    as you can see, setting up this beast is kind of a mess. i was so happy to finish this project that i published it without thinking about poor people like you who would try to rebuild it. understanding or even better adapting the code would be much better than just using the HEXfile. i know about the insufficency of the implemented operation, especially the setup. sorry for that!

    kind regards, die katze

  2. #22
    Neuer Benutzer Öfters hier
    Registriert seit
    09.12.2008
    Beiträge
    11
    Wow, now thats what i call good answer !! Thanks, man, for all this writing, much appreciated. Still, you are right: now when i read all this, i agree with you, that this project is "a bit" a mess...
    True, i dont have exactly that kind of remote. I have several universal remotes (well, two, one of them brand Sony), will look maybe there are simlilar to yours in their tables. Thats for a start. If I will be not too lazy and in proper mood, maybe i will dive into programs code
    In other hand, i start to think that easier will be to program what I need by myself than search endlesly around the Web. I already stumbled to this some time ago when I wanted to make thermometer, with 3-digits 7-segment LED modules output, with common cathodes, and all this with changable alarm temperature. But I think I can manage to programm PWM, but FFT... I doubt.
    Still, Big Thank You for your explanation!!!

    Best Wishes,

    Juris from Lettland.

  3. #23
    Erfahrener Benutzer Roboter Genie
    Registriert seit
    08.07.2004
    Ort
    Südhessen
    Beiträge
    1.312
    @Robocat: Du hast meinen vollsten Respekt für Deine fundierte und sprachlich kreative Antwort verdient!

  4. #24
    Erfahrener Benutzer Roboter Genie Avatar von robocat
    Registriert seit
    18.07.2006
    Beiträge
    935
    hello Juris, maybe you are still listening
    (1) if you can recompile the code (this should be easy with winAVR/programmers notepad and the included makefile):

    the code is no magic. the fft fourier code is based on Elmar Chan´s code and can be used in other projects too. have a look at the code (main.c) and use the ffft.S as a black box for the FFT.

    (2) i implemented a button (labeled "guide" on my remote control - code 27) which sets the eeprom values to something useful. it´s not perfect but it will work. if you can recompile, it would be easy to adapt these values and just use the "guide" button to get them set.

    (3) i have the ambilight close to the PC and it was easy to read out the EEprom values. you can find them here: http://katze.dead-men.de/upload/88_ambilight.e2p
    use ponyprog to write the e2p file and you will have some values to start with.

    (4) since i can reprogram the ambilight easily, maybe i can adapt the code for whatever seems needful to you. just ask.

    @Robocat: Du hast meinen vollsten Respekt für Deine fundierte und sprachlich kreative Antwort verdient!
    danke - ich finde zwar nicht, dass ich da viel respekt verdient habe, aber freue mich trotzdem. das "sprachlich kreative" rührt eher daher, dass mein englisch sehr schlecht geworden ist im lauf der letzten jahre

    gruesse von der katz

  5. #25
    Neuer Benutzer Öfters hier
    Registriert seit
    09.12.2008
    Beiträge
    11
    Yes, i am still around!
    Honestly I am not much a programmer, never programmed beyond some kind of BASICs and JAL, but its never late to learn, right?
    I believe you referring to this about useful eeprom values:
    if(cmd==27) // guide button right?
    And thanks for that file, i think i will do some experiments this weekend with all this. I understand, that Your whole idea was remote-centered, and i totally understand that, cause i have a lot things at home "remotized" - computer, lights, even christmas tree But, how about idea to make some button control in your device, and then I (and i believe others too) if needed/wanted can remotize buttons with specific schematics and solutions (i use several microcontroller based IR recieving circuits that can learn commands from remotes). I "dream" like this: one button to cycle main modes, one button to cycle item within current mode, and two buttons like "+" and "-". Yes I know, I am a big dreamer
    Meanwhile, because like i said i was interested mostly in PWM-based Color Organ (Lichtorgel), I found and successfuly tested this:
    http://airylight.nm.ru/cm8/shem.htm
    http://airylight.nm.ru/cm8/cm8prog.rar
    Warning: its all only in russian (wich I understand, ask me to explain if questions about that device), but schematics and code are kinda international I guess Just thought maybe anyone would have some interest in that too.

  6. #26
    Erfahrener Benutzer Fleißiges Mitglied
    Registriert seit
    29.09.2007
    Ort
    Südbaden
    Beiträge
    182
    Hey,
    Ich versucht auch grad was in Richtung RC5 - Dekodierung. Ich habe inzwischen duzende Versuche hinter mir und bekomme es einfach nicht hin, selbst mit kopierten Codes aus dem Internet die eigentlich getestet sein sollten. Ich bin jetzt soweit es auf die Fernbedinung zu schieben. Könnte mir einer von euch evt. eine Fernbedinung nennen (möglichst Universalfernbedinung die man bestellen kann) die sicher auf dem RC5 Code sendet?
    Ich habe hier diese hier.
    Gruß
    elayne
    Fernsehen ist Kaugummi für die Augen!

  7. #27
    Erfahrener Benutzer Roboter Genie Avatar von robocat
    Registriert seit
    18.07.2006
    Beiträge
    935
    hallo elayne,
    http://katze.dead-men.de/upload/87_rc5toCOM.rar
    damit habe ich die codes meiner fernbedienung über COM am rechner ausgeben lassen. schaltung ist einfach ein TSOP an PD2 eines atmega8. vielleicht klappt es ja damit?

    ansonsten *ratlos guck* meine Hauppauge A415-HPG (wird aber kaum zu bekommen sein ohne die dazugehörige TV-karte) kann definitiv RC5.

    ich fürchte fast dafür wäre ein neuer thread besser gewesen, denn hier guckt doch kaum jemand rein, der dir weiterhelfen kann.

    edit: dank für den obigen code gebührt peter dannegger! das habe ich mehr gecopypastet als selbst verbrochen

    gruesse

    @Juris: interesting project! using an OP-amp bandpass filter stage before sampling the audio signal should give much better (accurate) results. i´m sorry i have to tell you that i will not include buttons in the ambilight project. the idea is really good, but i have the whole circuit built into a kind of "hollow stone thing" and couldn´t reach the buttons anyhow. besides i am to lazy to change anything of the hardware. hope you understand. greetings.

  8. #28
    Neuer Benutzer Öfters hier
    Registriert seit
    09.12.2008
    Beiträge
    11
    Hello!
    Anybody still here?
    Just wanted to tell that i found (pretty logicaly staightforward) way to make a "clone" of this project that fits my needs. Or more precise: that fits RC5 standart remote(s) i actually have. So, I made "RC5/RC6 codes on a LCD" project from here:
    http://www.picbasic.nl/indexes_uk.htm
    So I wrote down all codes that all buttons of particular remote is sending.
    Then, I edited source code of this RGB project in so called Programmers Notepad (WinAVR), then built HEX file, burned it into ATMega, and - TaDaa! It started to work. Sweet!
    Guys, believe me its not that hard, well, maybe except that you need to get key codes of remote you have.
    Will post later more, this is to be considered as a "First Excitement Message"
    Good luck you all !

  9. #29
    Neuer Benutzer Öfters hier
    Registriert seit
    09.12.2008
    Beiträge
    11
    Hello,
    its me again.
    As i said in previous post, after compiling code with appropriate RC5 codes that my remote is actually sending, all is working as supposed to. So, big Thanks to author!
    I have a question to author or/and other Atmel C language pros and Atmega architecture gurus. Would it be possible to modify and port this project code for Atmega168, using all its 6 PWM outputs (for 6-channel color organ mode)? I mean would it possible at all from Atmega hardware limitations point of view maybe. Or maybe it is simpler just use two Atmega8 with common IR reciewer and different frequency bands settings... ? Any comments please?
    Thank you!

  10. #30
    Hallo robocat, vielen Dank für dieses schöne Projekt!

    Ich habe es vor kurzem nachgebaut (der Einfachheit halber mit einem uln2803 als Leistungstreiber, je 2 Aus- und Eingänge parallel, und ohne Quarz dafür ne Reihe Schraubklemmen), und es befeuert jetzt eine Packung "Dioder"-Lichtleisten von Ikea. Diese Leisten hatten schon einen RGB-Controller in der Zuleitung eingebaut welcher geradezu unterirdisch schlecht ist. Es musste ein Knopf gedrückt und gehalten werden, bis eine dem gewünschten Modus entsprechende Anzahl Piepser erklang. Der fernbedienbare Controller ist da eine echte Innovation, und auch noch so schön günstig.

    Das einzige Problem hatte ich mit dem rc5toCOM-Code, da bin ich erst nach längerer Zeit auf den Bolzen gekommen dass ich die main.c aus der rc5toCOM-zip mit den restlichen Dateien des vorhandenen Projekts mischen muss.

    Aber nun läuft auch dieses Projekt problemlos und die butterweichen und sehr angenehm langsam einstellbaren Farbübergänge haben mich sehr überzeugt. Als Testaufbau nahm ich nur 3 rote LEDs da war die Überrachung mit den richtigen Leuchten schon stark.

Seite 3 von 4 ErsteErste 1234 LetzteLetzte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Labornetzteil AliExpress