https://github.com/mojoaxel/vindriktning-node
Reading a Vindriktning Particle Sensor (IKEA) using node.js
https://github.com/mojoaxel/vindriktning-node
Last synced: 3 months ago
JSON representation
Reading a Vindriktning Particle Sensor (IKEA) using node.js
- Host: GitHub
- URL: https://github.com/mojoaxel/vindriktning-node
- Owner: mojoaxel
- Created: 2023-05-27T13:52:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T11:51:50.000Z (over 1 year ago)
- Last Synced: 2025-01-24T21:44:19.351Z (4 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vindriktning Particle Sensor (IKEA)
This is an experiment to read the serial data from the "PM1006" LED Particle Sensor that is inside a Vindriktning from IKEA using node.js
## Setup
### Hardware
First we need to connect a UART-to-USB. You should be able to find a simple board searching for the "FT232RL" chip.
- Connect the GND pin to the GND pin of the FT232RL.
- Connect the REST pin of the Vindriktning to the Rx pin of the FT232RL.
- Optionally you could also connect Vcc (5V) to power the Vindriktning by the FT232RL board directly.
Alternative Solutions might be:
- DIY "Feinstaubsensor Nova Fitness"### Software
First make sure to adjust `SERIAL_PORT` in [index.js](index.js). On windows this might be something like "COM3" instead.
```
npm install
npm start
```Output:
```
serialport connection to "/dev/ttyUSB0" opened
PM1.0: 1478 µg/m³, PM2.5: 13 µg/m³, PM10: 1 µg/m³
PM1.0: 1480 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1481 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1482 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1482 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1482 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1482 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
PM1.0: 1482 µg/m³, PM2.5: 14 µg/m³, PM10: 1 µg/m³
```## Useful docs
- [Sensor data format](https://lupyuen.github.io/articles/ikea#sensor-data-frame)
- [LED Particle Sensor "PM1006" Datasheet (PDF)](https://cdn-learn.adafruit.com/assets/assets/000/122/217/original/PM1006_LED_PARTICLE_SENSOR_MODULE_SPECIFICATIONS-1.pdf?1688148991)## Related projects
- https://github.com/balena-io-experimental/balena-ikea-vindriktning
- https://github.com/Hypfer/esp8266-vindriktning-particle-sensor
- https://github.com/LaskaKit/ESP-Vindriktning
- https://github.com/kasik96/esp8266-vindriktning-particle-sensor-homekit
- https://github.com/Hypfer/esp8266-vindriktning-particle-sensor
- https://github.com/pulsar256/vindriktning_esphome
- https://github.com/fabiosoft/esp8266_ikea_vindriktning
- https://www.b4x.com/android/forum/threads/air-quality-ikea-vindriktning.138665/
- https://espeasy.readthedocs.io/en/latest/Plugin/P144.html
- https://elektro.turanis.de/html/prj405/index.html
- https://style.oversubstance.net/2021/08/diy-use-an-ikea-vindriktning-air-quality-sensor-in-home-assistant-with-esphome/## License
> Alexander Wunschik wrote this file.
> As long as you retain this notice you can do whatever you want with this stuff.
> If we meet some day, and you think this stuff is worth it, you can buy me a beer in return
> — mojoaxel