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.4k 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.
  • joaopauloJ Offline
    joaopauloJ 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
    • DwaltD Offline
      DwaltD 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
      • axillentA Offline
        axillentA 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

        joaopauloJ 1 Reply Last reply
        1
        • axillentA 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.

          joaopauloJ Offline
          joaopauloJ 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
          • vikmadV Offline
            vikmadV 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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              11

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              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