
OEM ECU
aeonSolutions/AeonLabs-AI-Volvo-MKII-Open-Hardware
Volvo MKII Open Hardware

Magnetic field measurement software (This software was developed for OCISLY - for more details, please contact OCISLY-ds) - Public dashboard available at https://dashboard.zyzonix.net/
MGFieldHAT is an open-source printed circuit board by Zyzonix, from the Zyzonix/mgfield repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 65 × 30 mm with 12 parts on 31 nets, routed with 70 tracks and 0 vias.
It is built around the ADS1115. It belongs with the sensors and measurement boards of this library.
This software has been developed with OCISLY-ds to measure magnetic fields with a Raspberry Pi. For more details, please contact OCISLY-ds.
[blocked]
[blocked]
This software is designed to be run on a Raspberry Pi!
First navigate to /opt/:
cd /optThen install all required APT-packages:
sudo apt install mariadb-server git If required, also install phpmyadmin and libapache2-mod-php to make PHP work with Apache. After that clone the repository:
git clone https://github.com/Zyzonix/mgfield.git
cd mgfield/Now all required software is downloaded.
To install the service type:
sudo cp services/mgfield.service /etc/systemd/system/Enable the service with:
sudo systemctl enable mgfield.serviceInstall required python packages:
sudo apt install python3-psutil i2c-tools libgpiod-dev python3-libgpiod ./packages/* The usage of pip3 depends on your system's configuration. Python packages on some systems like Debian are managed via apt.
sudo pip3 install mysql-connectorInstall additional python packages for physical sensor:
pip3 install --upgrade RPi.GPIO adafruit-blinka
pip3 install adafruit-circuitpython-ads1x15Create config directory and move config file:
sudo mkdir -p /home/root/.config/
cp config.json /home/root/.config/And finally create the logfile directory:
sudo mkdir -p /var/log/mgfield/Directly over the console (the programm will interrupt when the window will be closed)
python3 main.pyOr via the system service
sudo systemctl start mgfield.serviceTo view the current status use:
sudo systemctl status mgfield.serviceTo view the log/consoleout in realtime use:
sudo journalctl -u MGField.serviceThe software can be configured through the config-file named config.json.
storeAllRawData in the config that can be used to en-/disable the storing of this data./sys/bus/w1/devices/28-01204b515089/w1_slaveEach table contains two rows:
| Value Name | Meaning/Use type |
|---|---|
time_utc | Timestamp of value in UTC |
time_local | Timestamp of value in local time (Europe/Berlin/ +02:00) |
All other values are table-specific:
| Table | Value Name | Meaning/Use type |
|---|---|---|
mgfield | x_value | X-Value per measurement |
mgfield | y_value | Y-Value per measurement |
mgfield | z_value | Z-Value per measurement |
mgfield | out_value | OUT-Value per measurement |
mgfield | measurement_duration | Time delta of the single measurement |
netstats | hostname | Local hostname from /etc/hosts |
netstats | local_ip | Local IP |
netstats | packets_sent | Packets sent |
netstats | packets_recv | Packets received |
netstats | errin | Incoming packets with errors |
netstats | errout | Outgoing packets with errors |
netstats | dropin | Dropped incoming packets |
netstats | dropout | Dropped outgoing packets |
netstats | target1 | Any target configured to be pinged |
netstats | target2 | Any target configured to be pinged |
netstats | target3 | Any target configured to be pinged |
sysstats | cpu_speed | CPU Speed in MHz |
sysstats | cpu_usage | Current CPU usage in % |
sysstats | cpu_ctx_switches | CPU CTX Switches |
sysstats | cpu_interrupts | CPU interrupts since last boot |
sysstats | cpu_soft_interrupts | CPU soft interrupts since last boot |
sysstats | ram_total | Total RAM in MB |
sysstats | ram_free | Free RAM in MB |
sysstats | ram_used | Used RAM in MB |
sysstats | ram_cached | Cached RAM in MB |
sysstats | ram_free_wcache_perc | Free RAM in % with cache |
sysstats | ram_free_wocache_perc | Free RAM in % without cache |
sysstats | cpu_thermal | Raspberry Pi's CPU Temperature |
sysstats | uptime | Uptime since last reboot in seconds |
temperature | temperature_value | Current temperature in °C |
This software was earlier named MGFieldPy.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole_2.7mm_M2.5 | MountingHole:MountingHole_2.7mm_M2.5 | MH1, MH2, MH3, MH4 |
| 2 | TO-92-TO92127P495H2044-3 | DS18B20 Footprint Symbol:TO-92-TO92127P495H2044-3 | DS18B20, DS18B20 |
| 1 | ADS1115 | Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_Vertical | ADS1115 |
| 1 | GPIO | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | Header |
| 1 | Resistor 4.7k | Resistor_SMD:R_0805_2012Metric | 4.7k |
| 1 | SolderWire-0.1sqmm_1x06_P3.6mm_D0.4mm_OD1mm | Connector_Wire:SolderWire-0.1sqmm_1x06_P3.6mm_D0.4mm_OD1mm | FLC3-70 |
The 10 most common of 12 parts.
It measures 65 × 30 mm and has 2 copper layers, 1.6 mm thick.
12 parts, built around the ADS1115. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the Zyzonix/mgfield repository on GitHub, at the commit this page was made from: the board is arch/MGFieldHAT.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

aeonSolutions/AeonLabs-AI-Volvo-MKII-Open-Hardware
Volvo MKII Open Hardware


rin67630/Drok-Juntek-on-steroids
Extend the possibilities of cheap digital power supplies with a WiFi module

sdylewski/Analog-Redial
A circuit board for old telephones to come back to life. Plug one or two phones in, and you can call the other phone, use bluetooth, connect to others via voip, and do a variety of other things with a plain old rotary…


ToneAlchemy/BiasPro
A professional-grade, dual-probe Arduino Bias Meter for guitar tube amplifiers. Open source hardware & firmware

mikelawrence/esphome-indoor-multi-sensor-hardware
ESPHome Indoor Multi-Sensor hardware. This design supports Radar/PIR Presence, Temperature, Humidity, Pressure, Light, CO2, CO, VOC, NOX and PM sensors.
