Dash Button with Arduino Pro Mini

Dash Button with Arduino Pro Mini

thingiverse

Here is another dash button for my FHEM SmartHome system. After building [this](https://www.thingiverse.com/thing:3678995) Dash Butten I wanted to build a new one with less power consumption, but as simple. I've been following the [AskSinPP](https://asksinpp.de/) 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](https://github.com/pa-pa/AskSinPP) or [TomMajor](https://github.com/TomMajor/SmartHome). Then you can connect the device with Homematic or a Homematic compatible SmartHome environment. What you needed: - [Arduino ATMega328 Pro Mini 3.3V 8MHz](https://www.aliexpress.com/item/32821902128.html?) - [CC1101 868 MHz](https://www.aliexpress.com/item/32852540940.html?) - CR2032 - double-sided PCB - [6x6x7 button](https://www.aliexpress.com/item/32983096592.html?) - [6x6x4,3 button](https://www.aliexpress.com/item/32983096592.html?) - silver wire - [enameled wire](https://www.aliexpress.com/item/32796083447.html) - [PCB HB-Micro by Ronny](https://github.com/ronnythomas/HB-Micro) (optional) - 1K resistance (optional) - LED (optional) First, I connected the ATMega328 Pro Mini with the CC1101 and the config button (6x6x4.3) to the HB-Mini board from [Ronny](https://www.facebook.com/ronny.thomas.83). The board is optional. You can also build it on the [fly](https://asksinpp.de/Basics/01_hardware.html#wiring) or on a double-sided blank PCB and enameled wire. The only important thing is to [remove](https://asksinpp.de/assets/img/arduino-pro-mini-removed-parts.f97cd75b.jpg) 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 transmitter [HM-RC-P1](https://github.com/pa-pa/AskSinPP/blob/master/examples/HM-RC-P1/HM-RC-P1.ino). I made two small changes. 1. Dash Button from A0 -> A3 // Arduino pins for the buttons // A3 == PIN 17 `#` define BTN1_PIN 17 2. 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 corners 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 pins 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 pins 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 Consumption](https://github.com/TomMajor/SmartHome/tree/master/Info/Ruhestrom) should be 4uA , +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ German version Hier ein weiterer Dash Button für mein FHEM SmartHome System. Nachdem ich [diesen](https://www.thingiverse.com/thing:3678995) Dash Butten gebaut habe wollte ich einen neunen mit weniger Verbrauch, aber genaue einfach bauen. Ich verfolge schon seit langem das [AskSinPP](https://asksinpp.de/) 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 eins der vielen Sketche von [papa](https://github.com/pa-pa/AskSinPP) oder von [TomMajor](https://github.com/TomMajor/SmartHome) aufspielen und das Gerät mit Homematic oder einer Homematic kompatiblen SmartHome Umgebung anschließen. Was wird benötigt: - [Arduino ATMega328 Pro Mini 3,3V 8MHz](https://www.aliexpress.com/item/32821902128.html?) - [CC1101 868 MHz](https://www.aliexpress.com/item/32852540940.html?) - CR2032 - double-sided PCB - [Taster 6x6x7](https://www.aliexpress.com/item/32983096592.html?) - [Taster 6x6x4,3](https://www.aliexpress.com/item/32983096592.html?) - silver wire - [lackierter Kupferdraht](https://www.aliexpress.com/item/32796083447.html) - [PCB HB-Micro von Ronny](https://github.com/ronnythomas/HB-Micro) (optional) - 1K Wiederstand (optional) - LED (optional) Als erstes habe ich den ATMega328 Pro Mini, das CC1101 sowie den Konfig Taster (6x6x4,3) mit der HB-Mini Platine von [Ronny](https://www.facebook.com/ronny.thomas.83) verbunden. Die Platine ist optional. Man kann das Ganze auch [fliegend](https://asksinpp.de/Grundlagen/01_hardware.html#verdrahtung) oder auf einer doppelseitigen Leerplatine und lackiertem Kupferdraht aufbauen. Wichtig ist nur, dass man den LDO, die Power LED und die Buildin LED [entfernt](https://asksinpp.de/assets/img/arduino-pro-mini-removed-parts.f97cd75b.jpg). 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](https://github.com/pa-pa/AskSinPP/blob/master/examples/HM-RC-P1/HM-RC-P1.ino) aufgespielt. Ich habe dabei zwei kleine Änderungen vorgenommen. 1. Dash Button von A0 -> A3 // Arduino pins for the buttons // A3 == PIN 17 `#`define BTN1_PIN 17 2. 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 sonst mit dem Minus Pol der Batterie in Verbindung kommen. Auch die anderen Pin’s des Tasters 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](https://github.com/TomMajor/SmartHome/tree/master/Info/Ruhestrom) bei 4uA liegen.

Download Model from thingiverse

With this file you will be able to print Dash Button with Arduino Pro Mini with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Dash Button with Arduino Pro Mini.