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. Hardware
  3. ATtiny supported?

ATtiny supported?

Scheduled Pinned Locked Moved Hardware
42 Posts 20 Posters 29.0k Views 9 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.
  • OitzuO Oitzu

    @NeverDie i used a spare arduino nano as programmer for the attiny85. This works great.
    As you maybe have seen i'm using a fork of the mysensors library of the end of may 2015.
    I don't really can identify, at this moment, with which version of rf24 the mysensors library comes by...
    but because the last update of this lib seems to be 9 months ago i should give it a try to update it.

    My suggested way to go would be: To merge the changes in the mysensors library from may 2015 to now into the fork (to be up-to-date with mysensors again) and then try to replace the rf24 library with a newer version.

    Did we have anyone here able to test the libs? At the moment i have no spare attiny & nrf laying arround, i'm waiting for a new delivery.

    About SPI: The rf24 lib includes a softSPI lib for communication.The lib even supports different ways to connect the nrf24 with the attiny.
    See: http://tmrh20.github.io/RF24/rf24ping85_8ino-example.html

    I never tried the 3 connect. I simply connected CE with VCC to get one pin for testing free.

    NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #22

    I'm getting a little confused. Not enough sleep I guess. :sleepy: Given what hek stated this morning in this link here, does that mean the current version of mysensors already supports the attiny85? Or does it need to be slimmed down to fit, which is what I gather (perhaps incorrectly) Oitzu and others were/are planning to do? Or is the required work something else entirely? If the TMRh20 library is already integrated, as hek stated in that link, and it contains the SoftSPI needed for the attiny85 to interface with an NRF24L01+, what other work, if any, remains to be done? Again, sorry for the Noob question.

    By the way,I made a typo in some of my posts. It should be TMRh20 (twenty), not TMRh2O (water). That's why my search of the forum hadn't turned up any reference to it, which is why I thought it might be new news rather than old news, as it apparently is. Sorry for that.

    1 Reply Last reply
    0
    • OitzuO Offline
      OitzuO Offline
      Oitzu
      wrote on last edited by
      #23

      @NeverDie to clear things up to you: Yes the underlying rf24 is fully compatible with the attiny85.
      The full-blown mySensors library is to big to fit on the attiny and has some compatibly issues.
      In April 2015 i forked the mysensors library and cut it down to fit on the attiny.
      It worked, but not reliable. The reason why it didn't worked correctly is at this moment not known, and i didn't investigated further.

      What need to be done: We need to merge the current mysensors library into the attiny fork, then we should merge the current rf24 lib into the attiny fork, after that... testing.

      1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #24

        Thanks for the clarification. Perhaps not enough free memory. I've run into that causing instability on the UNO.

        Anyhow, after I receive the Nordic modules I'll probably run some ping-pong tests to measure packet loss with just the Attiny85 and the NRF24L01+ using the TMRh20 library. It won't be all that rigorous but If I notice instability, I'll let you know.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kapperi
          wrote on last edited by
          #25

          Just wondering that is it possible to make these sensors (Door) from ATtiny with nrf24l01+ and just pass the communication to arduino which is linked to mysensors networks? This way you don´t have to put mysensors code to little ATtiny.

          Just need somebody to figure out communication between arduino and Attiny network....

          1 Reply Last reply
          1
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by
            #26

            If the attiny85 turns out to be too tiny to be stable, maybe the LPC810 is worth trying? It has double the RAM and can sleep using less than 1uA of current. Adafruit has a starter kit as well as a tutorial on how to use it:
            https://www.adafruit.com/products/1336

            Moshe LivneM 1 Reply Last reply
            0
            • NeverDieN NeverDie

              If the attiny85 turns out to be too tiny to be stable, maybe the LPC810 is worth trying? It has double the RAM and can sleep using less than 1uA of current. Adafruit has a starter kit as well as a tutorial on how to use it:
              https://www.adafruit.com/products/1336

              Moshe LivneM Offline
              Moshe LivneM Offline
              Moshe Livne
              Hero Member
              wrote on last edited by
              #27

              @NeverDie very cool chip but a bit dear.... even on aliexpress (assuming it is not a counterfeit - Oh no! here we go again!)

              NeverDieN 1 Reply Last reply
              0
              • Moshe LivneM Moshe Livne

                @NeverDie very cool chip but a bit dear.... even on aliexpress (assuming it is not a counterfeit - Oh no! here we go again!)

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by NeverDie
                #28

                @Moshe-Livne said:

                @NeverDie very cool chip but a bit dear.... even on aliexpress

                Really? Quantity 1 price is $3.28 on Digikey for a chip that's practically standalone. Shockingly enough, the LPC824 is only $1.92 on Digikey, even though it looks like a far more capable chip: http://www.digikey.com/product-search/en?v=568&mpart=LPC824M201JHI33E
                How can that be?

                Moshe LivneM 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @Moshe-Livne said:

                  @NeverDie very cool chip but a bit dear.... even on aliexpress

                  Really? Quantity 1 price is $3.28 on Digikey for a chip that's practically standalone. Shockingly enough, the LPC824 is only $1.92 on Digikey, even though it looks like a far more capable chip: http://www.digikey.com/product-search/en?v=568&mpart=LPC824M201JHI33E
                  How can that be?

                  Moshe LivneM Offline
                  Moshe LivneM Offline
                  Moshe Livne
                  Hero Member
                  wrote on last edited by
                  #29

                  @NeverDie I have no idea!!!! maybe digikey are selling counterfeits? hihihi
                  that is not a bad price.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    humblehacker
                    wrote on last edited by
                    #30

                    I think Attiny85, especially in the form of the Adafruit Trinket/Flora 3.3v version would be a perfect match for MySensors! Especially now that the Arduino Boards Manager makes third party boards much easier to work with. How is the Attiny MYS fork coming along?

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      chuckconnors
                      wrote on last edited by
                      #31

                      I've seen a few posts about the ATtiny and it seems that perhaps someone has gotten it to work (http://forum.mysensors.org/topic/2129/battery-attiny85-door-window-wireless-sensor) though I'm not certain.

                      I'd really like to use these cheap chips for motion sensors and relay controllers for some sirens. Can anyone confirm or deny that these actually work?

                      1 Reply Last reply
                      0
                      • rustafariiR Offline
                        rustafariiR Offline
                        rustafarii
                        wrote on last edited by
                        #32

                        I have some attiny85 coming in. I will have a crack at with single pin sensor. Planning on testing with different clock speeds for stability. I will post any luck I have.

                        R

                        Shivanand ChanderballyS 1 Reply Last reply
                        0
                        • rustafariiR rustafarii

                          I have some attiny85 coming in. I will have a crack at with single pin sensor. Planning on testing with different clock speeds for stability. I will post any luck I have.

                          R

                          Shivanand ChanderballyS Offline
                          Shivanand ChanderballyS Offline
                          Shivanand Chanderbally
                          wrote on last edited by
                          #33

                          @rustafarii Any luck?

                          rustafariiR 1 Reply Last reply
                          0
                          • Shivanand ChanderballyS Shivanand Chanderbally

                            @rustafarii Any luck?

                            rustafariiR Offline
                            rustafariiR Offline
                            rustafarii
                            wrote on last edited by
                            #34

                            @Shivanand-Chanderbally
                            Not yet life got in my way and had to take a few months off. but i did get the tiny little boogers in.

                            My plan, as it looks like everyone else's, is to try getting attiny working with the radio without my sensors for basic communication, ping/pong, then add a sensor and see how much code to get readings from the sensor. if that goes well then it comes down to stripping what is not needed if any from the my sensor part sketch.

                            have you any progress?

                            Shivanand ChanderballyS 1 Reply Last reply
                            0
                            • rustafariiR rustafarii

                              @Shivanand-Chanderbally
                              Not yet life got in my way and had to take a few months off. but i did get the tiny little boogers in.

                              My plan, as it looks like everyone else's, is to try getting attiny working with the radio without my sensors for basic communication, ping/pong, then add a sensor and see how much code to get readings from the sensor. if that goes well then it comes down to stripping what is not needed if any from the my sensor part sketch.

                              have you any progress?

                              Shivanand ChanderballyS Offline
                              Shivanand ChanderballyS Offline
                              Shivanand Chanderbally
                              wrote on last edited by
                              #35

                              @rustafarii Seems we have the same goal! I myself have been trying to get them working but the overhead is just too much to fit on such a tiny chip..

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tlustoch
                                wrote on last edited by tlustoch
                                #36

                                Any progress? I like to build simple low-power temperature sensor based on attiny85 but cannot compile mysensors sketch if attiny85 set as a processor :(

                                C T 2 Replies Last reply
                                0
                                • T tlustoch

                                  Any progress? I like to build simple low-power temperature sensor based on attiny85 but cannot compile mysensors sketch if attiny85 set as a processor :(

                                  C Offline
                                  C Offline
                                  chuckconnors
                                  wrote on last edited by
                                  #37

                                  @tlustoch said:

                                  Any progress? I like to build simple low-power temperature sensor based on attiny85 but cannot compile mysensors sketch if attiny85 set as a processor :(

                                  I've switched over to the ESP8266 runing ESPEasy firmware. Very cheap and very easy to use.

                                  1 Reply Last reply
                                  0
                                  • T tlustoch

                                    Any progress? I like to build simple low-power temperature sensor based on attiny85 but cannot compile mysensors sketch if attiny85 set as a processor :(

                                    T Offline
                                    T Offline
                                    tlustoch
                                    wrote on last edited by
                                    #38

                                    It seems that it is possible: https://www.hackster.io/arjun/nrf24l01-with-attiny85-3-pins-74a1f2 but mysensors library has to support it?

                                    1 Reply Last reply
                                    0
                                    • mfalkviddM Offline
                                      mfalkviddM Offline
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by
                                      #39

                                      attiny85 seems to have 8kB flash. I don't think you'll be able to fit a MySensors sketch in so little space. Most sketches require 12k or more.

                                      Nca78N 1 Reply Last reply
                                      0
                                      • mfalkviddM mfalkvidd

                                        attiny85 seems to have 8kB flash. I don't think you'll be able to fit a MySensors sketch in so little space. Most sketches require 12k or more.

                                        Nca78N Offline
                                        Nca78N Offline
                                        Nca78
                                        Hardware Contributor
                                        wrote on last edited by
                                        #40

                                        @mfalkvidd said:

                                        attiny85 seems to have 8kB flash. I don't think you'll be able to fit a MySensors sketch in so little space. Most sketches require 12k or more.

                                        It would fit without a bootloader for very simple sketches only. RelayActuator example sketch without debug (and commented out debug lines) is 7 782 bytes.
                                        But I'm not sure it would run with 512bytes or ram and eeprom...

                                        T 1 Reply Last reply
                                        0
                                        • Nca78N Nca78

                                          @mfalkvidd said:

                                          attiny85 seems to have 8kB flash. I don't think you'll be able to fit a MySensors sketch in so little space. Most sketches require 12k or more.

                                          It would fit without a bootloader for very simple sketches only. RelayActuator example sketch without debug (and commented out debug lines) is 7 782 bytes.
                                          But I'm not sure it would run with 512bytes or ram and eeprom...

                                          T Offline
                                          T Offline
                                          tlustoch
                                          wrote on last edited by tlustoch
                                          #41

                                          @Nca78
                                          DimmableLight example with disabled serial console is 5,742 bytes, RelayActuator 5,464 bytes.

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


                                          13

                                          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