Arduino Workshop - Chapter 4 - Using EEPROM

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • The full Arduino Workshop in step-by-step format can be found here core-electroni...
    In this section, we'll learn about storing data in the non-volatile memory known as EEPROM. This allows data to be retained when power is disconnected and accessed later.
    We're official retailers for Arduino in Australia - powered by makers, for makers! core-electroni...

ความคิดเห็น • 76

  • @BGLENN-dp4tx
    @BGLENN-dp4tx 5 ปีที่แล้ว +35

    Nice job. Thanks. BTW, relative to the size of 328 EEPROM -- In 1980, I purchased my first computer: Radio Shack TRS-80 desktop. It's TOTAL RAM was 4k-bytes. The computer cost me $1000 USD. To upgrade to 64K RAM, it was additional $400. I'm 70 years old now and it's very cool to watch & listen to your video information. Thanks.

    • @DragPlix
      @DragPlix 3 ปีที่แล้ว +3

      using modern age pc's with dope specs and seeing how it all started gets me surprised like how fast we have grown...

    • @ranjithshetty7078
      @ranjithshetty7078 3 ปีที่แล้ว

      Hi sir r u pilot?

  • @ferb1rahert
    @ferb1rahert 2 วันที่ผ่านมา

    I dreamed about watching this video. How much obsessed am I with this pl?

  • @ste3937-i8n
    @ste3937-i8n 2 ปีที่แล้ว +2

    thank!

    • @5megatron5
      @5megatron5 2 ปีที่แล้ว +2

      ¿me help!

  • @akeemlouigarde4689
    @akeemlouigarde4689 5 ปีที่แล้ว +11

    You did it man. I understood what was going on. I was able to give in my Lab report on time. Thank you.

  • @khomo12
    @khomo12 2 หลายเดือนก่อน

    Very nice! Thank you!

  • @dawud5070
    @dawud5070 8 หลายเดือนก่อน +1

    Thank you Bro

  • @EVERY.CIRCUIT
    @EVERY.CIRCUIT 4 ปีที่แล้ว +3

    Nice, but how to save words such as "Ali" or large numbers such as 10000000?

  • @leeaudio027
    @leeaudio027 3 ปีที่แล้ว

    Stupendous job ,your a great teacher!!!

  • @nicolaslac1013
    @nicolaslac1013 3 ปีที่แล้ว +1

    Hi, thank you for your job. Just a question about the variable. Do you think it's possible to store data from outside with a keypad and store it into EEPROM ? I've a function like : if (keypressed) ... first = num1 + keypressed; ( int num1 = 0; ) ... EEPROM.put(1, first); when later I call : EEPROM.get(1,first); it doesn't print the variable.

  • @nardjestec
    @nardjestec 5 ปีที่แล้ว +2

    Very clear thank you.

  • @maxpolaris99
    @maxpolaris99 6 ปีที่แล้ว

    Clear and to the point

  • @davidbolha
    @davidbolha 3 ปีที่แล้ว

    Hi,
    Could you use the Arduino to reset/reprogram various BQXXXX ICs that are usually found in laptop batteries ? 🤔😕
    Thanks &....
    Best Regards,

  • @shambhusingh5094
    @shambhusingh5094 2 ปีที่แล้ว +1

    How to do after 255 count, please explain

  • @sainitin2772
    @sainitin2772 2 ปีที่แล้ว

    Thanks for the tutorial and can you please say which app did you use for screen recording

  • @jaa70
    @jaa70 5 ปีที่แล้ว +1

    didn't work, I've written the code as it is on the video, and when I disconect power from arduino and re connect it, the counter start again from zero .....

  • @Good-Enuff-Garage
    @Good-Enuff-Garage ปีที่แล้ว

    so the UNO has EEPROM but the DUE does not !?!?!?

  • @dhavalshukla6615
    @dhavalshukla6615 2 ปีที่แล้ว

    Hi, nice video. I have been trying to store values read from EEPROM to a variable. for example storing values read from ssid and password from EEPROM. The problem being that the code doesn't seem to work. Here is the snippet: String ssid+=char(EEPROM.read(addr)); this is written in a for loop from 0 to 32 addresses. Idk why this is not working, any ideas and help will really be helpful.

  • @naveenvaid4318
    @naveenvaid4318 3 ปีที่แล้ว

    nice sir but if i want to 10 bit data save into eeprom in arduino uno if possible ...............

  • @shantosutradhar1365
    @shantosutradhar1365 4 ปีที่แล้ว

    very good, thanks

  • @ElectroMentor
    @ElectroMentor 4 ปีที่แล้ว

    it was helpful thank for sharing !

  • @nagendraprasad332
    @nagendraprasad332 4 ปีที่แล้ว

    Please make a video tutorial on gsm module with arduino

  • @ΚωνσταντίνοςΡάπτης-φ4ξ
    @ΚωνσταντίνοςΡάπτης-φ4ξ 2 ปีที่แล้ว +1

    Hi. How can I contact with you??

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว

      Come jump on the Core Electronic's Forums champ 😊 forum.core-electronics.com.au/

  • @harshdokania6616
    @harshdokania6616 5 ปีที่แล้ว

    well explained..thanks

  • @siddhantchaudhary4946
    @siddhantchaudhary4946 5 ปีที่แล้ว +2

    Dae-ta is what it is

  • @Superspace8
    @Superspace8 6 ปีที่แล้ว

    Great video thanks so much

  • @Sarathkumar-lt8gi
    @Sarathkumar-lt8gi 5 ปีที่แล้ว

    It is limited to 256 counts only. Can you tell me how to store more than 256. I have seen 'put' functions but that is also not working yet.

    • @cladisla
      @cladisla 4 ปีที่แล้ว +2

      you can always use 2 or more addresses to store values and then join them together using code. For instance, if you want to store a 16-bit number, you write the HSBs (first part from the left) to address 1 and the LSBs to address 0. Then, when you want to get the data, you read both of them and paste them together accordingly. For instance:
      Data to be saved: 1100000000000001
      Saved to address 1: 11000000
      Saved to address 0: 00000001
      To read it: variable = EEPROM.read(1)

  • @ousstst6069
    @ousstst6069 6 ปีที่แล้ว +1

    can the eeprom be used to save a variable value (sensor value) and recover it after a power failure?

    • @kaoshavoc
      @kaoshavoc 6 ปีที่แล้ว

      Yes, but honestly getting an SSD card reader is cheap easy, and you can remove it put the data on your pc real easy, but if it does not matter if you have the data very portable, then eeprom would be a great way to save the sensor data.

    • @ousstst6069
      @ousstst6069 6 ปีที่แล้ว +1

      I tried to save the variable values of the sensor on leeprom it did not work, and I tried with a fix value it works.
      need help stp

    • @kaoshavoc
      @kaoshavoc 6 ปีที่แล้ว +1

      you need to make sure the variable type will fit into the space allotted by eeprom. if you are saving larger data types into bytes of the eeprom, then you will have problems real bad. I suspect that the data type of your variable to be the issue. What data type is the variable you are trying to store?

    • @swathip1461
      @swathip1461 3 ปีที่แล้ว

      @@ousstst6069 www.arduino.cc/en/Tutorial/LibraryExamples/EEPROMPut
      www.arduino.cc/en/Tutorial/LibraryExamples/EEPROMGet
      This is exactly what you need..

  • @taranagnew436
    @taranagnew436 6 ปีที่แล้ว

    would i need to add EEPROM to a project if i'm building a LED matrix ( where the user changes the image every so often)

    • @masaratech
      @masaratech 5 ปีที่แล้ว

      it depends on the uC used and the size of your binary image/text

  • @birkhansonkan4236
    @birkhansonkan4236 7 ปีที่แล้ว +2

    what happens when you reach the address limit of 255?

    • @diyhub2986
      @diyhub2986 7 ปีที่แล้ว +2

      im thinking the same thoughts too.

    • @GlowingSteam
      @GlowingSteam 6 ปีที่แล้ว

      Not to mention its a quick and easy method to burn your write cycles at the push of a button. Also I'm confused as to the methodology behind using an int with only 1 or 0 when booleans exist

    • @SteveandBobkiller1000050
      @SteveandBobkiller1000050 5 ปีที่แล้ว

      @@GlowingSteam booleans are very special and are stored as 1s and 0s anyways by the compiler, easier to just use an int with only 1 or 0

    • @SteveandBobkiller1000050
      @SteveandBobkiller1000050 5 ปีที่แล้ว

      I could be wrong about this

  • @christgoodappiah2903
    @christgoodappiah2903 ปีที่แล้ว

    I really enjoy your tutorials. Always on point. But I will advise that you take your time in talking. You speak so fast. Please take your time in explanation. Thank you.

  • @anshdayal8835
    @anshdayal8835 3 ปีที่แล้ว

    Your code is not working.

  • @thomaspatrick4564
    @thomaspatrick4564 6 ปีที่แล้ว

    Elephant in the room is the FCC

  • @matrixdexter270
    @matrixdexter270 6 ปีที่แล้ว

    can you use the i2c on an eeprom

    • @masaratech
      @masaratech 5 ปีที่แล้ว

      yes, many eeprom's support i2c protocol

  • @mtalhakhalid1679
    @mtalhakhalid1679 3 ปีที่แล้ว

    You can store your data in a perticular datatype like in char float String in arduino IDE why need eprom of arduino?

    • @vlektor
      @vlektor 3 ปีที่แล้ว +1

      if you add an highscore function and reset the arduino the highscore is gone so you have to put the highscore on the EEPROM

  • @harikeshprajapati7662
    @harikeshprajapati7662 5 ปีที่แล้ว

    how could you used the reset button to clear EEPROM

    • @chrisingram7277
      @chrisingram7277 4 ปีที่แล้ว

      In the void setup, he adds an EEPROM.write(0,0); command so when he runs the program for a second time without pushing the counter button, it resets to zero again. I had to think about that one too.

    • @br52685
      @br52685 6 หลายเดือนก่อน

      @@chrisingram7277 Could you explain this a bit more. I'm looking at the code, and not quite seeing *how* exactly this reset occurs.

    • @chrisingram7277
      @chrisingram7277 6 หลายเดือนก่อน

      @@br52685
      In the void setup he sets first sets the int variable "counter" to the count value
      counter = EEPROM.read(0);
      then he resets the counter value in the eprom to 0
      EEPROM.write(0,0);
      then he starts the void loop which only writes an old counter value to the eprom when the button gets pushed
      EEPROM.write(0, counter); //write counter to address 0
      that only happens if the button gets pushed otherwise the EEPROM value stays at 0
      Hope this helps,
      thanks for the question, sometime in the last 4 years I had forgotten there was an EEPROM in our Arduino's

    • @br52685
      @br52685 6 หลายเดือนก่อน +1

      @@chrisingram7277 Ahh that explains it---thx!

  • @Jalecko
    @Jalecko 2 ปีที่แล้ว

    well that was easy

  • @vilziciuli7052
    @vilziciuli7052 7 ปีที่แล้ว

    9 bit wil be writed.

  • @learnthebasicchannel8394
    @learnthebasicchannel8394 6 ปีที่แล้ว

    how many RFID tag does atmega328p can have?

  • @Melodyvibe2004
    @Melodyvibe2004 3 ปีที่แล้ว

    Sir I am going to innovate a project related to sensors , so is it possible for you to send me the required codes for all those sensors?....

  • @kevinjacob7464
    @kevinjacob7464 4 ปีที่แล้ว

    Why doesnt he have so many views?? Goddamit

  • @james-barnett
    @james-barnett 3 ปีที่แล้ว

    It's better practice to use a 555 timer to stop the bouncing of the button rather than writing it in the program, that way it can be used universally.

  • @apriadizidan4859
    @apriadizidan4859 ปีที่แล้ว

    This is Elon musk

  • @bjordin9460
    @bjordin9460 4 ปีที่แล้ว

    Mamtull

  • @mohitarora8754
    @mohitarora8754 6 ปีที่แล้ว +13

    Take a breath bro.... You are going fast. You are explaining​ to beginners not to professional.

  • @robertbryce7626
    @robertbryce7626 3 ปีที่แล้ว

    Could you possibly have talked any faster. Much came out as total gibberish.

  • @wolfgangboettcher3126
    @wolfgangboettcher3126 4 ปีที่แล้ว

    Bleib locker ,eepromm speicher kenne zu gut machen Kritik und nicht zu gebrauchen verliere nicht dein Talent