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.
  • T Offline
    T Offline
    treb0r
    wrote on last edited by
    #9

    I found such board with ATtiny84 and NRF24L01.
    http://nettigo.pl/products/bezprzewodowy-sensor-tinybrd
    I am trying to find out from the producers if mysensors library will also work on it.
    What do you think? Hardware site is already done. Will it be possible to run sketches with mysensors on it?
    Regards

    1 Reply Last reply
    0
    • marceltrapmanM Offline
      marceltrapmanM Offline
      marceltrapman
      Mod
      wrote on last edited by
      #10

      I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      H T NeverDieN 3 Replies Last reply
      0
      • marceltrapmanM marceltrapman

        I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

        H Offline
        H Offline
        hyla
        wrote on last edited by
        #11

        @marceltrapman

        They're so very ... minimalistic ;)

        Christoph

        1 Reply Last reply
        0
        • marceltrapmanM marceltrapman

          I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

          T Offline
          T Offline
          treb0r
          wrote on last edited by treb0r
          #12

          @marceltrapman
          Because in case of door/window sensor it is better looking, when you have sth small sticked to the frame :)

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

            Actually i tried to port the mysensors lib to the attiny, a few months ago..
            https://github.com/Oitzu/Arduino
            I had to remove much of the auto-id, repeater and gw stuff to fit it into the memory of the attiny.
            But it the end it didn't run stable enough. This can maybe be fixed but i didn't investigated further.

            1 Reply Last reply
            0
            • marceltrapmanM marceltrapman

              I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

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

              @marceltrapman said:

              I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

              For example, an ATTiny85 is

              • cheaper (just $1),
              • it's smaller,
              • it uses less power (about 1/4 as much),
              • it's programmable using the arduino IDE,
              • it also sports a differential ADC (for higher accuracy) that the atmeg328p simply doesn't have,
              • doesn't require external support components
              • wouldn't require a breakout board

              For the last point, consider this type of possibility:
              jee.jpg
              http://jeelabs.org/book/1501a/

              Is that enough of an answer? If necessary software can be crammed in there, it's a clear win.

              Some of the attiny's support SPI natively. For those that don't (such as the ATTiny85), I've read there's a softSPI library for it

              Moshe LivneM 1 Reply Last reply
              1
              • NeverDieN NeverDie

                @marceltrapman said:

                I am still interested in the answer to the question 'why would you want to use an ATtiny?'....

                For example, an ATTiny85 is

                • cheaper (just $1),
                • it's smaller,
                • it uses less power (about 1/4 as much),
                • it's programmable using the arduino IDE,
                • it also sports a differential ADC (for higher accuracy) that the atmeg328p simply doesn't have,
                • doesn't require external support components
                • wouldn't require a breakout board

                For the last point, consider this type of possibility:
                jee.jpg
                http://jeelabs.org/book/1501a/

                Is that enough of an answer? If necessary software can be crammed in there, it's a clear win.

                Some of the attiny's support SPI natively. For those that don't (such as the ATTiny85), I've read there's a softSPI library for it

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

                @NeverDie I would like to add my support for your worthy quest. Some time ago I was looking for a way to make MySensors RFID like tags for presence detection but the result was just too big as well as too energy consuming.

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

                  @NeverDie @Moshe-Livne the underlying rf24 library supports the use of the attiny85.
                  As mentioned above, the modified (shrinked) mysensors library runs on the attiny85 but is a little bit unstable.
                  There could be multiple reasons for this... i stopped the development of the attiny85 port because of low interest and time for other projects.

                  @Sweebee : Do you still have the sketches and layouts for the attiny85 mysensors node?

                  NeverDieN SweebeeS 2 Replies Last reply
                  0
                  • OitzuO Oitzu

                    @NeverDie @Moshe-Livne the underlying rf24 library supports the use of the attiny85.
                    As mentioned above, the modified (shrinked) mysensors library runs on the attiny85 but is a little bit unstable.
                    There could be multiple reasons for this... i stopped the development of the attiny85 port because of low interest and time for other projects.

                    @Sweebee : Do you still have the sketches and layouts for the attiny85 mysensors node?

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

                    @Oitzu said:

                    @NeverDie @Moshe-Livne the underlying rf24 library supports the use of the attiny85.
                    As mentioned above, the modified (shrinked) mysensors library runs on the attiny85 but is a little bit unstable.
                    There could be multiple reasons for this... i stopped the development of the attiny85 port because of low interest and time for other projects.

                    Which fork or version of RF24 did you try? Perhaps we can pick up where you left off.. I've read that TMRh2O is both supported and has fixes to bugs in prior versions. Is there presently anything better? However, if it turns out that's unstable too, then maybe just poking registers on the NRF24L01+ is enough for something barebones but stable. Anybody know? A softSPI library would still be needed though. Any suggestions on which of those would be a good choice for the Attiny85?

                    I recently received a tiny AVR programmer:
                    tinyAVR.jpg
                    http://sfe.io/p11801
                    purely for convenience, but I haven't tried it out yet. There's also a youtube video (https://www.youtube.com/watch?v=30rPt802n1k) which shows another way how to do it using a spare arduino as the programmer.

                    1 Reply Last reply
                    0
                    • OitzuO Oitzu

                      @NeverDie @Moshe-Livne the underlying rf24 library supports the use of the attiny85.
                      As mentioned above, the modified (shrinked) mysensors library runs on the attiny85 but is a little bit unstable.
                      There could be multiple reasons for this... i stopped the development of the attiny85 port because of low interest and time for other projects.

                      @Sweebee : Do you still have the sketches and layouts for the attiny85 mysensors node?

                      SweebeeS Offline
                      SweebeeS Offline
                      Sweebee
                      wrote on last edited by
                      #18

                      @Oitzu https://github.com/sweebee/Arduino-home-automation/tree/master/2.4Ghz (MySensors)/Attiny/button-switch

                      NeverDieN 1 Reply Last reply
                      0
                      • SweebeeS Sweebee

                        @Oitzu https://github.com/sweebee/Arduino-home-automation/tree/master/2.4Ghz (MySensors)/Attiny/button-switch

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

                        @Sweebee said:

                        @Oitzu https://github.com/sweebee/Arduino-home-automation/tree/master/2.4Ghz (MySensors)/Attiny/button-switch

                        I gave it a quick read, and noticed that it appears to be using maniacbug's RF24 library. Six months ago Maniacbug posted the following here:

                        My fork has been abandoned.TMRH20 now has the premier fork - by far. You'll find considerably improved reliability and performance over both my fork and the original code base. Plus he has made an effort to keep RF24Network working well. Don't walk, but run from the orginal code base and immediately starting using TMR's fork.

                        http://tmrh20.github.io/RF24/

                        Unfortunately, he posted this seemingly vital news in a comment buried way down the page instead of at the top, which is where it belongs. I wouldn't be surprised if most people are unaware of it.

                        Would it be much effort to migrate to the new library? It sounds like that alone might solve the stability problem.

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

                          @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 2 Replies Last reply
                          0
                          • 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
                            #21

                            @Oitzu said:

                            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

                            This is good news. It means the radio portion can be tested independently of the mysensors portion. If it turns out the radio portion tests out fine running standalone, then that would be good to know, as it might help isolate the source of instability to somewhere in the mysensors code. Or, visa versa.

                            Using genuine Nordic Semiconductor parts for at least the initial radio testing would be ideal. I'm suggesting that so as to rule out possible clone-related problems. In about a week I should to receive a couple allegedly genuine Nordic Semiconductor NRF24L01+'s from an Itead distributor. Once I receive them, I can try running some standalone ATTiny85 wireless tests, starting with running the example code you referenced above from the TMRh2O library.

                            As I'm a brand new arrival, I don't yet know anything about the mysensors code, and I have no experience by which to judge what's normal or atypical mysensors program behavior. So, in the near-term, I expect others would be in a better position to help with that part of the coding/testing/debugging/troubleshooting..

                            1 Reply Last reply
                            0
                            • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          7

                                          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