Coder Social home page Coder Social logo

iotdevicesdev / ggreg20-v3-nodemcu-lua-example Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 16 KB

This is a simple Lua script example for GGreg20_V3 / GGreg20_V1 ionizing radiation detector module with SBM-20 GM tube working under NodeMCU firmware on ESP32 / ESP8266

Home Page: https://iot-devices.com.ua/en/product/ggreg20_v3-ionizing-radiation-detector-with-geiger-tube-sbm-20/

License: Apache License 2.0

Lua 100.00%
ggreg20-v3 lua lua-script lua-scripting-language nodemcu nodemcu-lua nodemcu-firmware geiger-muller-device geiger-counter iot-devices

ggreg20-v3-nodemcu-lua-example's Introduction

Stand With Ukraine

GGreg20_V3 NodeMCU firmware Lua code example

This is a simple Lua script example for GGreg20_V3 / GGreg20_V1 ionizing radiation detector module with SBM-20 GM tube working under NodeMCU firmware on ESP32 / ESP8266

This script is based on alterstrategy.lab (c) RadCounter - a full fledged LUA driver library module for radiation pulse counters under NodeMCU firmware.

Developed in 2022 by IoT-devices LLC, Kyiv, Ukraine with special alterstrategy.lab permission

This opensource free example code is licensed under: Apache 2.0 License

Usage

To get results:

  1. Run the script
dofile('ggreg20_v3_nodemcu_firmware_lua_example.lua')
  1. Run init() function with parameters
init(3, 1, 60000)
  1. Wait for 1 minute (after first pulse from GGreg20_V3) OR just run read() function to get current values
read()
-- or:
ma5_rad_lvl, cpm, minutes = read()

The Full fledged driver

If you want to obtain ready-to-use and well commented Lua code with:

  • debug output mode,
  • calculation of minimum / maximum instantaneous levels,
  • accumulated dose of radiation,
  • low-pass and hi-pass debounce filtering,
  • UNKNOWN / NORMAL / HIGH / DANGER event handling

as a complete Lua module with public methods registration, you may find it here: https://alterstrategy.com/product/radcounter/

The GGreg20_V3 Project on Hackaday:

https://hackaday.io/project/183103-ggreg20v3-ionizing-radiation-detector

I sell on Tindie

ggreg20-v3-nodemcu-lua-example's People

Contributors

iotdevicesdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

olegzh7505

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.