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. General Discussion
  3. MySensors with Atmega8(L) ?

MySensors with Atmega8(L) ?

Scheduled Pinned Locked Moved General Discussion
6 Posts 5 Posters 3.8k Views 3 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.
  • J Offline
    J Offline
    joaopaulo
    wrote on last edited by
    #1

    Hi guys,
    I want to control two relays using MySensors and nRF24L01+. But I wanted to do that using a ATmega8(L), it has 8Kb of flash, instead a 32Kb from mega328 of arduino. Is that possible ?

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dwalt
      wrote on last edited by Dwalt
      #2

      @joaopaulo
      There has been some success using the ATtiny85 which also has 8kbytes flash. Search the forum for ATtiny.

      Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

      1 Reply Last reply
      0
      • A Offline
        A Offline
        axillent
        Mod
        wrote on last edited by axillent
        #3

        you will probably need to hack&cut a library to reduce a required flash
        I would recommend you to reconsider usage of atmega8, otherwise you will need to spend a lot of time to fit any upgrade
        I had such an experience. I was translating Mysensors to Atmel Studio and that allows me to fit sensors & clocks into atmega8.
        But as Mysensors is under fast development it became too complicated to follow.

        sense and drive

        J 1 Reply Last reply
        1
        • A axillent

          you will probably need to hack&cut a library to reduce a required flash
          I would recommend you to reconsider usage of atmega8, otherwise you will need to spend a lot of time to fit any upgrade
          I had such an experience. I was translating Mysensors to Atmel Studio and that allows me to fit sensors & clocks into atmega8.
          But as Mysensors is under fast development it became too complicated to follow.

          J Offline
          J Offline
          joaopaulo
          wrote on last edited by
          #4

          @axillent Yeah, I was with this same intention to port MySensors to Atmel Studio and mega8. Anyway, I think it will be less complicated if i use the common mega328p as Arduino.

          Thanks

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vikmad
            wrote on last edited by
            #5

            // EDIT and ADD in: ...Arduino\libraries\MySensors\drivers\AVR\DigitalIO\DigitalPin.h

                #if defined(__AVR_ATmega168__)\
                ||defined(__AVR_ATmega168P__)\
                ||defined(__AVR_ATmega8__)\
                ||defined(__AVR_ATmega328P__)
                // 168 and 328 Arduinos
            

            // EDIT and ADD IN: ...Arduino\libraries\MySensors\drivers\AVR\DigitalWriteFast\digitalWriteFast.h

             #elif defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_DUEMILANOVE) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega328PB__)
            

            // ADD to Sketch Code:

            //Name conversion R.Wiersma
            #define UCSR0A UCSRA
            #define UDR0 UDR
            #define UDRE0 UDRE
            #define RXC0 RXC
            #define FE0 FE
            #define TIFR1 TIFR
            #define WDTCSR WDTCR

            #define WDIE 6
            #define WDCE 4

            // DISABLE debug! small memory :(
            //#define MY_DEBUG

            I did not test on HW, I just tried to compile it (DimmableLEDActuator):

            0_1484920625423_obrazek.png

            1 Reply Last reply
            0
            • gregaouG Offline
              gregaouG Offline
              gregaou
              wrote on last edited by
              #6

              @vikmad
              Impressive, the same thing will work for an attiny84/85 ?

              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


              18

              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