/OpenTrickler-RP2040-Controller

OpenTrickler controller application on RP2040 platform

Primary LanguageCGNU General Public License v3.0GPL-3.0

OpenTrickler RP2040 Controller

This repo is for the firmware that utilises the Raspberry Pi RP2040 micro controller OpenTrickler RP2040 Controller.

Join our discord server for help and development information.

Get Started

Use with mini 12864 display

  1. From the main menu, select "Start".

    12864_main_menu

  2. Provide the target charge weight in grain then press Next to continue.

    12864_select_charge_weight

  3. Remember to put pan on the scale.

    12864_waring_put_pan_on_scale

  4. Wait for scale to stable at 0. Or press the rotary button to force Re-zero.

    12864_wait_for_zero

  5. Wait for charge to reach the set point

    12864_wait for charge

  6. Once the charge set point is reached, remove the pan. The program shall restart from step 4.

    12864_wait_for_cup_removal

Pre-build firmware

Auto Build

You can download the pre-built firmware based on the latest release from above link. Similar to flashing other RP2040 firmware, you need to put the Pico W into the bootloader mode by pressing BOOTSEL button and plug in the micro-USB cable. Then you can copy the .uf2 file from the package to the pico. Shortly after the Pico W will be programmed automatically.

Build OpenTrickler firmware from source

Prerequistes

Git and Pico-SDK are required to build the firmware.

Setting Up Firmware

Using Git Bash clone the repository

git clone https://github.com/eamars/OpenTrickler-RP2040-Controller

Next change to the cloned directory

cd OpenTrickler-RP2040-Controller

Next use git to initalise the required submodules

git submodule init

Now using git clone all submodules

git submodule update --init --recursive

Setting Up Libraries

Using the Pico-Developer window navigate to the cloned directory.

 cd Path:\to\cloned\repository

Navigate to the build folder.

 cd build

Then run the following comand

cmake .. -DPICO_BOARD=pico_w -DCMAKE_BUILD_TYPE=Debug

Compiling the Firmware

Open Pico-VisualStudioCode and open the OpenTrickler-RP2040-Controller folder then navigate to the cmake plugin and click Build All Projects.