This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------------------- | |
For CIGMAN CM-701, but may work with other laser units if you change the frequency to match. | |
You should use a frequency for the ADC exactly 4x the frequency of the laser PWM of our leveling unit. | |
Laser-Level Receiver → ATmega32U4 ADC @40 kHz → 4-sample | |
min/max with accumulation → EMA(high,low) → Tone mapping → Serial @50 Hz | |
--------------------------------------------------------------------*/ | |
#include <Arduino.h> | |
// ——— USER CONFIGURATION ——— |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import asyncio | |
import uuid | |
import xml.dom.minidom | |
import aiohttp | |
import bleak | |
import pywifi | |
import logging | |
# pip install bleak |