From f2e27ae05eca2dac3f747d8cebfd482a535e9bb9 Mon Sep 17 00:00:00 2001 From: Dmitry Butyugin Date: Thu, 16 Jun 2022 23:10:57 +0200 Subject: [PATCH] docs: Updated accelerometer installation instructions for Python 3 Signed-off-by: Dmitry Butyugin --- docs/Measuring_Resonances.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/Measuring_Resonances.md b/docs/Measuring_Resonances.md index 263a25b4..53a60013 100644 --- a/docs/Measuring_Resonances.md +++ b/docs/Measuring_Resonances.md @@ -76,21 +76,21 @@ the system that may damage the electronics. ### Software installation Note that resonance measurements and shaper auto-calibration require additional -software dependencies not installed by default. First, you will have to run on -your Raspberry Pi the following command: +software dependencies not installed by default. First, run on your Raspberry Pi +the following commands: +``` +sudo apt update +sudo apt install python3-numpy python3-matplotlib libatlas-base-dev +``` + +Next, in order to install NumPy in the Klipper environment, run the command: ``` ~/klippy-env/bin/pip install -v numpy ``` -to install `numpy` package. Note that, depending on the performance of the -CPU, it may take *a lot* of time, up to 10-20 minutes. Be patient and wait -for the completion of the installation. On some occasions, if the board has -too little RAM, the installation may fail and you will need to enable swap. - -Next, run the following commands to install the additional dependencies: -``` -sudo apt update -sudo apt install python3-numpy python3-matplotlib -``` +Note that, depending on the performance of the CPU, it may take *a lot* +of time, up to 10-20 minutes. Be patient and wait for the completion of +the installation. On some occasions, if the board has too little RAM +the installation may fail and you will need to enable swap. Afterwards, check and follow the instructions in the [RPi Microcontroller document](RPi_microcontroller.md) to setup the