> For the complete documentation index, see [llms.txt](https://docs.echook.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.echook.uk/programming-the-arduino/updating-the-arduino.md).

# Updating the Arduino

If you are just setting up your eChook for the first time, skip this page.

Over time, there will be updates to the eChook Arduino code, and new releases will be shown on the eChook GitHub page here:

{% embed url="<https://github.com/eChook/eChook-Arduino-Nano/releases/>" %}

To update your eChook to a new release, download the zip file from the link above, extract it, open it in the Arduino IDE and follow the steps on the last page to upload it to the Arduino.

### Updates and Calibrations

Between code version 1.x and 2+ there has been a change in how calibrations are stored on the Arduino. In v1.x, the calibration was hard coded into the calibration.h file, and values from this file need to be manually copied across to the newly downloaded release before uploading it.

From v2.0 onwards, the calibrations are stored in a separate memory location (EEPROM) on the Arduino, and are changed via the web interface at [configure.echook.uk](https://configure.echook.uk). This means that the calibrations are maintained on the Arduino and aren't affected by reprogramming.

**Updating from V1.x to V2**

This is the most involved update. The recommended route is to keep a copy of your old calibration.h file, upload the new V2 release to the Arduino without changing any values in code, then proceed to the [configuration website](https://configure.echook.uk) and enter your previous calibrations through the new interface.

**Updating from V2 to newer V2 releases**

Just download the new release and flash it - your calibrations will remain on the Arduino.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.echook.uk/programming-the-arduino/updating-the-arduino.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
