alexbelgium / Hob2hood_to_Novy

Seamless connection of AEG hob and Novy hood by converting IR to 433 Mhz
10 stars 1 forks source link

Did this work for you? #1

Closed cibernox closed 1 year ago

cibernox commented 4 years ago

Hi đź‘‹

I just stumbled with this. I'm installing a Novy hood in my new kitchen since it's the only one I could found that fits on my narrow-ish ceiling. But Novy hobs that connect wirelessly are extremely expensive so I was considering giving up on the feature, but there are AEG hobs that are under 500€ and have hob2hood. You project seemed interesting.

Since I don't have the kitchen (I haven't even purchased the hob yet) I can't test this. How has it worked for you for the last two years?

alexbelgium commented 3 years ago

Wow just saw this. Sorry. Indeed it works great... It's still working I just modified the setting so that the arduino nano is now in the ceiling to allow it to be just above the AEG hob and in direct line of the IR.

In the end, what did you select for your kitchen ?

cibernox commented 3 years ago

You're not late actually, the Novy hood is purchased but I haven't bought the hob yet. With covid the construnction of the new home we had a lot of delays but we should be installing the kitchen before May. As you can see I plan very in advance.

It's good to know the system works, but it's a bit unfortunate that the hob uses IR instead of 433mhz and the IR receiver must on the ceiling in plain sight. How do you power the arduino nano, with a battery?

alexbelgium commented 3 years ago

Indeed hob2hood is IR only... What I did is run a cable through the false-ceiling where the hood is to bring electricity to the arduino nano. Battery is a no-go, I had tried but electricity consumption is not suitable. I think it emptied a 4000mA power bank in a few weeks. If you still have access to the hood, you could bypass the electrical connection to power the arduino nano and avoid another cable...

Regarding the direct line of sight, I'll add a video to show my design. It's not pretty on my design with the IR receptor still visible, but you could actually include it in the false ceiling with a translucid glass little window. That would make things much prettier.

Here is a video showing the hob, hood, and ugly IR receptor hanging out. To make it pretty my idea was to remove the led lamp and just keep the glass however i haven't done it yet ;) the hob automatically throttles the ventilation according to the perceived need (increased ventilation according to power dissipated). It works pretty well.

https://user-images.githubusercontent.com/44178713/112275873-5e41b880-8c80-11eb-929d-ace98791fee3.mp4

Seb4032 commented 2 years ago

Hello, The kitchen designer just installed my new NOVY hood and my AEG hob yesterday. The hood is high and the controls inaccessible to my wife, who is shorter than me. There is the remote control, but it is not practical because it is always lying around somewhere ... Seeing that there is a communication system between the two devices but that it is a system specific to each manufacturer and not compatible, I was very frustrated. So I searched the WEB and came across your project which I find brilliant! However, I have a problem with where to place the montage. So here is my idea: integrate the project into the hob itself. However, this means that the hob has to be dismantled and the warranty is lost, but I don't see any other aesthetic solution. What do you think 20211217_121542 ?

alexbelgium commented 2 years ago

Hello! Now that's a beautiful kitchen than you have. Thanks for the kind feedback, indeed I had exactly the same issue as you and honestly it is really satisfying when it just works automatically :)

There are really three things to consider for the integration.

  1. First, the power supply. To run the arduino nano, you need a fixed 5v power supply. Batteries won't last enough. For that, you'll need an available plug, output a micro USB cable and connect it to the arduino. For me, I use a plug in another room and run a very long micro USB cable through the false ceiling to have it invisible. I also had the idea of connecting to the Novy power supply but once again it would have been touching to the hood itself. And as I have this direct access to a power socket it was better for me.
  2. The space itself for the nano. It's small, but with all cables going out for the 433mhz and IR it still takes around 5 x 3 cm. I removed one of the light socket next to the hood, put the arduino body in the false ceiling, and put back the light again. So only the ir detector is visible but the arduino is hidden (seen at bottom of my video in the post above at 6 seconds)
  3. That the IR detector needs a direct line view. This is the trickiest part. I've mounted it myself in the socket of a ceiling light (next to the novy hood), so the body of the arduino is not visible but only the small head of the IR detector is visible. Another alternative I thought about was just drilling a small hole in the false ceiling, fit in a little glass windows (only a few millimeters wide) and have an ir receptor behind. I guess it could be fit in the hood itself, but not sure how as you still need this direct line view access. Replace one of the lamp with it? That seemed the easiest but you would need to fit the entire system in it and it would be too big. Or just put it in the electrical box of the hood? Beware that it is extremely heavy if you try to remove it yourself, and there is still the question of having a direct view line for the IR. bottom line, I'm still not fully happy with my system with the little ir detector head going out of the ceiling lamp socket but it just works and we just forget it's there... One day I'll drill the hole to have it integrated in the false ceiling but I just forget it's there.

Good luck for your system! Let me know if you have any issues!

Seb4032 commented 2 years ago

Hello, I only took the first step yesterday: I ordered the equipment. But everything is from China and with the holidays I will probably be delivered in January or February ... It does not matter, I have so much to do in the house ... Thank you all and happy end of year holidays to you while waiting for the continuation of my project ...

alexbelgium commented 2 years ago

Hello, good luck with everything, and happy end of year holidays also!

Knuppel1983 commented 2 years ago

I purchased this from Ebode, it’s very tiny and fits perfectly in my recessed ceiling. It’s €30 which is a bit expensive for an IR led, but hey, that kitchen wasn’t cheap either. :)

Just one question though; due to Covid i’m still waiting for the AEG hob, but the Novy hood has to go in now. Can you tell me where the IR transmitter is in the AEG? (IKE9547SFB). Left, right, front or back?

D1F48983-D08A-4DE9-82A7-0A6163E5FF96

alexbelgium commented 2 years ago

Looks great! I'll probably take one too ;)

Fancy aeg hob indeed! I don't have the same as you but think the IR is where the little icon with the transmitter is shown.

https://images.app.goo.gl/rXgmDXaY9M54NYQz6

Here is a picture of where the transmitter is on mine :

Knuppel1983 commented 2 years ago

So if i put the IR receiver on the right side, some 10cm from the hood in the middle, i should be ok right? I checked some AEG hoods and it looks like the receiver is on the right side there also.

Keep up the good work!

alexbelgium commented 2 years ago

Actually I tested on my own system by hiding location with a cardboard to check where the IR emittor is located. Here it is. So if we extrapolate on your own system, it should be at the center of the commands... What do you think?

So for me it's where the little clock is that allows to set cooking duration.

Just a think : actually the spread of IR seems large, as I initially had the hood receiver 1m away and it still worked. The key element is the clear line of sight

20220214_200401

alexbelgium commented 2 years ago

Actually it's at the bottom left of my circle. Cell phone camera are sensible to IR. So I turned on my cell phone camera and indeed the phone sees the IR flashing.

Knuppel1983 commented 2 years ago

If you look at this AEG hood with Hob2Hood, you’ll notice a small hole on the right side. Don’t know for sure but i think that’s the ir receiver. DD34BE1C-7CD3-4003-8051-60E13DCACEB4

Here it is on an Electrolux: CC823F4E-2E7A-4E04-A721-D317EE88D882

So i expect every AEG cooktop to have the ir led on the right side. Since your ir led is not exactly in the middle (which makes sense with all the heat, it probably won’t be that crucial to line it up exactly. If anyone else has an 80 or 90cm AEG hob, please let me know.

alexbelgium commented 2 years ago

Indeed... That would be the most logical thing. So you would locate the IR just right of the hood? Once again, exact location doesn't matter : my IR receive is on the left of my hob and it still works

Knuppel1983 commented 2 years ago

Indeed... That would be the most logical thing. So you would locate the IR just right of the hood? Once again, exact location doesn't matter : my IR receive is on the left of my hob and it still works

Good to know!

alexbelgium commented 2 years ago

What power source do you use for the arduino? And as I understand your are putting it in the ceiling now, but do you still have access to reprogram it in case there are slight differences in codes once you have received your hob ?

Actually you could already try to send the 433mhz commands from the arduino once the hood is received, to check that at least this first part is working. Its the trickiest, reading IR messages is rather easy.

Knuppel1983 commented 2 years ago

I’m powering from AC socket with 12v adapter, because the Ebode needs 12v. Bit much for the Arduino Nano but still within spec i think. Going to leave a usb cable near a ceiling light. I can then take that out and pull the cable downwards if i need to update.

alexbelgium commented 2 years ago

Mmh you should check indeed I thought we needed to convert to 5v (or 3v) for it to work, but I'm sure you've done your research :) good idea for the usb cable. What I myself do is use a micro USB cable for the alimentation, can can also serve as a programation access. I've also hidden the arduino just behind the ceiling light socket so it's readily accessible.

Good luck with the installation, and hope everything is going fine for the house construction

Knuppel1983 commented 2 years ago

Thanks. Will post the result within a month or 2. :)

Knuppel1983 commented 2 years ago

One more question. When using your library at first i got a message about decode_results being deprecated so i replaced it with decode(). But now the compiler is complaining about this error: sketch_feb17a.ino:52:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mySwitch.send("1011001011001011001011001011001001001011001011011001001");

Do you happen to know how to solve this?

alexbelgium commented 2 years ago

Hi, no idea but why change something that works :) In the sense that as the protocol is not expected to have changed, the libraries from 3 years ago should still work, even if the commands were deprecated... Or are they forcing you to adapt the code?

Knuppel1983 commented 2 years ago

Hi, no idea but why change something that works :) In the sense that as the protocol is not expected to have changed, the libraries from 3 years ago should still work, even if the commands were deprecated... Or are they forcing you to adapt the code?

Managed to get it working, not with the IR receiver from Ebode though. Used ESP32, HX1838 and some unbranded tiny RF transmitter, all 3.3v so no additional psu required. And OTA updates :-) Question though, is it possible to send a 'lights on' command, instead of 'toggle'? I'd like the hood lights to turn on when the ceiling lights go from dimmed to full.

alexbelgium commented 2 years ago

Ah, too bad for the ebode... The library didn't work with it?

There doesn't exist a specific light out in my knowledge. But you could implement one in arduino rather easily by adding a light sensor, and making the lights trigger only in specific cases! OR you only turn on the lights automatically, and therefore can rely on the toggle...

BTW great job for ota updates, how did you add that?

alexbelgium commented 2 years ago

Actually, even if the light action is a toggle you can use the variables I've set (light and ventilation) to prevent the light from toggling off if the ventilation is on.

Knuppel1983 commented 2 years ago

I will try to detect if the hood light is on using the wattage meter on the Fibaro wall switch. It’s for those moments when my wife decides to use the remote or buttons (and everything gets out of sync).

OTA: https://randomnerdtutorials.com/esp32-over-the-air-ota-programming/

The Ebode was 12v and had strange 1v output on the data pin. I’m a novice in eletronics so in the end i removed the insides which was pretty simple, and soldered the HX1838. So €30 for a thread and nut. :-)

9AFCD8AE-17BF-4189-B08C-3C1FE1BA77B0 0CB3A680-8AA3-45A7-A7A1-BED99E8601C4

alexbelgium commented 2 years ago

It's looking good, congrats! As it is led I'm not sure it will register on the wattage... I don't use much the light so didn't encounter that. Actual light measurement could be the easiest thing to implement but there risks to be many potential interferences

Knuppel1983 commented 1 year ago

Do you know if there is a seperate IR command sent when using the manual button on the hob? My AEG has a button that allows me to manually increase the fan speed.

alexbelgium commented 1 year ago

Yes, if you press on the hob button it will cycle through fan speeds

Knuppel1983 commented 1 year ago

Yes, if you press on the hob button it will cycle through fan speeds

But is this a different IR command? ('increase fan speed' vs. fan speed 1, 2, etc.)

alexbelgium commented 1 year ago

I'm sorry I'm not sure to understand. From what I remember, the hob generates the list of IR commands that I had in the code. Given that the hood only accepts "more" or "less", I had to do adaptations. For example, the stop command on the hob is translated to "less, less, less, less" which therefore stops the hood.

mauro2306 commented 1 year ago

Hi guys, sorry for jumping in the conversation, i stumbled across this project, looking for information about my Novy Pureline and my AEG hob. I am not a Arduino expert, i never played with it before, so this will be my first experience with it, which is always welcome as i am concerned. I already played with other technologies, my house is made with KNX automation, and i programmed everything by myself, so i do not come with 0 experience at all, just on Arduino. However, i will have to dig into the way of programming it, because when i tried (blank, without reading anything yet), i got an error that IRremote.h was missing and it couldn't program my Arduino with your project. I will dig into it and let you know. By the way, is there any way to have OTA with Arduino using additional module for example ? I checked out few things, looks like only Adruino Nano IoT can do it, but through the cloud, which isn't something i like very much. Thanks for all and happy end of the year.

mauro2306 commented 1 year ago

Making progress, imported the libraries in Arduino IDE, now i can start the upload, but it fails :

Arduino : 1.8.19 (Linux), Carte : "Arduino Nano, ATmega328P"

/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino: In function 'void loop()':
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:44:20: warning: 'bool IRrecv::decode(decode_results*)' is deprecated: Please use IrReceiver.decode() without a parameter and IrReceiver.decodedIRData.<fieldname> . [-Wdeprecated-declarations]
   44 |   if (irrecv.decode(&results)) {
      |       ~~~~~~~~~~~~~^~~~~~~~~~
In file included from /home/mauro/Arduino/libraries/IRremote-3.9.0/src/IRremote.hpp:303,
                 from /home/mauro/Arduino/libraries/IRremote-3.9.0/src/IRremote.h:10,
                 from /home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:1:
/home/mauro/Arduino/libraries/IRremote-3.9.0/src/IRReceive.hpp:1610:6: note: declared here
 1610 | bool IRrecv::decode(decode_results *aResults) {
      |      ^~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:47:12: warning: narrowing conversion of '-502781636' from 'long int' to 'long unsigned int' [-Wnarrowing]
   47 |       case IRCMD_LIGHT_ON:
      |            ^~~~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:50:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   50 |         mySwitch.send("1011001011001011001011001011001001001011001011011001001");
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:57:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   57 |         mySwitch.send("1011001011001011001011001011001001001011001011011011001");
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:61:12: warning: narrowing conversion of '-473949214' from 'long int' to 'long unsigned int' [-Wnarrowing]
   61 |       case IRCMD_VENT_1:
      |            ^~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:66:12: warning: narrowing conversion of '-799948031' from 'long int' to 'long unsigned int' [-Wnarrowing]
   66 |       case IRCMD_VENT_2:
      |            ^~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:74:12: warning: narrowing conversion of '-1037041705' from 'long int' to 'long unsigned int' [-Wnarrowing]
   74 |       case IRCMD_VENT_3:
      |            ^~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:79:12: warning: narrowing conversion of '-1189995735' from 'long int' to 'long unsigned int' [-Wnarrowing]
   79 |       case IRCMD_VENT_4:
      |            ^~~~~~~~~~~~
/home/mauro/Téléchargements/Hob2hood_to_Novy-master/RCSwitch_novy/Hob2hood_to_Novy/Hob2hood_to_Novy.ino:87:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   87 |         mySwitch.send("1011001011001011001011001011001001001011001011011001001");
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::RCSwitch() »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::RCSwitch() »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::setPulseLength(int) »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::setRepeatTransmit(int) »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::enableTransmit(int) »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::disableTransmit() »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::transmit(int, int) »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
/usr/bin/avr-ld : libraries/RCSwitch_novy/RCSwitch.cpp.o (symbol from plugin) : dans la fonction « RCSwitch::RCSwitch() » :
(.text+0x0) : définitions multiples de « RCSwitch::send(char*) »; sketch/RCSwitch.cpp.o (symbol from plugin):(.text+0x0) : défini pour la première fois ici
collect2: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino Nano

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.

Sorry for the French, it is aligned to my OS language. Not sure what i am doing wrong, continuing the investigation.

mauro2306 commented 1 year ago

Ok, additional progress made :) I cleaned completely my library folder, and restart the import using library manager, now i can compile my Sketch without any errors. But when i try to upload it, i get a failure, while a small program doesn't make any issue. `Arduino: 1.8.19 (Linux), Board: "Arduino Nano, ATmega328P"

/usr/share/arduino/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/mauro/.arduino15/packages -tools /usr/share/arduino/tools-builder -tools /home/mauro/.arduino15/packages -libraries /home/mauro/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_161704 -warnings=none -build-cache /tmp/arduino_cache_988726 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/home/mauro/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/mauro/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/mauro/Téléchargements/Hob2hood_to_Novy-master/Hob2hood_to_Novy/Hob2hood_to_Novy.ino /usr/share/arduino/arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/mauro/.arduino15/packages -tools /usr/share/arduino/tools-builder -tools /home/mauro/.arduino15/packages -libraries /home/mauro/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_161704 -warnings=none -build-cache /tmp/arduino_cache_988726 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/home/mauro/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/mauro/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/mauro/Téléchargements/Hob2hood_to_Novy-master/Hob2hood_to_Novy/Hob2hood_to_Novy.ino Using board 'nano' from platform in folder: /home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6 Using core 'arduino' from platform in folder: /home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6 Detecting libraries used... /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp -o /dev/null Alternatives for IRremote.h: [IRremote@3.9.0] ResolveLibrary(IRremote.h) -> candidates: [IRremote@3.9.0] /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/mauro/Arduino/libraries/IRremote/src /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp -o /dev/null Alternatives for RCSwitch.h: [rc-switch@2.6.4] ResolveLibrary(RCSwitch.h) -> candidates: [rc-switch@2.6.4] /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/mauro/Arduino/libraries/IRremote/src -I/home/mauro/Arduino/libraries/rc-switch /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp -o /dev/null Using cached library dependencies for file: /home/mauro/Arduino/libraries/rc-switch/RCSwitch.cpp Generating function prototypes... /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/mauro/Arduino/libraries/IRremote/src -I/home/mauro/Arduino/libraries/rc-switch /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp -o /tmp/arduino_build_161704/preproc/ctags_target_for_gcc_minus_e.cpp /usr/bin/arduino-ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_161704/preproc/ctags_target_for_gcc_minus_e.cpp Compiling sketch... /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/mauro/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/mauro/Arduino/libraries/IRremote/src -I/home/mauro/Arduino/libraries/rc-switch /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp -o /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp.o Compiling libraries... Compiling library "IRremote" Compiling library "rc-switch" Using previously compiled file: /tmp/arduino_build_161704/libraries/rc-switch/RCSwitch.cpp.o Compiling core... Using precompiled core: /tmp/arduino_cache_988726/core/core_arduino_avr_nano_cpu_atmega328_d009d746bd2efcb209142aaab2d776ac.a Linking everything together... /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.elf /tmp/arduino_build_161704/sketch/Hob2hood_to_Novy.ino.cpp.o /tmp/arduino_build_161704/libraries/rc-switch/RCSwitch.cpp.o /tmp/arduino_build_161704/../arduino_cache_988726/core/core_arduino_avr_nano_cpu_atmega328_d009d746bd2efcb209142aaab2d776ac.a -L/tmp/arduino_build_161704 -lm /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.elf /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.eep /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.elf /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.hex Using library IRremote at version 3.9.0 in folder: /home/mauro/Arduino/libraries/IRremote Using library rc-switch at version 2.6.4 in folder: /home/mauro/Arduino/libraries/rc-switch /home/mauro/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /tmp/arduino_build_161704/Hob2hood_to_Novy.ino.elf Sketch uses 7610 bytes (24%) of program storage space. Maximum is 30720 bytes. Global variables use 1099 bytes (53%) of dynamic memory, leaving 949 bytes for local variables. Maximum is 2048 bytes. /home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/arduino_build_161704/Hob2hood_to_Novy.ino.hex:i

avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "/home/mauro/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
     User configuration file is "/home/mauro/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyUSB0
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.

An error occurred while uploading the sketch `

Continuing to investigate, at least beginner like me will find this useful hopefully ;)

mauro2306 commented 1 year ago

Got it working by choosing ATMEL328 old bootloader, should have ping me because i have this Arduino since a while already. Upload done, but i can't get it to work with my hob for now.

alexbelgium commented 1 year ago

Great for you to have figured it out! I also have bare minimum knowledge on arduino, and didn't touch this since I initially set it up... Didn't I put the original libraries in the repo? I think it depends on specific version of the libs to work. I set up also a 433mhz sniffer system based on arduino to sniff the codes I think, and check that they were correctly sent and received

mauro2306 commented 1 year ago

I still haven't investigated why it isn't working from my side. About the sniffer you mentioned, what do i need to do that ? Just another Arduino with another wireless module right ? Is there a specific project ?

alexbelgium commented 1 year ago

At some point I used an rflink.nl system (free library on arduino) then just the base RCSwitch script I think

#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on inerrupt 0 => that is pin #2
}
void loop() {
  if (mySwitch.available()) {
    output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
    mySwitch.resetAvailable();
  }
}