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. OpenHardware.io
  3. 💬 Stamp size MySensor node

💬 Stamp size MySensor node

Scheduled Pinned Locked Moved OpenHardware.io
atmega328atsha204acoincellmysensor
50 Posts 13 Posters 16.4k Views 11 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.
  • G GertSanders

    @alexsh1

    Here is my extract for this type:

    32PinBoard.name=atmega328p based - 32 pin TQFP
    
    32PinBoard.upload.tool=arduino:avrdude
    32PinBoard.upload.protocol=arduino
    32PinBoard.upload.maximum_size=32256
    32PinBoard.upload.maximum_data_size=2048
    
    32PinBoard.bootloader.tool=arduino:avrdude
    
    32PinBoard.bootloader.unlock_bits=0x3F
    32PinBoard.bootloader.lock_bits=0x0F
    
    
    32PinBoard.build.core=arduino:arduino
    32PinBoard.build.mcu=atmega328p
    
    32PinBoard.build.board=AVR_GERTSANDERS32PinBoard
    32PinBoard.build.variant=32PinBoard
    
    32PinBoard.menu.bod.4v3=4V3
    32PinBoard.menu.bod.4v3.bootloader.extended_fuses=0x04
    32PinBoard.menu.bod.2v7=2V7
    32PinBoard.menu.bod.2v7.bootloader.extended_fuses=0x05
    32PinBoard.menu.bod.1v8=1V8
    32PinBoard.menu.bod.1v8.bootloader.extended_fuses=0x06
    32PinBoard.menu.bod.off=Disabled
    32PinBoard.menu.bod.off.bootloader.extended_fuses=0x07
    32PinBoard.menu.mhz.8Mi-38K4-D8= 8Mhz - internal - 38K4 - D8
    32PinBoard.menu.mhz.8Mi-38K4-D8.bootloader.low_fuses=0xE2
    32PinBoard.menu.mhz.8Mi-38K4-D8.bootloader.high_fuses=0xDE
    32PinBoard.menu.mhz.8Mi-38K4-D8.build.f_cpu=8000000L 
    32PinBoard.menu.mhz.8Mi-38K4-D8.upload.speed=38400
    32PinBoard.menu.mhz.8Mi-38K4-D8.bootloader.file=myoptiboot/optiboot_atmega328_08M_038400_D8.hex
    
    alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by alexsh1
    #13

    @GertSanders OK, the issue is in pins_arduino.h in 32PinBoard folder. The standard file is just not good. I'll have to find the right one for tqfp chip.

    EDIT: copied the "eightanaloginputs" variant in the variant folder, but still can only upload the first sketch after the bootloader, all other uploads are giving me "avrdude: stk500_getsync() attempt x of 10: not in sync:"

    alexsh1A 1 Reply Last reply
    0
    • alexsh1A alexsh1

      @GertSanders OK, the issue is in pins_arduino.h in 32PinBoard folder. The standard file is just not good. I'll have to find the right one for tqfp chip.

      EDIT: copied the "eightanaloginputs" variant in the variant folder, but still can only upload the first sketch after the bootloader, all other uploads are giving me "avrdude: stk500_getsync() attempt x of 10: not in sync:"

      alexsh1A Offline
      alexsh1A Offline
      alexsh1
      wrote on last edited by
      #14

      @GertSanders Gert, what pins_arduino.h are you using for this board please? Can you post it here?

      G 2 Replies Last reply
      0
      • alexsh1A alexsh1

        @GertSanders Gert, what pins_arduino.h are you using for this board please? Can you post it here?

        G Offline
        G Offline
        GertSanders
        Hardware Contributor
        wrote on last edited by
        #15

        @alexsh1

        Here is the pins_arduino.h file for the 32pin TQFP package

        0_1465854245099_pins_arduino.h

        1 Reply Last reply
        0
        • alexsh1A alexsh1

          @GertSanders Gert, what pins_arduino.h are you using for this board please? Can you post it here?

          G Offline
          G Offline
          GertSanders
          Hardware Contributor
          wrote on last edited by
          #16

          @alexsh1

          And here is a ZIP file with my complete atmega328p definitions

          0_1465854396475_atmega328p.zip

          alexsh1A 1 Reply Last reply
          0
          • G GertSanders

            @alexsh1

            And here is a ZIP file with my complete atmega328p definitions

            0_1465854396475_atmega328p.zip

            alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #17

            @GertSanders Many thanks for your help. This is probably my bad luck, but I have mixed up C1 and R1 mounting them vertically (not horizontally). What a stupid mistake really given that I have checked it a few times. Anyway, now everything is working.

            FYG, I looked at your pins_arduino.h - this is a standard one and it is not correct. I corrected the following entries:

            static const uint8_t SS   = 14;
            static const uint8_t MOSI = 15;
            static const uint8_t MISO = 16;
            static const uint8_t SCK  = 17;
            
            static const uint8_t SDA = 27;
            static const uint8_t SCL = 28;
            #define LED_BUILTIN 8
            
            static const uint8_t A0 = 23;
            static const uint8_t A1 = 24;
            static const uint8_t A2 = 25;
            static const uint8_t A3 = 26;
            static const uint8_t A4 = 27;
            static const uint8_t A5 = 28;
            static const uint8_t A6 = 19;
            static const uint8_t A7 = 22;
            
            G 1 Reply Last reply
            0
            • alexsh1A alexsh1

              @GertSanders Many thanks for your help. This is probably my bad luck, but I have mixed up C1 and R1 mounting them vertically (not horizontally). What a stupid mistake really given that I have checked it a few times. Anyway, now everything is working.

              FYG, I looked at your pins_arduino.h - this is a standard one and it is not correct. I corrected the following entries:

              static const uint8_t SS   = 14;
              static const uint8_t MOSI = 15;
              static const uint8_t MISO = 16;
              static const uint8_t SCK  = 17;
              
              static const uint8_t SDA = 27;
              static const uint8_t SCL = 28;
              #define LED_BUILTIN 8
              
              static const uint8_t A0 = 23;
              static const uint8_t A1 = 24;
              static const uint8_t A2 = 25;
              static const uint8_t A3 = 26;
              static const uint8_t A4 = 27;
              static const uint8_t A5 = 28;
              static const uint8_t A6 = 19;
              static const uint8_t A7 = 22;
              
              G Offline
              G Offline
              GertSanders
              Hardware Contributor
              wrote on last edited by
              #18

              @alexsh1
              OK, I will check also on my side :-) Thanks for the feedback.

              alexsh1A 1 Reply Last reply
              0
              • G GertSanders

                @alexsh1
                OK, I will check also on my side :-) Thanks for the feedback.

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #19

                @GertSanders No worries! And signing works flawlessly on this node as well with ATSHA204A by the way :)

                1 Reply Last reply
                0
                • alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by
                  #20

                  0_1466010177286_image.jpeg

                  G 1 Reply Last reply
                  0
                  • alexsh1A alexsh1

                    0_1466010177286_image.jpeg

                    G Offline
                    G Offline
                    GertSanders
                    Hardware Contributor
                    wrote on last edited by
                    #21

                    @alexsh1
                    Double plus good !
                    As I have no signing capability on my raspberry-turned-gateway I'm glad the hard work to simplify signing was done so well by @tbowmo and @Anticimex. Even without testing it I could assume it would work.

                    A 1 Reply Last reply
                    0
                    • G GertSanders

                      @alexsh1
                      Double plus good !
                      As I have no signing capability on my raspberry-turned-gateway I'm glad the hard work to simplify signing was done so well by @tbowmo and @Anticimex. Even without testing it I could assume it would work.

                      A Offline
                      A Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by
                      #22

                      @GertSanders You are welcome :) Btw, if you just patch in support to generate random data for a nonce, you can use the soft signing backend on rPi.

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

                      G 1 Reply Last reply
                      0
                      • A Anticimex

                        @GertSanders You are welcome :) Btw, if you just patch in support to generate random data for a nonce, you can use the soft signing backend on rPi.

                        G Offline
                        G Offline
                        GertSanders
                        Hardware Contributor
                        wrote on last edited by
                        #23

                        @Anticimex
                        Well that sounds simple, but I'm more a hardware contributer, this is beyond my capabilities :-), especially in unix arena. I manage software developers for a living, so I know how much I do not know.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          macieiks
                          wrote on last edited by
                          #24

                          Hello guys,

                          I am about to solder first PCB of this version. Just to be 100% sure, regarding C4 - what is the best value to use 1uF or 10uF, because I can see we can choose.

                          Regards,
                          Maciek

                          RPI2 + RFLink + PiFace D2 + Aeon Z-Wave Gen5 + Foscams FI9821P&R2 + MySensors + UPS APC Back-UPS 950VA
                          RPI2 + RFXtrx433e + Foscams FI9821P + MySensors + UPS APC Back-UPS 950VA
                          RPIB+ + TP-Link MR3420 + Huawei E173 GarageDomoticz :)

                          G 1 Reply Last reply
                          0
                          • M macieiks

                            Hello guys,

                            I am about to solder first PCB of this version. Just to be 100% sure, regarding C4 - what is the best value to use 1uF or 10uF, because I can see we can choose.

                            Regards,
                            Maciek

                            G Offline
                            G Offline
                            GertSanders
                            Hardware Contributor
                            wrote on last edited by
                            #25

                            @macieiks

                            Better to use 10uF. The schematic needs to be updated (still shows 1uF, I use 10uF now).

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              macieiks
                              wrote on last edited by
                              #26

                              @GertSanders

                              Thank you for the update,
                              Last part what I am missing is battery holder. I was trying to search it in many stores located in my country however I was not able to get it. Is there any internet shop when I can buy online? I have one workaround to soldier different CR battery holder and connect via wires.

                              RPI2 + RFLink + PiFace D2 + Aeon Z-Wave Gen5 + Foscams FI9821P&R2 + MySensors + UPS APC Back-UPS 950VA
                              RPI2 + RFXtrx433e + Foscams FI9821P + MySensors + UPS APC Back-UPS 950VA
                              RPIB+ + TP-Link MR3420 + Huawei E173 GarageDomoticz :)

                              alexsh1A 1 Reply Last reply
                              0
                              • M macieiks

                                @GertSanders

                                Thank you for the update,
                                Last part what I am missing is battery holder. I was trying to search it in many stores located in my country however I was not able to get it. Is there any internet shop when I can buy online? I have one workaround to soldier different CR battery holder and connect via wires.

                                alexsh1A Offline
                                alexsh1A Offline
                                alexsh1
                                wrote on last edited by
                                #27

                                @macieiks I bought the battery holder on http://www.ebay.co.uk/

                                A 1 Reply Last reply
                                0
                                • alexsh1A alexsh1

                                  @macieiks I bought the battery holder on http://www.ebay.co.uk/

                                  A Offline
                                  A Offline
                                  AWI
                                  Hero Member
                                  wrote on last edited by
                                  #28

                                  @alexsh1 The link directs me to ebay home page... (possibly a country issue) can you give the name of the item so I can search?

                                  1 Reply Last reply
                                  0
                                  • alexsh1A Offline
                                    alexsh1A Offline
                                    alexsh1
                                    wrote on last edited by alexsh1
                                    #29

                                    @AWI I just put a link to an eBay. You put "Keystone 3013" in the search and hit search :-)

                                    http://www.ebay.co.uk/itm/KEYSTONE-3013-BATTERY-THM-RETAINER-16MM-/271911714571?hash=item3f4f337f0b:g:PsQAAOxyx-BSa7y-

                                    A 1 Reply Last reply
                                    1
                                    • alexsh1A alexsh1

                                      @AWI I just put a link to an eBay. You put "Keystone 3013" in the search and hit search :-)

                                      http://www.ebay.co.uk/itm/KEYSTONE-3013-BATTERY-THM-RETAINER-16MM-/271911714571?hash=item3f4f337f0b:g:PsQAAOxyx-BSa7y-

                                      A Offline
                                      A Offline
                                      AWI
                                      Hero Member
                                      wrote on last edited by
                                      #30

                                      @alexsh1 :+1: (although pretty expensive...) building on your reference I found this
                                      Should do the job..

                                      alexsh1A 1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        scalz
                                        Hardware Contributor
                                        wrote on last edited by scalz
                                        #31

                                        @alexsh1 do you plan to use this so small coincell with rfm69? very curious to see results regarding internal res during RX-Tx times...1.8V brownout should not be far i think..or maybe not :) because the voltage won't stay at 3v ;) but to counter effect, a nice capa at input with a current limiting resistor could help. reading/waiting voltage stabilize before transmitting can help too (I'm doing this with some CR2032 based nodes)

                                        alexsh1A 1 Reply Last reply
                                        0
                                        • A AWI

                                          @alexsh1 :+1: (although pretty expensive...) building on your reference I found this
                                          Should do the job..

                                          alexsh1A Offline
                                          alexsh1A Offline
                                          alexsh1
                                          wrote on last edited by
                                          #32

                                          @AWI I only needed one or two and ordering 30 despite it is cheaper per unit, was probably too much for me.

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          12.0k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          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