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. My Slim 2AA Battery Node

My Slim 2AA Battery Node

Scheduled Pinned Locked Moved My Project
498 Posts 71 Posters 342.6k Views 69 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.
  • Tomasz PazioT Tomasz Pazio

    Hi, I build the board but I still have issues with burning ATMega328p chip.
    Can you describe and attach files that should work?
    The only success "burn" I had with burning bootloader was with hex and boards entry from first post using arduino uno and ips programer ( so it is like burning uno bootloader with your setup)
    After that I was trying to upload sketch but than it was not possible because of "?# in boards file but there is no such sign.
    I rewert file to stock and burn sketch like it would be standard uno board but using programer and not standard usb. No idea if it is corect so that is why I ask for more details.
    Thank you in advance
    Tomasz

    m26872M Offline
    m26872M Offline
    m26872
    Hardware Contributor
    wrote on last edited by
    #204

    @Tomasz-Pazio Sounds more like some issue with the IDE and boards file than hw and fuses/bootloader. Have you tried different IDE versions?

    Tomasz PazioT 1 Reply Last reply
    0
    • M Offline
      M Offline
      meddie
      wrote on last edited by meddie
      #205

      @ahmedadelhosni
      what is it on the door? is that a plastic wrap?

      ahmedadelhosniA 1 Reply Last reply
      0
      • M meddie

        @ahmedadelhosni
        what is it on the door? is that a plastic wrap?

        ahmedadelhosniA Offline
        ahmedadelhosniA Offline
        ahmedadelhosni
        wrote on last edited by ahmedadelhosni
        #206

        @meddie
        0_1454272780491_1453938474660-1453938399889-988876899.jpg

        The sensor is drawn by black rectangle. This is adhesive tape like this : http://2.imimg.com/data2/YX/UQ/MY-3910304/sale-bopp-clarity-adhesive-tape-250x250.jpg

        The other red rectangle on the door was old tape I didn't remove. Actually before getting my boards I used a bread board and a battery for testing, so I needed a tape for support and keeping it in place :)

        1 Reply Last reply
        1
        • M Offline
          M Offline
          meddie
          wrote on last edited by
          #207

          :thumbsup:

          1 Reply Last reply
          1
          • m26872M m26872

            @Tomasz-Pazio Sounds more like some issue with the IDE and boards file than hw and fuses/bootloader. Have you tried different IDE versions?

            Tomasz PazioT Offline
            Tomasz PazioT Offline
            Tomasz Pazio
            wrote on last edited by
            #208

            @m26872 thanks for advice, bootloader burned on IDE 1.0.x and after that, sketches are uploaded properly on 1.6.x.

            One more question, how it should report battery state? I can not see any variable created for this in Vera.

            m26872M 1 Reply Last reply
            0
            • Tomasz PazioT Tomasz Pazio

              @m26872 thanks for advice, bootloader burned on IDE 1.0.x and after that, sketches are uploaded properly on 1.6.x.

              One more question, how it should report battery state? I can not see any variable created for this in Vera.

              m26872M Offline
              m26872M Offline
              m26872
              Hardware Contributor
              wrote on last edited by
              #209

              @Tomasz-Pazio Great! If I remember Vera correct, a variable should be created automaticly upon first message if you use the sendbatterylevel() fuction.

              1 Reply Last reply
              0
              • Cliff KarlssonC Offline
                Cliff KarlssonC Offline
                Cliff Karlsson
                wrote on last edited by
                #210

                anyone care to write down the exact precedure of how to burn a new bootloader to the atmel chip? what files goes to what folders and so on.

                m26872M 1 Reply Last reply
                1
                • GertSandersG Offline
                  GertSandersG Offline
                  GertSanders
                  Hardware Contributor
                  wrote on last edited by
                  #211

                  @Cliff-Karlsson I'm experimenting with several versions of Optiboot (various upload and upload combinations) for my board. Once that is done, I will add it to the documentation of my board. I'm extending the sketch found here:

                  http://www.gammon.com.au/forum/?id=11635

                  1 Reply Last reply
                  0
                  • Cliff KarlssonC Cliff Karlsson

                    anyone care to write down the exact precedure of how to burn a new bootloader to the atmel chip? what files goes to what folders and so on.

                    m26872M Offline
                    m26872M Offline
                    m26872
                    Hardware Contributor
                    wrote on last edited by
                    #212

                    @Cliff-Karlsson Let's continue your bootloader trouble discussion in it's own thread:
                    http://forum.mysensors.org/topic/2975/how-do-i-burn-a-bootloader-to-an-328p-with-uno-bootloader-preinstalled/8

                    1 Reply Last reply
                    1
                    • rsachocR Offline
                      rsachocR Offline
                      rsachoc
                      wrote on last edited by rsachoc
                      #213

                      OK, so finally I have received most of the parts I need to build a few of these sensors. I want to go with a temp sensor at first, the si7021. So I wanted to check what "other bits" I need (newb alert).

                      0_1454624296448_upload-80039080-fce7-4484-b238-a54bdb2d28fd

                      From there, do I need both 1 and 2? If so, what are these?

                      0_1454624355650_upload-36748b2e-623b-4953-bdb4-394fbe264ef6

                      From here, what are 3 and 4? Do I need both?

                      Also, depending on the answers above, do I solder to exactly the same pins? Have I missed anything?

                      Thanks

                      1 Reply Last reply
                      0
                      • Cliff KarlssonC Offline
                        Cliff KarlssonC Offline
                        Cliff Karlsson
                        wrote on last edited by
                        #214

                        Ok, finaly succeded in burning the bootloader. Now comes next part. Fuses and lockbits, I have no idea what this means but is this what I need to do?

                        avrdude -C ../etc/avrdude.conf -c usbasp -B5 -p ATmega328P -U lfuse:w:0x62:m -U hfuse:w:0xDE:m -U efuse:w:0x07:m -U lock:w:0x2F:m
                        
                        m26872M 1 Reply Last reply
                        1
                        • M Offline
                          M Offline
                          meddie
                          wrote on last edited by
                          #215

                          oh, yes! And you have to be carefully with them, because to set the fuses wrong, can destroy your µcontroller

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            meddie
                            wrote on last edited by
                            #216

                            if you look to message Nr 179 you will find my bootloader and the correct fuses for this. But its a 1MHz Bootloader and the fuses too.
                            Dont use it if you want to run it at 8 MHz.

                            1 Reply Last reply
                            0
                            • bjacobseB Offline
                              bjacobseB Offline
                              bjacobse
                              wrote on last edited by
                              #217

                              Web-based fuse calculator
                              A different way of evaluating fuses is presented at this web page:
                              http://www.engbedded.com/fusecalc

                              At the bottom I inserted your fuses.
                              Translation:
                              Divide by8-> if your mcy board uses 8Mhz, then you now use 1Mhz Clock (Good this enables that you now can use a lower voltage down to 1,9V)
                              SPI is enabled, then you can program your mcu with FTDI cable
                              BOD mcu will not power down mcu when you have a low voltage (So you can use down to 1,9V)
                              I write 1,9Volt since this is the lowest voltage your NRF24L01+ can use for operation

                              0_1454685582246_upload-5f146d65-d819-455d-8d3c-ed029eb79abb

                              1 Reply Last reply
                              0
                              • Cliff KarlssonC Offline
                                Cliff KarlssonC Offline
                                Cliff Karlsson
                                wrote on last edited by
                                #218

                                Sorry for asking the same questions over and over but I have just used the files linked at the top of this thread.

                                This is the bootloader that I used:

                                atmega328_1a.hex (Optiboot for 9600baud at 1MHz)
                                
                                
                                ##############################################################
                                # Add the new board to boards.txt (normally located at "C:\Program Files\Arduino\hardware\arduino\avr"
                                # The *.bootloader.* etries only matters if you want to program bootloader (and fuses) from Arduino IDE. 
                                # See http://www.engbedded.com/fusecalc (select Atmega328p) for interpretation of fuse values and how 
                                # extended fuses are written in different applications (07h in Arduino IDE = FFh in Atmel studio).
                                ##############################################################
                                
                                apm96.name=APM Optiboot internal 1MHz noBOD 9600baud
                                
                                apm96.upload.tool=avrdude
                                apm96.upload.protocol=arduino
                                apm96.upload.maximum_size=32256
                                apm96.upload.speed=9600
                                apm96.bootloader.tool=avrdude
                                apm96.bootloader.low_fuses=0x62
                                apm96.bootloader.high_fuses=0xde
                                apm96.bootloader.extended_fuses=0x07
                                apm96.bootloader.path=optiboot_v50
                                apm96.bootloader.file=atmega328_1a.hex
                                apm96.bootloader.unlock_bits=0x3F
                                apm96.bootloader.lock_bits=0x2F
                                apm96.build.mcu=atmega328p
                                apm96.build.f_cpu=1000000L
                                apm96.build.core=arduino
                                apm96.build.variant=standard
                                
                                

                                Do I still need to add fuses or is that done when the bootloader is burned?

                                ahmedadelhosniA 1 Reply Last reply
                                0
                                • Cliff KarlssonC Cliff Karlsson

                                  Sorry for asking the same questions over and over but I have just used the files linked at the top of this thread.

                                  This is the bootloader that I used:

                                  atmega328_1a.hex (Optiboot for 9600baud at 1MHz)
                                  
                                  
                                  ##############################################################
                                  # Add the new board to boards.txt (normally located at "C:\Program Files\Arduino\hardware\arduino\avr"
                                  # The *.bootloader.* etries only matters if you want to program bootloader (and fuses) from Arduino IDE. 
                                  # See http://www.engbedded.com/fusecalc (select Atmega328p) for interpretation of fuse values and how 
                                  # extended fuses are written in different applications (07h in Arduino IDE = FFh in Atmel studio).
                                  ##############################################################
                                  
                                  apm96.name=APM Optiboot internal 1MHz noBOD 9600baud
                                  
                                  apm96.upload.tool=avrdude
                                  apm96.upload.protocol=arduino
                                  apm96.upload.maximum_size=32256
                                  apm96.upload.speed=9600
                                  apm96.bootloader.tool=avrdude
                                  apm96.bootloader.low_fuses=0x62
                                  apm96.bootloader.high_fuses=0xde
                                  apm96.bootloader.extended_fuses=0x07
                                  apm96.bootloader.path=optiboot_v50
                                  apm96.bootloader.file=atmega328_1a.hex
                                  apm96.bootloader.unlock_bits=0x3F
                                  apm96.bootloader.lock_bits=0x2F
                                  apm96.build.mcu=atmega328p
                                  apm96.build.f_cpu=1000000L
                                  apm96.build.core=arduino
                                  apm96.build.variant=standard
                                  
                                  

                                  Do I still need to add fuses or is that done when the bootloader is burned?

                                  ahmedadelhosniA Offline
                                  ahmedadelhosniA Offline
                                  ahmedadelhosni
                                  wrote on last edited by
                                  #219

                                  @Cliff-Karlsson

                                  It is already done when you burn the bootloader.

                                  apm96.bootloader.low_fuses=0x62
                                  apm96.bootloader.high_fuses=0xde

                                  1 Reply Last reply
                                  0
                                  • Cliff KarlssonC Cliff Karlsson

                                    Ok, finaly succeded in burning the bootloader. Now comes next part. Fuses and lockbits, I have no idea what this means but is this what I need to do?

                                    avrdude -C ../etc/avrdude.conf -c usbasp -B5 -p ATmega328P -U lfuse:w:0x62:m -U hfuse:w:0xDE:m -U efuse:w:0x07:m -U lock:w:0x2F:m
                                    
                                    m26872M Offline
                                    m26872M Offline
                                    m26872
                                    Hardware Contributor
                                    wrote on last edited by
                                    #220

                                    @Cliff-Karlsson said:

                                    Ok, finaly succeded in burning the bootloader.

                                    Great news!! With Arduino as ISP? Any particular tips to share?

                                    1 Reply Last reply
                                    0
                                    • Cliff KarlssonC Offline
                                      Cliff KarlssonC Offline
                                      Cliff Karlsson
                                      wrote on last edited by
                                      #221

                                      @m26872 I am fairly sure that all methods work in normal cases but nothing worked for me fore some reason :) .

                                      The only way I could get it to work was when I finaly put the chip in an Arduino Uno clone with 328p Dip(?) socket and connected an USBtiny ISP to the ISCP of that Uno. It took just a couple of seconds and then it was done :).

                                      I flashed like 6-7 ships right away with bootloader and blink-sketch just for fun. Biggest problem now is to get the damn chip in/out of the sockets without bending any legs. But I ordered a chip extractor to remedy that problem (in 4-6 weeks :()

                                      m26872M bjacobseB 2 Replies Last reply
                                      2
                                      • Cliff KarlssonC Cliff Karlsson

                                        @m26872 I am fairly sure that all methods work in normal cases but nothing worked for me fore some reason :) .

                                        The only way I could get it to work was when I finaly put the chip in an Arduino Uno clone with 328p Dip(?) socket and connected an USBtiny ISP to the ISCP of that Uno. It took just a couple of seconds and then it was done :).

                                        I flashed like 6-7 ships right away with bootloader and blink-sketch just for fun. Biggest problem now is to get the damn chip in/out of the sockets without bending any legs. But I ordered a chip extractor to remedy that problem (in 4-6 weeks :()

                                        m26872M Offline
                                        m26872M Offline
                                        m26872
                                        Hardware Contributor
                                        wrote on last edited by
                                        #222

                                        @Cliff-Karlsson
                                        :thumbsup:

                                        To get the ICs out from the DIP socket, I just use a small screw driver (2-3mm) and gently push it all the way under from one side only. And of course, don't push in the IC to hard to begin with.

                                        1 Reply Last reply
                                        0
                                        • Cliff KarlssonC Cliff Karlsson

                                          @m26872 I am fairly sure that all methods work in normal cases but nothing worked for me fore some reason :) .

                                          The only way I could get it to work was when I finaly put the chip in an Arduino Uno clone with 328p Dip(?) socket and connected an USBtiny ISP to the ISCP of that Uno. It took just a couple of seconds and then it was done :).

                                          I flashed like 6-7 ships right away with bootloader and blink-sketch just for fun. Biggest problem now is to get the damn chip in/out of the sockets without bending any legs. But I ordered a chip extractor to remedy that problem (in 4-6 weeks :()

                                          bjacobseB Offline
                                          bjacobseB Offline
                                          bjacobse
                                          wrote on last edited by
                                          #223

                                          @Cliff-Karlsson
                                          You shall buy Textool ZIF socket. not sure which fits your Arduino, If you at some point get's lazy (Solder less, and accept to use a little more space) and use Arduino Pro Mini then textool 224-3344 ZIF will be your friend

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


                                          14

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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