Simple, easy-to-use hardware counter (EC = easy, easy counter). Raspberry Pico basis. 16*2 LCD display. micronEC.
Go to file
2024-03-10 14:21:48 +00:00
counter.py Applied GPL license 2023-11-02 19:00:25 +01:00
lcd_driver.py Added modification hint and original link 2024-03-10 14:21:48 +00:00
lcd_screen.py Applied GPL license 2023-11-02 19:00:25 +01:00
LICENSE.md Applied GPL license 2023-11-02 19:00:25 +01:00
micronec.py Updated micronec.py for possible ProgramChooser use 2024-03-09 19:05:08 +00:00
Pinout_-_Pico-W.png Added pinout sheet for Pico W. 2023-11-04 13:11:56 +01:00
README.md Added power consumption measurements 2023-11-04 20:25:23 +00:00
welcome.py Applied GPL license 2023-11-02 19:00:25 +01:00

micronEC

Simple, easy-to-use hardware counter. Raspberry Pico basis. 16x2 LCD panel. micronEC.

1. Name

For micronEC, the name says what it does. "EC" stands for Easy Counter. "EC" can also be read as "easy", which alludes to the utility.

2. Hardware

Required Hardware:

  • Raspberry Pi Pico W
  • 16x2 LCD with PCF8574* backpack
  • [In standard configuration: 2 Hardware Buttons]

Measured power consumption (Raspberry Pi Pico W, LCM1602 LCD panel, PCF8574T backpack, generic button):

  • ~40mA in idle mode, + ~2mA when handling button events
  • ~43mA at startup

3. Hardware preparation & Software installation

3.1 Hardware preparation

If you've got all the hardware stuff, let's start building your micronEC!

The only thing to say here are the standard pinouts (all of these can be changed, see 3.2 Software installation).

A pinout sheet can be found here.

Component Pin (name) on component Pin name on Pico Pin number on Pico
LCD backpack SDA GPIO0 1
LCD backpack SCL GPIO1 2
LCD backpack GND GND 3
LCD backpack VCC VBUS¹ 40¹
Button 1 Pin 1 GPIO2 4
Button 1 Pin 2 GND 3
Button 2 Pin 1 GPIO3 5
Button 2 Pin 2 GND 3

[¹]: This pin provides 5V to the backpack - but only when the pico itself get's its power via USB.

3.2 Software installation

  1. To get your Raspberry Pi Pico W ready for micronEC, make sure you've already installed microPython on it.
  2. Clone this repository to your local filesystem.
  3. Open Thonny
  4. Open the following files:
  5. In micronec.py, you can make changes as you need to - it's all commented and explained
  6. (Connect yout Raspberry Pi Pico to your computer)
  7. Upload all previously opened files (except the micronec.py!) to the Pico
  8. Now decide:
    • if you just want a preview, upload the micronec.py as it is (no renaming) and press F5 to run.
    • ONLY DO THAT IF YOU KNOW WHAT YOU ARE DOING: if you want to use that version for production, upload the micronec.py as main.py
      • WARNING: the pico always runs the main.py file on startup, so there's no chance to connect to it via USB. If you do so, and want to change things later, you have to completely reinstall microPython on your Pico and all previously uploaded files will be gone. ONLY DO THAT IF YOU KNOW WHAT YOU ARE DOING.
  9. Have fun!

4. License

micronEC is licensed under GPLv3, a copy of it can be found in LICENSE.md.