Announcement

Collapse
No announcement yet.

Flash memory

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flash memory

    More testing learning how to write to flash memory???

    Is flash memory like a same EEPROM?

    Is some where simple write and read tutorial?

  • #2
    Hello,

    When using the 4Duino, the arduino library EEPROM can be used to wiite to the EEPROM of the 32u4 processor which is 1024 bytes in size.

    I hope this helps.

    Best regards

    Paul.

    Comment


    • #3
      Originally posted by pauleilio View Post
      Hello,

      When using the 4Duino, the arduino library EEPROM can be used to wiite to the EEPROM of the 32u4 processor which is 1024 bytes in size.

      I hope this helps.

      Best regards

      Paul.
      is 4duino flash and eeprom same thing?

      Comment


      • #4
        the 4duino is the same as a leonardo arduino with an lcd attached, basically an all-in-one. the eeprom is an eeprom, it is not emulated by the flash so its write cycles per cell is rated at 100,000 cycles

        Comment


        • #5
          Originally posted by tonton81 View Post
          the 4duino is the same as a leonardo arduino with an lcd attached, basically an all-in-one. the eeprom is an eeprom, it is not emulated by the flash so its write cycles per cell is rated at 100,000 cycles
          so what you recommend save variables which remain in memory even though I restart..

          Comment


          • #6
            you can write to the eeprom its fine, just dont let it write in a constant loop and it will probably most likely outlast your project

            example, change the value only when it changes and no more

            another way of saying is:

            for my eeprom i use the first 2 addresses for hvac always

            00: fan speed (0-9)
            01: temp control (1-11)

            i dont use any special code to change locations at every write, even though they exist, itll make your code more complex than necessary

            if the fan speed changes, the value is updated to the eeprom location once only, thats the idea

            Comment


            • #7
              Originally posted by tonton81 View Post
              you can write to the eeprom its fine, just dont let it write in a constant loop and it will probably most likely outlast your project

              example, change the value only when it changes and no more

              another way of saying is:

              for my eeprom i use the first 2 addresses for hvac always

              00: fan speed (0-9)
              01: temp control (1-11)

              i dont use any special code to change locations at every write, even though they exist, itll make your code more complex than necessary

              if the fan speed changes, the value is updated to the eeprom location once only, thats the idea
              Ok i save my flight data after flight and hold 5 latest flight to memory...

              more question sorry to that..



              if (lentoXTimes == 0)
              {
              EEPROM.update (0, lutc_hour); // example 16
              EEPROM.update (1, lutc_minutes); // example 26
              EEPROM.update (2, tutc_hour); // example 18
              EEPROM.update (3, tutc_minutes); // example 10
              EEPROM.update (4, loppuaika); // example flight time 48
              lentoXTimes++;
              }

              now i save 5 different variables to one flight can i collect to all to one memorybank

              Comment


              • #8
                the nice thing about update is it wont write it if its already the same value. i dont understand your question tho, but reading the values back is easy

                Comment


                • #9
                  Originally posted by tonton81 View Post
                  the nice thing about update is it wont write it if its already the same value. i dont understand your question tho, but reading the values back is easy
                  yep that work now let's go for that.. and try to make airplane mental case.. thanks 4duino team to good 4duino step file. Click image for larger version  Name:	1.jpg Views:	1 Size:	51.3 KB ID:	59462

                  Click image for larger version  Name:	2.jpg Views:	1 Size:	83.5 KB ID:	59463

                  Click image for larger version  Name:	3.jpg Views:	1 Size:	64.4 KB ID:	59464
                  Last edited by TeacDance; 4th September 2017, 06:05 PM.

                  Comment


                  • #10
                    Hello,

                    Your case look's fantastic. Glad the EEPROM functions worked out for you. Is your speed via external GPS.

                    Paul

                    Comment


                    • #11
                      Originally posted by pauleilio View Post
                      Hello,

                      Your case look's fantastic. Glad the EEPROM functions worked out for you. Is your speed via external GPS.

                      Paul
                      yep UBLOX NEO N8M

                      case pdf
                      Pdf case

                      Comment


                      • #12
                        case ready

                        Click image for larger version

Name:	IMG_7361.jpg
Views:	1
Size:	1.45 MB
ID:	59556

                        Click image for larger version

Name:	IMG_7362.jpg
Views:	1
Size:	1.43 MB
ID:	59557

                        Click image for larger version

Name:	IMG_7363.jpg
Views:	1
Size:	1.34 MB
ID:	59558

                        Click image for larger version

Name:	IMG_7364.jpg
Views:	1
Size:	1.39 MB
ID:	59559

                        Click image for larger version

Name:	IMG_7366.jpg
Views:	1
Size:	1.87 MB
ID:	59560

                        Video

                        Comment


                        • #13
                          Excellent. Very nice work.

                          Paul

                          Comment

                          Working...
                          X