<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[💬 Ikea Molgan Hack]]></title><description><![CDATA[<p dir="auto"><a href="https://www.mysensors.org/view/274/Ikea-Molgan-Hack" rel="nofollow ugc">https://www.mysensors.org/view/274/Ikea-Molgan-Hack</a></p>
]]></description><link>https://forum.mysensors.org/topic/5273/ikea-molgan-hack</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 18:19:46 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/5273.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Nov 2016 19:58:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 02 Aug 2019 08:34:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: yveaux">@<bdi>yveaux</bdi></a> said in <a href="/post/100788">💬 Ikea Molgan Hack</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/magpern" aria-label="Profile: magpern">@<bdi>magpern</bdi></a> the instructions on <a href="http://openhardware.io" rel="nofollow ugc">openhardware.io</a> state that the Molgan must be battery powered while programming:</p>
</blockquote>
<p dir="auto">Well, then I can confirm that you don't have to power the Molgan from batteries just for programming. Burning the bootloader works fine with just power from the ISP port and programming it through FTDI works fine if power comes from the FTDI.</p>
<p dir="auto">What I found wierd is that the atmega328 had power, the radio had power, it wrote debug messages to the FTDI - when powered through the FTDI, it send radio messages etc, but it just did not receive messages.<br />
Messages where not received until I supplied power to the + / - pads (battery pads).</p>
<p dir="auto">I did read the instructions on <a href="http://openhardware.io" rel="nofollow ugc">openhardware.io</a>, but I didn't follow then to the t. :)</p>
]]></description><link>https://forum.mysensors.org/post/100790</link><guid isPermaLink="true">https://forum.mysensors.org/post/100790</guid><dc:creator><![CDATA[magpern]]></dc:creator><pubDate>Fri, 02 Aug 2019 08:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 02 Aug 2019 07:23:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/magpern" aria-label="Profile: magpern">@<bdi>magpern</bdi></a> the instructions on <a href="http://openhardware.io" rel="nofollow ugc">openhardware.io</a> state that the Molgan must be battery powered while programming:</p>
<p dir="auto">"Remove the batteries and connect a standard FTDI serial cable (the ones used to program an Arduino Pro-Mini) to the FTDI connector of the add-on PCB. <strong>Replace the batteries</strong> and plug the FTDI cable in your PC."</p>
]]></description><link>https://forum.mysensors.org/post/100788</link><guid isPermaLink="true">https://forum.mysensors.org/post/100788</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Fri, 02 Aug 2019 07:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 01 Aug 2019 22:53:41 GMT]]></title><description><![CDATA[<p dir="auto">I have finally finished the PCB of two Molgans (withou the actual Molgan). I spent several hours trying to figure out why the sensor did not register with Domoticz.<br />
I had it plugged in to the FTDI which powered it, but nothing... device talked, gateway listened, but device ignored responses from gateway.<br />
I just dealt with with problem on some other nodes, and it was the channel id that was inappropriate. But now I had the correct channel id, and still the same problem.<br />
I checked for shorts, but nothing.<br />
Measured the voltage. It says 3v3 on the FTDI but was actually 3v5. But that should be ok.<br />
Finally I figured, power it through the + and - pads instead of FTDI. So, I set up a 3v3 power supply.. and voila.. it registered with the gateway.</p>
<p dir="auto">I don't understand why, power is power... but apparently power is different.<br />
So, for future builders, if you run this, you know what I did.</p>
<p dir="auto">Need to head to IKEA and get some more Molgans!!</p>
]]></description><link>https://forum.mysensors.org/post/100783</link><guid isPermaLink="true">https://forum.mysensors.org/post/100783</guid><dc:creator><![CDATA[magpern]]></dc:creator><pubDate>Thu, 01 Aug 2019 22:53:41 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 02 Nov 2018 10:37:38 GMT]]></title><description><![CDATA[<p dir="auto">Here's a random question, has anyone made or considered if possible even, an RFM69 radio version?  I'm considering moving to RFM69 from NRF24 due to some range issues.. maybe.. Will need two gateways or something along those lines to keep using these fantastic nodes, have 3.  Any thoughts back would be terrific, is there for example some show stopper I'm missing or just a matter of space and creative wiring!?</p>
]]></description><link>https://forum.mysensors.org/post/94723</link><guid isPermaLink="true">https://forum.mysensors.org/post/94723</guid><dc:creator><![CDATA[p359]]></dc:creator><pubDate>Fri, 02 Nov 2018 10:37:38 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 07 Dec 2017 21:10:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marek" aria-label="Profile: marek">@<bdi>marek</bdi></a> great to hear! :+1:</p>
]]></description><link>https://forum.mysensors.org/post/81434</link><guid isPermaLink="true">https://forum.mysensors.org/post/81434</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Thu, 07 Dec 2017 21:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 07 Dec 2017 21:09:11 GMT]]></title><description><![CDATA[<p dir="auto">Works like a charm!</p>
]]></description><link>https://forum.mysensors.org/post/81433</link><guid isPermaLink="true">https://forum.mysensors.org/post/81433</guid><dc:creator><![CDATA[Marek]]></dc:creator><pubDate>Thu, 07 Dec 2017 21:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 20 Apr 2017 20:00:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> As long as you can be sure the Vcc of the Arduino stays around 3.3v you can use a 3.3v zener. If you power as indicated (2 AA cells) voltage can drop below 2V and that cannot be considered safe. As an alternative to the zener you can have a resistor voltage divider (or stack a few normal diodes).</p>
]]></description><link>https://forum.mysensors.org/post/64962</link><guid isPermaLink="true">https://forum.mysensors.org/post/64962</guid><dc:creator><![CDATA[AWI]]></dc:creator><pubDate>Thu, 20 Apr 2017 20:00:21 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 20 Apr 2017 19:40:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> Short question: the zener diode only caps the voltage of the trigger so that the atmega328 can read it safely, right? Wouldn't a 3.3V zener diode work just as well then? Only asking because I am currently having a hard time finding a matching zener diode on aliexpress.</p>
]]></description><link>https://forum.mysensors.org/post/64960</link><guid isPermaLink="true">https://forum.mysensors.org/post/64960</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Thu, 20 Apr 2017 19:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Sat, 15 Apr 2017 20:35:26 GMT]]></title><description><![CDATA[<p dir="auto">Never mind, it's working now. I soldered a completely new pcb and this time it runs without problems. I still have no idea, why it did now work on first try. But I guess it has something to do with the fact, that I used hot air and solder paste for the first time. :)</p>
<p dir="auto">Edit: I have assembled all the stuff and the node is kind of working. It presents itself to the gateway perfectly. What does not work is the motion sensor. The pin is always high. When I pull it down manually and release it again, the node sends its message.<br />
I have removed the light sensor and R17. I have replaced R11 with a 1k resistor because that was the smallest one I had. Could this be a problem?</p>
<p dir="auto">Edit: Ok, found the problem. Seems like I have accidentally unsoldered R2 when I removed the light sensor. From your pictures I found out, that there has to be a 470k resistor. Now it works. :)</p>
]]></description><link>https://forum.mysensors.org/post/64624</link><guid isPermaLink="true">https://forum.mysensors.org/post/64624</guid><dc:creator><![CDATA[Jan Gatzke]]></dc:creator><pubDate>Sat, 15 Apr 2017 20:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 14 Apr 2017 14:46:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> How exactly did you flash it? I am using an USBasp, too. As it seems I have bricked 2 atmega328p and one Arduino Pro mini already. :dancer:<br />
This is what I did:<br />
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -B 40 -c usbasp -p m328p -b 11520 -P usb -V -v -U efuse:w:0xFE:m -U hfuse:w:0xDA:m -U lfuse:w:0xE2:m</p>
<p dir="auto">"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe"  -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -c usbasp -p m328p -b 115200 -P usb -V -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex</p>
<p dir="auto">After this I am not able to flash sketches via the Arduino IDE. Any ideas?</p>
]]></description><link>https://forum.mysensors.org/post/64596</link><guid isPermaLink="true">https://forum.mysensors.org/post/64596</guid><dc:creator><![CDATA[Jan Gatzke]]></dc:creator><pubDate>Fri, 14 Apr 2017 14:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 14 Apr 2017 14:20:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> nice. My best bet is that you somehow erased your eeprom after personalizing it. But anyway, nice that you are fully up and running now :)</p>
]]></description><link>https://forum.mysensors.org/post/64595</link><guid isPermaLink="true">https://forum.mysensors.org/post/64595</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Fri, 14 Apr 2017 14:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Fri, 14 Apr 2017 14:13:13 GMT]]></title><description><![CDATA[<p dir="auto">Hah success! Until now I was programming the chip directly via an USBasp (ignoring any bootloaders). I guess thats how I "bricked" the other chip (accidentally burning fuses that indicate an external clock...).</p>
<p dir="auto">Today I burned a bootloader (with the right fuses) to the new board and uploaded the securityPersonalizer and the molgan sketch via serial... and everything is working! It takes some (re)tries to get the signing up and running but after ~2 seconds the molgan board showed up in the gateway log. Now I'll only have to connect the new board to the molgan pcb and hope that everything still works.</p>
<p dir="auto">I still don't know why it wasn't working before though. I have some other chips that I programmed via ISP and they work well with signing too...</p>
]]></description><link>https://forum.mysensors.org/post/64594</link><guid isPermaLink="true">https://forum.mysensors.org/post/64594</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Fri, 14 Apr 2017 14:13:13 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 13 Apr 2017 19:55:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> alright. Perhaps the molgan sketch does some eeprom operations which inadvertently erases the key. You could try to read the key from eeprom early in the sketch after it was personalized just to confirm it had the key at some point at least.</p>
]]></description><link>https://forum.mysensors.org/post/64559</link><guid isPermaLink="true">https://forum.mysensors.org/post/64559</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Thu, 13 Apr 2017 19:55:16 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Thu, 13 Apr 2017 19:47:27 GMT]]></title><description><![CDATA[<p dir="auto">The HMAC key seems to already have been FFFFF.... when read from EPROM. While testing some more I somehow seem to have bricked the atmega328 though :( I just soldered a new board and will to some more testing tomorrow.</p>
]]></description><link>https://forum.mysensors.org/post/64558</link><guid isPermaLink="true">https://forum.mysensors.org/post/64558</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Thu, 13 Apr 2017 19:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Wed, 12 Apr 2017 04:29:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> alright, so there are now three options:</p>
<ol>
<li>Your device is not properly personalized</li>
<li>Your key has been overwritten in eeprom by some other part of your sketch during runtime</li>
<li>Your key has been erased by stack growth (unlikely since it very much look like eeprom reset value)</li>
</ol>
<p dir="auto">You can test the various scenarios by moving your newly added print to various places in the backend. For instance, adding it just after the value is fetched from eeprom in the init function of the backend would tell you if the value is bad in eeprom or is erased in ram at a later stage.</p>
]]></description><link>https://forum.mysensors.org/post/64465</link><guid isPermaLink="true">https://forum.mysensors.org/post/64465</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Wed, 12 Apr 2017 04:29:57 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 21:29:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anticimex" aria-label="Profile: Anticimex">@<bdi>Anticimex</bdi></a> So adding this around the line 325 should do the trick, right?</p>
<pre><code>// Feed "message" to HMAC calculator
	DEBUG_SIGNING_PRINTBUF(F("HMAC key debug: "), _signing_hmac_key, 32);
	_signing_sha256.initHmac(_signing_hmac_key,32); // Set the key to use
</code></pre>
<p dir="auto">The output of that is</p>
<pre><code>HMAC key debug: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
</code></pre>
<p dir="auto">which is definitly not my HMAC key!</p>
<p dir="auto">PS Changing the timeout did not change this.</p>
]]></description><link>https://forum.mysensors.org/post/64453</link><guid isPermaLink="true">https://forum.mysensors.org/post/64453</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Tue, 11 Apr 2017 21:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 21:00:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> I do not think the timeout is the issue here, but worth a try anyway. The memory usage is in the red zone if over 70% I'd say so I suspect the hmac key gets corrupted by a stack that grows into the heap. You can test that by adding a debug print in the soft signing backend that dumps your hmac key before it is set. Assuming you run the latest stable release you'd want to place the print just before <a href="https://github.com/mysensors/MySensors/blob/master/core/MySigningAtsha204Soft.cpp#L325" rel="nofollow ugc">this</a> line. You can copy <a href="https://github.com/mysensors/MySensors/blob/master/core/MySigningAtsha204Soft.cpp#L351" rel="nofollow ugc">this</a> line and replace _signing_hmac with _signing_hmac_key. Also change the HMAC text to HMAC KEY to tell them apart (and don't post your printed key here ;))<br />
This to verify that the key used is the key you personalized and that it has not been corrupted.</p>
]]></description><link>https://forum.mysensors.org/post/64451</link><guid isPermaLink="true">https://forum.mysensors.org/post/64451</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Tue, 11 Apr 2017 21:00:15 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 20:51:31 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, haven't really looked in that file since the upgrade to mysensors 2. Doing it all in the sketches now. I'll test it and get back to you.</p>
]]></description><link>https://forum.mysensors.org/post/64449</link><guid isPermaLink="true">https://forum.mysensors.org/post/64449</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Tue, 11 Apr 2017 20:51:31 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 20:49:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> it is configurable, and clearly visible where all signing configuration parameters are located in MyConfig.h. Look for MY_VERIFICATION_TIMEOUT_MS.</p>
]]></description><link>https://forum.mysensors.org/post/64448</link><guid isPermaLink="true">https://forum.mysensors.org/post/64448</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Tue, 11 Apr 2017 20:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 20:45:28 GMT]]></title><description><![CDATA[<p dir="auto">Ok for the molgan sketch the arduino IDE spits this out:</p>
<ul>
<li>list item22.602 Bytes (73%) of memory</li>
<li>list itemglobal variables 56% of dynamic memory</li>
</ul>
<p dir="auto">How do you change the timeout? Quick googling only turned up requests to make it configurable...</p>
]]></description><link>https://forum.mysensors.org/post/64447</link><guid isPermaLink="true">https://forum.mysensors.org/post/64447</guid><dc:creator><![CDATA[LastSamurai]]></dc:creator><pubDate>Tue, 11 Apr 2017 20:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 19:32:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> ah, ok. That explains that then. But to my knowledge there is no timing dependency for software signing, except the signing timeout. But I think there is a debug message if that fires. If not, perhaps <a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> could try to increase the timeout (currently at 5000 ms).</p>
]]></description><link>https://forum.mysensors.org/post/64445</link><guid isPermaLink="true">https://forum.mysensors.org/post/64445</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Tue, 11 Apr 2017 19:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 19:11:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anticimex" aria-label="Profile: Anticimex">@<bdi>Anticimex</bdi></a> the Molgan Hack uses the internal oscillator, not an external crystal like the nano and pro mini.<br />
The internal oscillator is less accurate, hence the lower baud rate.</p>
]]></description><link>https://forum.mysensors.org/post/64443</link><guid isPermaLink="true">https://forum.mysensors.org/post/64443</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Tue, 11 Apr 2017 19:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to 💬 Ikea Molgan Hack on Tue, 11 Apr 2017 19:00:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lastsamurai" aria-label="Profile: LastSamurai">@<bdi>LastSamurai</bdi></a> I find it slightly disturbing that you say 115200 baudrate does not work. That would suggest the clock is not running as it should. I can run 115200 just fine on my Nano (16MHz) and Pro mini (8Mhz).<br />
The personalizer on the development branch uses the baudrate set by the MyConfig.h setting (MY_BAUD_RATE) so you define it using that flag (as you found out).</p>
]]></description><link>https://forum.mysensors.org/post/64441</link><guid isPermaLink="true">https://forum.mysensors.org/post/64441</guid><dc:creator><![CDATA[Anticimex]]></dc:creator><pubDate>Tue, 11 Apr 2017 19:00:38 GMT</pubDate></item></channel></rss>