Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Secure 5-button keyfob with enclosure (was: 8-button keyfob)

Secure 5-button keyfob with enclosure (was: 8-button keyfob)

Scheduled Pinned Locked Moved My Project
72 Posts 5 Posters 16.9k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • korttomaK Offline
    korttomaK Offline
    korttoma
    Hero Member
    wrote on last edited by
    #3

    Downloading the .zip does not seem to work?

    • Tomas
    1 Reply Last reply
    0
    • E Offline
      E Offline
      elcaron
      wrote on last edited by elcaron
      #4

      You are right, I'll giving it another try. But again, I'll change the routing quite considerably, so there is not much use for the KiCAD project yet.
      EDIT: Nope, the ZIP upload doesn't seem to work. I'll find another possibility for the finalized next version. Go for the schematic PDF for now.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        elcaron
        wrote on last edited by elcaron
        #5
        • removed uninformative post about old 8-button version -
        1 Reply Last reply
        0
        • E elcaron

          While most of my home is made smart using ESP8266s, I plan to dive into MySensors for more energy critical stuff. The first project is a keyfob.

          Attached is a first design for a 8-button keyfob mit hardware HMAC authentication via an ATSHA204, running on a CR2032 coin cell and fitting into a commercially available keyfob enclosure (see README on github repository).
          The ATMEGA is supposed to run in power-down mode (400nA with disabled ADC, internal oszillator @ 8MHz), the powered down RFM69HCW should take 100nA in sleep mode and the ATSHA <150nA in sleep mode, so the overall standby consumption should be well below the self-discharge rate of the coin cell.
          In standby, the buttons will have interrupts attached via PCINTx_vect, so that a button press will wake the ATMEGA.

          Before I send out the PCB order, perhaps somebody is interested in having a closer look ... this is both my first MySensors project and my first low power project. Also, it is probably the most compact thing I have ever clicked together. (I am so glad about KiCAD's push and shove router ...)

          Any comments? Tips? Ideas? Errors?
          I would hate to send this to production and end up with 80 unusable PCB :) (Taking about PCBs, I will have a lot of spare ones in Germany, is anybody is interested ...)
          The major issues I could currently think of are:

          • Does MySensors implement the sleep mode of the ATSHA? Is it even possible in that package? I don't really know much about the chip (only followed the MySensors tutorial) and it would be a bugger if it sucked my battery dry ... - Answered: Yes it does.
          • Will the coin cell provide enough current for transmission? I added a 22uF tantal, should I include more?

          KiCAD project on github: https://github.com/kvoit/MySensors_SecureKeyfob/commits/master

          Schematic: 0_1492625836524_MySensors_SecureKeyfob.pdf

          0_1492686736377_Screenshot_2017-04-20_13-10-27.png
          0_1492686740917_Screenshot_2017-04-20_13-08-39.png

          AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #6

          @elcaron The MySensors library handles ATSHA204A sleep modes. The device is put to sleep whenever it is not required to be kept alive due to ongoing signing operations.

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          1 Reply Last reply
          0
          • E Offline
            E Offline
            elcaron
            wrote on last edited by
            #7

            Awesome, one point off the list.

            1 Reply Last reply
            0
            • MiKaM Offline
              MiKaM Offline
              MiKa
              wrote on last edited by
              #8

              Hi,
              Check for inspiration and nice enclosure https://oshpark.com/shared_projects/guV5HKTW Is just missing ATSHA204A
              Regards,
              MiKa

              E 1 Reply Last reply
              0
              • MiKaM MiKa

                Hi,
                Check for inspiration and nice enclosure https://oshpark.com/shared_projects/guV5HKTW Is just missing ATSHA204A
                Regards,
                MiKa

                E Offline
                E Offline
                elcaron
                wrote on last edited by
                #9

                @MiKa Hm, having an enclosure ready is a major benefit. Pitty it doesn't have KiCAD files available, so I would have to measure everything ...

                1 Reply Last reply
                0
                • MiKaM Offline
                  MiKaM Offline
                  MiKa
                  wrote on last edited by
                  #10

                  Someone know that guy which one shared pcb on OSH park?
                  Would be good to have a kicad project for small editing ;)

                  E 1 Reply Last reply
                  0
                  • MiKaM MiKa

                    Someone know that guy which one shared pcb on OSH park?
                    Would be good to have a kicad project for small editing ;)

                    E Offline
                    E Offline
                    elcaron
                    wrote on last edited by
                    #11

                    @MiKa I was a little skeptical at first because it seemed the enclosure wasn't that easily available for me in Germany. Now, however, I found out that it seems to be identical to the RND 455-00014 that is e.g. sold at Reichelt for less than 4€. They also have a datasheet with good documentation of the measures. I will not have the keyfob from above made but attempt a redesign over eastern for that enclosure.

                    Two questions for the general public:

                    • Should I switch to an RFM69? I do not have anything installed yet, so I am free. I understand that range and wall penetration are better, but I am a little worried that the antenna will not fit.
                    • Any idea if the contacts for those buttons are an existing footprint in KiCAD?
                    AnticimexA 1 Reply Last reply
                    0
                    • E elcaron

                      @MiKa I was a little skeptical at first because it seemed the enclosure wasn't that easily available for me in Germany. Now, however, I found out that it seems to be identical to the RND 455-00014 that is e.g. sold at Reichelt for less than 4€. They also have a datasheet with good documentation of the measures. I will not have the keyfob from above made but attempt a redesign over eastern for that enclosure.

                      Two questions for the general public:

                      • Should I switch to an RFM69? I do not have anything installed yet, so I am free. I understand that range and wall penetration are better, but I am a little worried that the antenna will not fit.
                      • Any idea if the contacts for those buttons are an existing footprint in KiCAD?
                      AnticimexA Offline
                      AnticimexA Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by
                      #12

                      @elcaron I definitely suggest rfm69 because it supports AES encryption in hw and is therefore better suited for security sensitive use (not that encrypting keyfob data makes much sense but anyway...). Also like you say, it has better range. Antenna can probably be coiled. Perhaps a chip antenna could work as well.
                      Regarding kicad, it is always possible to make any footprint needed given proper measurements.
                      We have official MySensors libraries where the footprints can be stored if created so everyone can benefit from them (perhaps they already exist). See here.

                      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                      E 1 Reply Last reply
                      0
                      • AnticimexA Anticimex

                        @elcaron I definitely suggest rfm69 because it supports AES encryption in hw and is therefore better suited for security sensitive use (not that encrypting keyfob data makes much sense but anyway...). Also like you say, it has better range. Antenna can probably be coiled. Perhaps a chip antenna could work as well.
                        Regarding kicad, it is always possible to make any footprint needed given proper measurements.
                        We have official MySensors libraries where the footprints can be stored if created so everyone can benefit from them (perhaps they already exist). See here.

                        E Offline
                        E Offline
                        elcaron
                        wrote on last edited by
                        #13

                        @Anticimex AES is a big plus. I already looked for coiled antennas on Aliexpress and as far as I can see, these will fit into the case. i will make a cutout in the PCB for that. I hope my Reichelt shipment will arrive on Saturday, so I can test it with some coiled 433MHz antennas I have lying around. Diameter is probably the same, I should even be able to clip them off to convert them.
                        I know I can make footprints. But if there was a footprint for that type of contact, I would rater use that. Since I am neither a professional nor a native speaker, I don't really have an idea what to look for ...

                        Pity that the OSHPark guy chose to name himself after a transistor, that doesn't really make finding him easier ...

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          elcaron
                          wrote on last edited by
                          #14

                          I have created a 5 button version that fits into the keyfob enclosure. I put the KiCAD project and a dxf file with the PCB measures on GitHub. I'll add an image later.
                          https://github.com/kvoit/MySensors_SecureKeyfob/commits/master

                          Schematic attached. I would like some comments before I put this into production.0_1492625836524_MySensors_SecureKeyfob.pdf

                          1 Reply Last reply
                          0
                          • MiKaM Offline
                            MiKaM Offline
                            MiKa
                            wrote on last edited by
                            #15

                            Hi,
                            Good job!
                            Add also some RGB LED or Fast LED (WS2812B) good place will be on opposit side of the battery ;)
                            MiKa

                            1 Reply Last reply
                            0
                            • E Offline
                              E Offline
                              elcaron
                              wrote on last edited by
                              #16

                              Yeah, I could do that. No free PWM pins, though. But one could use Software PWM on A0/A1/A7, those woud be easy to route.
                              Any footprint+Aliexpress/EBay link ready for a suitable LED?

                              1 Reply Last reply
                              0
                              • MiKaM Offline
                                MiKaM Offline
                                MiKa
                                wrote on last edited by
                                #17

                                for example: http://www.tme.eu/sk/details/hsmf-c114/diody-led-smd-farebne/broadcom-avago/ its in 0606 package with common anode

                                1 Reply Last reply
                                0
                                • E Offline
                                  E Offline
                                  elcaron
                                  wrote on last edited by
                                  #18

                                  If anybody cares, I have improved a few things - rgb led (choose the standard 505 that is used on RGB strips), impedance to antenna, button footprints ... It is all pushed to Github. There is also a branch with gerbers for a panelized version with v-cuts.
                                  I will order it tomorrow evening. (Hint: I'll sit on 60 PCBs for this, soon. Location Germany.)

                                  AnticimexA 1 Reply Last reply
                                  2
                                  • E elcaron

                                    If anybody cares, I have improved a few things - rgb led (choose the standard 505 that is used on RGB strips), impedance to antenna, button footprints ... It is all pushed to Github. There is also a branch with gerbers for a panelized version with v-cuts.
                                    I will order it tomorrow evening. (Hint: I'll sit on 60 PCBs for this, soon. Location Germany.)

                                    AnticimexA Offline
                                    AnticimexA Offline
                                    Anticimex
                                    Contest Winner
                                    wrote on last edited by Anticimex
                                    #19

                                    @elcaron cool. Do you have atsha204a footprint on them?
                                    Edit: of course you do. Sorry for asking such a stupid question :)

                                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                    E 1 Reply Last reply
                                    0
                                    • E Offline
                                      E Offline
                                      elcaron
                                      wrote on last edited by elcaron
                                      #20
                                      This post is deleted!
                                      1 Reply Last reply
                                      0
                                      • AnticimexA Anticimex

                                        @elcaron cool. Do you have atsha204a footprint on them?
                                        Edit: of course you do. Sorry for asking such a stupid question :)

                                        E Offline
                                        E Offline
                                        elcaron
                                        wrote on last edited by
                                        #21

                                        @Anticimex Yes, that was the whole point. Someone else already posted a link to a PCB for the same keyfob enclosure without an ATSHA. The ATSHA is next to pin6 of the RFM69.
                                        The other PCB also doesn't have dedicated space for an antenny, so I suspect they just somehow shove a wire in there. My design has a cutout for a spring antenna (already tested that it fits into the enclosure), with a defiined 50Ohm impedance trace leading to it.

                                        1 Reply Last reply
                                        0
                                        • MiKaM Offline
                                          MiKaM Offline
                                          MiKa
                                          wrote on last edited by
                                          #22

                                          Good work, Thanks!

                                          E 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular