Here is another dash button for my FHEM SmartHome system. After building this Dash Butten I wanted to build a new one with less power coumption, but as simple. I've been following the AskSinPP project for a long time, which does a great job in homematic compliant self-build equipment. The basis is usually an ATMega328 microcontroller which is available for less than 2 € at Ali. Add to that a CC1101 868 MHz radio module and you can upload any sketches from papa or TomMajor. Then you can connect the device with Homematic or a Homematic compatible SmartHome environment. What you needed: Arduino ATMega328 Pro Mini 3.3V 8MHz CC1101 868 MHz CR2032 double-sided PCB 6x6x7 button 6x6x4,3 button silver wire enameled wire PCB HB-Micro by Ronny (optional) 1K resistance (optional) LED (optional) Fit, I connected the ATMega328 Pro Mini with the CC1101 and the config button (6x6x4.3) to the HB-Mini board from Ronny. The board is optional. You can also build it on the fly or on a double-sided blank PCB and enameled wire. The only important thing is to remove the LDO, Power LED and Buildin LED. If you forget that, the battery will not last long! Then I have papa's code for the 1-channel radio tramitter HM-RC-P1. I made two small changes.
Dash Button from A0 -> A3 Arduino pi for the butto A3 == PIN 17# define BTN1_PIN 17
Status LED added D4 == PIN 4 on Pro Mini# define LED_PIN 4 Then I broke out a little bit from the double-sided PCB and brought to the mass 25x21 mm. Even the corne are rounded so that it fits into the case. Then I connected the two. Unfortunately I did not have a battery holder, so I built it myself (see pictures). Now solder on the dash button (6x6x7), making sure that the two pi that are facing the other board DO NOT come in contact with the double-sided PCB. Otherwise you would get in touch with the battery minus ploe. Also, the other pi of the button must be shortened so that they do not look out on the other site and thus pushes the battery too far down. At the end only plus, minus and A3 have to be connected to the button of enameled wire and now the circuit is ready. If everything is properly wired and the components (LDO, LED) have been removed from the Arduino ATMega328 Pro Mini, the Power Coumption should be 4uA ,
German veion Hier ein weiterer Dash Button für mein FHEM SmartHome System. Nachdem ich diesen Dash Butten gebaut habe wollte ich einen neunen mit weniger Verbrauch, aber genaue einfach bauen. Ich verfolge schon seit langem das AskSinPP Projekt, welches hervorragende Arbeit in Bezug auf Homematic kompatible Selbstbaugeräte leistet. Als Basis dient meist ein ATMega328 Microcontroller den es für unter 2€ bei Ali gibt. Dazu noch ein CC1101 868 MHz Funkmodul und schon kann man ei der vielen Sketche von papa oder von TomMajor aufspielen und das Gerät mit Homematic oder einer Homematic kompatiblen SmartHome Umgebung achließen. Was wird benötigt: Arduino ATMega328 Pro Mini 3,3V 8MHz CC1101 868 MHz CR2032 double-sided PCB Taster 6x6x7 Taster 6x6x4,3 silver wire lackierter Kupferdraht PCB HB-Micro von Ronny (optional) 1K Wiedetand (optional) LED (optional) Als etes habe ich den ATMega328 Pro Mini, das CC1101 sowie den Konfig Taster (6x6x4,3) mit der HB-Mini Platine von Ronny verbunden. Die Platine ist optional. Man kann das Ganze auch fliegend oder auf einer doppelseitigen Leerplatine und lackiertem Kupferdraht aufbauen. Wichtig ist nur, dass man den LDO, die Power LED und die Buildin LED entfernt. Sollte man das vergessen wird die Batterie nicht lange durchhalten! Danach habe ich papa’s Code für den 1-Kanal Funksender HM-RC-P1 aufgespielt. Ich habe dabei zwei kleine Änderungen vorgenommen.
Dash Button von A0 -> A3 Arduino pi for the butto A3 == PIN 17#define BTN1_PIN 17
Status LED hinzugefügt D4 == PIN 4 on Pro Mini#define LED_PIN 4 Danach hab ich ein kleines Stück aus der doppelseiteigen Platine rausgebrochen und auf die Masse 25x21 mm gebracht. Noch die Ecken abgerundet, so dass es in das Gehäuse passt. Danach hab ich die beiden verbunden. Da ich leider keinen Batteriehalter hatte, habe ich mir diesen selber gebaut (siehe Bilder). Jetzt noch den Dash-Button Taster (6x6x7) auflöten, wobei darauf zu achten ist, dass die beiden Pin’s die zur anderen Platine schauen NICHT mit der doppelseitigen Platine in Berührung kommen dürfen. Sie würden sot mit dem Minus Pol der Batterie in Verbindung kommen. Auch die anderen Pin’s des Taste müssen gekürzt werden, so dass sie auf der anderen Site nicht rausschauen und damit die Batterie zu weit nach unten drückt. Am Schluss müssen nur noch Plus, Minus und A3 mit dem Taster lackiertem Kupferdraht verbunden werden und nun ist die Schaltung fertig. Wenn alles richtig verdrahtet ist und die Bauteile (LDO, LED) vom Arduino ATMega328 Pro Mini entfernt wurden, sollte der Stromverbrauch bei 4uA liegen.