Git Product home page Git Product logo

passenger-frequency-measurement's Introduction

Passenger Frequency Measurement

Source code and config files for Medium articles about Passenger Frequency Measurement:

Structure

  • connector: Source code for data connector (written in Rust)
  • database: Init file for creating database (streaming database RisingWave)
  • dashboard: Source code for dashboard (Plotly Dash)

Config Paxcounter

platform.ini

; MODIFY FOLLOWING LINES
[board]
halfile = lopy4.h
 
[env]
board = lopy4
 
; ADD FOLLOWING LINES
[env:lopy4]
platform = espressif32
board = lopy4
 
; change microcontroller
board_build.mcu = esp32
 
; change MCU frequency
board_build.f_cpu = 240000000L
 
upload_protocol = esptool

ota.conf

...
// MAC sniffing settings
#define BLECOUNTER                      1       // set to 0 if you do not want to start the BLE sniffer
#define WIFICOUNTER                     1       // set to 0 if you do not want to start the WIFI sniffer
#define RSSILIMIT                       0       // 0...-128, set to 0 if you do not want to filter signals
 
// Payload send cycle and encoding
#define SENDCYCLE                       30      // payload send cycle [seconds/2], 0 .. 255
...

lopy4.h

...
// select WIFI antenna (internal = onboard / external = u.fl socket)
#define HAS_ANTENNA_SWITCH  (21) // pin for switching wifi antenna (P12)
#define WIFI_ANTENNA 0    // 0 = internal, 1 = external
 
// uncomment defines in this section ONLY if your LoPy lives on a EXPANSION BOARD
#define HAS_LED (12) // use if LoPy is on Expansion Board, this has a user LED
#define LED_ACTIVE_LOW 1 // use if LoPy is on Expansion Board, this has a user LED
...

passenger-frequency-measurement's People

Contributors

sebastianstrassburg avatar

Watchers

Andreas Schuller avatar Christian Knecht avatar Daniel Ziegler avatar

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.